parent
b36678f790
commit
ebe3ef7ab1
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14882,1024],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14882,1024,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16473,91056,18880,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16473,91056,18880,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16862,84360,7385,21642,60499,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16862,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17103,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17103,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18880,91056,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[18880,91056,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19059,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19059,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21321,84360,93826,35019,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21321,84360,93826,35019,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21642,84360,7385,60499,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[21642,84360,7385,60499,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23647,91056,18880,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23647,91056,18880,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -0,0 +1,787 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27155,1024,14882,44407],{
|
||||
|
||||
/***/ 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_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/EyeOutlined.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);
|
||||
|
||||
// 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
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
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_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38854:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_dropdown; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
||||
var dropdown = __webpack_require__(91857);
|
||||
// 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/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(94172);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// 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/space/index.js + 3 modules
|
||||
var space = __webpack_require__(81327);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(47211);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.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 DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
type = 'default',
|
||||
danger,
|
||||
disabled,
|
||||
loading,
|
||||
onClick,
|
||||
htmlType,
|
||||
children,
|
||||
className,
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
overlay,
|
||||
trigger,
|
||||
align,
|
||||
open,
|
||||
onOpenChange,
|
||||
placement,
|
||||
getPopupContainer,
|
||||
href,
|
||||
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
|
||||
title,
|
||||
buttonsRender = buttons => buttons,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
|
||||
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||||
const buttonPrefixCls = `${prefixCls}-button`;
|
||||
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
|
||||
const dropdownProps = {
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
align,
|
||||
disabled,
|
||||
trigger: disabled ? [] : trigger,
|
||||
onOpenChange,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
};
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
|
||||
if ('overlay' in props) {
|
||||
dropdownProps.overlay = overlay;
|
||||
}
|
||||
if ('open' in props) {
|
||||
dropdownProps.open = open;
|
||||
}
|
||||
if ('placement' in props) {
|
||||
dropdownProps.placement = placement;
|
||||
} else {
|
||||
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
|
||||
}
|
||||
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
disabled: disabled,
|
||||
loading: loading,
|
||||
onClick: onClick,
|
||||
htmlType: htmlType,
|
||||
href: href,
|
||||
title: title
|
||||
}, children);
|
||||
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
|
||||
};
|
||||
DropdownButton.__ANT_BUTTON = true;
|
||||
/* harmony default export */ var dropdown_button = (DropdownButton);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 73782:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// 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/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.7@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(19973);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// 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/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(50382);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.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 defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42653);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81327:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ space; }
|
||||
});
|
||||
|
||||
// UNUSED EXPORTS: SpaceContext
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// 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/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// 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/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
|
||||
|
||||
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
|
||||
latestIndex: 0
|
||||
});
|
||||
const SpaceContextProvider = SpaceContext.Provider;
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Item = _ref => {
|
||||
let {
|
||||
className,
|
||||
index,
|
||||
children,
|
||||
split,
|
||||
style
|
||||
} = _ref;
|
||||
const {
|
||||
latestIndex
|
||||
} = _react_17_0_2_react.useContext(SpaceContext);
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: className,
|
||||
style: style
|
||||
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${className}-split`
|
||||
}, split));
|
||||
};
|
||||
/* harmony default export */ var space_Item = (Item);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
|
||||
var space_style = __webpack_require__(2856);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
|
||||
function isPresetSize(size) {
|
||||
return ['small', 'middle', 'large'].includes(size);
|
||||
}
|
||||
function isValidGapNumber(size) {
|
||||
if (!size) {
|
||||
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
|
||||
return false;
|
||||
}
|
||||
return typeof size === 'number' && !Number.isNaN(size);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/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 Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
var _a, _b;
|
||||
const {
|
||||
getPrefixCls,
|
||||
space,
|
||||
direction: directionConfig
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
|
||||
align,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
direction = 'horizontal',
|
||||
prefixCls: customizePrefixCls,
|
||||
split,
|
||||
style,
|
||||
wrap = false,
|
||||
classNames: customClassNames,
|
||||
styles
|
||||
} = props,
|
||||
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
|
||||
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
|
||||
const isPresetVerticalSize = isPresetSize(verticalSize);
|
||||
const isPresetHorizontalSize = isPresetSize(horizontalSize);
|
||||
const isValidVerticalSize = isValidGapNumber(verticalSize);
|
||||
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
|
||||
const childNodes = (0,toArray/* default */.Z)(children, {
|
||||
keepEmpty: true
|
||||
});
|
||||
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
|
||||
const prefixCls = getPrefixCls('space', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
|
||||
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
|
||||
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
||||
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
|
||||
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
|
||||
}, className, rootClassName);
|
||||
const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
|
||||
// Calculate latest one
|
||||
let latestIndex = 0;
|
||||
const nodes = childNodes.map((child, i) => {
|
||||
var _a, _b;
|
||||
if (child !== null && child !== undefined) {
|
||||
latestIndex = i;
|
||||
}
|
||||
const key = child && child.key || `${itemClassName}-${i}`;
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
|
||||
className: itemClassName,
|
||||
key: key,
|
||||
index: i,
|
||||
split: split,
|
||||
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
|
||||
}, child);
|
||||
});
|
||||
const spaceContext = _react_17_0_2_react.useMemo(() => ({
|
||||
latestIndex
|
||||
}), [latestIndex]);
|
||||
// =========================== Render ===========================
|
||||
if (childNodes.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const gapStyle = {};
|
||||
if (wrap) {
|
||||
gapStyle.flexWrap = 'wrap';
|
||||
}
|
||||
if (!isPresetHorizontalSize && isValidHorizontalSize) {
|
||||
gapStyle.columnGap = horizontalSize;
|
||||
}
|
||||
if (!isPresetVerticalSize && isValidVerticalSize) {
|
||||
gapStyle.rowGap = verticalSize;
|
||||
}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
className: cls,
|
||||
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
|
||||
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
|
||||
value: spaceContext
|
||||
}, nodes)));
|
||||
});
|
||||
if (false) {}
|
||||
const CompoundedSpace = Space;
|
||||
CompoundedSpace.Compact = Compact/* default */.ZP;
|
||||
/* harmony default export */ var space = (CompoundedSpace);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29642,91056,18880,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[29642,91056,18880,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34765,78169,58268,25473,81120,91056,18880,29642,96594,1024,14882,52708,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[34765,78169,58268,25473,81120,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
|
||||
|
||||
/***/ 71371:
|
||||
/*!********************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35019,84360,21321,93826,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[35019,84360,21321,93826,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,373 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19360],{
|
||||
|
||||
/***/ 18987:
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./src/pages/User/Detail/virtualSpaces/index.tsx + 3 modules ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"default": function() { return /* binding */ virtualSpaces; }
|
||||
});
|
||||
|
||||
// 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/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/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/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(39647);
|
||||
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
||||
// 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__(65659);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
|
||||
var tabs = __webpack_require__(99313);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
||||
var skeleton = __webpack_require__(96865);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(27092);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(94255);
|
||||
// EXTERNAL MODULE: ./src/utils/util.tsx
|
||||
var util = __webpack_require__(84357);
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var virtualSpacesmodules = ({"flex_box_center":"flex_box_center___zMMsd","flex_space_between":"flex_space_between___jt9k_","flex_box_vertical_center":"flex_box_vertical_center___BOPuh","flex_box_center_end":"flex_box_center_end___r_Iu0","flex_box_column":"flex_box_column___FOne9","order":"order___Qysjp","content":"content___IUWof","w1":"w1___W6edK","w2":"w2___WlZJP","w3":"w3___VfQ_s","w4":"w4___JaF4v","w5":"w5___dZmAB","w6":"w6___lKqpD","listTitle":"listTitle___mK0Um","listContent":"listContent___EJ710","info":"info___f0Irx","d1":"d1___ZqEOx","d2":"d2___FGqo_","d3":"d3___PwKy3","unitPrice":"unitPrice___A_1Mb","p":"p____3Bip","l":"l___f_rxJ","payType":"payType___BItlK","price":"price___c198g","status":"status___mYgsx","action":"action___cdhRD"});
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/List/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Listmodules = ({"flex_box_center":"flex_box_center___HFQZB","flex_space_between":"flex_space_between___zFFul","flex_box_vertical_center":"flex_box_vertical_center___io4tB","flex_box_center_end":"flex_box_center_end___H6Abs","flex_box_column":"flex_box_column___GQMTL","listWarp":"listWarp___BsT0V","li":"li___ndfmM","img":"img___Ric6Z","name":"name___aCd4t","e":"e___aP2FC"});
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(6848);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(92387);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/List/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var List = function List(_ref) {
|
||||
var data = _ref.data,
|
||||
_ref$marginLeft = _ref.marginLeft,
|
||||
marginLeft = _ref$marginLeft === void 0 ? 21 : _ref$marginLeft,
|
||||
_ref$listWarpStyle = _ref.listWarpStyle,
|
||||
listWarpStyle = _ref$listWarpStyle === void 0 ? {} : _ref$listWarpStyle,
|
||||
_ref$width = _ref.width,
|
||||
width = _ref$width === void 0 ? 282 : _ref$width,
|
||||
_ref$height = _ref.height,
|
||||
height = _ref$height === void 0 ? 257 : _ref$height;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
||||
className: Listmodules.listWarp,
|
||||
style: listWarpStyle,
|
||||
children: data.map(function (item, index) {
|
||||
var name = item.name,
|
||||
id = item.id,
|
||||
backbground_image_url = item.backbground_image_url,
|
||||
cover_url = item.cover_url,
|
||||
category_url = item.category_url;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
||||
target: "_blank",
|
||||
href: category_url,
|
||||
className: Listmodules.li,
|
||||
style: {
|
||||
marginLeft: marginLeft,
|
||||
width: width,
|
||||
height: height
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Listmodules.img,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: env/* default */.Z.IMG_SERVER + cover_url,
|
||||
alt: "\u5C01\u9762\u56FE"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Listmodules.name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: Listmodules.e,
|
||||
children: name
|
||||
})
|
||||
})
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var virtualSpaces_List = (List);
|
||||
// EXTERNAL MODULE: ./src/assets/images/noEnvData.png
|
||||
var noEnvData = __webpack_require__(36723);
|
||||
// EXTERNAL MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx + 1 modules
|
||||
var AddOrEdit = __webpack_require__(84080);
|
||||
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
||||
var verifyLogin = __webpack_require__(51425);
|
||||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||||
var authority = __webpack_require__(39067);
|
||||
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
||||
var ui_customization = __webpack_require__(73210);
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["user", "userDetail", "globalSetting", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var TabPane = tabs/* default */.Z.TabPane;
|
||||
var Paths = function Paths(_ref) {
|
||||
var _user$userInfo;
|
||||
var user = _ref.user,
|
||||
userDetail = _ref.userDetail,
|
||||
globalSetting = _ref.globalSetting,
|
||||
dispatch = _ref.dispatch,
|
||||
props = objectWithoutProperties_default()(_ref, _excluded);
|
||||
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
||||
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
||||
searchParams = _useSearchParams2[0];
|
||||
var location = (0,_umi_production_exports.useLocation)();
|
||||
var _useState = (0,_react_17_0_2_react.useState)({
|
||||
category: searchParams.get("category") || 'all',
|
||||
page: 1,
|
||||
limit: 15
|
||||
}),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
params = _useState2[0],
|
||||
setParams = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
list = _useState4[0],
|
||||
setList = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(0),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
total = _useState6[0],
|
||||
setTotal = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)(true),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
loading = _useState8[0],
|
||||
setLoading = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
visible = _useState10[0],
|
||||
setVisible = _useState10[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
(0,util/* setDocumentTitle */.Dk)('虚拟社区');
|
||||
getData(params);
|
||||
}, []);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
|
||||
var c, res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setLoading(true);
|
||||
c = objectSpread2_default()({}, record);
|
||||
_context.next = 4;
|
||||
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/mine.json", {
|
||||
method: 'get',
|
||||
params: c
|
||||
});
|
||||
case 4:
|
||||
res = _context.sent;
|
||||
if (res !== null && res !== void 0 && res.virtual_classrooms) {
|
||||
setList(res === null || res === void 0 ? void 0 : res.virtual_classrooms);
|
||||
setTotal(res === null || res === void 0 ? void 0 : res.total_count);
|
||||
setLoading(false);
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData(_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var handleTabsClick = function handleTabsClick(key) {
|
||||
var _window$location$href;
|
||||
if ((_window$location$href = window.location.href.toString()) !== null && _window$location$href !== void 0 && _window$location$href.includes('category')) {
|
||||
(0,util/* replaceParamVal */.jz)('category', key);
|
||||
} else {
|
||||
window.history.replaceState(null, '', window.location.href.indexOf('?') > -1 ? window.location.href + "&category=".concat(key) : "?category=".concat(key));
|
||||
}
|
||||
params.category = key;
|
||||
params.page = 1;
|
||||
setParams(objectSpread2_default()({}, params));
|
||||
getData(params);
|
||||
};
|
||||
var tabsMapping = [{
|
||||
name: '全部',
|
||||
id: 'all'
|
||||
}, {
|
||||
name: '我管理的',
|
||||
id: 'manage'
|
||||
}, {
|
||||
name: '我参与的',
|
||||
id: 'partake'
|
||||
}];
|
||||
var add = function add() {
|
||||
if ((0,authority/* isSuperAdmins */.Ny)() || (0,verifyLogin/* handleProfessionalCertificationModal */.O5)()) {
|
||||
setVisible(true);
|
||||
}
|
||||
};
|
||||
var handleOk = /*#__PURE__*/function () {
|
||||
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values, cb) {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/virtual_classrooms.json", {
|
||||
method: 'post',
|
||||
body: values
|
||||
});
|
||||
case 2:
|
||||
res = _context2.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
getData(params);
|
||||
setVisible(false);
|
||||
setTimeout(function () {
|
||||
(0,util/* openNewWindow */.xg)(res === null || res === void 0 ? void 0 : res.category_url);
|
||||
}, 300);
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/setActionTabs',
|
||||
payload: {
|
||||
key: '提示',
|
||||
type: 99
|
||||
}
|
||||
});
|
||||
}
|
||||
cb(res);
|
||||
case 5:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return function handleOk(_x2, _x3) {
|
||||
return _ref3.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var handleChange = function handleChange(page) {
|
||||
document.body.scrollIntoView();
|
||||
params.page = page;
|
||||
setParams(objectSpread2_default()({}, params));
|
||||
getData(params);
|
||||
};
|
||||
var renderEmpty = function renderEmpty() {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
flexDirection: 'column',
|
||||
margin: '100px 0 20px 0'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: noEnvData,
|
||||
width: 204,
|
||||
alt: ""
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#6A6A6A'
|
||||
},
|
||||
children: "\u6682\u65E0\u6570\u636E"
|
||||
})]
|
||||
});
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: virtualSpacesmodules.order,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
|
||||
value: params === null || params === void 0 ? void 0 : params.category,
|
||||
onChange: handleTabsClick,
|
||||
tabBarExtraContent: (0,authority/* isLogin */.bg)() && (((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.identity) === 'teacher' || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
onClick: add,
|
||||
children: "\u65B0\u5EFA\u865A\u62DF\u793E\u533A"
|
||||
}),
|
||||
className: "mb25",
|
||||
dataSource: tabsMapping
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, {
|
||||
loading: loading,
|
||||
active: true,
|
||||
paragraph: {
|
||||
rows: 5
|
||||
},
|
||||
children: !!list.length ? /*#__PURE__*/(0,jsx_runtime.jsx)(virtualSpaces_List, {
|
||||
data: list || []
|
||||
}) : renderEmpty()
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
hideOnSinglePage: true,
|
||||
onChange: function onChange(page) {
|
||||
return handleChange(page);
|
||||
},
|
||||
current: params.page,
|
||||
pageSize: params.limit,
|
||||
total: total,
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: false,
|
||||
showTotal: function showTotal(total) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
className: "mr10",
|
||||
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "c-orange",
|
||||
children: total
|
||||
}), "\u6761\u6570\u636E"]
|
||||
});
|
||||
},
|
||||
className: "tc pb30"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
|
||||
visible: visible,
|
||||
title: '新建虚拟社区',
|
||||
onCancel: function onCancel() {
|
||||
return setVisible(false);
|
||||
},
|
||||
onOk: handleOk
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var virtualSpaces = ((0,_umi_production_exports.connect)(function (_ref4) {
|
||||
var user = _ref4.user,
|
||||
userDetail = _ref4.userDetail,
|
||||
globalSetting = _ref4.globalSetting;
|
||||
return {
|
||||
user: user,
|
||||
userDetail: userDetail,
|
||||
globalSetting: globalSetting
|
||||
};
|
||||
})(Paths));
|
||||
|
||||
/***/ }),
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[36723],{
|
||||
|
||||
/***/ 36723:
|
||||
/*!*****************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37873,91056,18880,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[37873,91056,18880,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38660,84360,21321,93826,35019,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[38660,84360,21321,93826,35019,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41339,49166,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[41339,49166,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -0,0 +1,787 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[44407,1024,14882,27155],{
|
||||
|
||||
/***/ 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_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/EyeOutlined.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);
|
||||
|
||||
// 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
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
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_EyeOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (RefIcon);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38854:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ es_dropdown; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown.js
|
||||
var dropdown = __webpack_require__(91857);
|
||||
// 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/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(94172);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// 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/space/index.js + 3 modules
|
||||
var space = __webpack_require__(81327);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/style/index.js + 1 modules
|
||||
var style = __webpack_require__(47211);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/dropdown-button.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 DropdownButton = props => {
|
||||
const {
|
||||
getPopupContainer: getContextPopupContainer,
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
type = 'default',
|
||||
danger,
|
||||
disabled,
|
||||
loading,
|
||||
onClick,
|
||||
htmlType,
|
||||
children,
|
||||
className,
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
overlay,
|
||||
trigger,
|
||||
align,
|
||||
open,
|
||||
onOpenChange,
|
||||
placement,
|
||||
getPopupContainer,
|
||||
href,
|
||||
icon = /*#__PURE__*/_react_17_0_2_react.createElement(EllipsisOutlined/* default */.Z, null),
|
||||
title,
|
||||
buttonsRender = buttons => buttons,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]);
|
||||
const prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
||||
const buttonPrefixCls = `${prefixCls}-button`;
|
||||
const [wrapSSR, hashId] = (0,style/* default */.Z)(prefixCls);
|
||||
const dropdownProps = {
|
||||
menu,
|
||||
arrow,
|
||||
autoFocus,
|
||||
align,
|
||||
disabled,
|
||||
trigger: disabled ? [] : trigger,
|
||||
onOpenChange,
|
||||
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
||||
mouseEnterDelay,
|
||||
mouseLeaveDelay,
|
||||
overlayClassName,
|
||||
overlayStyle,
|
||||
destroyPopupOnHide,
|
||||
dropdownRender
|
||||
};
|
||||
const {
|
||||
compactSize,
|
||||
compactItemClassnames
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const classes = _classnames_2_5_1_classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
|
||||
if ('overlay' in props) {
|
||||
dropdownProps.overlay = overlay;
|
||||
}
|
||||
if ('open' in props) {
|
||||
dropdownProps.open = open;
|
||||
}
|
||||
if ('placement' in props) {
|
||||
dropdownProps.placement = placement;
|
||||
} else {
|
||||
dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';
|
||||
}
|
||||
const leftButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
disabled: disabled,
|
||||
loading: loading,
|
||||
onClick: onClick,
|
||||
htmlType: htmlType,
|
||||
href: href,
|
||||
title: title
|
||||
}, children);
|
||||
const rightButton = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
type: type,
|
||||
danger: danger,
|
||||
icon: icon
|
||||
});
|
||||
const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(space/* default */.Z.Compact, Object.assign({
|
||||
className: classes,
|
||||
size: compactSize,
|
||||
block: true
|
||||
}, restProps), leftButtonToRender, /*#__PURE__*/_react_17_0_2_react.createElement(dropdown/* default */.Z, Object.assign({}, dropdownProps), rightButtonToRender)));
|
||||
};
|
||||
DropdownButton.__ANT_BUTTON = true;
|
||||
/* harmony default export */ var dropdown_button = (DropdownButton);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Dropdown = dropdown/* default */.Z;
|
||||
Dropdown.Button = dropdown_button;
|
||||
/* harmony default export */ var es_dropdown = (Dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 73782:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// 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/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.25.7@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(19973);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// 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/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
|
||||
/** */
|
||||
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined);
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (RefIcon);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(50382);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(55405);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.43.0@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(25629);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.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 defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_5_1_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(42653);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81327:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/space/index.js + 3 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ space; }
|
||||
});
|
||||
|
||||
// UNUSED EXPORTS: SpaceContext
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// 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/_rc-util@5.43.0@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(75440);
|
||||
// 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/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/context.js
|
||||
|
||||
const SpaceContext = /*#__PURE__*/_react_17_0_2_react.createContext({
|
||||
latestIndex: 0
|
||||
});
|
||||
const SpaceContextProvider = SpaceContext.Provider;
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Item.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Item = _ref => {
|
||||
let {
|
||||
className,
|
||||
index,
|
||||
children,
|
||||
split,
|
||||
style
|
||||
} = _ref;
|
||||
const {
|
||||
latestIndex
|
||||
} = _react_17_0_2_react.useContext(SpaceContext);
|
||||
if (children === null || children === undefined) {
|
||||
return null;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
||||
className: className,
|
||||
style: style
|
||||
}, children), index < latestIndex && split && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${className}-split`
|
||||
}, split));
|
||||
};
|
||||
/* harmony default export */ var space_Item = (Item);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/style/index.js + 1 modules
|
||||
var space_style = __webpack_require__(2856);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/utils.js
|
||||
function isPresetSize(size) {
|
||||
return ['small', 'middle', 'large'].includes(size);
|
||||
}
|
||||
function isValidGapNumber(size) {
|
||||
if (!size) {
|
||||
// The case of size = 0 is deliberately excluded here, because the default value of the gap attribute in CSS is 0, so if the user passes 0 in, we can directly ignore it.
|
||||
return false;
|
||||
}
|
||||
return typeof size === 'number' && !Number.isNaN(size);
|
||||
}
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/space/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 Space = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
var _a, _b;
|
||||
const {
|
||||
getPrefixCls,
|
||||
space,
|
||||
direction: directionConfig
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
size = (space === null || space === void 0 ? void 0 : space.size) || 'small',
|
||||
align,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
direction = 'horizontal',
|
||||
prefixCls: customizePrefixCls,
|
||||
split,
|
||||
style,
|
||||
wrap = false,
|
||||
classNames: customClassNames,
|
||||
styles
|
||||
} = props,
|
||||
otherProps = __rest(props, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]);
|
||||
const [horizontalSize, verticalSize] = Array.isArray(size) ? size : [size, size];
|
||||
const isPresetVerticalSize = isPresetSize(verticalSize);
|
||||
const isPresetHorizontalSize = isPresetSize(horizontalSize);
|
||||
const isValidVerticalSize = isValidGapNumber(verticalSize);
|
||||
const isValidHorizontalSize = isValidGapNumber(horizontalSize);
|
||||
const childNodes = (0,toArray/* default */.Z)(children, {
|
||||
keepEmpty: true
|
||||
});
|
||||
const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;
|
||||
const prefixCls = getPrefixCls('space', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = (0,space_style/* default */.Z)(prefixCls);
|
||||
const cls = _classnames_2_5_1_classnames_default()(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {
|
||||
[`${prefixCls}-rtl`]: directionConfig === 'rtl',
|
||||
[`${prefixCls}-align-${mergedAlign}`]: mergedAlign,
|
||||
[`${prefixCls}-gap-row-${verticalSize}`]: isPresetVerticalSize,
|
||||
[`${prefixCls}-gap-col-${horizontalSize}`]: isPresetHorizontalSize
|
||||
}, className, rootClassName);
|
||||
const itemClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);
|
||||
// Calculate latest one
|
||||
let latestIndex = 0;
|
||||
const nodes = childNodes.map((child, i) => {
|
||||
var _a, _b;
|
||||
if (child !== null && child !== undefined) {
|
||||
latestIndex = i;
|
||||
}
|
||||
const key = child && child.key || `${itemClassName}-${i}`;
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(space_Item, {
|
||||
className: itemClassName,
|
||||
key: key,
|
||||
index: i,
|
||||
split: split,
|
||||
style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item
|
||||
}, child);
|
||||
});
|
||||
const spaceContext = _react_17_0_2_react.useMemo(() => ({
|
||||
latestIndex
|
||||
}), [latestIndex]);
|
||||
// =========================== Render ===========================
|
||||
if (childNodes.length === 0) {
|
||||
return null;
|
||||
}
|
||||
const gapStyle = {};
|
||||
if (wrap) {
|
||||
gapStyle.flexWrap = 'wrap';
|
||||
}
|
||||
if (!isPresetHorizontalSize && isValidHorizontalSize) {
|
||||
gapStyle.columnGap = horizontalSize;
|
||||
}
|
||||
if (!isPresetVerticalSize && isValidVerticalSize) {
|
||||
gapStyle.rowGap = verticalSize;
|
||||
}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
||||
ref: ref,
|
||||
className: cls,
|
||||
style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)
|
||||
}, otherProps), /*#__PURE__*/_react_17_0_2_react.createElement(SpaceContextProvider, {
|
||||
value: spaceContext
|
||||
}, nodes)));
|
||||
});
|
||||
if (false) {}
|
||||
const CompoundedSpace = Space;
|
||||
CompoundedSpace.Compact = Compact/* default */.ZP;
|
||||
/* harmony default export */ var space = (CompoundedSpace);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49029,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[49029,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 16135:
|
||||
/*!***********************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5451,91056,18880,29642,96594,1024,14882,52708,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5451,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56794,91056,18880,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[56794,91056,18880,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58047,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58047,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60499,84360,7385,21642,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[60499,84360,7385,21642,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61362,84360,7385,21642,60499,92952,91056,18880,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[61362,84360,7385,21642,60499,92952,91056,18880,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7229,84360,21321,93826,35019,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7229,84360,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7385,84360,21642,60499,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[7385,84360,21642,60499,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78158,92016,84360,21321,93826,35019,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[78158,92016,84360,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82854,84360,7385,21642,60499,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[82854,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 27385:
|
||||
/*!*******************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[84360,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[84360,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86741,84360,7385,21642,60499,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86741,84360,7385,21642,60499,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88973,5451,91056,18880,29642,96594,1024,14882,52708,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[88973,5451,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[91056,18880,29642,96594,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[91056,18880,29642,96594,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92016,84360,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92016,84360,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92952,84360,7385,21642,60499,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[92952,84360,7385,21642,60499,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93826,84360,21321,35019,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[93826,84360,21321,35019,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95740,7229,84360,21321,93826,35019,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95740,7229,84360,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96594,91056,18880,29642,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96594,91056,18880,29642,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97928,17103,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[97928,17103,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 71371:
|
||||
/*!********************************************************************************************************!*\
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99816,84360,86741,7385,21642,60499,92952,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[99816,84360,86741,7385,21642,60499,92952,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[67878,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -1,4 +1,4 @@
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14058,92016,84360,78158,21321,93826,35019,38660,91056,18880,29642,96594,1024,14882,52708,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[14058,92016,84360,78158,39645,21321,93826,35019,38660,91056,18880,29642,96594,1024,14882,27155,44407,52708,11021],{
|
||||
|
||||
/***/ 680:
|
||||
/*!*******************************************************************************************************************!*\
|
||||
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90337,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[90337,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16328,92016,84360,78158,21321,93826,35019,38660,1024,14882,11021],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[16328,92016,84360,78158,21321,93826,35019,38660,1024,14882,27155,44407,11021],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98062,1024,14882],{
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[98062,1024,14882,27155,44407],{
|
||||
|
||||
/***/ 50382:
|
||||
/*!*****************************************************************************************************!*\
|
||||
@ -0,0 +1,405 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[19360],{
|
||||
|
||||
/***/ 18987:
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./src/pages/User/Detail/virtualSpaces/index.tsx + 3 modules ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"default": function() { return /* binding */ virtualSpaces; }
|
||||
});
|
||||
|
||||
// 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/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/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/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(39647);
|
||||
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
||||
// 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__(65659);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tabs/index.js + 24 modules
|
||||
var tabs = __webpack_require__(99313);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
||||
var skeleton = __webpack_require__(96865);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(27092);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(94255);
|
||||
// EXTERNAL MODULE: ./src/utils/util.tsx
|
||||
var util = __webpack_require__(84357);
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var virtualSpacesmodules = ({"flex_box_center":"flex_box_center___zMMsd","flex_space_between":"flex_space_between___jt9k_","flex_box_vertical_center":"flex_box_vertical_center___BOPuh","flex_box_center_end":"flex_box_center_end___r_Iu0","flex_box_column":"flex_box_column___FOne9","order":"order___Qysjp","content":"content___IUWof","w1":"w1___W6edK","w2":"w2___WlZJP","w3":"w3___VfQ_s","w4":"w4___JaF4v","w5":"w5___dZmAB","w6":"w6___lKqpD","listTitle":"listTitle___mK0Um","listContent":"listContent___EJ710","info":"info___f0Irx","d1":"d1___ZqEOx","d2":"d2___FGqo_","d3":"d3___PwKy3","unitPrice":"unitPrice___A_1Mb","p":"p____3Bip","l":"l___f_rxJ","payType":"payType___BItlK","price":"price___c198g","status":"status___mYgsx","action":"action___cdhRD"});
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/List/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Listmodules = ({"flex_box_center":"flex_box_center___HFQZB","flex_space_between":"flex_space_between___zFFul","flex_box_vertical_center":"flex_box_vertical_center___io4tB","flex_box_center_end":"flex_box_center_end___H6Abs","flex_box_column":"flex_box_column___GQMTL","listWarp":"listWarp___BsT0V","li":"li___ndfmM","img":"img___Ric6Z","name":"name___aCd4t","e":"e___aP2FC","unit":"unit____BY_u","tags":"tags___ec5xr","tag1":"tag1___PPMZU","tag2":"tag2___ryXix"});
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(6848);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(92387);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/List/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var List = function List(_ref) {
|
||||
var data = _ref.data,
|
||||
_ref$marginLeft = _ref.marginLeft,
|
||||
marginLeft = _ref$marginLeft === void 0 ? 21 : _ref$marginLeft,
|
||||
_ref$listWarpStyle = _ref.listWarpStyle,
|
||||
listWarpStyle = _ref$listWarpStyle === void 0 ? {} : _ref$listWarpStyle,
|
||||
_ref$width = _ref.width,
|
||||
width = _ref$width === void 0 ? 282 : _ref$width,
|
||||
_ref$height = _ref.height,
|
||||
height = _ref$height === void 0 ? 290 : _ref$height;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", {
|
||||
className: Listmodules.listWarp,
|
||||
style: listWarpStyle,
|
||||
children: data.map(function (item, index) {
|
||||
var name = item.name,
|
||||
id = item.id,
|
||||
backbground_image_url = item.backbground_image_url,
|
||||
cover_url = item.cover_url,
|
||||
category_url = item.category_url;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
||||
target: "_blank",
|
||||
href: category_url,
|
||||
className: Listmodules.li,
|
||||
style: {
|
||||
marginLeft: marginLeft,
|
||||
width: width,
|
||||
height: height
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Listmodules.img,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: env/* default */.Z.IMG_SERVER + cover_url,
|
||||
alt: "\u5C01\u9762\u56FE"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Listmodules.name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: Listmodules.e,
|
||||
children: name
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: "\u53D1\u5E03\u5355\u4F4D\uFF1A\u5B66\u6821",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Listmodules.unit,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-danwei1 font14 mr3"
|
||||
}), "\u5B66\u6821"]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Listmodules.tags,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: "\u7AE0\u8282\u6570",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-zhangjie1 font14 mr3"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: [item.stages_count, "22"]
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "bottom",
|
||||
title: "\u5B66\u4E60\u4EBA\u6570",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-chengyuan font14 mr3"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: [item.members_count, "11"]
|
||||
})]
|
||||
})
|
||||
})]
|
||||
})
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var virtualSpaces_List = (List);
|
||||
// EXTERNAL MODULE: ./src/assets/images/noEnvData.png
|
||||
var noEnvData = __webpack_require__(36723);
|
||||
// EXTERNAL MODULE: ./src/pages/virtualSpaces/components/AddOrEdit/index.tsx + 1 modules
|
||||
var AddOrEdit = __webpack_require__(84080);
|
||||
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
||||
var verifyLogin = __webpack_require__(51425);
|
||||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||||
var authority = __webpack_require__(39067);
|
||||
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
||||
var ui_customization = __webpack_require__(73210);
|
||||
;// CONCATENATED MODULE: ./src/pages/User/Detail/virtualSpaces/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["user", "userDetail", "globalSetting", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var TabPane = tabs/* default */.Z.TabPane;
|
||||
var Paths = function Paths(_ref) {
|
||||
var _user$userInfo;
|
||||
var user = _ref.user,
|
||||
userDetail = _ref.userDetail,
|
||||
globalSetting = _ref.globalSetting,
|
||||
dispatch = _ref.dispatch,
|
||||
props = objectWithoutProperties_default()(_ref, _excluded);
|
||||
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
||||
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
||||
searchParams = _useSearchParams2[0];
|
||||
var location = (0,_umi_production_exports.useLocation)();
|
||||
var _useState = (0,_react_17_0_2_react.useState)({
|
||||
category: searchParams.get("category") || 'all',
|
||||
page: 1,
|
||||
limit: 15
|
||||
}),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
params = _useState2[0],
|
||||
setParams = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
list = _useState4[0],
|
||||
setList = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(0),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
total = _useState6[0],
|
||||
setTotal = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)(true),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
loading = _useState8[0],
|
||||
setLoading = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
visible = _useState10[0],
|
||||
setVisible = _useState10[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
(0,util/* setDocumentTitle */.Dk)('虚拟社区');
|
||||
getData(params);
|
||||
}, []);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(record) {
|
||||
var c, res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setLoading(true);
|
||||
c = objectSpread2_default()({}, record);
|
||||
_context.next = 4;
|
||||
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/mine.json", {
|
||||
method: 'get',
|
||||
params: c
|
||||
});
|
||||
case 4:
|
||||
res = _context.sent;
|
||||
if (res !== null && res !== void 0 && res.virtual_classrooms) {
|
||||
setList(res === null || res === void 0 ? void 0 : res.virtual_classrooms);
|
||||
setTotal(res === null || res === void 0 ? void 0 : res.total_count);
|
||||
setLoading(false);
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData(_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var handleTabsClick = function handleTabsClick(key) {
|
||||
var _window$location$href;
|
||||
if ((_window$location$href = window.location.href.toString()) !== null && _window$location$href !== void 0 && _window$location$href.includes('category')) {
|
||||
(0,util/* replaceParamVal */.jz)('category', key);
|
||||
} else {
|
||||
window.history.replaceState(null, '', window.location.href.indexOf('?') > -1 ? window.location.href + "&category=".concat(key) : "?category=".concat(key));
|
||||
}
|
||||
params.category = key;
|
||||
params.page = 1;
|
||||
setParams(objectSpread2_default()({}, params));
|
||||
getData(params);
|
||||
};
|
||||
var tabsMapping = [{
|
||||
name: '全部',
|
||||
id: 'all'
|
||||
}, {
|
||||
name: '我管理的',
|
||||
id: 'manage'
|
||||
}, {
|
||||
name: '我参与的',
|
||||
id: 'partake'
|
||||
}];
|
||||
var add = function add() {
|
||||
if ((0,authority/* isSuperAdmins */.Ny)() || (0,verifyLogin/* handleProfessionalCertificationModal */.O5)()) {
|
||||
setVisible(true);
|
||||
}
|
||||
};
|
||||
var handleOk = /*#__PURE__*/function () {
|
||||
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(values, cb) {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/virtual_classrooms.json", {
|
||||
method: 'post',
|
||||
body: values
|
||||
});
|
||||
case 2:
|
||||
res = _context2.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
getData(params);
|
||||
setVisible(false);
|
||||
setTimeout(function () {
|
||||
(0,util/* openNewWindow */.xg)(res === null || res === void 0 ? void 0 : res.category_url);
|
||||
}, 300);
|
||||
dispatch({
|
||||
type: 'shixunHomeworks/setActionTabs',
|
||||
payload: {
|
||||
key: '提示',
|
||||
type: 99
|
||||
}
|
||||
});
|
||||
}
|
||||
cb(res);
|
||||
case 5:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return function handleOk(_x2, _x3) {
|
||||
return _ref3.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var handleChange = function handleChange(page) {
|
||||
document.body.scrollIntoView();
|
||||
params.page = page;
|
||||
setParams(objectSpread2_default()({}, params));
|
||||
getData(params);
|
||||
};
|
||||
var renderEmpty = function renderEmpty() {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
flexDirection: 'column',
|
||||
margin: '100px 0 20px 0'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: noEnvData,
|
||||
width: 204,
|
||||
alt: ""
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#6A6A6A'
|
||||
},
|
||||
children: "\u6682\u65E0\u6570\u636E"
|
||||
})]
|
||||
});
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: virtualSpacesmodules.order,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
|
||||
value: params === null || params === void 0 ? void 0 : params.category,
|
||||
onChange: handleTabsClick,
|
||||
tabBarExtraContent: (0,authority/* isLogin */.bg)() && (((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.identity) === 'teacher' || (0,authority/* isSuperAdmins */.Ny)()) && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
onClick: add,
|
||||
children: "\u65B0\u5EFA\u865A\u62DF\u793E\u533A"
|
||||
}),
|
||||
className: "mb25",
|
||||
dataSource: tabsMapping
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, {
|
||||
loading: loading,
|
||||
active: true,
|
||||
paragraph: {
|
||||
rows: 5
|
||||
},
|
||||
children: !!list.length ? /*#__PURE__*/(0,jsx_runtime.jsx)(virtualSpaces_List, {
|
||||
data: list || []
|
||||
}) : renderEmpty()
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
hideOnSinglePage: true,
|
||||
onChange: function onChange(page) {
|
||||
return handleChange(page);
|
||||
},
|
||||
current: params.page,
|
||||
pageSize: params.limit,
|
||||
total: total,
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: false,
|
||||
showTotal: function showTotal(total) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
className: "mr10",
|
||||
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "c-orange",
|
||||
children: total
|
||||
}), "\u6761\u6570\u636E"]
|
||||
});
|
||||
},
|
||||
className: "tc pb30"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
|
||||
visible: visible,
|
||||
title: '新建虚拟社区',
|
||||
onCancel: function onCancel() {
|
||||
return setVisible(false);
|
||||
},
|
||||
onOk: handleOk
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var virtualSpaces = ((0,_umi_production_exports.connect)(function (_ref4) {
|
||||
var user = _ref4.user,
|
||||
userDetail = _ref4.userDetail,
|
||||
globalSetting = _ref4.globalSetting;
|
||||
return {
|
||||
user: user,
|
||||
userDetail: userDetail,
|
||||
globalSetting: globalSetting
|
||||
};
|
||||
})(Paths));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,349 @@
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/IndexNew/index.less?modules ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___xTlJO {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___USpKs {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___nCO5N {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___BXq4K {
|
||||
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___Eq8AP {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.page___YMMOQ {
|
||||
background: #ffffff;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
.page___YMMOQ .center___GVxs9 {
|
||||
margin: 0 auto;
|
||||
width: 1200px;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z {
|
||||
width: 1200px;
|
||||
height: 153px;
|
||||
margin: 30px auto;
|
||||
padding-top: 25px;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z .school_list___W4te2 {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z .school_list___W4te2 .school_item___ghVMr {
|
||||
margin-left: 100px;
|
||||
width: 170px;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z .school_list___W4te2 .school_item___ghVMr div {
|
||||
margin-left: 12px;
|
||||
font-family: Alibaba-PuHuiTi, Alibaba-PuHuiTi;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
color: #162A5C;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z .school_list___W4te2 .school_item___ghVMr:hover div {
|
||||
color: #3061D0;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z .school_list___W4te2 .school_item___ghVMr:nth-child(4n + 1) {
|
||||
margin-left: 125px;
|
||||
}
|
||||
.page___YMMOQ .course_list___MA34Z .school_list___W4te2 .school_item___ghVMr:nth-child(n + 5) {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/components/AddOrEdit/index.less?modules ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___ze4wf {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___JpH0B {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___NbRyF {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___fUFoB {
|
||||
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___i2BZL {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.form____yVeV > aside {
|
||||
font-size: 12px;
|
||||
color: #5f6367;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.form____yVeV input {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #e1e1e1;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.form____yVeV label {
|
||||
height: 32px;
|
||||
color: #000000 !important;
|
||||
line-height: 32px !important;
|
||||
}
|
||||
.form____yVeV label::before {
|
||||
margin-top: 2px;
|
||||
}
|
||||
.form____yVeV .btn___X16NC {
|
||||
padding: 0 16px;
|
||||
background: #f6f7f9 linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
|
||||
box-shadow: 0px 2px 4px 0px #e0dfe1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid #bacffe;
|
||||
height: 32px;
|
||||
line-height: 30px;
|
||||
color: #165dff;
|
||||
cursor: pointer;
|
||||
}
|
||||
.form____yVeV .btn___X16NC i {
|
||||
margin-right: 3px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.form____yVeV .img___sQnKq {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.form____yVeV .img___sQnKq > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ui-customization/reset.less?modules ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___vG4eV {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___qVVxe {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___P8Z8s {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___VMme3 {
|
||||
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___VMHwm {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.dropdownmenus___oVzoj {
|
||||
width: 104px;
|
||||
}
|
||||
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item'] {
|
||||
text-align: center;
|
||||
}
|
||||
.dropdownmenus___oVzoj [class~='ant-dropdown-menu-item']:hover {
|
||||
color: #165dff !important;
|
||||
background: #fff;
|
||||
}
|
||||
.dropdownmenus___oVzoj [class~='ant-dropdown-menu'] {
|
||||
padding: 10px 0 !important;
|
||||
}
|
||||
.popupClassNames___OcZq7 {
|
||||
background: yellow;
|
||||
}
|
||||
.selectdown___mmcA8 [class~='ant-select-item-option-selected'] {
|
||||
font-weight: 400 !important;
|
||||
background-color: #edf2ff !important;
|
||||
}
|
||||
.selectdown___mmcA8 [class~='ant-select-item-option-active'] {
|
||||
color: #165dff !important;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
.selectdown___mmcA8 [class~='ant-select-item-option'] {
|
||||
padding: 10px 24px;
|
||||
}
|
||||
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/IndexNew/List/index.less?modules ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___HR0FK {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___AORwV {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___u8RVW {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___JWmwA {
|
||||
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___EvD2h {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.listWarp___PiaNu {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
padding: 0;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj {
|
||||
width: 283px;
|
||||
background: #ffffff;
|
||||
box-shadow: 0px 2px 4px 0px #d6dae1;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj:hover img {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .img___bvstn {
|
||||
overflow: hidden;
|
||||
height: 177px;
|
||||
border-radius: 8px 8px 0 0;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .img___bvstn img {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .name___c5WWW {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: #000000;
|
||||
padding: 0 12px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-top: 15px;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .name___c5WWW .e___dMKVB {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .unit___sqJRC {
|
||||
font-size: 14px;
|
||||
color: #000f37;
|
||||
padding: 0px 12px;
|
||||
margin-top: 8px;
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 100%;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .unit___sqJRC i {
|
||||
color: #7d8592;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 {
|
||||
height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
color: #000f37;
|
||||
padding: 0px 12px;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 div > span {
|
||||
margin-right: 12px;
|
||||
font-size: 12px;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 div i {
|
||||
color: #7d8592;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 .tag1___pLlW6,
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 .tag2___Gbb1l {
|
||||
height: 18px;
|
||||
padding: 3px 6px;
|
||||
font-size: 12px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #FFE6AB;
|
||||
color: #CA7720;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 400;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj .tags___njTz9 .tag2___Gbb1l {
|
||||
border: 1px solid #D6F7EF;
|
||||
color: #01795d;
|
||||
margin-left: 6px;
|
||||
}
|
||||
.listWarp___PiaNu .li___fFwoj:nth-child(4n + 1),
|
||||
.listWarp___PiaNu .li___fFwoj:first-child {
|
||||
margin-left: 0 !important;
|
||||
}
|
||||
|
||||
@ -0,0 +1,324 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27496],{
|
||||
|
||||
/***/ 52640:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/CourseData/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__, {
|
||||
"default": function() { return /* binding */ CourseData; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(39647);
|
||||
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
||||
// 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__(65659);
|
||||
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/CourseData/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var CourseDatamodules = ({"flex_box_center":"flex_box_center____BAJL","flex_space_between":"flex_space_between___nKXPB","flex_box_vertical_center":"flex_box_vertical_center___IZCYi","flex_box_center_end":"flex_box_center_end___POJwV","flex_box_column":"flex_box_column___H9ll4","all":"all___FSE3O","TitleStyle":"TitleStyle___OMeOf","content":"content___kn9Lq","contentTile":"contentTile___YW6lk","contentLeft":"contentLeft___v8xJk","yearStyle":"yearStyle___FpIPP","schoolStyle":"schoolStyle___X_Gz8","roleStyle":"roleStyle___XI1a9","contentRight":"contentRight___nb0C7","sexStyle":"sexStyle___eHuTn","eduStyle":"eduStyle___Ou6YP"});
|
||||
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
|
||||
var lib = __webpack_require__(42441);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/CourseData/index.tsx
|
||||
|
||||
var _excluded = ["classroomList", "virtualSpaces", "loading", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var WorkplacePage = function WorkplacePage(_ref) {
|
||||
var classroomList = _ref.classroomList,
|
||||
virtualSpaces = _ref.virtualSpaces,
|
||||
loading = _ref.loading,
|
||||
dispatch = _ref.dispatch,
|
||||
props = objectWithoutProperties_default()(_ref, _excluded);
|
||||
var getYearOption = function getYearOption() {
|
||||
return {
|
||||
color: ['#6687F2'],
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '1%',
|
||||
right: '4%',
|
||||
bottom: '10%',
|
||||
top: '10%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: [{
|
||||
name: '',
|
||||
type: 'category',
|
||||
data: ['20及以下', '21-30', '31-40', '41-50', '51-60', '61-70', '70及以上']
|
||||
// axisLabel: {//坐标轴刻度标签的相关设置。
|
||||
// interval: 0,
|
||||
// rotate: "45"
|
||||
// },
|
||||
}],
|
||||
yAxis: [{
|
||||
name: '',
|
||||
type: 'value'
|
||||
}],
|
||||
series: [{
|
||||
name: 'Direct',
|
||||
type: 'bar',
|
||||
barWidth: '40%',
|
||||
data: [10, 52, 200, 334, 390, 330, 220]
|
||||
}]
|
||||
};
|
||||
};
|
||||
var getShoolOption = function getShoolOption() {
|
||||
return {
|
||||
color: ['#6687F2'],
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '1%',
|
||||
right: '4%',
|
||||
bottom: '1%',
|
||||
top: '10%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: [{
|
||||
name: '',
|
||||
type: 'category',
|
||||
data: ['20及以下', '21-30', '31-40', '41-50', '51-60', '61-70', '70及以上'],
|
||||
axisLabel: {
|
||||
//坐标轴刻度标签的相关设置。
|
||||
interval: 0,
|
||||
rotate: "45"
|
||||
}
|
||||
}],
|
||||
yAxis: [{
|
||||
name: '',
|
||||
type: 'value'
|
||||
}],
|
||||
series: [{
|
||||
name: 'Direct',
|
||||
type: 'bar',
|
||||
barWidth: '40%',
|
||||
data: [10, 52, 200, 334, 390, 330, 220]
|
||||
}]
|
||||
};
|
||||
};
|
||||
var getRoleOption = function getRoleOption() {
|
||||
return {
|
||||
color: ['#6687F2'],
|
||||
tooltip: {
|
||||
trigger: 'axis',
|
||||
axisPointer: {
|
||||
type: 'shadow'
|
||||
}
|
||||
},
|
||||
grid: {
|
||||
left: '1%',
|
||||
right: '4%',
|
||||
bottom: '10%',
|
||||
top: '10%',
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: [{
|
||||
name: '',
|
||||
type: 'category',
|
||||
data: ['20及以下', '21-30', '31-40', '41-50', '51-60', '61-70', '70及以上']
|
||||
// axisLabel: {//坐标轴刻度标签的相关设置。
|
||||
// interval: 0,
|
||||
// rotate: "45"
|
||||
// },
|
||||
}],
|
||||
yAxis: [{
|
||||
name: '',
|
||||
type: 'value'
|
||||
}],
|
||||
series: [{
|
||||
name: 'Direct',
|
||||
type: 'bar',
|
||||
barWidth: '40%',
|
||||
data: [10, 52, 200, 334, 390, 330, 220]
|
||||
}]
|
||||
};
|
||||
};
|
||||
var getSexOption = function getSexOption() {
|
||||
return {
|
||||
tooltip: {
|
||||
trigger: 'item'
|
||||
},
|
||||
legend: {
|
||||
bottom: '8%',
|
||||
left: 'center'
|
||||
},
|
||||
series: [{
|
||||
name: '性别',
|
||||
type: 'pie',
|
||||
radius: ['40%', '60%'],
|
||||
center: ['50%', '40%'],
|
||||
// avoidLabelOverlap: false,
|
||||
label: {
|
||||
show: false
|
||||
},
|
||||
data: [{
|
||||
name: '男',
|
||||
value: 10
|
||||
}, {
|
||||
name: '女',
|
||||
value: 17
|
||||
}],
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: function color(colors) {
|
||||
var colorList = ['#FC8282', '#6687F2'];
|
||||
return colorList[colors.dataIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
};
|
||||
var getEduOption = function getEduOption() {
|
||||
return {
|
||||
tooltip: {
|
||||
trigger: 'item'
|
||||
},
|
||||
legend: {
|
||||
bottom: '8%',
|
||||
left: 'center'
|
||||
},
|
||||
series: [{
|
||||
name: '学历',
|
||||
type: 'pie',
|
||||
radius: ['40%', '60%'],
|
||||
center: ['50%', '40%'],
|
||||
// avoidLabelOverlap: false,
|
||||
label: {
|
||||
show: false
|
||||
},
|
||||
data: [{
|
||||
name: '本科',
|
||||
value: 2
|
||||
}, {
|
||||
name: '硕士研究生',
|
||||
value: 18
|
||||
}, {
|
||||
name: '博生研究生',
|
||||
value: 18
|
||||
}],
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: function color(colors) {
|
||||
var colorList = ['#36CBCB', '#56D57C', '#FAD337'];
|
||||
return colorList[colors.dataIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.all,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: CourseDatamodules.TitleStyle,
|
||||
children: "\u57FA\u7840\u6570\u636E"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.content,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.contentLeft,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.yearStyle,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: CourseDatamodules.contentTile,
|
||||
children: "\u5E74\u9F84\u6BB5"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
||||
option: getYearOption(),
|
||||
style: {
|
||||
height: 230,
|
||||
width: 570
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.schoolStyle,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: CourseDatamodules.contentTile,
|
||||
children: "\u9662\u6821"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
||||
option: getShoolOption(),
|
||||
style: {
|
||||
height: 250,
|
||||
width: 570
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.roleStyle,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: CourseDatamodules.contentTile,
|
||||
children: "\u804C\u79F0"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
||||
option: getRoleOption(),
|
||||
style: {
|
||||
height: 230,
|
||||
width: 570
|
||||
}
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.contentRight,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.sexStyle,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: CourseDatamodules.contentTile,
|
||||
children: "\u6027\u522B"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
||||
option: getSexOption(),
|
||||
style: {
|
||||
height: 220,
|
||||
width: 270
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: CourseDatamodules.eduStyle,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: CourseDatamodules.contentTile,
|
||||
children: "\u5B66\u5386"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
||||
option: getEduOption(),
|
||||
style: {
|
||||
height: 220,
|
||||
width: 270
|
||||
}
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var CourseData = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var loading = _ref2.loading,
|
||||
user = _ref2.user,
|
||||
virtualSpaces = _ref2.virtualSpaces;
|
||||
return {
|
||||
loading: loading.effects,
|
||||
user: user,
|
||||
virtualSpaces: virtualSpaces
|
||||
};
|
||||
})(WorkplacePage));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,105 @@
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/CourseData/index.less?modules ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center____BAJL {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___nKXPB {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___IZCYi {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___POJwV {
|
||||
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___H9ll4 {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.all___FSE3O {
|
||||
padding: 28px 30px;
|
||||
}
|
||||
.all___FSE3O .TitleStyle___OMeOf {
|
||||
height: 22px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq {
|
||||
display: flex;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentTile___YW6lk {
|
||||
height: 22px;
|
||||
font-family: PingFangSC, PingFang SC;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentLeft___v8xJk {
|
||||
width: 589px;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentLeft___v8xJk .yearStyle___FpIPP {
|
||||
padding: 14px;
|
||||
width: 589px;
|
||||
height: 264px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F6F7F9;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentLeft___v8xJk .schoolStyle___X_Gz8 {
|
||||
padding: 14px;
|
||||
margin-top: 20px;
|
||||
width: 589px;
|
||||
height: 313px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F6F7F9;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentLeft___v8xJk .roleStyle___XI1a9 {
|
||||
padding: 14px;
|
||||
margin-top: 20px;
|
||||
width: 589px;
|
||||
height: 264px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F6F7F9;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentRight___nb0C7 {
|
||||
margin-left: 32px;
|
||||
width: 300px;
|
||||
height: 400px;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentRight___nb0C7 .sexStyle___eHuTn {
|
||||
padding: 14px;
|
||||
width: 300px;
|
||||
height: 264px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F6F7F9;
|
||||
}
|
||||
.all___FSE3O .content___kn9Lq .contentRight___nb0C7 .eduStyle___Ou6YP {
|
||||
padding: 14px;
|
||||
margin-top: 20px;
|
||||
width: 300px;
|
||||
height: 264px;
|
||||
border-radius: 2px;
|
||||
border: 1px solid #F6F7F9;
|
||||
}
|
||||
|
||||
@ -0,0 +1,362 @@
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Discussion/Detail/index.less?modules ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___Hmx5i {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___Dx8H4 {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___dMU0Z {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___dCdhg {
|
||||
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___QCcWO {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.Onerow___bolpc {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.MultiLine___jesmY {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.DiscussionList___CcLEr {
|
||||
margin-top: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 30px 20px;
|
||||
}
|
||||
.DiscussionListItem___CSgpe {
|
||||
cursor: pointer;
|
||||
width: 283px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.DiscussionListItem___CSgpe .DiscussionListItemImg___KgrBI {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.DiscussionListItem___CSgpe:hover .DiscussionListItemImg___KgrBI {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.imgUpLoad___nu_Sv {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imgUpLoad___nu_Sv > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.DiscussionDetail___zgks4 {
|
||||
overflow: hidden;
|
||||
margin-top: 25px;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border: 1px solid #F6F7F9;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Discussion/index.less?modules ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___QbjXY {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___CGgf9 {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___TZqsW {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___G6yjl {
|
||||
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___X3SPm {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.Onerow___te_Su {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.MultiLine___FQNWA {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.DiscussionList___AO3Id {
|
||||
margin-top: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 30px 20px;
|
||||
}
|
||||
.DiscussionListItem___dGzLI {
|
||||
cursor: pointer;
|
||||
width: 283px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.DiscussionListItem___dGzLI .DiscussionListItemImg___XeC4p {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.DiscussionListItem___dGzLI:hover .DiscussionListItemImg___XeC4p {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.imgUpLoad___gjBfb {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imgUpLoad___gjBfb > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.wrap___ilWvf div[class~='ant-form-item'] {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
|
||||
display: none;
|
||||
}
|
||||
.wrap___ilWvf .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
}
|
||||
.wrap___ilWvf .keywordTag___iieCb {
|
||||
padding: 10px 10px 10px 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.questionTitleEditorWrap___MHB5s {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.choiceWrap___QFkTc {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 23px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #464F66;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
|
||||
background-color: #37AD83;
|
||||
border-color: #37AD83;
|
||||
color: #fff;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
|
||||
background-color: #ebf6f2;
|
||||
border-color: #37AD83;
|
||||
color: #37AD83;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin: auto 0 auto 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
|
||||
color: #2FA34F;
|
||||
font-size: 14px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.inputBorder___Q5tRE {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.placeholder___p9sFY {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
}
|
||||
.blankWrapper___nC45e {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.blankWrapper___nC45e .blankInput___pEHsx {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
height: 46px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
|
||||
line-height: 46px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 [class~="ant-row"] {
|
||||
align-items: center !important;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
height: 46px;
|
||||
}
|
||||
.addBtn___WR5ZI {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 80px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 16px;
|
||||
cursor: pointer;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
font-size: 12px;
|
||||
}
|
||||
.blankIndex___x9Pny {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
|
||||
line-height: 56px;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
}
|
||||
div[class~='ant-collapse-borderless'] {
|
||||
background-color: #fff;
|
||||
}
|
||||
.collapseWrapper___ZTysU {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
|
||||
margin-bottom: 20px;
|
||||
border: none;
|
||||
box-shadow: 0px 2px 4px 0px #EAEEF4;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
|
||||
padding: 0 20px !important;
|
||||
height: 64px !important;
|
||||
background-color: #F6F7F8;
|
||||
align-items: center !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
|
||||
padding: 20px 40px !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
|
||||
background-color: #eaeffa !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
|
||||
color: #666666;
|
||||
}
|
||||
.collapseWrapper___ZTysU .open___B6FU9 {
|
||||
color: #165DFF;
|
||||
transform: rotateZ(90deg);
|
||||
}
|
||||
.collapseWrapper___ZTysU .close___QX19r {
|
||||
color: #82A8FF;
|
||||
}
|
||||
.hide___mn25n {
|
||||
display: none;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,644 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96265],{
|
||||
|
||||
/***/ 24720:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./src/components/QuestionEditor/MdEditorInForm.tsx ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ h: function() { return /* binding */ MdEditorInForm; },
|
||||
/* harmony export */ x: function() { return /* binding */ RegularInput; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/markdown-editor */ 37570);
|
||||
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less?modules */ 97195);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 28312);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
var _excluded = ["value", "onChange", "scrollId"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var MdEditorInForm = function MdEditorInForm(_ref) {
|
||||
var value = _ref.value,
|
||||
_onChange = _ref.onChange,
|
||||
scrollId = _ref.scrollId,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
|
||||
id: scrollId || '',
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
// hidetoolBar
|
||||
defaultValue: value,
|
||||
onChange: function onChange(a, b) {
|
||||
console.log("a:", a, b);
|
||||
if (!!(b !== null && b !== void 0 && b.length)) _onChange(a, b);else _onChange(a);
|
||||
}
|
||||
}))
|
||||
});
|
||||
};
|
||||
var RegularInput = function RegularInput(_ref2) {
|
||||
var value = _ref2.value,
|
||||
onChange = _ref2.onChange,
|
||||
placeholder = _ref2.placeholder,
|
||||
_ref2$height = _ref2.height,
|
||||
height = _ref2$height === void 0 ? 140 : _ref2$height,
|
||||
isEdit = _ref2.isEdit;
|
||||
return isEdit ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
||||
watch: true,
|
||||
isFocus: true,
|
||||
height: height,
|
||||
placeholder: placeholder,
|
||||
defaultValue: value,
|
||||
onChange: onChange
|
||||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
|
||||
style: {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
children: value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder,
|
||||
value: value
|
||||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
|
||||
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.placeholder),
|
||||
children: placeholder
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 80735:
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Discussion/AddOrEdit/index.tsx ***!
|
||||
\**********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 59028);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 43418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 73782);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd */ 43604);
|
||||
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../index.less?modules */ 75782);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/env */ 92387);
|
||||
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ant-design/icons */ 58670);
|
||||
/* harmony import */ var _components_QuestionEditor_MdEditorInForm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/QuestionEditor/MdEditorInForm */ 24720);
|
||||
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/ui-customization */ 73210);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
var _excluded = ["handleFinish", "form", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var AddOrEdit = function AddOrEdit(_ref) {
|
||||
var _fileList$2;
|
||||
var handleFinish = _ref.handleFinish,
|
||||
form = _ref.form,
|
||||
dispatch = _ref.dispatch,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2___default()(_ref, _excluded);
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_3__.useState)([]),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
|
||||
fileList = _useState2[0],
|
||||
setFileList = _useState2[1];
|
||||
var uploadProps = {
|
||||
fileList: fileList,
|
||||
maxCount: 1,
|
||||
// accept: ".pdf, .docx, .doc, .xlsx, .xls, .ppt, .pptx, .zip,.jpg,.png",
|
||||
accept: "image/*",
|
||||
withCredentials: true,
|
||||
beforeUpload: function beforeUpload(file) {
|
||||
var fileSize = file.size / 1024 / 1024;
|
||||
if (fileSize > 2 || fileSize == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.error("".concat(file.name, " \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过图片大小限制(2MB)'));
|
||||
return antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.LIST_IGNORE;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
onRemove: function onRemove(file) {
|
||||
setFileList([]);
|
||||
},
|
||||
onChange: function onChange(info) {
|
||||
form.setFieldsValue({
|
||||
cover_id: ''
|
||||
});
|
||||
var statusList = ["uploading", "done", "removed"];
|
||||
if (statusList.includes(info.file.status)) {
|
||||
var _info$fileList;
|
||||
setFileList(info.fileList);
|
||||
form.setFieldsValue({
|
||||
cover_id: (_info$fileList = info.fileList) === null || _info$fileList === void 0 || (_info$fileList = _info$fileList[0]) === null || _info$fileList === void 0 || (_info$fileList = _info$fileList.response) === null || _info$fileList === void 0 ? void 0 : _info$fileList.id
|
||||
});
|
||||
}
|
||||
},
|
||||
action: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z.API_SERVER, "/api/attachments.json")
|
||||
};
|
||||
var fileUploadProps = {
|
||||
multiple: true,
|
||||
maxCount: 10,
|
||||
// accept: ".pdf, .docx, .doc, .xlsx, .xls, .ppt, .pptx, .zip,.jpg,.png",
|
||||
withCredentials: true,
|
||||
beforeUpload: function beforeUpload(file) {
|
||||
var fileSize = file.size / 1024 / 1024;
|
||||
if (fileSize > 500 || fileSize == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .ZP.error("".concat(file.name, " \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过文件大小限制(500MB)'));
|
||||
return antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.LIST_IGNORE;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
action: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z.API_SERVER, "/api/attachments.json")
|
||||
};
|
||||
var renderImg = function renderImg() {
|
||||
var _fileList$;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)("div", {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z.imgUpLoad,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("img", {
|
||||
src: _utils_env__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z.API_SERVER + "/api/attachments/" + (fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id),
|
||||
alt: "avatar",
|
||||
style: {
|
||||
width: '100%'
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
||||
onClick: function onClick() {
|
||||
setFileList([]);
|
||||
form.setFieldsValue({
|
||||
cover_id: ''
|
||||
});
|
||||
},
|
||||
style: {
|
||||
fontSize: '16px',
|
||||
color: 'red'
|
||||
}
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {
|
||||
if (props.open && form.getFieldValue("cover_id") && form.getFieldValue("cover")) {
|
||||
setFileList([{
|
||||
response: form.getFieldValue("cover")
|
||||
}]);
|
||||
}
|
||||
}, [props.open]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
initialValues: {},
|
||||
layout: "vertical",
|
||||
onFinish: function onFinish(ValueAll) {
|
||||
handleFinish(ValueAll);
|
||||
setFileList([]);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "name",
|
||||
label: "\u6807\u9898",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入标题'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u6807\u9898",
|
||||
maxLength: 60,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "desc",
|
||||
label: "\u5185\u5BB9",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请在此输入内容'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_QuestionEditor_MdEditorInForm__WEBPACK_IMPORTED_MODULE_6__/* .MdEditorInForm */ .h, {
|
||||
placeholder: "\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9",
|
||||
scrollId: '',
|
||||
watch: true,
|
||||
height: 192
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
label: "附件",
|
||||
name: "attachment_ids",
|
||||
valuePropName: "fileList",
|
||||
getValueFromEvent: function getValueFromEvent(e) {
|
||||
if (Array.isArray(e)) {
|
||||
return e;
|
||||
}
|
||||
return e === null || e === void 0 ? void 0 : e.fileList;
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, fileUploadProps), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_7__/* .CustomButton */ .op, {
|
||||
style: {
|
||||
borderRadius: "2px"
|
||||
},
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("i", {
|
||||
className: "iconfont icon-shangchuan3"
|
||||
}),
|
||||
children: "\u6587\u4EF6\u4E0A\u4F20"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginLeft: "16px",
|
||||
color: "#5F6367"
|
||||
},
|
||||
onClick: function onClick(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
},
|
||||
children: "1\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M\uFF1B2\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6\u3002"
|
||||
})]
|
||||
})
|
||||
}))
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
name: "cover_id",
|
||||
label: "\u5C01\u9762\u56FE\u7247",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请上传封面图片'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("div", {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z.upload,
|
||||
children: fileList !== null && fileList !== void 0 && (_fileList$2 = fileList[0]) !== null && _fileList$2 !== void 0 && (_fileList$2 = _fileList$2.response) !== null && _fileList$2 !== void 0 && _fileList$2.id ? renderImg() : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, uploadProps), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, {
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_7__/* .CustomButton */ .op, {
|
||||
style: {
|
||||
borderRadius: "2px"
|
||||
},
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)("i", {
|
||||
className: "iconfont icon-shangchuan3"
|
||||
}),
|
||||
children: "\u56FE\u7247\u4E0A\u4F20"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_8__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginLeft: "16px",
|
||||
color: "#5F6367"
|
||||
},
|
||||
onClick: function onClick(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
},
|
||||
children: "\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20"
|
||||
})]
|
||||
})
|
||||
}))
|
||||
})
|
||||
})]
|
||||
})
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (AddOrEdit);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 63173:
|
||||
/*!************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Discussion/index.tsx ***!
|
||||
\************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_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);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! umi */ 65659);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd */ 71418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 43604);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 6848);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd */ 27092);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/ui-customization */ 73210);
|
||||
/* harmony import */ var _components_NoData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/NoData */ 65119);
|
||||
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./index.less?modules */ 75782);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/env */ 92387);
|
||||
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/util */ 84357);
|
||||
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! moment */ 61186);
|
||||
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_12__);
|
||||
/* harmony import */ var _pages_virtualSpaces_Lists_Discussion_AddOrEdit__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @/pages/virtualSpaces/Lists/Discussion/AddOrEdit */ 80735);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["classroomList", "globalSetting", "virtualSpaces", "loading", "user", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var DiscussionPage = function DiscussionPage(_ref) {
|
||||
var _menus$find, _DiscussionList$data, _DiscussionList$data2, _DiscussionList$data3, _DiscussionList$data4, _DiscussionList$data5;
|
||||
var classroomList = _ref.classroomList,
|
||||
globalSetting = _ref.globalSetting,
|
||||
virtualSpaces = _ref.virtualSpaces,
|
||||
loading = _ref.loading,
|
||||
user = _ref.user,
|
||||
dispatch = _ref.dispatch,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default()(_ref, _excluded);
|
||||
var DiscussionList = virtualSpaces.DiscussionList,
|
||||
menus = virtualSpaces.menus;
|
||||
var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.useForm(),
|
||||
_Form$useForm2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useParams = (0,umi__WEBPACK_IMPORTED_MODULE_6__.useParams)(),
|
||||
virtual_spacesId = _useParams.virtual_spacesId;
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
isAddDiscussion = _useState2[0],
|
||||
setIsAddDiscussion = _useState2[1];
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)({
|
||||
page: 1,
|
||||
limit: 15
|
||||
}),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
urlData = _useState4[0],
|
||||
setUrlData = _useState4[1];
|
||||
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
|
||||
|
||||
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
|
||||
return e.id == window.localStorage.getItem('vtrsModuleId');
|
||||
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
|
||||
var getDiscussionList = function getDiscussionList() {
|
||||
window.scrollTo(0, 0);
|
||||
dispatch({
|
||||
type: "virtualSpaces/getDiscussionList",
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, urlData), {}, {
|
||||
virtual_spacesId: virtual_spacesId,
|
||||
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
|
||||
})
|
||||
});
|
||||
};
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {
|
||||
getDiscussionList();
|
||||
}, [urlData, window.localStorage.getItem('vtrsModuleId')]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
spinning: loading["virtualSpaces/getDiscussionList"],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)("div", {
|
||||
className: "ml40 mr40",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_7__/* .CustomTabs */ .YG, {
|
||||
value: 'all',
|
||||
onChange: function onChange() {},
|
||||
tabBarExtraContent: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_7__/* .CustomButton */ .op, {
|
||||
onClick: function onClick() {
|
||||
setIsAddDiscussion(true);
|
||||
form.resetFields();
|
||||
},
|
||||
children: "\u65B0\u5EFA"
|
||||
}),
|
||||
dataSource: [{
|
||||
id: 'all',
|
||||
name: moduleName
|
||||
}]
|
||||
}), (DiscussionList === null || DiscussionList === void 0 || (_DiscussionList$data = DiscussionList.data) === null || _DiscussionList$data === void 0 ? void 0 : _DiscussionList$data.count) == 0 ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_components_NoData__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div", {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.DiscussionList,
|
||||
children: DiscussionList === null || DiscussionList === void 0 || (_DiscussionList$data2 = DiscussionList.data) === null || _DiscussionList$data2 === void 0 || (_DiscussionList$data2 = _DiscussionList$data2.list) === null || _DiscussionList$data2 === void 0 ? void 0 : _DiscussionList$data2.map(function (item, index) {
|
||||
var _item$cover;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
flexDirection: "column"
|
||||
},
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.DiscussionListItem,
|
||||
onClick: function onClick() {
|
||||
umi__WEBPACK_IMPORTED_MODULE_6__.history.push("/".concat(_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .vtrsKey */ .AS, "/").concat(virtual_spacesId, "/discussion/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
width: 283,
|
||||
height: 177,
|
||||
overflow: "hidden"
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("img", {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.DiscussionListItemImg,
|
||||
src: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.API_SERVER).concat(item === null || item === void 0 || (_item$cover = item.cover) === null || _item$cover === void 0 ? void 0 : _item$cover.url)
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
justify: "space-between",
|
||||
style: {
|
||||
padding: "26px 12px",
|
||||
flexDirection: "column",
|
||||
flex: 1,
|
||||
width: 283
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
|
||||
placement: "topLeft",
|
||||
title: item.name,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div", {
|
||||
className: "font16 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.Onerow),
|
||||
style: {
|
||||
color: "#333",
|
||||
fontWeight: 600
|
||||
},
|
||||
children: item.name
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("div", {
|
||||
className: "mt10 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.MultiLine),
|
||||
style: {
|
||||
color: "#666"
|
||||
},
|
||||
children: item.desc
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginTop: "22px"
|
||||
},
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
wrap: false,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("i", {
|
||||
className: "iconfont icon-shijian1 font12 mr5"
|
||||
}), moment__WEBPACK_IMPORTED_MODULE_12___default()(item === null || item === void 0 ? void 0 : item.created_at).format("YYYY-MM-DD")]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {
|
||||
placement: "topLeft",
|
||||
title: item.real_name,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.Onerow,
|
||||
style: {
|
||||
maxWidth: 150,
|
||||
lineHeight: "18px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("img", {
|
||||
className: "mr5",
|
||||
width: 18,
|
||||
height: 18,
|
||||
src: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z.IMG_SERVER, "/images/").concat(item === null || item === void 0 ? void 0 : item.user_image_url)
|
||||
}), item === null || item === void 0 ? void 0 : item.real_name]
|
||||
})
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
}), (DiscussionList === null || DiscussionList === void 0 || (_DiscussionList$data3 = DiscussionList.data) === null || _DiscussionList$data3 === void 0 ? void 0 : _DiscussionList$data3.count) != 0 && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
className: "mt20 mb20",
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
children: ["\u5171\xA0", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF"
|
||||
},
|
||||
children: (DiscussionList === null || DiscussionList === void 0 || (_DiscussionList$data4 = DiscussionList.data) === null || _DiscussionList$data4 === void 0 ? void 0 : _DiscussionList$data4.count) || 0
|
||||
}), "\xA0\u6761\u6570\u636E"]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
|
||||
showSizeChanger: false,
|
||||
showQuickJumper: true,
|
||||
current: urlData.page,
|
||||
pageSize: urlData.limit,
|
||||
onChange: function onChange(page, limit) {
|
||||
return setUrlData(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, urlData), {}, {
|
||||
page: page,
|
||||
limit: limit
|
||||
}));
|
||||
},
|
||||
total: (DiscussionList === null || DiscussionList === void 0 || (_DiscussionList$data5 = DiscussionList.data) === null || _DiscussionList$data5 === void 0 ? void 0 : _DiscussionList$data5.count) || 0
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_14__.jsx)(_pages_virtualSpaces_Lists_Discussion_AddOrEdit__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
title: "新建交流研讨",
|
||||
width: 1200,
|
||||
open: isAddDiscussion,
|
||||
destroyOnClose: true,
|
||||
dispatch: dispatch,
|
||||
onCancel: function onCancel() {
|
||||
setIsAddDiscussion(false);
|
||||
form.resetFields();
|
||||
},
|
||||
confirmLoading: loading["virtualSpaces/postDiscussionList"],
|
||||
onOk: function onOk() {
|
||||
return form.submit();
|
||||
},
|
||||
handleFinish: ( /*#__PURE__*/function () {
|
||||
var _ref2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(ValueAll) {
|
||||
var _ValueAll$attachment_;
|
||||
var res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
ValueAll.attachment_ids = (ValueAll === null || ValueAll === void 0 || (_ValueAll$attachment_ = ValueAll.attachment_ids) === null || _ValueAll$attachment_ === void 0 ? void 0 : _ValueAll$attachment_.map(function (item) {
|
||||
var _item$response;
|
||||
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
|
||||
})) || [];
|
||||
_context.next = 3;
|
||||
return dispatch({
|
||||
type: "virtualSpaces/postDiscussionList",
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({
|
||||
virtual_spacesId: virtual_spacesId
|
||||
}, ValueAll), {}, {
|
||||
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
|
||||
})
|
||||
});
|
||||
case 3:
|
||||
res = _context.sent;
|
||||
console.log(ValueAll);
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .ZP.success("新建成功");
|
||||
form.resetFields();
|
||||
setIsAddDiscussion(false);
|
||||
getDiscussionList();
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}())
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_6__.connect)(function (_ref3) {
|
||||
var classroomList = _ref3.classroomList,
|
||||
loading = _ref3.loading,
|
||||
globalSetting = _ref3.globalSetting,
|
||||
virtualSpaces = _ref3.virtualSpaces,
|
||||
user = _ref3.user;
|
||||
return {
|
||||
classroomList: classroomList,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.effects,
|
||||
virtualSpaces: virtualSpaces,
|
||||
user: user
|
||||
};
|
||||
})(DiscussionPage));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97195:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./src/components/QuestionEditor/index.less?modules ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ __webpack_exports__.Z = ({"wrap":"wrap___ilWvf","deleteIcon":"deleteIcon___JBDG8","keywordTag":"keywordTag___iieCb","questionTitleEditorWrap":"questionTitleEditorWrap___MHB5s","choiceWrap":"choiceWrap___QFkTc","choiceIndex":"choiceIndex___Mr2YO","judgementIndex":"judgementIndex___fUVWK","setAnswerBtn":"setAnswerBtn___Whox5","activeAnswer":"activeAnswer___fGU6Y","activeJudgementAnswer":"activeJudgementAnswer___wJv8P","actionWrapper":"actionWrapper___ERQ7k","addIcon":"addIcon___L9TE0","inputBorder":"inputBorder___Q5tRE","placeholder":"placeholder___p9sFY","blankWrapper":"blankWrapper___nC45e","blankInput":"blankInput___pEHsx","blankInputNumberWrapper":"blankInputNumberWrapper___uEHb0","addBtn":"addBtn___WR5ZI","blankIndex":"blankIndex___x9Pny","baseInputWrapper":"baseInputWrapper___eVsG7","collapseWrapper":"collapseWrapper___ZTysU","panelHeader":"panelHeader___QSN9g","open":"open___B6FU9","close":"close___QX19r","hide":"hide___mn25n"});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 75782:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Discussion/index.less?modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ __webpack_exports__.Z = ({"flex_box_center":"flex_box_center___QbjXY","flex_space_between":"flex_space_between___CGgf9","flex_box_vertical_center":"flex_box_vertical_center___TZqsW","flex_box_center_end":"flex_box_center_end___G6yjl","flex_box_column":"flex_box_column___X3SPm","Onerow":"Onerow___te_Su","MultiLine":"MultiLine___FQNWA","DiscussionList":"DiscussionList___AO3Id","DiscussionListItem":"DiscussionListItem___dGzLI","DiscussionListItemImg":"DiscussionListItemImg___XeC4p","imgUpLoad":"imgUpLoad___gjBfb"});
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,269 @@
|
||||
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Discussion/index.less?modules ***!
|
||||
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___QbjXY {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___CGgf9 {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___TZqsW {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___G6yjl {
|
||||
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___X3SPm {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.Onerow___te_Su {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.MultiLine___FQNWA {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.DiscussionList___AO3Id {
|
||||
margin-top: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 30px 20px;
|
||||
}
|
||||
.DiscussionListItem___dGzLI {
|
||||
cursor: pointer;
|
||||
width: 283px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.DiscussionListItem___dGzLI .DiscussionListItemImg___XeC4p {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.DiscussionListItem___dGzLI:hover .DiscussionListItemImg___XeC4p {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.imgUpLoad___gjBfb {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imgUpLoad___gjBfb > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.wrap___ilWvf div[class~='ant-form-item'] {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
|
||||
display: none;
|
||||
}
|
||||
.wrap___ilWvf .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
}
|
||||
.wrap___ilWvf .keywordTag___iieCb {
|
||||
padding: 10px 10px 10px 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.questionTitleEditorWrap___MHB5s {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.choiceWrap___QFkTc {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 23px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #464F66;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
|
||||
background-color: #37AD83;
|
||||
border-color: #37AD83;
|
||||
color: #fff;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
|
||||
background-color: #ebf6f2;
|
||||
border-color: #37AD83;
|
||||
color: #37AD83;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin: auto 0 auto 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
|
||||
color: #2FA34F;
|
||||
font-size: 14px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.inputBorder___Q5tRE {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.placeholder___p9sFY {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
}
|
||||
.blankWrapper___nC45e {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.blankWrapper___nC45e .blankInput___pEHsx {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
height: 46px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
|
||||
line-height: 46px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 [class~="ant-row"] {
|
||||
align-items: center !important;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
height: 46px;
|
||||
}
|
||||
.addBtn___WR5ZI {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 80px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 16px;
|
||||
cursor: pointer;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
font-size: 12px;
|
||||
}
|
||||
.blankIndex___x9Pny {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
|
||||
line-height: 56px;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
}
|
||||
div[class~='ant-collapse-borderless'] {
|
||||
background-color: #fff;
|
||||
}
|
||||
.collapseWrapper___ZTysU {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
|
||||
margin-bottom: 20px;
|
||||
border: none;
|
||||
box-shadow: 0px 2px 4px 0px #EAEEF4;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
|
||||
padding: 0 20px !important;
|
||||
height: 64px !important;
|
||||
background-color: #F6F7F8;
|
||||
align-items: center !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
|
||||
padding: 20px 40px !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
|
||||
background-color: #eaeffa !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
|
||||
color: #666666;
|
||||
}
|
||||
.collapseWrapper___ZTysU .open___B6FU9 {
|
||||
color: #165DFF;
|
||||
transform: rotateZ(90deg);
|
||||
}
|
||||
.collapseWrapper___ZTysU .close___QX19r {
|
||||
color: #82A8FF;
|
||||
}
|
||||
.hide___mn25n {
|
||||
display: none;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,362 @@
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Lesson/Detail/index.less?modules ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___Q28K2 {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___XKhJD {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___G6xvN {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___OpS9Y {
|
||||
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___Jx7wj {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.Onerow___iGZyH {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.MultiLine___zus_s {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.LessonsList___d2liG {
|
||||
margin-top: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 30px 35px;
|
||||
}
|
||||
.LessonsListItem___CaSaY {
|
||||
cursor: pointer;
|
||||
width: 283px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.LessonsListItem___CaSaY .LessonsListItemImg___LCyOb {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.LessonsListItem___CaSaY:hover .LessonsListItemImg___LCyOb {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.imgUpLoad___gXVAl {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imgUpLoad___gXVAl > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.LessonDetail___z2veM {
|
||||
overflow: hidden;
|
||||
margin-top: 25px;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border: 1px solid #F6F7F9;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Lesson/index.less?modules ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___cFjD5 {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___WX1ma {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___iyMsP {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___LFV4U {
|
||||
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___GujFO {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.Onerow___QKU3O {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.MultiLine___ZOVUQ {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.LessonsList___lfvK6 {
|
||||
margin-top: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 30px 35px;
|
||||
}
|
||||
.LessonsListItem___Opl7o {
|
||||
cursor: pointer;
|
||||
width: 283px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.LessonsListItem___Opl7o .LessonsListItemImg___rvVXp {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.LessonsListItem___Opl7o:hover .LessonsListItemImg___rvVXp {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.imgUpLoad___wax6e {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imgUpLoad___wax6e > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.wrap___ilWvf div[class~='ant-form-item'] {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
|
||||
display: none;
|
||||
}
|
||||
.wrap___ilWvf .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
}
|
||||
.wrap___ilWvf .keywordTag___iieCb {
|
||||
padding: 10px 10px 10px 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.questionTitleEditorWrap___MHB5s {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.choiceWrap___QFkTc {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 23px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #464F66;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
|
||||
background-color: #37AD83;
|
||||
border-color: #37AD83;
|
||||
color: #fff;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
|
||||
background-color: #ebf6f2;
|
||||
border-color: #37AD83;
|
||||
color: #37AD83;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin: auto 0 auto 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
|
||||
color: #2FA34F;
|
||||
font-size: 14px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.inputBorder___Q5tRE {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.placeholder___p9sFY {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
}
|
||||
.blankWrapper___nC45e {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.blankWrapper___nC45e .blankInput___pEHsx {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
height: 46px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
|
||||
line-height: 46px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 [class~="ant-row"] {
|
||||
align-items: center !important;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
height: 46px;
|
||||
}
|
||||
.addBtn___WR5ZI {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 80px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 16px;
|
||||
cursor: pointer;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
font-size: 12px;
|
||||
}
|
||||
.blankIndex___x9Pny {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
|
||||
line-height: 56px;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
}
|
||||
div[class~='ant-collapse-borderless'] {
|
||||
background-color: #fff;
|
||||
}
|
||||
.collapseWrapper___ZTysU {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
|
||||
margin-bottom: 20px;
|
||||
border: none;
|
||||
box-shadow: 0px 2px 4px 0px #EAEEF4;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
|
||||
padding: 0 20px !important;
|
||||
height: 64px !important;
|
||||
background-color: #F6F7F8;
|
||||
align-items: center !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
|
||||
padding: 20px 40px !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
|
||||
background-color: #eaeffa !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
|
||||
color: #666666;
|
||||
}
|
||||
.collapseWrapper___ZTysU .open___B6FU9 {
|
||||
color: #165DFF;
|
||||
transform: rotateZ(90deg);
|
||||
}
|
||||
.collapseWrapper___ZTysU .close___QX19r {
|
||||
color: #82A8FF;
|
||||
}
|
||||
.hide___mn25n {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -0,0 +1,269 @@
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/virtualSpaces/Lists/Lesson/index.less?modules ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___cFjD5 {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___WX1ma {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___iyMsP {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___LFV4U {
|
||||
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___GujFO {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.Onerow___QKU3O {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.MultiLine___ZOVUQ {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
.LessonsList___lfvK6 {
|
||||
margin-top: 25px;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 30px 35px;
|
||||
}
|
||||
.LessonsListItem___Opl7o {
|
||||
cursor: pointer;
|
||||
width: 283px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.LessonsListItem___Opl7o .LessonsListItemImg___rvVXp {
|
||||
width: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
.LessonsListItem___Opl7o:hover .LessonsListItemImg___rvVXp {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.imgUpLoad___wax6e {
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: auto;
|
||||
background-color: #f4f3f4;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imgUpLoad___wax6e > div {
|
||||
position: absolute;
|
||||
right: -6px;
|
||||
top: -6px;
|
||||
cursor: pointer;
|
||||
background-color: #fff;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.26@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.26@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/QuestionEditor/index.less?modules ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.wrap___ilWvf div[class~='ant-form-item'] {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.wrap___ilWvf div[class~='ant-form-item-explain-error'] {
|
||||
display: none;
|
||||
}
|
||||
.wrap___ilWvf .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
}
|
||||
.wrap___ilWvf .keywordTag___iieCb {
|
||||
padding: 10px 10px 10px 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.questionTitleEditorWrap___MHB5s {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.choiceWrap___QFkTc {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 23px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
color: #464F66;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .choiceIndex___Mr2YO.judgementIndex___fUVWK {
|
||||
border-radius: 2px;
|
||||
}
|
||||
.choiceWrap___QFkTc .setAnswerBtn___Whox5 {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeAnswer___fGU6Y {
|
||||
background-color: #37AD83;
|
||||
border-color: #37AD83;
|
||||
color: #fff;
|
||||
}
|
||||
.choiceWrap___QFkTc .activeJudgementAnswer___wJv8P {
|
||||
background-color: #ebf6f2;
|
||||
border-color: #37AD83;
|
||||
color: #37AD83;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin: auto 0 auto 20px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .addIcon___L9TE0 {
|
||||
color: #2FA34F;
|
||||
font-size: 14px;
|
||||
}
|
||||
.choiceWrap___QFkTc .actionWrapper___ERQ7k .deleteIcon___JBDG8 {
|
||||
color: #E30000;
|
||||
font-size: 14px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
.inputBorder___Q5tRE {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
padding: 8px 12px;
|
||||
font-size: 14px;
|
||||
min-height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.placeholder___p9sFY {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #9096A3;
|
||||
}
|
||||
.blankWrapper___nC45e {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.blankWrapper___nC45e .blankInput___pEHsx {
|
||||
border-radius: 2px;
|
||||
border: 1px solid #DCDCDC;
|
||||
height: 46px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 div[class~='ant-form-item-label'] {
|
||||
line-height: 46px;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 [class~="ant-row"] {
|
||||
align-items: center !important;
|
||||
}
|
||||
.blankInputNumberWrapper___uEHb0 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
height: 46px;
|
||||
}
|
||||
.addBtn___WR5ZI {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 80px;
|
||||
height: 32px;
|
||||
background: #3061D0;
|
||||
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px -1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 16px;
|
||||
cursor: pointer;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
font-size: 12px;
|
||||
}
|
||||
.blankIndex___x9Pny {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #666666;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 div[class~='ant-form-item-label'] {
|
||||
line-height: 56px;
|
||||
}
|
||||
.baseInputWrapper___eVsG7 input[class~='ant-input-number-input'] {
|
||||
font-size: 14px;
|
||||
}
|
||||
div[class~='ant-collapse-borderless'] {
|
||||
background-color: #fff;
|
||||
}
|
||||
.collapseWrapper___ZTysU {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] {
|
||||
margin-bottom: 20px;
|
||||
border: none;
|
||||
box-shadow: 0px 2px 4px 0px #EAEEF4;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-header'] {
|
||||
padding: 0 20px !important;
|
||||
height: 64px !important;
|
||||
background-color: #F6F7F8;
|
||||
align-items: center !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] {
|
||||
background-color: #fff !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item'] div[class~='ant-collapse-content'] div[class~='ant-collapse-content-box'] {
|
||||
padding: 20px 40px !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU div[class~='ant-collapse-item-active'] div[class~='ant-collapse-header'] {
|
||||
background-color: #eaeffa !important;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g {
|
||||
font-size: 14px;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
.collapseWrapper___ZTysU .panelHeader___QSN9g span {
|
||||
color: #666666;
|
||||
}
|
||||
.collapseWrapper___ZTysU .open___B6FU9 {
|
||||
color: #165DFF;
|
||||
transform: rotateZ(90deg);
|
||||
}
|
||||
.collapseWrapper___ZTysU .close___QX19r {
|
||||
color: #82A8FF;
|
||||
}
|
||||
.hide___mn25n {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -0,0 +1,750 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[23873],{
|
||||
|
||||
/***/ 24720:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./src/components/QuestionEditor/MdEditorInForm.tsx ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ h: function() { return /* binding */ MdEditorInForm; },
|
||||
/* harmony export */ x: function() { return /* binding */ RegularInput; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/markdown-editor */ 37570);
|
||||
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.less?modules */ 97195);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/RenderHtml */ 28312);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
var _excluded = ["value", "onChange", "scrollId"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var MdEditorInForm = function MdEditorInForm(_ref) {
|
||||
var value = _ref.value,
|
||||
_onChange = _ref.onChange,
|
||||
scrollId = _ref.scrollId,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
|
||||
id: scrollId || '',
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
// hidetoolBar
|
||||
defaultValue: value,
|
||||
onChange: function onChange(a, b) {
|
||||
console.log("a:", a, b);
|
||||
if (!!(b !== null && b !== void 0 && b.length)) _onChange(a, b);else _onChange(a);
|
||||
}
|
||||
}))
|
||||
});
|
||||
};
|
||||
var RegularInput = function RegularInput(_ref2) {
|
||||
var value = _ref2.value,
|
||||
onChange = _ref2.onChange,
|
||||
placeholder = _ref2.placeholder,
|
||||
_ref2$height = _ref2.height,
|
||||
height = _ref2$height === void 0 ? 140 : _ref2$height,
|
||||
isEdit = _ref2.isEdit;
|
||||
return isEdit ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_markdown_editor__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {
|
||||
watch: true,
|
||||
isFocus: true,
|
||||
height: height,
|
||||
placeholder: placeholder,
|
||||
defaultValue: value,
|
||||
onChange: onChange
|
||||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
|
||||
style: {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
children: value ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_RenderHtml__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder,
|
||||
value: value
|
||||
}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("div", {
|
||||
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.inputBorder, " ").concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.placeholder),
|
||||
children: placeholder
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 78775:
|
||||
/*!******************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Lesson/AddOrEdit/index.tsx ***!
|
||||
\******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js */ 39647);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 59028);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 43418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd */ 71418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 73782);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 57809);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! antd */ 43604);
|
||||
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../index.less?modules */ 47252);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/env */ 92387);
|
||||
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ant-design/icons */ 58670);
|
||||
/* harmony import */ var _components_QuestionEditor_MdEditorInForm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/QuestionEditor/MdEditorInForm */ 24720);
|
||||
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/components/ui-customization */ 73210);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/fetch */ 94255);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["handleFinish", "form", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var AddOrEdit = function AddOrEdit(_ref) {
|
||||
var _fileList$2;
|
||||
var handleFinish = _ref.handleFinish,
|
||||
form = _ref.form,
|
||||
dispatch = _ref.dispatch,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_4___default()(_ref, _excluded);
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)([]),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
fileList = _useState2[0],
|
||||
setFileList = _useState2[1];
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)([]),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
filterSchoolList = _useState4[0],
|
||||
setFilterSchoolList = _useState4[1];
|
||||
var timer = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(null);
|
||||
var fetchIndex = (0,react__WEBPACK_IMPORTED_MODULE_5__.useRef)(1);
|
||||
var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),
|
||||
_useState6 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState5, 2),
|
||||
isLoading = _useState6[0],
|
||||
setIsLoading = _useState6[1];
|
||||
var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(false),
|
||||
_useState8 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState7, 2),
|
||||
fetchLoading = _useState8[0],
|
||||
setFetchLoading = _useState8[1];
|
||||
var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)([]),
|
||||
_useState10 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState9, 2),
|
||||
schoolList = _useState10[0],
|
||||
setSchoolList = _useState10[1];
|
||||
var uploadProps = {
|
||||
fileList: fileList,
|
||||
maxCount: 1,
|
||||
// accept: ".pdf, .docx, .doc, .xlsx, .xls, .ppt, .pptx, .zip,.jpg,.png",
|
||||
accept: "image/*",
|
||||
withCredentials: true,
|
||||
beforeUpload: function beforeUpload(file) {
|
||||
var fileSize = file.size / 1024 / 1024;
|
||||
if (fileSize > 2 || fileSize == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .ZP.error("".concat(file.name, " \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过图片大小限制(2MB)'));
|
||||
return antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.LIST_IGNORE;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
onRemove: function onRemove(file) {
|
||||
setFileList([]);
|
||||
},
|
||||
onChange: function onChange(info) {
|
||||
form.setFieldsValue({
|
||||
cover_id: ''
|
||||
});
|
||||
var statusList = ["uploading", "done", "removed"];
|
||||
if (statusList.includes(info.file.status)) {
|
||||
var _info$fileList;
|
||||
setFileList(info.fileList);
|
||||
form.setFieldsValue({
|
||||
cover_id: (_info$fileList = info.fileList) === null || _info$fileList === void 0 || (_info$fileList = _info$fileList[0]) === null || _info$fileList === void 0 || (_info$fileList = _info$fileList.response) === null || _info$fileList === void 0 ? void 0 : _info$fileList.id
|
||||
});
|
||||
}
|
||||
},
|
||||
action: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.API_SERVER, "/api/attachments.json")
|
||||
};
|
||||
var renderImg = function renderImg() {
|
||||
var _fileList$;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("div", {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.imgUpLoad,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("img", {
|
||||
src: _utils_env__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.API_SERVER + "/api/attachments/" + (fileList === null || fileList === void 0 || (_fileList$ = fileList[0]) === null || _fileList$ === void 0 || (_fileList$ = _fileList$.response) === null || _fileList$ === void 0 ? void 0 : _fileList$.id),
|
||||
alt: "avatar",
|
||||
style: {
|
||||
width: '100%'
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
||||
onClick: function onClick() {
|
||||
setFileList([]);
|
||||
form.setFieldsValue({
|
||||
cover_id: ''
|
||||
});
|
||||
},
|
||||
style: {
|
||||
fontSize: '16px',
|
||||
color: 'red'
|
||||
}
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
var getSchoolOption = /*#__PURE__*/function () {
|
||||
var _ref2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee() {
|
||||
var _res$schools;
|
||||
var res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setIsLoading(true);
|
||||
_context.next = 3;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .ZP)("/api/schools/search.json", {
|
||||
method: "get",
|
||||
params: {
|
||||
display_aliases: true,
|
||||
per_page: 9999
|
||||
}
|
||||
});
|
||||
case 3:
|
||||
res = _context.sent;
|
||||
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
|
||||
setFilterSchoolList(res === null || res === void 0 ? void 0 : res.schools);
|
||||
form.setFieldsValue({
|
||||
school_id: (res === null || res === void 0 || (_res$schools = res.schools) === null || _res$schools === void 0 || (_res$schools = _res$schools.find(function (item) {
|
||||
return item.id == parseInt(form.getFieldValue("school_id"));
|
||||
})) === null || _res$schools === void 0 ? void 0 : _res$schools.name) || form.getFieldValue("school_id")
|
||||
});
|
||||
setIsLoading(false);
|
||||
case 8:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getSchoolOption() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var getSchools = function getSchools(name) {
|
||||
var time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
||||
setFetchLoading(true);
|
||||
clearTimeout(timer.current);
|
||||
timer.current = setTimeout( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2() {
|
||||
var currentFetch, res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
fetchIndex.current += 1;
|
||||
currentFetch = fetchIndex.current;
|
||||
_context2.next = 4;
|
||||
return dispatch({
|
||||
type: 'account/getSchoolOption',
|
||||
payload: {
|
||||
display_aliases: true,
|
||||
keyword: name
|
||||
}
|
||||
});
|
||||
case 4:
|
||||
res = _context2.sent;
|
||||
if (res.status === 0 && fetchIndex.current === currentFetch) {
|
||||
setSchoolList(res === null || res === void 0 ? void 0 : res.schools);
|
||||
setFetchLoading(false);
|
||||
}
|
||||
case 6:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
})), time);
|
||||
};
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {
|
||||
if (props.open) {
|
||||
if (form.getFieldValue("cover_id") && form.getFieldValue("cover")) {
|
||||
setFileList([{
|
||||
response: form.getFieldValue("cover")
|
||||
}]);
|
||||
}
|
||||
getSchoolOption();
|
||||
} else {
|
||||
setFileList([]);
|
||||
}
|
||||
}, [props.open]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
spinning: isLoading,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
size: "large",
|
||||
initialValues: {},
|
||||
layout: "vertical"
|
||||
// onValuesChange={(changedValues: any) => {
|
||||
// setFilterSchoolList(schoolList.filter(item => item.name.includes(changedValues.school_id)));
|
||||
// }}
|
||||
,
|
||||
onFinish: function onFinish(ValueAll) {
|
||||
// ValueAll.school_id = schoolList.find(item => item.name === ValueAll.school_id)?.id;
|
||||
handleFinish(ValueAll);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "name",
|
||||
label: "\u597D\u8BFE\u540D\u79F0",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入好课名称'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0",
|
||||
maxLength: 60,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "creator",
|
||||
label: "\u521B\u5EFA\u8005",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入创建者'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u521B\u5EFA\u8005",
|
||||
maxLength: 60,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "school_id",
|
||||
label: "\u6240\u5C5E\u5355\u4F4D",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"], {
|
||||
showSearch: true,
|
||||
filterOption: false,
|
||||
onSearch: function onSearch(v) {
|
||||
getSchools(v);
|
||||
},
|
||||
loading: fetchLoading,
|
||||
size: "large",
|
||||
style: {
|
||||
width: '100%'
|
||||
},
|
||||
children: schoolList.map(function (item) {
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__["default"].Option, {
|
||||
value: item.id,
|
||||
children: item.name
|
||||
}, item.id);
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "desc",
|
||||
label: "\u7B80\u4ECB",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入好课简介'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_QuestionEditor_MdEditorInForm__WEBPACK_IMPORTED_MODULE_8__/* .MdEditorInForm */ .h, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB",
|
||||
scrollId: '',
|
||||
watch: true,
|
||||
height: 192
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
name: "cover_id",
|
||||
label: "\u5C01\u9762\u56FE\u7247",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请上传好课图片'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
||||
className: _index_less_modules__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.upload,
|
||||
children: fileList !== null && fileList !== void 0 && (_fileList$2 = fileList[0]) !== null && _fileList$2 !== void 0 && (_fileList$2 = _fileList$2.response) !== null && _fileList$2 !== void 0 && _fileList$2.id ? renderImg() : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, uploadProps), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z, {
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_9__/* .CustomButton */ .op, {
|
||||
style: {
|
||||
borderRadius: "2px"
|
||||
},
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("i", {
|
||||
className: "iconfont icon-shangchuan3"
|
||||
}),
|
||||
children: "\u56FE\u7247\u4E0A\u4F20"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_21__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
marginLeft: "16px",
|
||||
color: "#5F6367"
|
||||
},
|
||||
onClick: function onClick(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
},
|
||||
children: "\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20"
|
||||
})]
|
||||
})
|
||||
}))
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "lesson_url",
|
||||
label: "\u8BFE\u7A0B\u94FE\u63A5",
|
||||
rules: [{
|
||||
type: 'url',
|
||||
message: '资源链接格式不正确'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u94FE\u63A5",
|
||||
maxLength: 150
|
||||
})
|
||||
})]
|
||||
})
|
||||
})
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (AddOrEdit);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 40395:
|
||||
/*!********************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Lesson/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__, {
|
||||
"default": function() { return /* binding */ Lesson; }
|
||||
});
|
||||
|
||||
// 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/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(39647);
|
||||
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
||||
// 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__(65659);
|
||||
// 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/spin/index.js + 1 modules
|
||||
var spin = __webpack_require__(71418);
|
||||
// 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/row/index.js
|
||||
var row = __webpack_require__(95237);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(27092);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(8591);
|
||||
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
||||
var ui_customization = __webpack_require__(73210);
|
||||
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
||||
var NoData = __webpack_require__(65119);
|
||||
// EXTERNAL MODULE: ./src/pages/virtualSpaces/Lists/Lesson/index.less?modules
|
||||
var Lessonmodules = __webpack_require__(47252);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(92387);
|
||||
// EXTERNAL MODULE: ./src/utils/util.tsx
|
||||
var util = __webpack_require__(84357);
|
||||
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Lesson/imgs/AddIcon.png
|
||||
var AddIcon_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAABE9JREFUOE+t1OtPU3ccx/HPOac9l5ZSxEuhwKZSIVW0CGFInEEHLhDHpiQjmSLO7cGyZdklS5YtE5Lhhblp2Ngkc/PCbHDIxcUEnOJikMV5WShRJsqlCBRs4XBraUvpac9vcTrHRvDBtt8f8Mrv+37woQghDP7HRz0W7G1SArdMEpQmmaJCFZRvOOB3XuYMu3rn+sPcoP1kdO+VY4f1qTs2Kucl0BTDAvI0iKfXScYt++hlW0qBZPmf8EOwhW4/2ZCnC2eVjMwADKG0qyNeu3G+NjXg7oVpQxYodSwobhFobiEwPRgM2FvLJ/rDLDQAr28aTi7MkvD827cegDfN/KEjVWPmNhurFnhsTgvHG1uT0Nlci6tNfUhM0cFoigRoNSheB0qIQmBqHB8etaHjnhec24mSnS8UL9+2p/gPcOimma+pOC2eEP3CvFA1yrJsMEQEce1iD6JiVLB2uaBgVUhI1kHFyZCDMoJBgusjT+KQRQ968C72PremMH7rnpJHYO2JH8Rjgx4hZYkCn663osfqRlAiiIqNgS4CcA07YO32wiuHQK8PwYLQKfiDNN5qSoQ0OIbiTamFxplgTUWdeNg2KRQk+RExcAP1FgWy1yzAvQkCdUgQQy4JSVFA56ASPo8PPY4pfJDPoWY8Ga0tk9i/Ob3ImL9736OGX1bUiV/1jAvvp4yhv6kd7HwtVmTkwnLlOtLXxmGy7zKWpeVi78EGvP7KBpw9XokUowIjsck4cwk4sCW90Lh9xsmnjteKZd2jwu5UO8ZvDUBWMDCsNACMCqGsiOSnn8DFn0QoWQ084yMYstpAgSAYF4+66yqUvfRsoXFr8cOGjWa++lydeMThF0rXWcE5h9H22xS2bddD0AigaIKJ0QDCF7KQ/DJco258X+mAPlKJqahYVDQLKM3LLFpZsPfByUONZv7UuVrx23vTwtEcGyLpMbRYPBAEGpnZkThzbgK377ixNk2LdU+p0VjvgH1YQuJKASOCHp/Va3AgN73I9HLJX2DV2Wqx3OYRvst1IF7rxsDANJp/diEykoUpSQNCAMgErS0uiKKEVavUiFsmoMM9H0VVPD7Pe+bvYGV9tVjW5xIyDD5kLvFCBT8cAwSinUYM2w9NCIMJZwDDZCk04V5EL2bhV6pRf4dHZ5sX5flZhat3fvKgob3+G+7C5fN3RmVKydAUgUqn9cdsEHzcUooJuJEtfA3O34VgaApqxG3geRrc6FVZ6fh1jEhSQJp0wbTceDDzzdLSWeNw+hd79KhEX3NN+nTd3XfBK4LIyzDCJ8lQ0gRVFzrBszz0i6OhVSu+eHV91HszB2IWWN7Y97FXoj9yOmxoN+/CfmMcfPcDUhTuh2QYBpaIFeiI34iwEM4Vo5EML64zjP2JzgJLf+y5BLApI31daHh3E2vWLYKHEBBQoEFAAkHczimQe9bvCIRrBUIF3FveyVneOCf4X8f78Yv9L/TfAdDhGTPNBgwfAAAAAElFTkSuQmCC";
|
||||
// EXTERNAL MODULE: ./src/pages/virtualSpaces/Lists/Lesson/AddOrEdit/index.tsx
|
||||
var AddOrEdit = __webpack_require__(78775);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Lesson/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["classroomList", "globalSetting", "user", "virtualSpaces", "loading", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var LessonPage = function LessonPage(_ref) {
|
||||
var _menus$find, _LessonsList$data, _LessonsList$data2, _LessonsList$data3, _LessonsList$data4, _LessonsList$data5, _LessonsList$data6;
|
||||
var classroomList = _ref.classroomList,
|
||||
globalSetting = _ref.globalSetting,
|
||||
user = _ref.user,
|
||||
virtualSpaces = _ref.virtualSpaces,
|
||||
loading = _ref.loading,
|
||||
dispatch = _ref.dispatch,
|
||||
props = objectWithoutProperties_default()(_ref, _excluded);
|
||||
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails,
|
||||
menus = virtualSpaces.menus,
|
||||
LessonsList = virtualSpaces.LessonsList;
|
||||
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),
|
||||
fileList = _useState2[0],
|
||||
setFileList = _useState2[1];
|
||||
var _useParams = (0,_umi_production_exports.useParams)(),
|
||||
virtual_spacesId = _useParams.virtual_spacesId;
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
isAddLesson = _useState4[0],
|
||||
setIsAddLesson = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)({
|
||||
page: 1,
|
||||
limit: 15
|
||||
}),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
urlData = _useState6[0],
|
||||
setUrlData = _useState6[1];
|
||||
// const moduleName = menus?.find((e: any) => e.module_url === location.pathname)?.name || '';
|
||||
|
||||
var moduleName = (menus === null || menus === void 0 || (_menus$find = menus.find(function (e) {
|
||||
return e.id == window.localStorage.getItem('vtrsModuleId');
|
||||
})) === null || _menus$find === void 0 ? void 0 : _menus$find.name) || '';
|
||||
var getGoodLessonsList = function getGoodLessonsList() {
|
||||
console.log('1111');
|
||||
window.scrollTo(0, 0);
|
||||
dispatch({
|
||||
type: "virtualSpaces/getGoodLessonsList",
|
||||
payload: objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
||||
virtual_spacesId: virtual_spacesId,
|
||||
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
|
||||
})
|
||||
});
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getGoodLessonsList();
|
||||
}, [urlData]);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
||||
spinning: loading["virtualSpaces/getGoodLessonsList"],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "ml40 mr40",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
|
||||
value: 'all',
|
||||
onChange: function onChange() {},
|
||||
tabBarExtraContent: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
width: 20,
|
||||
src: AddIcon_namespaceObject
|
||||
}),
|
||||
onClick: function onClick() {
|
||||
var _user$userInfo;
|
||||
setIsAddLesson(true);
|
||||
form.setFieldsValue({
|
||||
creator: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.real_name
|
||||
});
|
||||
},
|
||||
children: "\u65B0\u5EFA\u597D\u8BFE"
|
||||
}),
|
||||
dataSource: [{
|
||||
id: 'all',
|
||||
name: moduleName,
|
||||
total: LessonsList === null || LessonsList === void 0 || (_LessonsList$data = LessonsList.data) === null || _LessonsList$data === void 0 ? void 0 : _LessonsList$data.count
|
||||
}]
|
||||
}), (LessonsList === null || LessonsList === void 0 || (_LessonsList$data2 = LessonsList.data) === null || _LessonsList$data2 === void 0 ? void 0 : _LessonsList$data2.count) == 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Lessonmodules/* default */.Z.LessonsList,
|
||||
children: LessonsList === null || LessonsList === void 0 || (_LessonsList$data3 = LessonsList.data) === null || _LessonsList$data3 === void 0 || (_LessonsList$data3 = _LessonsList$data3.list) === null || _LessonsList$data3 === void 0 ? void 0 : _LessonsList$data3.map(function (item, index) {
|
||||
var _item$cover;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Lessonmodules/* default */.Z.LessonsListItem,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/lesson/").concat(item.id, "/detail?leftMenuId=").concat(window.localStorage.getItem('vtrsModuleId')));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
style: {
|
||||
width: 283,
|
||||
height: 177,
|
||||
overflow: "hidden"
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
className: Lessonmodules/* default */.Z.LessonsListItemImg,
|
||||
src: "".concat(env/* default */.Z.API_SERVER).concat(item === null || item === void 0 || (_item$cover = item.cover) === null || _item$cover === void 0 ? void 0 : _item$cover.url)
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
padding: "26px 12px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
placement: "topLeft",
|
||||
title: item.name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "font16 ".concat(Lessonmodules/* default */.Z.Onerow),
|
||||
style: {
|
||||
color: "#333",
|
||||
fontWeight: 600
|
||||
},
|
||||
children: item.name
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "mt10 ".concat(Lessonmodules/* default */.Z.MultiLine),
|
||||
style: {
|
||||
color: "#666"
|
||||
},
|
||||
children: item.desc
|
||||
})]
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
}), (LessonsList === null || LessonsList === void 0 || (_LessonsList$data4 = LessonsList.data) === null || _LessonsList$data4 === void 0 ? void 0 : _LessonsList$data4.count) != 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
className: "mt20 mb20",
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
children: ["\u5171\xA0", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF"
|
||||
},
|
||||
children: (LessonsList === null || LessonsList === void 0 || (_LessonsList$data5 = LessonsList.data) === null || _LessonsList$data5 === void 0 ? void 0 : _LessonsList$data5.count) || 0
|
||||
}), "\xA0\u6761\u6570\u636E"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
showSizeChanger: false,
|
||||
showQuickJumper: true,
|
||||
current: urlData.page,
|
||||
pageSize: urlData.limit,
|
||||
onChange: function onChange(page, limit) {
|
||||
return setUrlData(objectSpread2_default()(objectSpread2_default()({}, urlData), {}, {
|
||||
page: page,
|
||||
limit: limit
|
||||
}));
|
||||
},
|
||||
total: (LessonsList === null || LessonsList === void 0 || (_LessonsList$data6 = LessonsList.data) === null || _LessonsList$data6 === void 0 ? void 0 : _LessonsList$data6.count) || 0
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
|
||||
title: "新建好课",
|
||||
form: form,
|
||||
width: 1200,
|
||||
open: isAddLesson,
|
||||
destroyOnClose: true,
|
||||
centered: true,
|
||||
dispatch: dispatch,
|
||||
onCancel: function onCancel() {
|
||||
form.resetFields();
|
||||
setIsAddLesson(false);
|
||||
},
|
||||
confirmLoading: loading["virtualSpaces/postGoodLessonsList"],
|
||||
onOk: function onOk() {
|
||||
return form.submit();
|
||||
},
|
||||
handleFinish: ( /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(ValueAll) {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return dispatch({
|
||||
type: "virtualSpaces/postGoodLessonsList",
|
||||
payload: objectSpread2_default()(objectSpread2_default()({
|
||||
virtual_spacesId: virtual_spacesId
|
||||
}, ValueAll), {}, {
|
||||
virtual_module_id: window.localStorage.getItem('vtrsModuleId')
|
||||
})
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
message/* default */.ZP.success("创建成功");
|
||||
form.resetFields();
|
||||
setIsAddLesson(false);
|
||||
getGoodLessonsList();
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}())
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Lesson = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var classroomList = _ref3.classroomList,
|
||||
loading = _ref3.loading,
|
||||
globalSetting = _ref3.globalSetting,
|
||||
virtualSpaces = _ref3.virtualSpaces,
|
||||
user = _ref3.user;
|
||||
return {
|
||||
classroomList: classroomList,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.effects,
|
||||
virtualSpaces: virtualSpaces,
|
||||
user: user
|
||||
};
|
||||
})(LessonPage));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 97195:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./src/components/QuestionEditor/index.less?modules ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ __webpack_exports__.Z = ({"wrap":"wrap___ilWvf","deleteIcon":"deleteIcon___JBDG8","keywordTag":"keywordTag___iieCb","questionTitleEditorWrap":"questionTitleEditorWrap___MHB5s","choiceWrap":"choiceWrap___QFkTc","choiceIndex":"choiceIndex___Mr2YO","judgementIndex":"judgementIndex___fUVWK","setAnswerBtn":"setAnswerBtn___Whox5","activeAnswer":"activeAnswer___fGU6Y","activeJudgementAnswer":"activeJudgementAnswer___wJv8P","actionWrapper":"actionWrapper___ERQ7k","addIcon":"addIcon___L9TE0","inputBorder":"inputBorder___Q5tRE","placeholder":"placeholder___p9sFY","blankWrapper":"blankWrapper___nC45e","blankInput":"blankInput___pEHsx","blankInputNumberWrapper":"blankInputNumberWrapper___uEHb0","addBtn":"addBtn___WR5ZI","blankIndex":"blankIndex___x9Pny","baseInputWrapper":"baseInputWrapper___eVsG7","collapseWrapper":"collapseWrapper___ZTysU","panelHeader":"panelHeader___QSN9g","open":"open___B6FU9","close":"close___QX19r","hide":"hide___mn25n"});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 47252:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Lesson/index.less?modules ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ __webpack_exports__.Z = ({"flex_box_center":"flex_box_center___cFjD5","flex_space_between":"flex_space_between___WX1ma","flex_box_vertical_center":"flex_box_vertical_center___iyMsP","flex_box_center_end":"flex_box_center_end___LFV4U","flex_box_column":"flex_box_column___GujFO","Onerow":"Onerow___QKU3O","MultiLine":"MultiLine___ZOVUQ","LessonsList":"LessonsList___lfvK6","LessonsListItem":"LessonsListItem___Opl7o","LessonsListItemImg":"LessonsListItemImg___rvVXp","imgUpLoad":"imgUpLoad___wax6e"});
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
|
After Width: | Height: | Size: 183 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 1.7 MiB |
|
Before Width: | Height: | Size: 1.5 MiB |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue