Auto Submit

dev_local_v9_gfkjdx
autosubmit 1 year ago
parent 270034bea7
commit d11bf3da9d

@ -2164,7 +2164,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
//筛选头部导航数据学生账号不展示试卷库hidden为true的需要隐藏
var visibleNavBar = (0,lodash.cloneDeep)(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.navbar); //登录跳转不加这个会渲染以前的数据
visibleNavBar = (_visibleNavBar = visibleNavBar) === null || _visibleNavBar === void 0 ? void 0 : _visibleNavBar.filter(function (item) {
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && item.link === '/paperlibrary');
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && (item === null || item === void 0 ? void 0 : item.link) === '/paperlibrary');
});
var _iterator = createForOfIteratorHelper_default()(visibleNavBar),
_step;
@ -2173,7 +2173,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
var visibleItem = _step.value;
if (visibleItem.subitem) {
visibleItem.subitem = visibleItem.subitem.filter(function (item) {
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && item.link === '/paperlibrary');
return !(item !== null && item !== void 0 && item.hidden) && !((0,authority/* isCommonStudent */.JA)() && (item === null || item === void 0 ? void 0 : item.link) === '/paperlibrary');
});
}
}
@ -2184,9 +2184,9 @@ var HeaderComponents = function HeaderComponents(_ref) {
}
var hasMatchedUrl = false;
(_visibleNavBar2 = visibleNavBar) === null || _visibleNavBar2 === void 0 || _visibleNavBar2.map(function (val, key) {
var _location$pathname, _val$subitem;
var _location$pathname, _val$link, _val$subitem;
var path = '/' + ((_location$pathname = location.pathname) === null || _location$pathname === void 0 || (_location$pathname = _location$pathname.split('/')) === null || _location$pathname === void 0 ? void 0 : _location$pathname[1]);
if (val.link === path || val.link.indexOf(path) > -1) {
if ((val === null || val === void 0 ? void 0 : val.link) === path || (val === null || val === void 0 || (_val$link = val.link) === null || _val$link === void 0 ? void 0 : _val$link.indexOf(path)) > -1) {
setActiveKey(val === null || val === void 0 ? void 0 : val.link);
(0,util/* setDocumentTitle */.Dk)(dealStr(val === null || val === void 0 ? void 0 : val.name));
setNavBar(footerDeal(key, {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,30 +1,30 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2355,52720,94338,78169,45504,58268,25473,81120,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[40770],{
/***/ 50382:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ 28563:
/*!***********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules ***!
\***********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_EyeOutlined; }
Z: function() { return /* binding */ icons_ArrowLeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(19973);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/ArrowLeftOutlined.js
// This icon file is generated automatically.
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
var ArrowLeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, "name": "arrow-left", "theme": "outlined" };
/* harmony default export */ var asn_ArrowLeftOutlined = (ArrowLeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EyeOutlined.js
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/ArrowLeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
@ -32,44 +32,89 @@ var AntdIcon = __webpack_require__(22589);
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
var ArrowLeftOutlined_ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_EyeOutlined
icon: asn_ArrowLeftOutlined
}));
};
/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
/**![arrow-left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg3MiA0NzRIMjg2LjlsMzUwLjItMzA0YzUuNi00LjkgMi4yLTE0LTUuMi0xNGgtODguNWMtMy45IDAtNy42IDEuNC0xMC41IDMuOUwxNTUgNDg3LjhhMzEuOTYgMzEuOTYgMCAwMDAgNDguM0w1MzUuMSA4NjZjMS41IDEuMyAzLjMgMiA1LjIgMmg5MS41YzcuNCAwIDEwLjgtOS4yIDUuMi0xNEwyODYuOSA1NTBIODcyYzQuNCAwIDgtMy42IDgtOHYtNjBjMC00LjQtMy42LTgtOC04eiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(ArrowLeftOutlined_ArrowLeftOutlined);
if (false) {}
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
/* harmony default export */ var icons_ArrowLeftOutlined = (RefIcon);
/***/ }),
/***/ 78386:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/DownOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_DownOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(19973);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/DownOutlined.js
// This icon file is generated automatically.
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
/* harmony default export */ var asn_DownOutlined = (DownOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/DownOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var DownOutlined_DownOutlined = function DownOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_DownOutlined
}));
};
/**![down](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTg4NCAyNTZoLTc1Yy01LjEgMC05LjkgMi41LTEyLjkgNi42TDUxMiA2NTQuMiAyMjcuOSAyNjIuNmMtMy00LjEtNy44LTYuNi0xMi45LTYuNmgtNzVjLTYuNSAwLTEwLjMgNy40LTYuNSAxMi43bDM1Mi42IDQ4Ni4xYzEyLjggMTcuNiAzOSAxNy42IDUxLjcgMGwzNTIuNi00ODYuMWMzLjktNS4zLjEtMTIuNy02LjQtMTIuN3oiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(DownOutlined_DownOutlined);
if (false) {}
/* harmony default export */ var icons_DownOutlined = (RefIcon);
/***/ }),
/***/ 45532:
/*!************************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules ***!
\************************************************************************************************************/
/***/ 50382:
/*!*****************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
\*****************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_PlusCircleOutlined; }
Z: function() { return /* binding */ icons_EyeOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.7@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(19973);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/PlusCircleOutlined.js
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeOutlined.js
// This icon file is generated automatically.
var PlusCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "plus-circle", "theme": "outlined" };
/* harmony default export */ var asn_PlusCircleOutlined = (PlusCircleOutlined);
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/PlusCircleOutlined.js
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EyeOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
@ -77,17 +122,17 @@ var AntdIcon = __webpack_require__(22589);
var PlusCircleOutlined_PlusCircleOutlined = function PlusCircleOutlined(props, ref) {
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_PlusCircleOutlined
icon: asn_EyeOutlined
}));
};
/**![plus-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5NiA0ODBINTQ0VjMyOGMwLTQuNC0zLjYtOC04LThoLTQ4Yy00LjQgMC04IDMuNi04IDh2MTUySDMyOGMtNC40IDAtOCAzLjYtOCA4djQ4YzAgNC40IDMuNiA4IDggOGgxNTJ2MTUyYzAgNC40IDMuNiA4IDggOGg0OGM0LjQgMCA4LTMuNiA4LThWNTQ0aDE1MmM0LjQgMCA4LTMuNiA4LTh2LTQ4YzAtNC40LTMuNi04LTgtOHoiIC8+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0wIDgyMGMtMjA1LjQgMC0zNzItMTY2LjYtMzcyLTM3MnMxNjYuNi0zNzIgMzcyLTM3MiAzNzIgMTY2LjYgMzcyIDM3Mi0xNjYuNiAzNzItMzcyIDM3MnoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(PlusCircleOutlined_PlusCircleOutlined);
/**![eye](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTk0Mi4yIDQ4Ni4yQzg0Ny40IDI4Ni41IDcwNC4xIDE4NiA1MTIgMTg2Yy0xOTIuMiAwLTMzNS40IDEwMC41LTQzMC4yIDMwMC4zYTYwLjMgNjAuMyAwIDAwMCA1MS41QzE3Ni42IDczNy41IDMxOS45IDgzOCA1MTIgODM4YzE5Mi4yIDAgMzM1LjQtMTAwLjUgNDMwLjItMzAwLjMgNy43LTE2LjIgNy43LTM1IDAtNTEuNXpNNTEyIDc2NmMtMTYxLjMgMC0yNzkuNC04MS44LTM2Mi43LTI1NEMyMzIuNiAzMzkuOCAzNTAuNyAyNTggNTEyIDI1OGMxNjEuMyAwIDI3OS40IDgxLjggMzYyLjcgMjU0Qzc5MS41IDY4NC4yIDY3My40IDc2NiA1MTIgNzY2em0tNC00MzBjLTk3LjIgMC0xNzYgNzguOC0xNzYgMTc2czc4LjggMTc2IDE3NiAxNzYgMTc2LTc4LjggMTc2LTE3Ni03OC44LTE3Ni0xNzYtMTc2em0wIDI4OGMtNjEuOSAwLTExMi01MC4xLTExMi0xMTJzNTAuMS0xMTIgMTEyLTExMiAxMTIgNTAuMSAxMTIgMTEyLTUwLjEgMTEyLTExMiAxMTJ6IiAvPjwvc3ZnPg==) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
if (false) {}
/* harmony default export */ var icons_PlusCircleOutlined = (RefIcon);
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
/***/ }),
@ -1102,250 +1147,6 @@ function getStyle(prefixCls, token) {
/***/ }),
/***/ 28103:
/*!***********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ divider; }
});
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
var _classnames_2_5_1_classnames = __webpack_require__(92310);
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/style/index.js
// ============================== Shared ==============================
const genSharedDividerStyle = token => {
const {
componentCls,
sizePaddingEdgeHorizontal,
colorSplit,
lineWidth,
textPaddingInline,
orientationMargin,
verticalMarginInline
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
// vertical
'&-vertical': {
position: 'relative',
top: '-0.06em',
display: 'inline-block',
height: '0.9em',
marginInline: verticalMarginInline,
marginBlock: 0,
verticalAlign: 'middle',
borderTop: 0,
borderInlineStart: `${lineWidth}px solid ${colorSplit}`
},
'&-horizontal': {
display: 'flex',
clear: 'both',
width: '100%',
minWidth: '100%',
margin: `${token.dividerHorizontalGutterMargin}px 0`
},
[`&-horizontal${componentCls}-with-text`]: {
display: 'flex',
alignItems: 'center',
margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
color: token.colorTextHeading,
fontWeight: 500,
fontSize: token.fontSizeLG,
whiteSpace: 'nowrap',
textAlign: 'center',
borderBlockStart: `0 ${colorSplit}`,
'&::before, &::after': {
position: 'relative',
width: '50%',
borderBlockStart: `${lineWidth}px solid transparent`,
// Chrome not accept `inherit` in `border-top`
borderBlockStartColor: 'inherit',
borderBlockEnd: 0,
transform: 'translateY(50%)',
content: "''"
}
},
[`&-horizontal${componentCls}-with-text-left`]: {
'&::before': {
width: `${orientationMargin * 100}%`
},
'&::after': {
width: `${100 - orientationMargin * 100}%`
}
},
[`&-horizontal${componentCls}-with-text-right`]: {
'&::before': {
width: `${100 - orientationMargin * 100}%`
},
'&::after': {
width: `${orientationMargin * 100}%`
}
},
[`${componentCls}-inner-text`]: {
display: 'inline-block',
paddingBlock: 0,
paddingInline: textPaddingInline
},
'&-dashed': {
background: 'none',
borderColor: colorSplit,
borderStyle: 'dashed',
borderWidth: `${lineWidth}px 0 0`
},
[`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
'&::before, &::after': {
borderStyle: 'dashed none none'
}
},
[`&-vertical${componentCls}-dashed`]: {
borderInlineStartWidth: lineWidth,
borderInlineEnd: 0,
borderBlockStart: 0,
borderBlockEnd: 0
},
[`&-plain${componentCls}-with-text`]: {
color: token.colorText,
fontWeight: 'normal',
fontSize: token.fontSize
},
[`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
'&::before': {
width: 0
},
'&::after': {
width: '100%'
},
[`${componentCls}-inner-text`]: {
paddingInlineStart: sizePaddingEdgeHorizontal
}
},
[`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
'&::before': {
width: '100%'
},
'&::after': {
width: 0
},
[`${componentCls}-inner-text`]: {
paddingInlineEnd: sizePaddingEdgeHorizontal
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
const dividerToken = (0,statistic/* merge */.TS)(token, {
dividerHorizontalWithTextGutterMargin: token.margin,
dividerHorizontalGutterMargin: token.marginLG,
sizePaddingEdgeHorizontal: 0
});
return [genSharedDividerStyle(dividerToken)];
}, token => ({
textPaddingInline: '1em',
orientationMargin: 0.05,
verticalMarginInline: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Divider = props => {
const {
getPrefixCls,
direction,
divider
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'horizontal',
orientation = 'center',
orientationMargin,
className,
rootClassName,
children,
dashed,
plain,
style
} = props,
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
const prefixCls = getPrefixCls('divider', customizePrefixCls);
const [wrapSSR, hashId] = divider_style(prefixCls);
const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
const hasChildren = !!children;
const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
const classString = _classnames_2_5_1_classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
[`${prefixCls}-with-text`]: hasChildren,
[`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
[`${prefixCls}-dashed`]: !!dashed,
[`${prefixCls}-plain`]: !!plain,
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
[`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
}, className, rootClassName);
const memoizedOrientationMargin = _react_17_0_2_react.useMemo(() => {
if (typeof orientationMargin === 'number') {
return orientationMargin;
}
if (/^\d+$/.test(orientationMargin)) {
return Number(orientationMargin);
}
return orientationMargin;
}, [orientationMargin]);
const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
marginLeft: memoizedOrientationMargin
}), hasCustomMarginRight && {
marginRight: memoizedOrientationMargin
});
// Warning children not work in vertical mode
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
}, restProps, {
role: "separator"
}), children && type !== 'vertical' && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-inner-text`,
style: innerStyle
}, children)));
};
if (false) {}
/* harmony default export */ var divider = (Divider);
/***/ }),
/***/ 73782:
/*!*********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
@ -1745,221 +1546,156 @@ input_Input.Password = input_Password;
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
\**********************************************************/
/***/ 92899:
/*!***************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
"use client";
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
/* harmony export */ });
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 7102);
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
'0%': {
transform: 'translate3d(0, 100%, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(0, 100%, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
'0%': {
transform: 'translate3d(-100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(-100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
'0%': {
transform: 'translate3d(100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(100%, 0, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
'0%': {
transform: 'translate3d(0, -100%, 0)',
transformOrigin: '0 0',
opacity: 0
},
'100%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
}
});
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
'0%': {
transform: 'translate3d(0, 0, 0)',
transformOrigin: '0 0',
opacity: 1
},
'100%': {
transform: 'translate3d(0, -100%, 0)',
transformOrigin: '0 0',
opacity: 0
}
});
const moveMotion = {
'move-up': {
inKeyframes: moveUpIn,
outKeyframes: moveUpOut
},
'move-down': {
inKeyframes: moveDownIn,
outKeyframes: moveDownOut
},
'move-left': {
inKeyframes: moveLeftIn,
outKeyframes: moveLeftOut
},
'move-right': {
inKeyframes: moveRightIn,
outKeyframes: moveRightOut
}
return t;
};
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const InternalSelect = (_a, ref) => {
var _b;
var {
prefixCls: customizePrefixCls,
bordered = true,
className,
rootClassName,
getPopupContainer,
popupClassName,
dropdownClassName,
listHeight = 256,
placement,
listItemHeight = 24,
size: customizeSize,
disabled: customDisabled,
notFoundContent,
status: customStatus,
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
style,
allowClear
} = _a,
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
select
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
const initMoveMotion = (token, motionName) => {
const {
compactSize,
compactItemClassnames
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
const {
mode: m
} = props;
if (m === 'combobox') {
return undefined;
}
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
return 'combobox';
}
return m;
}, [props.mode]);
const isMultiple = mode === 'multiple' || mode === 'tags';
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
// ===================== Form Status =====================
const {
status: contextStatus,
hasFeedback,
isFormItemInput,
feedbackIcon
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
// ===================== Empty =====================
let mergedNotFound;
if (notFoundContent !== undefined) {
mergedNotFound = notFoundContent;
} else if (mode === 'combobox') {
mergedNotFound = null;
} else {
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
componentName: "Select"
});
}
// ===================== Icons =====================
antCls
} = token;
const motionCls = `${antCls}-${motionName}`;
const {
suffixIcon,
itemIcon,
removeIcon,
clearIcon
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
multiple: isMultiple,
hasFeedback,
feedbackIcon,
showSuffixIcon,
prefixCls,
showArrow: props.showArrow,
componentName: 'Select'
}));
const mergedAllowClear = allowClear === true ? {
clearIcon
} : allowClear;
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
}, rootClassName, hashId);
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
// ===================== Disabled =====================
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-lg`]: mergedSize === 'large',
[`${prefixCls}-sm`]: mergedSize === 'small',
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered,
[`${prefixCls}-in-form-item`]: isFormItemInput
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
// ===================== Placement =====================
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
if (placement !== undefined) {
return placement;
inKeyframes,
outKeyframes
} = moveMotion[motionName];
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
[`
${motionCls}-enter,
${motionCls}-appear
`]: {
opacity: 0,
animationTimingFunction: token.motionEaseOutCirc
},
[`${motionCls}-leave`]: {
animationTimingFunction: token.motionEaseInOutCirc
}
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
}, [placement, direction]);
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
// ====================== Warning ======================
if (false) {}
// ====================== Render =======================
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
ref: ref,
virtual: virtual,
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
}, selectProps, {
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
builtinPlacements: mergedBuiltinPlacements,
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
listHeight: listHeight,
listItemHeight: listItemHeight,
mode: mode,
prefixCls: prefixCls,
placement: memoPlacement,
direction: direction,
suffixIcon: suffixIcon,
menuItemSelectedIcon: itemIcon,
removeIcon: removeIcon,
allowClear: mergedAllowClear,
notFoundContent: mergedNotFound,
className: mergedClassName,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: rcSelectRtlDropdownClassName,
disabled: mergedDisabled
})));
}];
};
if (false) {}
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ })

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[48903],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[48903,40770],{
/***/ 28563:
/*!***********************************************************************************************************!*\

File diff suppressed because it is too large Load Diff

@ -7532,7 +7532,7 @@ var _seed = __webpack_require__(/*! ../seed */ 54303);
var _genColorMapToken = _interopRequireDefault(__webpack_require__(/*! ../shared/genColorMapToken */ 29330));
var _genCommonMapToken = _interopRequireDefault(__webpack_require__(/*! ../shared/genCommonMapToken */ 86704));
var _colors2 = __webpack_require__(/*! ./colors */ 31951);
var _genFontMapToken = _interopRequireDefault(__webpack_require__(/*! ../shared/genFontMapToken */ 9250));
var _genFontMapToken = _interopRequireDefault(__webpack_require__(/*! ../shared/genFontMapToken */ 37325));
function derivative(token) {
const colorPalettes = Object.keys(_seed.defaultPresetColors).map(colorKey => {
const colors = (0, _colors.generate)(token[colorKey]);
@ -7795,7 +7795,7 @@ exports["default"] = _default;
/***/ }),
/***/ 9250:
/***/ 37325:
/*!**********************************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/lib/theme/themes/shared/genFontMapToken.js ***!
\**********************************************************************************/

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94338,52720,78169,45504,2355,58268,25473,81120,11021],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[94338,52720,78169,45504,58268,25473,81120,11021],{
/***/ 50382:
/*!*****************************************************************************************************!*\

@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.e5b6f6e0.js"></script>
<script src="/react/build/umi.32d914c7.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -1,5 +1,5 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39695,28723],{
(self["webpackChunk"] = self["webpackChunk"] || []).push([[39695],{
/***/ 28170:
/*!********************************************************************!*\
@ -54,13 +54,11 @@ var es_button = __webpack_require__(3113);
var polls = __webpack_require__(71755);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Add/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___awg_W","flex_space_between":"flex_space_between___vs3La","flex_box_vertical_center":"flex_box_vertical_center___I3QTf","flex_box_center_end":"flex_box_center_end___fRTLL","flex_box_column":"flex_box_column___Z539C","bg":"bg___Dw6dz","title":"title___Z4aJr","titleLeft":"titleLeft___hTg4o","titleRight":"titleRight___mYUY7"});
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___awg_W","flex_space_between":"flex_space_between___vs3La","flex_box_vertical_center":"flex_box_vertical_center___I3QTf","flex_box_center_end":"flex_box_center_end___fRTLL","flex_box_column":"flex_box_column___Z539C","bg":"bg___Dw6dz","title":"title___Z4aJr","titleLeft":"titleLeft___hTg4o","titleRight":"titleRight___mYUY7","footer":"footer___BXamP","footer_button":"footer_button___SgR41","button_style":"button_style___Dhnsl"});
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(99144);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(34596);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/PlusCircleOutlined.js + 1 modules
var PlusCircleOutlined = __webpack_require__(45532);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/components/MultipleEditor/index.tsx
var MultipleEditor = __webpack_require__(68500);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/components/SingleEditor/index.tsx
@ -87,7 +85,6 @@ var jsx_runtime = __webpack_require__(37712);
var ShixunsListPage = function ShixunsListPage(_ref) {
var _userInfo$course;
var classroomList = _ref.classroomList,
@ -100,6 +97,16 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
setTimeout(function () {
document.body.scrollIntoView();
}, 300);
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
var userInfo = user.userInfo;
var _Form$useForm = es_form/* default */.Z.useForm(),
@ -121,7 +128,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
name: "多选题",
id: 2
}, {
name: "主观题",
name: "问答题",
id: 3
}];
var callback = function callback(key, data, allData) {
@ -248,219 +255,226 @@ var ShixunsListPage = function ShixunsListPage(_ref) {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container",
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "animated fadeIn",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: userInfo && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "".concat(userInfo.first_category_url),
children: userInfo === null || userInfo === void 0 || (_userInfo$course = userInfo.course) === null || _userInfo$course === void 0 ? void 0 : _userInfo$course.course_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(params.coursesId, "/poll"),
children: "\u95EE\u5377\u5217\u8868"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u65B0\u5EFA\u95EE\u5377"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: [Addmodules.title, 'mt20'].join(' '),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font20 ml5",
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "animated fadeIn",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: userInfo && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "".concat(userInfo.first_category_url),
children: userInfo === null || userInfo === void 0 || (_userInfo$course = userInfo.course) === null || _userInfo$course === void 0 ? void 0 : _userInfo$course.course_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(params.coursesId, "/poll"),
children: "\u95EE\u5377\u5217\u8868"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u65B0\u5EFA\u95EE\u5377"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: [Addmodules.title, 'mt20'].join(' '),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font18 ml5",
children: "\u65B0\u5EFA\u95EE\u5377"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
className: "font14 c-light-black",
to: "/classrooms/".concat(params.coursesId, "/poll"),
children: "\u8FD4\u56DE"
})
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: [Addmodules.bg, 'pt30', 'pl30', 'pr30', 'pb30', 'mt10'].join(' '),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
form: form,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "polls_name",
label: "\u95EE\u5377\u6807\u9898\uFF1A",
rules: [{
required: true,
message: "请填写问卷标题"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
placeholder: "\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",
style: {
height: "40px"
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
className: "font16 c-light-black",
to: "/classrooms/".concat(params.coursesId, "/poll"),
children: "\u8FD4\u56DE"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u95EE\u5377\u987B\u77E5\uFF1A",
name: "polls_description",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
height: 200,
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E,\u6700\u5927\u9650\u52365000\u5B57"
})
})]
})
}), editData != '' && /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: [Addmodules.bg, 'pt30', 'pl20', 'pr20', 'pb20', 'mt20'].join(' '),
children: renderQuestion()
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: [Addmodules.bg, 'pt30', 'pl30', 'pr30', 'pb30', 'mt20'].join(' '),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
form: form,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "polls_name",
label: "\u95EE\u5377\u6807\u9898\uFF1A",
rules: [{
required: true,
message: "请填写问卷标题"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
placeholder: "\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u95EE\u5377\u987B\u77E5\uFF1A",
name: "polls_description",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E,\u6700\u5927\u9650\u52365000\u5B57"
})
}), editData != '' && /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: [Addmodules.bg, 'pt30', 'pl20', 'pr20', 'pb20', 'mt20'].join(' '),
children: renderQuestion()
}), /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: [Addmodules.bg, 'pt30', 'pl30', 'pr30', 'pb30', 'mt20'].join(' '),
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Addmodules.footer,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Addmodules.footer_button,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: Addmodules.bg,
style: {
display: "flex"
},
children: questionType.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
className: "mr20",
type: "primary",
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Addmodules.button_style,
onClick: function onClick() {
return addQuestion(item.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(PlusCircleOutlined/* default */.Z, {
className: "mr5"
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tianjia4 mr5 font14"
}), item.name]
});
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z.Item, {
className: "tr",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_umi_production_exports.history.back();
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: "\u53D6\u6D88"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
style: {
margin: '0px 20px'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _editData$filter;
var value, res, _res$data;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return form.validateFields();
case 2:
value = form.getFieldValue();
value.is_md = true;
if (!(((_editData$filter = editData.filter(function (item) {
return item.question.question_title;
})) === null || _editData$filter === void 0 ? void 0 : _editData$filter.length) <= 0)) {
_context3.next = 7;
break;
}
message/* default */.ZP.info('请至少添加一道试题');
return _context3.abrupt("return");
case 7:
_context3.next = 9;
return (0,polls/* addPolls */.rJ)(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, value), params), {}, {
poll_questions: editData.filter(function (item) {
var _item$question;
return item === null || item === void 0 || (_item$question = item.question) === null || _item$question === void 0 ? void 0 : _item$question.question_title;
}).map(function (item) {
return item.question;
})
}));
case 9:
res = _context3.sent;
if (res.status === 0) {
(0,util/* trackEvent */.L9)(['教学课堂', '问卷', '新建问卷']);
// history.push(`/classrooms/${params.coursesId}/poll/${res.data?.id}/edit`)
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/poll/").concat((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.id, "/detail?tabs=2"));
}
case 11:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: "\u4FDD\u5B58"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
type: "primary",
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var _editData$filter2;
var value, res, _res$data2, _res$data3, _res$data4;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return form.validateFields();
case 2:
value = form.getFieldValue();
value.is_md = true;
if (!(((_editData$filter2 = editData.filter(function (item) {
return item.question.question_title;
})) === null || _editData$filter2 === void 0 ? void 0 : _editData$filter2.length) <= 0)) {
_context4.next = 7;
break;
}
message/* default */.ZP.info('请至少添加一道试题');
return _context4.abrupt("return");
case 7:
_context4.next = 9;
return (0,polls/* addPolls */.rJ)(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, value), params), {}, {
poll_questions: editData.filter(function (item) {
var _item$question2;
return item === null || item === void 0 || (_item$question2 = item.question) === null || _item$question2 === void 0 ? void 0 : _item$question2.question_title;
}).map(function (item) {
return item.question;
})
}));
case 9:
res = _context4.sent;
if (res.status === 0) {
(0,util/* trackEvent */.L9)(['教学课堂', '问卷', '新建问卷']);
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/poll/").concat((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.id, "/detail?tabs=2"));
dispatch({
type: 'polls/setActionTabs',
payload: {
key: '立即发布',
selectArrs: [(_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.id],
types: 2,
params: {
categoryId: (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.id
}
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
type: "primary",
style: {
marginLeft: 'auto',
background: '#ffffff',
color: "#343636",
border: '1px #eeeeee solid'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var _editData$filter;
var value, res, _res$data;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return form.validateFields();
case 2:
value = form.getFieldValue();
value.is_md = true;
if (!(((_editData$filter = editData.filter(function (item) {
return item.question.question_title;
})) === null || _editData$filter === void 0 ? void 0 : _editData$filter.length) <= 0)) {
_context2.next = 7;
break;
}
message/* default */.ZP.info('请至少添加一道试题');
return _context2.abrupt("return");
case 7:
_context2.next = 9;
return (0,polls/* addPolls */.rJ)(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, value), params), {}, {
poll_questions: editData.filter(function (item) {
var _item$question;
return item === null || item === void 0 || (_item$question = item.question) === null || _item$question === void 0 ? void 0 : _item$question.question_title;
}).map(function (item) {
return item.question;
})
}));
case 9:
res = _context2.sent;
if (res.status === 0) {
(0,util/* trackEvent */.L9)(['教学课堂', '问卷', '新建问卷']);
// history.push(`/classrooms/${params.coursesId}/poll/${res.data?.id}/edit`)
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/poll/").concat((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.id, "/detail?tabs=2"));
}
case 11:
case "end":
return _context2.stop();
}
}, _callee2);
})),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-baocun1 font14 mr5"
}), "\u4FDD\u5B58\u95EE\u5377"]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
type: "primary",
style: {
marginLeft: '20px'
},
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var _editData$filter2;
var value, res, _res$data2, _res$data3, _res$data4;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return form.validateFields();
case 2:
value = form.getFieldValue();
value.is_md = true;
if (!(((_editData$filter2 = editData.filter(function (item) {
return item.question.question_title;
})) === null || _editData$filter2 === void 0 ? void 0 : _editData$filter2.length) <= 0)) {
_context3.next = 7;
break;
}
message/* default */.ZP.info('请至少添加一道试题');
return _context3.abrupt("return");
case 7:
_context3.next = 9;
return (0,polls/* addPolls */.rJ)(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, value), params), {}, {
poll_questions: editData.filter(function (item) {
var _item$question2;
return item === null || item === void 0 || (_item$question2 = item.question) === null || _item$question2 === void 0 ? void 0 : _item$question2.question_title;
}).map(function (item) {
return item.question;
})
}));
case 9:
res = _context3.sent;
if (res.status === 0) {
(0,util/* trackEvent */.L9)(['教学课堂', '问卷', '新建问卷']);
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/poll/").concat((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.id, "/detail?tabs=2"));
dispatch({
type: 'polls/setActionTabs',
payload: {
key: '立即发布',
selectArrs: [(_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.id],
types: 2,
params: {
categoryId: (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.id
}
});
}
case 11:
case "end":
return _context4.stop();
}
}, _callee4);
})),
children: "\u4FDD\u5B58\u5E76\u53D1\u5E03"
})]
}
});
}
case 11:
case "end":
return _context3.stop();
}
}, _callee3);
})),
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fasong font16 mr5"
}), "\u53D1\u5E03\u95EE\u5377"]
})]
})
})]
});
};
/* harmony default export */ var Add = ((0,_umi_production_exports.connect)(function (_ref6) {
var classroomList = _ref6.classroomList,
loading = _ref6.loading,
user = _ref6.user,
globalSetting = _ref6.globalSetting;
/* harmony default export */ var Add = ((0,_umi_production_exports.connect)(function (_ref5) {
var classroomList = _ref5.classroomList,
loading = _ref5.loading,
user = _ref5.user,
globalSetting = _ref5.globalSetting;
return {
classroomList: classroomList,
globalSetting: globalSetting,

@ -48,6 +48,33 @@
margin-right: 20px;
font-weight: bold;
}
.footer___BXamP {
width: 100%;
background: #ffffff;
box-shadow: 0px -2px 4px 0px #E0DFE1;
position: fixed;
bottom: 0;
}
.footer___BXamP .footer_button___SgR41 {
display: flex;
height: 64px;
align-items: center;
width: 1200px;
margin: auto;
}
.footer___BXamP .footer_button___SgR41 .button_style___Dhnsl {
margin-right: 20px;
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 4px;
border: 1px solid #BACFFE;
color: #3061D0;
cursor: pointer;
width: 88px;
height: 32px;
line-height: 30px;
text-align: center;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Edit/components/editor.less?modules ***!
@ -108,7 +135,19 @@
}
.choiceWrap___pj0lT {
display: flex;
margin-top: 15px;
margin-top: 25px;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #000;
}
.choiceWrap___pj0lT [class='ant-select-selector'] {
height: 40px !important;
line-height: 40px !important;
}
.choiceWrap___pj0lT [class='ant-select-selection-item'] {
height: 40px !important;
line-height: 40px !important;
}
.answer___Aq1c0 {
color: #888;
@ -129,9 +168,9 @@
}
.deleteIcon___Gsa5a {
cursor: pointer;
color: #ccc;
color: #E30000;
margin-left: 15px;
font-size: 18px;
font-size: 14px;
}
.addIcon___Yr5Ku {
cursor: pointer;
@ -178,156 +217,53 @@
margin-top: 15px;
}
.questionChoices___c0OQa > div {
margin: 8px 0;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Edit/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___zXTbi {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___PmyCC {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___FVTkH {
align-items: center;
box-align: center;
}
.flex_box_center_end___hhcmG {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___M32tw {
flex-direction: column;
box-orient: block-axis;
}
.bg___nBRtw {
background: white;
}
.containerTitle___aZMyO {
height: 88px;
line-height: 88px;
font-size: 18px;
padding: 0 30px;
color: #333;
border-bottom: 1px solid #eee;
display: box;
display: flex;
align-items: center;
box-align: center;
}
.containerTitle___aZMyO div:nth-child(1) {
flex: 1 1;
}
.containerDesc___IBU0r {
display: box;
display: flex;
}
.containerDesc___IBU0r div:nth-child(1) {
flex: 1 1;
margin-top: 30px;
}
.listItem___N1XyK {
padding: 25px 30px 25px 30px;
display: box;
display: flex;
background: white;
margin-top: 20px;
.close_style___NQVEE {
width: 80px;
height: 38px;
background: #F8F9FC;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
border: 1px solid #F8FAFC;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #464F66;
line-height: 38px;
text-align: center;
cursor: pointer;
margin-left: auto;
}
.listItem___N1XyK > div {
flex: 1 1;
}
.listItem___N1XyK:hover {
box-shadow: 0 0 10px #ccc;
}
.info___ckHt5 {
margin-left: 20px;
}
.info___ckHt5 p {
margin-top: 18px;
}
.title___ZKDBe {
display: box;
display: flex;
align-items: center;
box-align: center;
}
.title___ZKDBe strong {
color: #333;
}
.titleLeft___f48Qy {
flex: 1 1;
}
.titleRight___iByom a {
margin-right: 20px;
font-weight: bold;
}
.acitons___x97ti {
height: 70px;
background: white;
margin-top: 20px;
display: box;
display: flex;
align-items: center;
box-align: center;
padding: 0 30px;
}
.acitons___x97ti > div:nth-child(1) {
flex: 1 1;
}
.acitons___x97ti > div:nth-child(2) {
display: box;
display: flex;
align-items: center;
box-align: center;
}
.acitons___x97ti > div:nth-child(2) p {
.save_style___kq8NC {
width: 80px;
height: 38px;
background: #ECF0F9;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #3061D0;
line-height: 38px;
text-align: center;
cursor: pointer;
color: #999;
margin-left: 20px;
}
.acitons___x97ti > div:nth-child(2) p:hover {
color: #333;
.edit_title___W3elv {
width: 800px;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 26px;
}
.acitons___x97ti > div:nth-child(2) p span {
position: relative;
padding: 0 20px;
}
.acitons___x97ti > div:nth-child(2) p span:after {
content: '';
width: 1px;
height: 10px;
background: #ededed;
position: absolute;
right: 0;
top: 50%;
margin-top: -5px;
}
.acitons___x97ti > div:nth-child(2) p:nth-last-child(1) span {
padding-right: 0;
}
.acitons___x97ti > div:nth-child(2) p:nth-last-child(1) span:after {
display: none;
}
.necessary_label___Myrf1 {
color: #666;
background-color: #ededed;
padding: 0 15px;
border-radius: 12px;
display: inline-block;
height: 22px;
margin-left: 10px;
line-height: 22px;
font-size: 14px;
.can_select_count___F11WF {
font-size: 12px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #666666;
margin-right: 10px;
}

@ -1,310 +0,0 @@
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/ConfigWorks/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___mZeBL {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___OvqA8 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___nBE0A {
align-items: center;
box-align: center;
}
.flex_box_center_end___w0dO1 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___mvqBn {
flex-direction: column;
box-orient: block-axis;
}
.form___f61BQ strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.form___f61BQ h1 {
font-weight: 600;
color: #333;
font-size: 16px;
}
.form___f61BQ [class~='ant-form-item'] {
margin-bottom: 0;
}
.efficiency___wHbp8 {
background: #fafafa;
padding: 20px;
font-size: 12px;
position: relative;
}
.efficiency___wHbp8:before {
width: 0;
height: 0;
content: '';
position: absolute;
left: -20px;
top: 27px;
border-right: 15px solid #fafafa;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/StatisticsResult/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.bg___EiI5z {
background: #fafafa;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/PreviewPolls/components/editor.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___Mm5nR {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___MMkat {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___LETW1 {
align-items: center;
box-align: center;
}
.flex_box_center_end___XlC9p {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___THy8y {
flex-direction: column;
box-orient: block-axis;
}
.wrap___z9iJU {
padding: 20px 0px;
box-sizing: border-box;
}
.modal___y8bNh div[class~='ant-modal-confirm-content'] {
font-size: 16px;
text-align: center;
}
.modal___y8bNh span[class~='ant-modal-title'] {
font-size: 16px;
}
.titleWrap___knBE8 {
margin: 10px 0px;
}
.required___Ojs5D {
margin-right: 4px;
color: #e04040;
font-size: 16px;
}
.title___M_fKx {
font-size: 14px;
color: #333333;
}
.colorGray___N8txU {
color: #888888;
}
.choiceWrap____Xkwt {
display: flex;
margin-top: 15px;
}
.answer___TSzCH {
color: #888;
display: block;
width: 38px;
height: 38px;
text-align: center;
line-height: 38px;
border-radius: 4px;
cursor: pointer;
border: 1px solid #e2e2e2;
margin-right: 10px;
}
.activeAnswer___Pnkob {
background: #ff7500;
color: #ffffff;
border: 1px solid #ff7500;
}
.deleteIcon___O5q20 {
cursor: pointer;
color: #ccc;
margin-left: 15px;
font-size: 18px;
}
.addIcon___c8iSL {
cursor: pointer;
color: #29bd8b;
margin-left: 6px;
font-size: 16px;
padding-top: 1px;
}
.editorWrap___oodwM {
flex: 1 1;
}
.htmlWrap___ljy1Y {
display: flex;
margin-top: 0px;
min-height: 38px;
border-radius: 2px;
max-width: 1056px;
word-break: break-all;
border: 1px solid #dddddd;
}
.htmlWrap___ljy1Y p {
margin: 7px 10px;
}
.radio___ZUxPE {
width: 60px;
height: 32px;
line-height: 32px;
text-align: center;
}
.color333____votr {
color: #333;
}
.color999___Audhi {
color: #999;
}
.questionType___MN7qw {
display: box;
display: flex;
}
.questionType___MN7qw > div {
flex: 1 1;
}
.questionChoices___ZMeSF {
margin-top: 15px;
}
.questionChoices___ZMeSF > div {
margin: 8px 0;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___KocrS {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___tbwbg {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Boklb {
align-items: center;
box-align: center;
}
.flex_box_center_end___yLkeS {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___yoUa3 {
flex-direction: column;
box-orient: block-axis;
}
.title___ByTX2 {
display: flex;
align-items: center;
}
.title___ByTX2 strong {
max-width: 550px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.export___XUBRC {
position: absolute;
right: 20px;
top: 23px;
z-index: 2;
font-size: 16px;
}
.export___XUBRC a,
.export___XUBRC button {
margin-left: 30px;
}
.bg___r_XgQ {
background: #fafafa;
}
.tabs___awxWj [class='ant-tabs-nav-list'] {
padding-left: 25px;
}
.tabs___awxWj [class='ant-tabs-nav-scroll'] {
padding-left: 25px;
}
.tabs___awxWj [class~='ant-tabs-tab'] {
padding: 23px 0 !important;
font-size: 18px;
color: #333;
}
.tabs___awxWj [class~='ant-tabs-tab-active'] {
color: #0152d9;
}
.tabs___awxWj [class~='ant-tabs-nav'] {
background: white;
margin-bottom: 0 !important;
}
.export_type_modal___o8Y6x {
display: flex;
flex-wrap: wrap;
justify-content: right;
margin-top: 10px;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj {
width: 100%;
display: flex;
justify-content: center;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .type_item___PhJhz {
width: 120px;
height: 120px;
margin: 0 20px;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .img_warp___dtWfk {
padding: 15px;
border-radius: 8px;
border: 1px solid #d9d9d9;
cursor: pointer;
margin-bottom: 3px;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .img_warp___dtWfk:hover {
background-color: #fafafa;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .img_warp_active___YxM4n {
background-color: #fafafa;
border-color: #5784de;
}

File diff suppressed because one or more lines are too long

@ -0,0 +1,599 @@
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/ConfigWorks/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___IBr6x {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___n2Iz0 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___1umwO {
align-items: center;
box-align: center;
}
.flex_box_center_end___SRZYb {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___b90Da {
flex-direction: column;
box-orient: block-axis;
}
.form___V3fAH strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.form___V3fAH h1 {
font-weight: 600;
color: #333;
font-size: 16px;
}
.form___V3fAH [class~='ant-form-item'] {
margin-bottom: 0;
}
.efficiency___Lmou1 {
background: #fafafa;
padding: 20px;
font-size: 12px;
position: relative;
}
.efficiency___Lmou1:before {
width: 0;
height: 0;
content: '';
position: absolute;
left: -20px;
top: 27px;
border-right: 15px solid #fafafa;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
div[class~="ant-modal-confirm-content"] {
margin-left: none;
}
.tip___hVaw_ {
color: #fb0303;
margin-left: 110px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ShixunHomeworks/components/TrfList/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.leftdiv___aBzsX {
flex: 1 1;
margin-right: 8px;
height: 340px;
border-radius: 4px;
border: 1px solid #d9d9d9;
padding: 14px;
}
.leftdiv___aBzsX .listClass___bxIEW {
display: flex;
align-items: center;
}
.leftdiv___aBzsX .spantitle___v_Vc4 {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 108px;
display: inline-block;
}
.rightdiv___xWu4M {
margin-left: 8px;
flex: 1 1;
height: 340px;
border-radius: 4px;
border: 1px solid #d9d9d9;
padding: 14px;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/ConfigWorks/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___mZeBL {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___OvqA8 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___nBE0A {
align-items: center;
box-align: center;
}
.flex_box_center_end___w0dO1 {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___mvqBn {
flex-direction: column;
box-orient: block-axis;
}
.form___f61BQ strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.form___f61BQ h1 {
font-weight: 600;
color: #333;
font-size: 16px;
}
.form___f61BQ [class~='ant-form-item'] {
margin-bottom: 0;
}
.efficiency___wHbp8 {
background: #fafafa;
padding: 20px;
font-size: 12px;
position: relative;
}
.efficiency___wHbp8:before {
width: 0;
height: 0;
content: '';
position: absolute;
left: -20px;
top: 27px;
border-right: 15px solid #fafafa;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/StatisticsResult/index.less?modules ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.title___hfaGm {
max-width: 900px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
color: #333333;
line-height: 26px;
}
.yxtx___EB2TE {
margin-left: auto;
font-size: 14px;
}
.yxtx___EB2TE span {
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #3061D0;
margin-left: 10px;
margin-right: 38px;
}
.pic_title___WGfnb {
display: flex;
align-items: center;
margin-top: 20px;
}
.pic_title___WGfnb .pic_text___zQvmV {
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
color: #666666;
margin-left: 10px;
}
.others_styles___nsKmn {
width: 97%;
height: 38px;
background: #F6F7F9;
border: 1px solid #E0E1E4;
margin-top: 10px;
padding: 0 20px;
display: flex;
align-items: center;
cursor: pointer;
}
.others_styles___nsKmn .others_text___oRpFU {
width: 128px;
height: 22px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #333333;
line-height: 22px;
}
.others_styles___nsKmn .others_icon___h3fBC {
height: 22px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #3061D0;
line-height: 22px;
margin-left: auto;
}
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/StatisticsResult/components/AnswerDom/index.less?modules ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.KeyWordTable___AcLUt .ant-table-cell {
padding: 6px 8px !important;
border-bottom-color: transparent !important;
}
.KeyWordTable___AcLUt .ant-pagination {
display: none !important;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/PreviewPolls/components/editor.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___Mm5nR {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___MMkat {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___LETW1 {
align-items: center;
box-align: center;
}
.flex_box_center_end___XlC9p {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___THy8y {
flex-direction: column;
box-orient: block-axis;
}
.wrap___z9iJU {
padding: 30px;
box-sizing: border-box;
}
.modal___y8bNh div[class~='ant-modal-confirm-content'] {
font-size: 16px;
text-align: center;
}
.modal___y8bNh span[class~='ant-modal-title'] {
font-size: 16px;
}
.titleWrap___knBE8 {
margin: 10px 0px;
}
.required___Ojs5D {
margin-right: 4px;
color: #e04040;
font-size: 16px;
}
.title___M_fKx {
font-size: 14px;
color: #333333;
}
.colorGray___N8txU {
color: #888888;
}
.choiceWrap____Xkwt {
display: flex;
margin-top: 25px;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #000;
}
.choiceWrap____Xkwt [class='ant-select-selector'] {
height: 40px !important;
line-height: 40px !important;
}
.choiceWrap____Xkwt [class='ant-select-selection-item'] {
height: 40px !important;
line-height: 40px !important;
}
.answer___TSzCH {
color: #888;
display: block;
width: 38px;
height: 38px;
text-align: center;
line-height: 38px;
border-radius: 4px;
cursor: pointer;
border: 1px solid #e2e2e2;
margin-right: 10px;
}
.activeAnswer___Pnkob {
background: #ff7500;
color: #ffffff;
border: 1px solid #ff7500;
}
.deleteIcon___O5q20 {
cursor: pointer;
color: #E30000;
margin-left: 15px;
font-size: 14px;
}
.addIcon___c8iSL {
cursor: pointer;
color: #29bd8b;
margin-left: 6px;
font-size: 16px;
padding-top: 1px;
}
.editorWrap___oodwM {
flex: 1 1;
}
.htmlWrap___ljy1Y {
display: flex;
margin-top: 0px;
min-height: 38px;
border-radius: 2px;
max-width: 1056px;
word-break: break-all;
border: 1px solid #dddddd;
}
.htmlWrap___ljy1Y p {
margin: 7px 10px;
}
.radio___ZUxPE {
width: 60px;
height: 32px;
line-height: 32px;
text-align: center;
}
.color333____votr {
color: #333;
}
.color999___Audhi {
color: #999;
}
.questionType___MN7qw {
display: box;
display: flex;
}
.questionType___MN7qw > div {
flex: 1 1;
}
.questionChoices___ZMeSF {
margin-top: 15px;
}
.questionChoices___ZMeSF > div {
margin-top: 30px;
}
.close_style___GvIu5 {
width: 80px;
height: 38px;
background: #F8F9FC;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
border: 1px solid #F8FAFC;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #464F66;
line-height: 38px;
text-align: center;
cursor: pointer;
margin-left: auto;
}
.save_style____CS7j {
width: 80px;
height: 38px;
background: #ECF0F9;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #3061D0;
line-height: 38px;
text-align: center;
cursor: pointer;
margin-left: 20px;
}
.edit_title___NM88J {
width: 800px;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 26px;
}
.can_select_count___OnIaV {
font-size: 12px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #666666;
margin-right: 10px;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/components/PreviewPolls/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___wW2ft {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___ahi0M {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___PFt7L {
align-items: center;
box-align: center;
}
.flex_box_center_end___FA1ip {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___jjAdt {
flex-direction: column;
box-orient: block-axis;
}
.title___UHW8B {
text-align: center;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #000000;
line-height: 26px;
margin-top: 6px;
}
.description___dL5p1 {
width: 1140px;
background: #F6F7F9;
margin: 16px auto 0 auto;
padding: 20px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #3A3A3A;
}
.heji___Xp8yD {
text-align: center;
font-size: 14px;
color: #3A3A3A;
margin-top: 16px;
}
.heji___Xp8yD .heji_count___t2y2z {
color: #3061D0;
}
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/Detail/index.less?modules ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___KocrS {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___tbwbg {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Boklb {
align-items: center;
box-align: center;
}
.flex_box_center_end___yLkeS {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___yoUa3 {
flex-direction: column;
box-orient: block-axis;
}
.title___ByTX2 {
display: flex;
align-items: center;
}
.title___ByTX2 strong {
max-width: 550px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.export___XUBRC {
position: absolute;
right: 20px;
top: 23px;
z-index: 2;
font-size: 16px;
}
.export___XUBRC a,
.export___XUBRC button {
margin-left: 30px;
}
.bg___r_XgQ {
background: #fafafa;
}
.tabs___awxWj [class='ant-tabs-nav-list'] {
padding-left: 25px;
}
.tabs___awxWj [class='ant-tabs-nav-scroll'] {
padding-left: 25px;
}
.tabs___awxWj [class~='ant-tabs-tab'] {
padding: 23px 0 !important;
font-size: 18px;
color: #333;
}
.tabs___awxWj [class~='ant-tabs-tab-active'] {
color: #0152d9;
}
.tabs___awxWj [class~='ant-tabs-nav'] {
background: white;
margin-bottom: 0 !important;
}
.export_type_modal___o8Y6x {
display: flex;
flex-wrap: wrap;
justify-content: right;
margin-top: 10px;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj {
width: 100%;
display: flex;
justify-content: center;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .type_item___PhJhz {
width: 120px;
height: 120px;
margin: 0 20px;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .img_warp___dtWfk {
padding: 15px;
border-radius: 8px;
border: 1px solid #d9d9d9;
cursor: pointer;
margin-bottom: 3px;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .img_warp___dtWfk:hover {
background-color: #fafafa;
}
.export_type_modal___o8Y6x .export_type_modal_con___zVHRj .img_warp_active___YxM4n {
background-color: #fafafa;
border-color: #5784de;
}

File diff suppressed because it is too large Load Diff

@ -57,7 +57,19 @@
}
.choiceWrap___pj0lT {
display: flex;
margin-top: 15px;
margin-top: 25px;
height: 40px;
line-height: 40px;
font-size: 14px;
color: #000;
}
.choiceWrap___pj0lT [class='ant-select-selector'] {
height: 40px !important;
line-height: 40px !important;
}
.choiceWrap___pj0lT [class='ant-select-selection-item'] {
height: 40px !important;
line-height: 40px !important;
}
.answer___Aq1c0 {
color: #888;
@ -78,9 +90,9 @@
}
.deleteIcon___Gsa5a {
cursor: pointer;
color: #ccc;
color: #E30000;
margin-left: 15px;
font-size: 18px;
font-size: 14px;
}
.addIcon___Yr5Ku {
cursor: pointer;
@ -127,7 +139,54 @@
margin-top: 15px;
}
.questionChoices___c0OQa > div {
margin: 8px 0;
margin-top: 30px;
}
.close_style___NQVEE {
width: 80px;
height: 38px;
background: #F8F9FC;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
border: 1px solid #F8FAFC;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #464F66;
line-height: 38px;
text-align: center;
cursor: pointer;
margin-left: auto;
}
.save_style___kq8NC {
width: 80px;
height: 38px;
background: #ECF0F9;
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 2px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #3061D0;
line-height: 38px;
text-align: center;
cursor: pointer;
margin-left: 20px;
}
.edit_title___W3elv {
width: 800px;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 26px;
}
.can_select_count___F11WF {
font-size: 12px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #666666;
margin-right: 10px;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
@ -279,4 +338,31 @@
line-height: 22px;
font-size: 14px;
}
.footer___JmjoU {
width: 100%;
background: #ffffff;
box-shadow: 0px -2px 4px 0px #E0DFE1;
position: fixed;
bottom: 0;
}
.footer___JmjoU .footer_button___vk5p0 {
display: flex;
height: 64px;
align-items: center;
width: 1200px;
margin: auto;
}
.footer___JmjoU .footer_button___vk5p0 .button_style___ZDgkQ {
margin-right: 20px;
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 4px;
border: 1px solid #BACFFE;
color: #3061D0;
cursor: pointer;
width: 88px;
height: 32px;
line-height: 30px;
text-align: center;
}

@ -0,0 +1,475 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[28723],{
/***/ 32113:
/*!*********************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Polls/Edit/index.tsx + 1 modules ***!
\*********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
IsNecessaryLabel: function() { return /* binding */ IsNecessaryLabel; },
"default": function() { return /* binding */ Edit; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
var toConsumableArray = __webpack_require__(37205);
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(44743);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
var es_form = __webpack_require__(78241);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
var divider = __webpack_require__(28103);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
var breadcrumb = __webpack_require__(66104);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
var row = __webpack_require__(95237);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
var col = __webpack_require__(43604);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
var input = __webpack_require__(73782);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./src/service/polls.ts
var service_polls = __webpack_require__(71755);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(11167);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/components/MultipleEditor/index.tsx
var MultipleEditor = __webpack_require__(68500);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/components/SingleEditor/index.tsx
var SingleEditor = __webpack_require__(5682);
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/components/SubjectiveEditor/index.tsx
var SubjectiveEditor = __webpack_require__(74756);
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown_editor = __webpack_require__(34596);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Editmodules = ({"flex_box_center":"flex_box_center___zXTbi","flex_space_between":"flex_space_between___PmyCC","flex_box_vertical_center":"flex_box_vertical_center___FVTkH","flex_box_center_end":"flex_box_center_end___hhcmG","flex_box_column":"flex_box_column___M32tw","bg":"bg___nBRtw","containerTitle":"containerTitle___aZMyO","containerDesc":"containerDesc___IBU0r","listItem":"listItem___N1XyK","info":"info___ckHt5","title":"title___ZKDBe","titleLeft":"titleLeft___f48Qy","titleRight":"titleRight___iByom","acitons":"acitons___x97ti","necessary_label":"necessary_label___Myrf1","footer":"footer___JmjoU","footer_button":"footer_button___vk5p0","button_style":"button_style___ZDgkQ"});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Polls/Edit/index.tsx
// import MdEditor from '@/components/'
var ShixunsListPage = function ShixunsListPage(_ref) {
var _polls$editData6, _userInfo$course, _polls$editData7, _polls$editData8, _polls$editData9;
var polls = _ref.polls,
globalSetting = _ref.globalSetting,
loading = _ref.loading,
user = _ref.user,
dispatch = _ref.dispatch;
var params = (0,_umi_production_exports.useParams)();
var userInfo = user.userInfo;
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
form = _Form$useForm2[0];
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
editData = _useState2[0],
setEditData = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(true),
_useState4 = slicedToArray_default()(_useState3, 2),
isEdit = _useState4[0],
setIsEdit = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(-1),
_useState6 = slicedToArray_default()(_useState5, 2),
editKey = _useState6[0],
setEditKey = _useState6[1];
var questionType = [{
name: "单选题",
id: 1
}, {
name: "多选题",
id: 2
}, {
name: "主观题",
id: 3
}];
var childrenRef = (0,_react_17_0_2_react.useRef)();
(0,_react_17_0_2_react.useEffect)(function () {
var _polls$editData;
if ((_polls$editData = polls.editData) !== null && _polls$editData !== void 0 && _polls$editData.poll_questions) {
var _polls$editData2, _polls$editData3, _polls$editData4, _polls$editData5;
editData = toConsumableArray_default()((_polls$editData2 = polls.editData) === null || _polls$editData2 === void 0 ? void 0 : _polls$editData2.poll_questions);
setEditData(toConsumableArray_default()((_polls$editData3 = polls.editData) === null || _polls$editData3 === void 0 ? void 0 : _polls$editData3.poll_questions));
form.setFieldsValue({
polls_name: (_polls$editData4 = polls.editData) === null || _polls$editData4 === void 0 || (_polls$editData4 = _polls$editData4.poll) === null || _polls$editData4 === void 0 ? void 0 : _polls$editData4.polls_name,
polls_description: (_polls$editData5 = polls.editData) === null || _polls$editData5 === void 0 || (_polls$editData5 = _polls$editData5.poll) === null || _polls$editData5 === void 0 ? void 0 : _polls$editData5.polls_description
});
}
}, [polls.editData]);
var polls_status = (_polls$editData6 = polls.editData) === null || _polls$editData6 === void 0 || (_polls$editData6 = _polls$editData6.poll) === null || _polls$editData6 === void 0 ? void 0 : _polls$editData6.polls_status;
console.log("editdata1111:", editData);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: "polls/editPolls",
payload: objectSpread2_default()({}, params)
});
}, [params.categoryId]);
(0,_react_17_0_2_react.useEffect)(function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: false
});
return function () {
dispatch({
type: 'globalSetting/footerToggle',
payload: true
});
};
}, []);
var save = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(type) {
var value, res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return form.validateFields();
case 2:
value = form.getFieldValue();
value.is_md = true;
value.pollsId = params.categoryId;
_context.next = 7;
return (0,service_polls/* putPolls */.Qg)(objectSpread2_default()({}, value));
case 7:
res = _context.sent;
if (res.status === 0) {
message/* default */.ZP.success('编辑成功');
// setIsEdit(false)
dispatch({
type: "polls/editPolls",
payload: objectSpread2_default()({}, params)
});
}
case 9:
case "end":
return _context.stop();
}
}, _callee);
}));
return function save(_x) {
return _ref2.apply(this, arguments);
};
}();
var addQuestion = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(type) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
if (!(editKey !== -1)) {
_context2.next = 3;
break;
}
message/* default */.ZP.error("不能同时编辑两题");
return _context2.abrupt("return");
case 3:
setEditKey(editData.length + 1);
setEditData([].concat(toConsumableArray_default()(editData), [{
question: {
question_type: type
}
}]));
case 5:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function addQuestion(_x2) {
return _ref3.apply(this, arguments);
};
}();
var callback = function callback(key, data, allData) {
switch (key) {
case "edit":
if (editKey === -1 || data === -1) {
editKey = data;
setEditKey(data);
} else {
message/* default */.ZP.error("不能同时编辑两题");
}
break;
case "add":
if (editKey != -1) {
message/* default */.ZP.error("不能同时编辑两题");
return;
}
delete data.id;
editData.splice(data === null || data === void 0 ? void 0 : data.key, 0, {
insert_id: data === null || data === void 0 ? void 0 : data.insert_id,
question: objectSpread2_default()({}, data)
}).slice();
setEditData(toConsumableArray_default()(editData));
setEditKey((data === null || data === void 0 ? void 0 : data.key) + 1);
break;
case "addContinue":
// editData = [...polls.editData?.poll_questions]
setEditData(toConsumableArray_default()(data));
break;
case "del":
editData.splice(data - 1, 1);
setEditData(toConsumableArray_default()(editData));
setEditKey(-1);
break;
}
};
var renderQuestion = function renderQuestion() {
var _editData;
return (_editData = editData) === null || _editData === void 0 ? void 0 : _editData.map(function (v, k) {
var _v$question;
v.key = k + 1;
v.len = editData.length;
if (v.question.question_type === 1) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SingleEditor/* default */.Z, {
ref: childrenRef,
editKey: editKey,
polls_status: polls_status,
callback: callback,
editData: v
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
}, v.id);
}
if (v.question.question_type === 2) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(MultipleEditor/* default */.Z, {
ref: childrenRef,
editKey: editKey,
polls_status: polls_status,
callback: callback,
editData: v
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
}, v.id);
}
if (((_v$question = v.question) === null || _v$question === void 0 ? void 0 : _v$question.question_type) === 3) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(SubjectiveEditor/* default */.Z, {
ref: childrenRef,
editKey: editKey,
polls_status: polls_status,
callback: callback,
editData: v
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {})]
}, v.id);
}
});
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "edu-container",
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: "animated fadeIn",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "mt10",
children: userInfo && /*#__PURE__*/(0,jsx_runtime.jsxs)(breadcrumb/* default */.Z, {
separator: ">",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "".concat(userInfo.first_category_url),
children: (_userInfo$course = userInfo.course) === null || _userInfo$course === void 0 ? void 0 : _userInfo$course.course_name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
to: "/classrooms/".concat(params.coursesId, "/poll"),
children: "\u95EE\u5377\u5217\u8868"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb/* default */.Z.Item, {
children: "\u7F16\u8F91\u95EE\u5377"
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: [Editmodules.title, 'mt20'].join(' '),
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
style: {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: "1",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
className: "font18 ml5",
children: "\u7F16\u8F91\u95EE\u5377"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
className: "font14 c-light-black",
to: "/classrooms/".concat(params.coursesId, "/poll/").concat(params.categoryId, "/detail"),
children: "\u8FD4\u56DE"
})
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
className: [Editmodules.bg, 'pt30', 'pl30', 'pr30', 'pb30', 'mt20'].join(' '),
children: [!isEdit && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Editmodules.containerDesc,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: (_polls$editData7 = polls.editData) === null || _polls$editData7 === void 0 || (_polls$editData7 = _polls$editData7.poll) === null || _polls$editData7 === void 0 ? void 0 : _polls$editData7.polls_name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u7F16\u8F91",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
return setIsEdit(true);
},
className: "iconfont c-green ml30 icon-bianjishijuan3x"
})
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
className: "c-light-black",
value: ((_polls$editData8 = polls.editData) === null || _polls$editData8 === void 0 || (_polls$editData8 = _polls$editData8.poll) === null || _polls$editData8 === void 0 ? void 0 : _polls$editData8.polls_description) || ''
})]
}), isEdit && /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
layout: "vertical",
form: form,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
name: "polls_name",
label: "\u95EE\u5377\u6807\u9898\uFF1A",
rules: [{
required: true,
message: "请填写问卷标题"
}],
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
maxLength: 60,
placeholder: "\u95EE\u5377\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",
style: {
height: "40px"
},
onBlur: function onBlur() {
save();
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
label: "\u95EE\u5377\u987B\u77E5\uFF1A",
name: "polls_description",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
watch: true,
height: 200,
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u672C\u6B21\u95EE\u5377\u7B54\u9898\u7684\u76F8\u5173\u8BF4\u660E",
defaultValue: (_polls$editData9 = polls.editData) === null || _polls$editData9 === void 0 || (_polls$editData9 = _polls$editData9.poll) === null || _polls$editData9 === void 0 ? void 0 : _polls$editData9.polls_description,
onBlur: function onBlur() {
save();
}
})
})]
})]
}), editData != '' && /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: [Editmodules.bg, 'pt30', 'pl20', 'pr20', 'pb20', 'mt20'].join(' '),
children: renderQuestion()
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Editmodules.footer,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Editmodules.footer_button,
children: [polls_status === 1 ? /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: Editmodules.bg,
style: {
display: "flex"
},
children: questionType.map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: Editmodules.button_style,
onClick: function onClick() {
return addQuestion(item.id);
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-tianjia4 mr5 font14"
}), item.name]
});
})
}) : null, /*#__PURE__*/(0,jsx_runtime.jsxs)(es_button/* default */.ZP, {
type: "primary",
style: {
marginLeft: 'auto'
},
onClick: function onClick() {
_umi_production_exports.history.push("/classrooms/".concat(params.coursesId, "/poll/").concat(params.categoryId, "/detail?tabs=2"));
dispatch({
type: 'polls/setActionTabs',
payload: {
key: '立即发布',
selectArrs: [params.categoryId],
types: 2,
params: {
categoryId: params.categoryId
}
}
});
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-fasong font16 mr5"
}), "\u53D1\u5E03\u95EE\u5377"]
})]
})
})]
});
};
/* harmony default export */ var Edit = ((0,_umi_production_exports.connect)(function (_ref4) {
var polls = _ref4.polls,
loading = _ref4.loading,
user = _ref4.user,
globalSetting = _ref4.globalSetting;
return {
polls: polls,
globalSetting: globalSetting,
user: user,
loading: loading.effects
};
})(ShixunsListPage));
function IsNecessaryLabel(_ref5) {
var v = _ref5.v;
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
children: v > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Editmodules.necessary_label,
children: "\u5FC5\u7B54"
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: Editmodules.necessary_label,
children: "\u9009\u7B54"
})
});
}
/***/ })
}]);

@ -0,0 +1,174 @@
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Polls/QuestionnaireInfo/index.less?modules ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___tqZ7e {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___YGpCP {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___Wmc_H {
align-items: center;
box-align: center;
}
.flex_box_center_end___l9uLj {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___lreJD {
flex-direction: column;
box-orient: block-axis;
}
.bg___pULYP {
background: white;
}
.title___CjRMT {
text-align: center;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #000000;
line-height: 26px;
margin-top: 6px;
}
.description___al0Mz {
width: 1140px;
background: #F6F7F9;
margin: 16px auto 0 auto;
padding: 20px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #3A3A3A;
}
.heji___p7O5o {
text-align: center;
font-size: 14px;
color: #3A3A3A;
margin-top: 16px;
}
.heji___p7O5o .heji_count___HQtue {
color: #3061D0;
}
.answerWrap___x_ft0 {
padding: 10px 0px;
}
.answerSubjective___r3Y8p {
width: 100%;
height: 130px;
padding: 5px;
overflow: auto;
resize: vertical;
outline: none;
border: none;
border: 1px solid #E1E1E1;
}
.questionItem___BPWS5 [class~='ant-checkbox-group'] {
width: 100%;
}
.questionItem___BPWS5 [class~='ant-radio-group'] {
width: 100%;
}
.questionItem___BPWS5 [class~='ant-checkbox-wrapper'] {
margin-right: 5px;
}
.title_timu___qwfEo {
flex: 1 1;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 26px;
}
.header_title___ZnddW {
width: 1100px;
height: 26px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 600;
color: #000000;
line-height: 26px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-left: 15px;
text-align: left;
}
.user_info___de4hX {
width: 1200px;
height: 150px;
background: #FFFFFF;
box-shadow: 0px 2px 4px 0px #EAEEF4;
display: flex;
}
.user_info___de4hX .user_img___QZ_H_ {
width: 90px;
height: 90px;
border-radius: 45px;
border: 1px solid #F6F7F9;
margin: 30px 10px 30px 30px;
}
.user_info___de4hX .header_content___FrUxK {
width: 230px;
height: 90px;
margin: 30px auto;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
color: #333333;
}
.user_info___de4hX .header_content___FrUxK .header_content_name___IsldV {
height: 55px;
line-height: 60px;
font-size: 16px;
font-family: PingFangSC, PingFang SC;
font-weight: 500;
color: #333333;
}
.user_info___de4hX .header_img___J2UF5 {
width: 180px;
height: 135px;
margin: 14px 15px 0 auto;
}
.footer_before___nGCbx {
height: 50px;
}
.footer___r3KRR {
width: 100%;
background: #ffffff;
box-shadow: 0px -2px 4px 0px #E0DFE1;
position: fixed;
bottom: 0;
}
.footer___r3KRR .footer_button___nylsw {
display: flex;
height: 64px;
align-items: center;
width: 1200px;
margin: auto;
}
.footer___r3KRR .footer_button___nylsw .button_style___NqMF2 {
margin-right: 20px;
background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1;
border-radius: 4px;
border: 1px solid #BACFFE;
color: #3061D0;
cursor: pointer;
width: 88px;
height: 32px;
line-height: 30px;
text-align: center;
}

File diff suppressed because one or more lines are too long

@ -43,6 +43,107 @@
box-align: center;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ShixunHomeworks/components/TrfList/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.leftdiv___aBzsX {
flex: 1 1;
margin-right: 8px;
height: 340px;
border-radius: 4px;
border: 1px solid #d9d9d9;
padding: 14px;
}
.leftdiv___aBzsX .listClass___bxIEW {
display: flex;
align-items: center;
}
.leftdiv___aBzsX .spantitle___v_Vc4 {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 108px;
display: inline-block;
}
.rightdiv___xWu4M {
margin-left: 8px;
flex: 1 1;
height: 340px;
border-radius: 4px;
border: 1px solid #d9d9d9;
padding: 14px;
}
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/ConfigWorks/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___IBr6x {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___n2Iz0 {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___1umwO {
align-items: center;
box-align: center;
}
.flex_box_center_end___SRZYb {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___b90Da {
flex-direction: column;
box-orient: block-axis;
}
.form___V3fAH strong {
font-weight: normal;
color: #333;
font-size: 16px;
}
.form___V3fAH h1 {
font-weight: 600;
color: #333;
font-size: 16px;
}
.form___V3fAH [class~='ant-form-item'] {
margin-bottom: 0;
}
.efficiency___Lmou1 {
background: #fafafa;
padding: 20px;
font-size: 12px;
position: relative;
}
.efficiency___Lmou1:before {
width: 0;
height: 0;
content: '';
position: absolute;
left: -20px;
top: 27px;
border-right: 15px solid #fafafa;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
}
div[class~="ant-modal-confirm-content"] {
margin-left: none;
}
.tip___hVaw_ {
color: #fb0303;
margin-left: 110px;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.25@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/CodeBox/index.less?modules ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@ -143,7 +244,7 @@
flex: 1 1;
}
.listItem___A03gB {
padding: 25px 30px 25px 0px;
padding: 25px 20px 25px 0px;
display: box;
display: flex;
align-items: flex-start;
@ -192,9 +293,41 @@
white-space: nowrap;
}
.titleRight___SrvQq a {
margin-right: 20px;
margin-right: 16px;
font-weight: bold;
}
.titleRight___SrvQq .flexBox___Rvwcc {
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #666666;
cursor: pointer;
}
.titleRight___SrvQq .flexBox___Rvwcc:hover {
color: #0152d9;
}
.titleRight___SrvQq .flexBox___Rvwcc i {
margin-bottom: 6px;
}
.titleRight___SrvQq .flexBox___Rvwcc div {
font-size: 12px;
font-weight: 400;
}
.iconV___d96cp {
margin-left: auto;
text-align: end;
color: #888888;
}
.iconV___d96cp i {
color: #cccccc;
font-size: 14px;
transform: scale(0.7);
display: inline-block;
}
.iconV___d96cp:hover i {
color: #0152d9;
}
.acitons___cXo_g {
height: 70px;
background: white;

@ -526,6 +526,7 @@ var FixedButton = function FixedButton(_ref) {
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ B: function() { return /* binding */ exportPdfFile; },
/* harmony export */ F: function() { return /* binding */ exportPDF; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
@ -558,6 +559,10 @@ var exportPDF = /*#__PURE__*/function () {
removeSurplusCanvas();
opt = {
margin: [0, 1, 0, 0],
image: {
type: 'png',
quality: 0.95
},
html2canvas: {
letterRendering: true,
useCORS: true,
@ -569,6 +574,7 @@ var exportPDF = /*#__PURE__*/function () {
format: 'letter',
orientation: 'portrait'
}
// pagebreak: { mode: ['avoid-all'] }
};
worker = html2pdf_js__WEBPACK_IMPORTED_MODULE_2___default()();
_loop = /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _loop(i) {
@ -640,6 +646,83 @@ var exportPDF = /*#__PURE__*/function () {
return _ref.apply(this, arguments);
};
}();
var exportPdfFile = /*#__PURE__*/function () {
var _ref3 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4(DOMList, fileTitle) {
var opt, worker, _loop2, i;
return _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
scrollView();
removeSurplusCanvas();
opt = {
margin: [0, 0],
html2canvas: {
useCORS: true,
letterRendering: true
},
jsPDF: {
unit: 'mm',
format: 'a4',
orientation: 'landscape'
}
};
worker = html2pdf_js__WEBPACK_IMPORTED_MODULE_2___default()();
_loop2 = /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _loop2(i) {
return _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _loop2$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
_context5.next = 2;
return worker.set(opt).from(DOMList[i]).toContainer().toCanvas().toPdf().get('pdf').then( /*#__PURE__*/function () {
var _ref4 = _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(pdf) {
return _root_workspace_ppte5yg23_local_v9_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
if (!(i < DOMList.length - 1)) {
_context4.next = 3;
break;
}
_context4.next = 3;
return pdf.addPage();
case 3:
case "end":
return _context4.stop();
}
}, _callee3);
}));
return function (_x6) {
return _ref4.apply(this, arguments);
};
}());
case 2:
case "end":
return _context5.stop();
}
}, _loop2);
});
i = 0;
case 6:
if (!(i < DOMList.length)) {
_context6.next = 11;
break;
}
return _context6.delegateYield(_loop2(i), "t0", 8);
case 8:
i++;
_context6.next = 6;
break;
case 11:
// 直接下载 PDF 文件
worker.save("".concat(fileTitle, ".pdf"));
case 12:
case "end":
return _context6.stop();
}
}, _callee4);
}));
return function exportPdfFile(_x4, _x5) {
return _ref3.apply(this, arguments);
};
}();
/***/ }),

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save