parent
0542570caa
commit
3bb5dbdb18
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,781 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[54512,64802,34668],{
|
||||
|
||||
/***/ 15997:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@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.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 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.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_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.2.6@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(93319);
|
||||
// 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_3_2_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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1056:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./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.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_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_3_2_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.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(15997);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(99468);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(88831);
|
||||
// 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_3_2_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.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(46820);
|
||||
// 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_3_2_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.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(45659);
|
||||
// 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_3_2_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_3_2_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);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,994 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[84322,15569,64802,10375,34668,54512],{
|
||||
|
||||
/***/ 75769:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CheckOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@ant-design/icons-svg/es/asn/CheckOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CheckOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15997:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@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.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 56762:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 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.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_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.2.6@@ant-design/icons/es/icons/EllipsisOutlined.js + 1 modules
|
||||
var EllipsisOutlined = __webpack_require__(93319);
|
||||
// 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_3_2_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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1056:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./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.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_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_3_2_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.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@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.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@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
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(15997);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(99468);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(88831);
|
||||
// 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_3_2_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.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(46820);
|
||||
// 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_3_2_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.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/Children/toArray.js
|
||||
var toArray = __webpack_require__(45659);
|
||||
// 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_3_2_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_3_2_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);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 92899:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
||||
|
||||
|
||||
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveMotion = {
|
||||
'move-up': {
|
||||
inKeyframes: moveUpIn,
|
||||
outKeyframes: moveUpOut
|
||||
},
|
||||
'move-down': {
|
||||
inKeyframes: moveDownIn,
|
||||
outKeyframes: moveDownOut
|
||||
},
|
||||
'move-left': {
|
||||
inKeyframes: moveLeftIn,
|
||||
outKeyframes: moveLeftOut
|
||||
},
|
||||
'move-right': {
|
||||
inKeyframes: moveRightIn,
|
||||
outKeyframes: moveRightOut
|
||||
}
|
||||
};
|
||||
const initMoveMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = moveMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutCirc
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInOutCirc
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,949 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[96300],{
|
||||
|
||||
/***/ 75769:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_CheckOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@ant-design/icons-svg/es/asn/CheckOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_CheckOutlined = (CheckOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/CheckOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var CheckOutlined_CheckOutlined = function CheckOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_CheckOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_CheckOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(CheckOutlined_CheckOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 73208:
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/components/NoData/index.tsx ***!
|
||||
\*****************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var noData = function noData(_ref) {
|
||||
var img = _ref.img,
|
||||
_ref$buttonProps = _ref.buttonProps,
|
||||
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
||||
_ref$styles = _ref.styles,
|
||||
styles = _ref$styles === void 0 ? {} : _ref$styles,
|
||||
customText = _ref.customText,
|
||||
ButtonText = _ref.ButtonText,
|
||||
ButtonClick = _ref.ButtonClick,
|
||||
Buttonclass = _ref.Buttonclass,
|
||||
ButtonTwo = _ref.ButtonTwo,
|
||||
imgStyles = _ref.imgStyles,
|
||||
_ref$loading = _ref.loading,
|
||||
loading = _ref$loading === void 0 ? false : _ref$loading;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
|
||||
className: "tc animated fadeIn",
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
|
||||
color: '#999',
|
||||
margin: '100px auto',
|
||||
visibility: loading ? 'hidden' : 'visible'
|
||||
}), styles),
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
|
||||
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
|
||||
className: "mt20 font14",
|
||||
children: customText || '暂时还没有相关数据哦!'
|
||||
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
className: Buttonclass,
|
||||
onClick: ButtonClick
|
||||
}, buttonProps), {}, {
|
||||
children: ButtonText
|
||||
})), ButtonTwo && ButtonTwo]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (noData);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4980:
|
||||
/*!******************************************************!*\
|
||||
!*** ./src/layouts/CoreDetail/index.tsx + 4 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 */ CoreDetail; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectDestructuringEmpty.js
|
||||
var objectDestructuringEmpty = __webpack_require__(27223);
|
||||
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
|
||||
// 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__(45295);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/layout/index.js
|
||||
var layout = __webpack_require__(44000);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(10574);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(39343);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(26801);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// 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/row/index.js
|
||||
var row = __webpack_require__(95237);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
||||
var col = __webpack_require__(43604);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
||||
var es_modal = __webpack_require__(43418);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(8591);
|
||||
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopBanner/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var TopBannermodules = ({"Bg":"Bg___y3IeD","TitleStyle":"TitleStyle___n0xLC"});
|
||||
// EXTERNAL MODULE: ./src/pages/CoreCurriculum/components/AddOrEditCore/index.tsx
|
||||
var AddOrEditCore = __webpack_require__(65154);
|
||||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||||
var authority = __webpack_require__(13186);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopBanner/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var TopBanner = function TopBanner(_ref) {
|
||||
var coreCurriculum = _ref.coreCurriculum,
|
||||
loading = _ref.loading,
|
||||
user = _ref.user,
|
||||
dispatch = _ref.dispatch;
|
||||
var CoreDetail = coreCurriculum.CoreDetail;
|
||||
var _Form$useForm = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var params = (0,_umi_production_exports.useParams)();
|
||||
var _useState = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
isAddCore = _useState2[0],
|
||||
setIsAddCore = _useState2[1];
|
||||
var getCoreSubjectDetail = function getCoreSubjectDetail() {
|
||||
var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : params === null || params === void 0 ? void 0 : params.coreId;
|
||||
dispatch({
|
||||
type: "coreCurriculum/getCoreSubjectDetail",
|
||||
payload: {
|
||||
id: id
|
||||
}
|
||||
});
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
(params === null || params === void 0 ? void 0 : params.coreId) && getCoreSubjectDetail();
|
||||
}, [params === null || params === void 0 ? void 0 : params.coreId]);
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
form.setFieldsValue(objectSpread2_default()({}, CoreDetail));
|
||||
}, [CoreDetail]);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "".concat(TopBannermodules.Bg),
|
||||
style: {
|
||||
backgroundImage: "url(".concat(__webpack_require__(/*! ./b.png */ 20098), ")")
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
style: {
|
||||
width: 1200,
|
||||
height: "100%",
|
||||
margin: "0 auto",
|
||||
position: "relative",
|
||||
color: "#fff"
|
||||
},
|
||||
align: "middle",
|
||||
justify: "center",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
className: TopBannermodules.TitleStyle,
|
||||
children: CoreDetail === null || CoreDetail === void 0 ? void 0 : CoreDetail.name
|
||||
}), (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
style: {
|
||||
position: "absolute",
|
||||
top: "10px",
|
||||
right: "0px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
className: "current primary-hover",
|
||||
onClick: function onClick() {
|
||||
return setIsAddCore(true);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-bianji-moren mr5"
|
||||
}), "\u7F16\u8F91"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
className: "current delete-hover ml20",
|
||||
onClick: function onClick() {
|
||||
var modal = es_modal/* default */.Z.confirm({
|
||||
icon: null,
|
||||
title: '提示',
|
||||
content: "\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u300A".concat(CoreDetail === null || CoreDetail === void 0 ? void 0 : CoreDetail.name, "\u300B\u6838\u5FC3\u8BFE\u7A0B\uFF1F"),
|
||||
okText: '确定',
|
||||
cancelText: '取消',
|
||||
onOk: function () {
|
||||
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return dispatch({
|
||||
type: 'coreCurriculum/delCoreSubjects',
|
||||
payload: {
|
||||
id: params === null || params === void 0 ? void 0 : params.coreId
|
||||
}
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
message/* default */.ZP.success("删除成功");
|
||||
modal.destroy();
|
||||
_umi_production_exports.history.push("/core");
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
function onOk() {
|
||||
return _onOk.apply(this, arguments);
|
||||
}
|
||||
return onOk;
|
||||
}(),
|
||||
onCancel: function onCancel() {
|
||||
modal.destroy();
|
||||
}
|
||||
});
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-shanchutimu mr5"
|
||||
}), "\u5220\u9664"]
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEditCore/* default */.Z, {
|
||||
title: "编辑核心课程",
|
||||
form: form,
|
||||
open: isAddCore,
|
||||
dispatch: true,
|
||||
onCancel: function onCancel() {
|
||||
form.resetFields();
|
||||
setIsAddCore(false);
|
||||
},
|
||||
confirmLoading: !!loading['coreCurriculum/putCoreSubjects'],
|
||||
onOk: function onOk() {
|
||||
return form.submit();
|
||||
},
|
||||
handleFinish: /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(ValueAll) {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return dispatch({
|
||||
type: 'coreCurriculum/putCoreSubjects',
|
||||
payload: objectSpread2_default()(objectSpread2_default()({}, ValueAll), {}, {
|
||||
id: params === null || params === void 0 ? void 0 : params.coreId
|
||||
})
|
||||
});
|
||||
case 2:
|
||||
res = _context2.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
message/* default */.ZP.success("更新成功");
|
||||
setIsAddCore(false);
|
||||
getCoreSubjectDetail();
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}()
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var CoreDetail_TopBanner = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var user = _ref3.user,
|
||||
loading = _ref3.loading,
|
||||
coreCurriculum = _ref3.coreCurriculum;
|
||||
return {
|
||||
user: user,
|
||||
coreCurriculum: coreCurriculum,
|
||||
loading: loading
|
||||
};
|
||||
})(TopBanner));
|
||||
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopMenus/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var TopMenusmodules = ({"TopMenusDiv":"TopMenusDiv___rkFru","SrollStage":"SrollStage___jjMvw","StageItem":"StageItem___P6AAb","StageItemActive":"StageItemActive___juQir"});
|
||||
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
||||
var ui_customization = __webpack_require__(89200);
|
||||
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/TopMenus/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Page = function Page(_ref) {
|
||||
var _TopMenus$find2;
|
||||
var coreCurriculum = _ref.coreCurriculum,
|
||||
dispatch = _ref.dispatch;
|
||||
var coreCE = coreCurriculum.coreCE;
|
||||
var _useState = (0,_react_17_0_2_react.useState)("overview"),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
id = _useState2[0],
|
||||
setId = _useState2[1];
|
||||
var params = (0,_umi_production_exports.useParams)();
|
||||
var location = (0,_umi_production_exports.useLocation)();
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
var _TopMenus$find;
|
||||
setId(TopMenus === null || TopMenus === void 0 || (_TopMenus$find = TopMenus.find(function (e) {
|
||||
return location.pathname.indexOf("/core/".concat(params === null || params === void 0 ? void 0 : params.coreId, "/").concat(e.type)) > -1;
|
||||
})) === null || _TopMenus$find === void 0 ? void 0 : _TopMenus$find.type);
|
||||
}, [location.pathname]);
|
||||
var tabsMenu = [{
|
||||
id: 'CN',
|
||||
name: '中文'
|
||||
}, {
|
||||
id: 'EN',
|
||||
name: 'English'
|
||||
}];
|
||||
var TopMenus = [{
|
||||
name: "课程概览",
|
||||
type: "overview",
|
||||
topUseEidt: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* SuperiorTabs */.tp, {
|
||||
className: "ml20",
|
||||
dataSource: tabsMenu,
|
||||
value: coreCE,
|
||||
onChange: function onChange(id) {
|
||||
dispatch({
|
||||
type: 'coreCurriculum/save',
|
||||
payload: {
|
||||
coreCE: id
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}, {
|
||||
name: "知识图谱",
|
||||
type: "knowledge",
|
||||
topUseEidt: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
className: "ml20",
|
||||
align: "middle",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
style: {
|
||||
borderRadius: "4px"
|
||||
},
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: ["新建模块"]
|
||||
}
|
||||
});
|
||||
},
|
||||
children: "\u65B0\u5EFA\u6A21\u5757"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
style: {
|
||||
borderRadius: "4px"
|
||||
},
|
||||
className: "ml20",
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: ["新增知识点"]
|
||||
}
|
||||
});
|
||||
},
|
||||
children: "\u65B0\u589E\u77E5\u8BC6\u70B9"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
style: {
|
||||
borderRadius: "4px"
|
||||
},
|
||||
className: "ml20",
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: ["批量导入"]
|
||||
}
|
||||
});
|
||||
},
|
||||
children: "\u6279\u91CF\u5BFC\u5165"
|
||||
})]
|
||||
})
|
||||
}, {
|
||||
name: "课程教案",
|
||||
type: "plan",
|
||||
topUseEidt: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
style: {
|
||||
borderRadius: "4px"
|
||||
},
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: ["新建文件夹"]
|
||||
}
|
||||
});
|
||||
},
|
||||
children: "\u65B0\u5EFA\u6587\u4EF6\u5939"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
className: "ml20",
|
||||
style: {
|
||||
borderRadius: "4px"
|
||||
},
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: ["上传教案"]
|
||||
}
|
||||
});
|
||||
},
|
||||
children: "\u4E0A\u4F20\u6559\u6848"
|
||||
})]
|
||||
})
|
||||
}, {
|
||||
name: "虚拟教研室",
|
||||
type: "virtroom",
|
||||
topUseEidt: /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomButton */.op, {
|
||||
style: {
|
||||
borderRadius: "4px"
|
||||
},
|
||||
onClick: function onClick() {
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: ["编辑虚拟教研室"]
|
||||
}
|
||||
});
|
||||
},
|
||||
children: "\u7F16\u8F91\u865A\u62DF\u6559\u7814\u5BA4"
|
||||
})
|
||||
}];
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
className: TopMenusmodules.TopMenusDiv,
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
||||
className: TopMenusmodules.SrollStage,
|
||||
children: TopMenus === null || TopMenus === void 0 ? void 0 : TopMenus.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
||||
className: "".concat(id === (item === null || item === void 0 ? void 0 : item.type) && TopMenusmodules.StageItemActive, " ").concat(TopMenusmodules.StageItem),
|
||||
to: "/core/".concat(params === null || params === void 0 ? void 0 : params.coreId, "/").concat(item.type),
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
}, index);
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
||||
align: "middle",
|
||||
children: TopMenus === null || TopMenus === void 0 || (_TopMenus$find2 = TopMenus.find(function (item) {
|
||||
return item.type === id;
|
||||
})) === null || _TopMenus$find2 === void 0 ? void 0 : _TopMenus$find2.topUseEidt
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var TopMenus = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var coreCurriculum = _ref2.coreCurriculum;
|
||||
return {
|
||||
coreCurriculum: coreCurriculum
|
||||
};
|
||||
})(Page));
|
||||
;// CONCATENATED MODULE: ./src/layouts/CoreDetail/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var CoreDetail_Page = function Page(_ref) {
|
||||
objectDestructuringEmpty_default()(_ref);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
background: "#fff"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(CoreDetail_TopBanner, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(TopMenus, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(layout/* default */.Z.Content, {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Outlet, {})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var CoreDetail = (CoreDetail_Page);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 65154:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/pages/CoreCurriculum/components/AddOrEditCore/index.tsx ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js */ 27161);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_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_7__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ 6557);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 43418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 1056);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/env */ 78130);
|
||||
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ant-design/icons */ 48796);
|
||||
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/ui-customization */ 89200);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __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_test5_node_modules_babel_runtime_7_23_2_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_test5_node_modules_babel_runtime_7_23_2_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_7__/* ["default"] */ .ZP.error("".concat(file.name, " \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过图片大小限制(2MB)'));
|
||||
return antd__WEBPACK_IMPORTED_MODULE_8__/* ["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_4__/* ["default"] */ .Z.API_SERVER, "/api/attachments.json")
|
||||
};
|
||||
var renderImg = function renderImg() {
|
||||
var _fileList$;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
||||
align: "middle",
|
||||
justify: "center",
|
||||
style: {
|
||||
position: "relative",
|
||||
width: 400,
|
||||
backgroundColor: "#f4f3f4"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("img", {
|
||||
src: _utils_env__WEBPACK_IMPORTED_MODULE_4__/* ["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_6__.jsx)("div", {
|
||||
style: {
|
||||
position: "absolute",
|
||||
right: "-6px",
|
||||
top: "-6px",
|
||||
cursor: "pointer",
|
||||
width: 16,
|
||||
height: 16,
|
||||
borderRadius: "50%",
|
||||
backgroundColor: "#fff"
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__/* ["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) {
|
||||
if (form.getFieldValue("cover_id") && form.getFieldValue("cover")) {
|
||||
setFileList([{
|
||||
response: form.getFieldValue("cover")
|
||||
}]);
|
||||
}
|
||||
} else {
|
||||
setFileList([]);
|
||||
}
|
||||
}, [props.open]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
destroyOnClose: true,
|
||||
centered: true,
|
||||
width: 1200,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
size: "large",
|
||||
initialValues: {},
|
||||
layout: "vertical",
|
||||
onValuesChange: function onValuesChange(changedValues) {},
|
||||
onFinish: handleFinish,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "name",
|
||||
label: "\u8BFE\u7A0B\u540D\u79F0",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入课程名称'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0",
|
||||
maxLength: 50,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "adminer",
|
||||
label: "\u8D1F\u8D23\u4EBA",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入负责人'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA",
|
||||
maxLength: 10,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "leading_unit",
|
||||
label: "\u7275\u5934\u5355\u4F4D",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入牵头单位'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u7275\u5934\u5355\u4F4D",
|
||||
maxLength: 20,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
name: "cover_id",
|
||||
label: "\u5217\u8868\u5C01\u9762\u56FE",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请上传列表封面图'
|
||||
}],
|
||||
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_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, uploadProps), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_5__/* .CustomButton */ .op, {
|
||||
style: {
|
||||
borderRadius: "2px"
|
||||
},
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("i", {
|
||||
className: "iconfont icon-shangchuan3"
|
||||
}),
|
||||
children: "\u4E0A\u4F20\u56FE\u7247"
|
||||
})
|
||||
}))
|
||||
})]
|
||||
})
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (AddOrEdit);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 56762:
|
||||
/*!************************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
|
||||
\************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
||||
|
||||
function useForceUpdate() {
|
||||
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
||||
return forceUpdate;
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44000:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/layout/index.js ***!
|
||||
\**********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./layout */ 84966);
|
||||
/* harmony import */ var _Sider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Sider */ 37534);
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
const Layout = _layout__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .ZP;
|
||||
Layout.Header = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Header */ .h4;
|
||||
Layout.Footer = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Footer */ .$_;
|
||||
Layout.Content = _layout__WEBPACK_IMPORTED_MODULE_0__/* .Content */ .VY;
|
||||
Layout.Sider = _Sider__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z;
|
||||
/* harmony default export */ __webpack_exports__.Z = (Layout);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 92899:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 67937);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
||||
|
||||
|
||||
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveMotion = {
|
||||
'move-up': {
|
||||
inKeyframes: moveUpIn,
|
||||
outKeyframes: moveUpOut
|
||||
},
|
||||
'move-down': {
|
||||
inKeyframes: moveDownIn,
|
||||
outKeyframes: moveDownOut
|
||||
},
|
||||
'move-left': {
|
||||
inKeyframes: moveLeftIn,
|
||||
outKeyframes: moveLeftOut
|
||||
},
|
||||
'move-right': {
|
||||
inKeyframes: moveRightIn,
|
||||
outKeyframes: moveRightOut
|
||||
}
|
||||
};
|
||||
const initMoveMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = moveMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutCirc
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInOutCirc
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 20098:
|
||||
/*!************************************************!*\
|
||||
!*** ./src/layouts/CoreDetail/TopBanner/b.png ***!
|
||||
\************************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "static/b.70f32195.png";
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,56 @@
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/layouts/CoreDetail/TopBanner/index.less?modules ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.Bg___y3IeD {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
background: no-repeat;
|
||||
background-image: url(./static/b.70f32195.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.TitleStyle___n0xLC {
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 5px;
|
||||
text-shadow: 0px 2px 4px #06125D;
|
||||
}
|
||||
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/layouts/CoreDetail/TopMenus/index.less?modules ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.TopMenusDiv___rkFru {
|
||||
width: 1200px;
|
||||
margin: 30px auto 0px;
|
||||
border-bottom: 1px solid #EAEFFA;
|
||||
}
|
||||
.SrollStage___jjMvw {
|
||||
flex: 1 1;
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
overflow-x: auto;
|
||||
}
|
||||
.SrollStage___jjMvw .StageItem___P6AAb {
|
||||
padding: 9px 26px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
margin-right: 2px;
|
||||
background: #FAFAFA;
|
||||
border-radius: 4px 4px 0px 0px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.SrollStage___jjMvw .StageItemActive___juQir {
|
||||
background-color: #EAEFFA;
|
||||
color: #3061D0;
|
||||
}
|
||||
.SrollStage___jjMvw .StageItem___P6AAb:last-child {
|
||||
margin-right: 0px;
|
||||
}
|
||||
.SrollStage___jjMvw .StageItem___P6AAb:hover {
|
||||
background-color: #EAEFFA;
|
||||
color: #3061D0;
|
||||
}
|
||||
.SrollStage___jjMvw::-webkit-scrollbar {
|
||||
height: 0px;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -0,0 +1,594 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[45950],{
|
||||
|
||||
/***/ 73208:
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/components/NoData/index.tsx ***!
|
||||
\*****************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var noData = function noData(_ref) {
|
||||
var img = _ref.img,
|
||||
_ref$buttonProps = _ref.buttonProps,
|
||||
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
||||
_ref$styles = _ref.styles,
|
||||
styles = _ref$styles === void 0 ? {} : _ref$styles,
|
||||
customText = _ref.customText,
|
||||
ButtonText = _ref.ButtonText,
|
||||
ButtonClick = _ref.ButtonClick,
|
||||
Buttonclass = _ref.Buttonclass,
|
||||
ButtonTwo = _ref.ButtonTwo,
|
||||
imgStyles = _ref.imgStyles,
|
||||
_ref$loading = _ref.loading,
|
||||
loading = _ref$loading === void 0 ? false : _ref$loading;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
|
||||
className: "tc animated fadeIn",
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
|
||||
color: '#999',
|
||||
margin: '100px auto',
|
||||
visibility: loading ? 'hidden' : 'visible'
|
||||
}), styles),
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
|
||||
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
|
||||
className: "mt20 font14",
|
||||
children: customText || '暂时还没有相关数据哦!'
|
||||
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
className: Buttonclass,
|
||||
onClick: ButtonClick
|
||||
}, buttonProps), {}, {
|
||||
children: ButtonText
|
||||
})), ButtonTwo && ButtonTwo]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (noData);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 71433:
|
||||
/*!**************************************************!*\
|
||||
!*** ./src/pages/CoreCurriculum/Index/index.tsx ***!
|
||||
\**************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 45295);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 43604);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 3113);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd */ 71418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! antd */ 41867);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var _index_less_modules__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./index.less?modules */ 4221);
|
||||
/* harmony import */ var _components_AddOrEditCore__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/AddOrEditCore */ 65154);
|
||||
/* harmony import */ var _components_CoreLists__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/CoreLists */ 55270);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/env */ 78130);
|
||||
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/authority */ 13186);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Page = function Page(_ref) {
|
||||
var _globalSetting$settin;
|
||||
var coreCurriculum = _ref.coreCurriculum,
|
||||
dispatch = _ref.dispatch,
|
||||
loading = _ref.loading,
|
||||
globalSetting = _ref.globalSetting;
|
||||
var CoreSubjects = coreCurriculum.CoreSubjects;
|
||||
var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.useForm(),
|
||||
_Form$useForm2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
isAddCore = _useState2[0],
|
||||
setIsAddCore = _useState2[1];
|
||||
// const [searchInput, setSearchInput] = useState<string>("");
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)({
|
||||
page: 1,
|
||||
limit: 10
|
||||
}),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
urlData = _useState4[0],
|
||||
setUrlData = _useState4[1];
|
||||
// const handleSearchInput = (e: any) => {
|
||||
// // setSearchInput(e.target.value);
|
||||
// console.log(e.target.value || searchInput);
|
||||
|
||||
// }
|
||||
var getData = function getData() {
|
||||
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : urlData;
|
||||
dispatch({
|
||||
type: 'coreCurriculum/getCoreSubjects',
|
||||
payload: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, data)
|
||||
});
|
||||
};
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
getData();
|
||||
}, [urlData]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)("section", {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
||||
className: "".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.Bg),
|
||||
style: {
|
||||
width: "100%",
|
||||
height: 240,
|
||||
backgroundImage: "url(".concat(_utils_env__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.IMG_SERVER, "/").concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.core_banner_url, ")")
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
style: {
|
||||
width: 1200,
|
||||
height: "100%",
|
||||
margin: "0 auto"
|
||||
},
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
wrap: false,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
||||
style: {
|
||||
color: "#fff",
|
||||
fontSize: "30px",
|
||||
letterSpacing: "5px"
|
||||
},
|
||||
children: "\u6838\u5FC3\u8BFE\u7A0B"
|
||||
}), (0,_utils_authority__WEBPACK_IMPORTED_MODULE_10__/* .isSuperAdmins */ .Ny)() && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .ZP, {
|
||||
className: "mt25 ".concat(_index_less_modules__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z.DivDownPlay),
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("i", {
|
||||
className: "iconfont icon-icon_xinyong_xianxing_jijin-249"
|
||||
}),
|
||||
onClick: function onClick() {
|
||||
setIsAddCore(true);
|
||||
},
|
||||
children: "\u65B0\u5EFA\u6838\u5FC3\u8BFE\u7A0B"
|
||||
})]
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
spinning: !!loading['coreCurriculum/getCoreSubjects'],
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: "40px auto 0"
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
gutter: [16, 24],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_CoreLists__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
||||
data: (CoreSubjects === null || CoreSubjects === void 0 ? void 0 : CoreSubjects.list) || []
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: "20px auto"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
||||
children: ["\u5171\xA0", /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF"
|
||||
},
|
||||
children: (CoreSubjects === null || CoreSubjects === void 0 ? void 0 : CoreSubjects.count) || 0
|
||||
}), "\xA0\u6761\u6570\u636E"]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(antd__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
showSizeChanger: false,
|
||||
showQuickJumper: true,
|
||||
current: urlData.page,
|
||||
pageSize: urlData.limit,
|
||||
onChange: function onChange(page, limit) {
|
||||
return setUrlData(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, urlData), {}, {
|
||||
page: page,
|
||||
limit: limit
|
||||
}));
|
||||
},
|
||||
total: (CoreSubjects === null || CoreSubjects === void 0 ? void 0 : CoreSubjects.count) || 0
|
||||
})
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_AddOrEditCore__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {
|
||||
title: "新建核心课程",
|
||||
form: form,
|
||||
open: isAddCore,
|
||||
dispatch: true,
|
||||
onCancel: function onCancel() {
|
||||
form.resetFields();
|
||||
setIsAddCore(false);
|
||||
},
|
||||
confirmLoading: !!loading['coreCurriculum/postCoreSubjects'],
|
||||
onOk: function onOk() {
|
||||
return form.submit();
|
||||
},
|
||||
handleFinish: /*#__PURE__*/function () {
|
||||
var _ref2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(ValueAll) {
|
||||
var res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return dispatch({
|
||||
type: 'coreCurriculum/postCoreSubjects',
|
||||
payload: ValueAll
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .ZP.success("添加成功");
|
||||
setIsAddCore(false);
|
||||
getData();
|
||||
}
|
||||
case 4:
|
||||
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_5__.connect)(function (_ref3) {
|
||||
var user = _ref3.user,
|
||||
loading = _ref3.loading,
|
||||
globalSetting = _ref3.globalSetting,
|
||||
coreCurriculum = _ref3.coreCurriculum;
|
||||
return {
|
||||
user: user,
|
||||
loading: loading.effects,
|
||||
globalSetting: globalSetting,
|
||||
coreCurriculum: coreCurriculum
|
||||
};
|
||||
})(Page));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 65154:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./src/pages/CoreCurriculum/components/AddOrEditCore/index.tsx ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js */ 27161);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_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_7__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ 6557);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 43418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 1056);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/env */ 78130);
|
||||
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ant-design/icons */ 48796);
|
||||
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/ui-customization */ 89200);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__ = __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_test5_node_modules_babel_runtime_7_23_2_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_test5_node_modules_babel_runtime_7_23_2_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_7__/* ["default"] */ .ZP.error("".concat(file.name, " \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过图片大小限制(2MB)'));
|
||||
return antd__WEBPACK_IMPORTED_MODULE_8__/* ["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_4__/* ["default"] */ .Z.API_SERVER, "/api/attachments.json")
|
||||
};
|
||||
var renderImg = function renderImg() {
|
||||
var _fileList$;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
||||
align: "middle",
|
||||
justify: "center",
|
||||
style: {
|
||||
position: "relative",
|
||||
width: 400,
|
||||
backgroundColor: "#f4f3f4"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("img", {
|
||||
src: _utils_env__WEBPACK_IMPORTED_MODULE_4__/* ["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_6__.jsx)("div", {
|
||||
style: {
|
||||
position: "absolute",
|
||||
right: "-6px",
|
||||
top: "-6px",
|
||||
cursor: "pointer",
|
||||
width: 16,
|
||||
height: 16,
|
||||
borderRadius: "50%",
|
||||
backgroundColor: "#fff"
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_10__/* ["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) {
|
||||
if (form.getFieldValue("cover_id") && form.getFieldValue("cover")) {
|
||||
setFileList([{
|
||||
response: form.getFieldValue("cover")
|
||||
}]);
|
||||
}
|
||||
} else {
|
||||
setFileList([]);
|
||||
}
|
||||
}, [props.open]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
destroyOnClose: true,
|
||||
centered: true,
|
||||
width: 1200,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
size: "large",
|
||||
initialValues: {},
|
||||
layout: "vertical",
|
||||
onValuesChange: function onValuesChange(changedValues) {},
|
||||
onFinish: handleFinish,
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "name",
|
||||
label: "\u8BFE\u7A0B\u540D\u79F0",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入课程名称'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u8BFE\u7A0B\u540D\u79F0",
|
||||
maxLength: 50,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "adminer",
|
||||
label: "\u8D1F\u8D23\u4EBA",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入负责人'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u8D1F\u8D23\u4EBA",
|
||||
maxLength: 10,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
htmlFor: null,
|
||||
name: "leading_unit",
|
||||
label: "\u7275\u5934\u5355\u4F4D",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入牵头单位'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u7275\u5934\u5355\u4F4D",
|
||||
maxLength: 20,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.Item, {
|
||||
name: "cover_id",
|
||||
label: "\u5217\u8868\u5C01\u9762\u56FE",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请上传列表封面图'
|
||||
}],
|
||||
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_6__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, uploadProps), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_5__/* .CustomButton */ .op, {
|
||||
style: {
|
||||
borderRadius: "2px"
|
||||
},
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_6__.jsx)("i", {
|
||||
className: "iconfont icon-shangchuan3"
|
||||
}),
|
||||
children: "\u4E0A\u4F20\u56FE\u7247"
|
||||
})
|
||||
}))
|
||||
})]
|
||||
})
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (AddOrEdit);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 55270:
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./src/pages/CoreCurriculum/components/CoreLists/index.tsx ***!
|
||||
\*****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js */ 27161);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! antd */ 43604);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! antd */ 6848);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var _Index_index_less_modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../Index/index.less?modules */ 4221);
|
||||
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/util */ 22739);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/env */ 78130);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! classnames */ 12124);
|
||||
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_6__);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
var _excluded = ["dispatch", "data", "className", "style"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Page = function Page(_ref) {
|
||||
var dispatch = _ref.dispatch,
|
||||
data = _ref.data,
|
||||
className = _ref.className,
|
||||
style = _ref.style,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.Fragment, {
|
||||
children: data === null || data === void 0 ? void 0 : data.map(function (item, index) {
|
||||
var _item$cover, _item$cover2;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
|
||||
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(_Index_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.CoreItem, className),
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, style),
|
||||
onClick: function onClick() {
|
||||
return (0,_utils_util__WEBPACK_IMPORTED_MODULE_4__/* .openNewWindow */ .xg)("/core/".concat(item === null || item === void 0 ? void 0 : item.id));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
|
||||
className: _Index_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.img,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("img", {
|
||||
src: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z.API_SERVER).concat(item === null || item === void 0 || (_item$cover = item.cover) === null || _item$cover === void 0 ? void 0 : _item$cover.url),
|
||||
alt: item === null || item === void 0 || (_item$cover2 = item.cover) === null || _item$cover2 === void 0 ? void 0 : _item$cover2.title
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)("div", {
|
||||
style: {
|
||||
margin: "30px 12px 20px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)(antd__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
||||
placement: "topLeft",
|
||||
title: item === null || item === void 0 ? void 0 : item.name,
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("div", {
|
||||
className: "font16 ".concat(_Index_index_less_modules__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.Onerow),
|
||||
style: {
|
||||
color: "#000",
|
||||
fontWeight: 600
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
||||
className: "mt20 font14",
|
||||
style: {
|
||||
color: "#666"
|
||||
},
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("i", {
|
||||
className: "iconfont icon-jiaoshishu mr5 font14"
|
||||
}), item === null || item === void 0 ? void 0 : item.adminer]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_7__.jsx)("i", {
|
||||
className: "iconfont icon-danwei1 mr5 font14"
|
||||
}), item === null || item === void 0 ? void 0 : item.leading_unit]
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})
|
||||
}, index);
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (Page);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4221:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./src/pages/CoreCurriculum/Index/index.less?modules ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ __webpack_exports__.Z = ({"Onerow":"Onerow___rEE1I","Bg":"Bg___Dn6ug","DivDownPlay":"DivDownPlay___KGY4k","SearchInput":"SearchInput___rSGs4","CoreItem":"CoreItem___g9fqX","img":"img___EYzkb"});
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,53 @@
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/CoreCurriculum/Index/index.less?modules ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.Onerow___rEE1I {
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.Bg___Dn6ug {
|
||||
background: url(./static/defBanner.2a46cea2.png);
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.DivDownPlay___KGY4k,
|
||||
.SearchInput___rSGs4 {
|
||||
background: rgba(246, 247, 249, 0.2);
|
||||
box-shadow: inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
color: #fff;
|
||||
}
|
||||
.SearchInput___rSGs4 {
|
||||
width: 360px;
|
||||
height: 38px;
|
||||
border-radius: 19px;
|
||||
padding: 12px 20px;
|
||||
}
|
||||
.SearchInput___rSGs4 [class~="ant-input"] {
|
||||
color: #fff;
|
||||
background: rgba(246, 247, 249, 0);
|
||||
}
|
||||
.SearchInput___rSGs4 [class~="ant-input"]::-webkit-input-placeholder {
|
||||
color: #fff;
|
||||
}
|
||||
.CoreItem___g9fqX {
|
||||
width: 283px;
|
||||
box-shadow: 0px 1px 4px 0px #d6dae1;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
}
|
||||
.CoreItem___g9fqX:hover img {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.CoreItem___g9fqX .img___EYzkb {
|
||||
overflow: hidden;
|
||||
height: 177px;
|
||||
}
|
||||
.CoreItem___g9fqX .img___EYzkb img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,401 @@
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/CoreCurriculum/Lists/Plan/index.less?modules ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.MC1200___Fpden {
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.rowHead___KEZ91 {
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 40px;
|
||||
color: #5F6368;
|
||||
background: #F6F7F9;
|
||||
padding: 0px 34px;
|
||||
}
|
||||
.rowHead___KEZ91 .title___z8HJ6 {
|
||||
flex: 1 1;
|
||||
font-size: 14px;
|
||||
}
|
||||
.rowHead___KEZ91 .type___IyoH8 {
|
||||
width: 94px;
|
||||
text-align: left;
|
||||
}
|
||||
.rowHead___KEZ91 .action___jDpeE {
|
||||
width: 145px;
|
||||
text-align: right;
|
||||
}
|
||||
.tree____ALWP {
|
||||
width: 1200px;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tree____ALWP .img___pfSp6 {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
.tree____ALWP .img___pfSp6::before {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
top: 11px;
|
||||
right: -8px;
|
||||
width: 6px;
|
||||
height: 0px;
|
||||
border-bottom: 1px solid #ededed;
|
||||
content: '';
|
||||
}
|
||||
.tree____ALWP .ant-tree-node-content-wrapper {
|
||||
padding-right: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tree____ALWP .ant-tree-switcher {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 26px;
|
||||
}
|
||||
.tree____ALWP .ant-tree-indent-unit {
|
||||
width: 29px;
|
||||
}
|
||||
.tree____ALWP .ant-tree-indent-unit::before {
|
||||
right: 15px;
|
||||
border-right: 1px solid #ededed !important;
|
||||
}
|
||||
.tree____ALWP .ant-tree-switcher-leaf-line::before {
|
||||
right: 12px;
|
||||
border-right: 1px solid #ededed;
|
||||
}
|
||||
.tree____ALWP .ant-tree-switcher-leaf-line::after {
|
||||
height: 21px;
|
||||
width: 11px;
|
||||
border-bottom: 1px solid #ededed;
|
||||
}
|
||||
.tree____ALWP .ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {
|
||||
height: 21px !important;
|
||||
border-right: 1px solid #ededed;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 34px;
|
||||
margin-right: 34px;
|
||||
cursor: default;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .titleWrap___KZ1Cp {
|
||||
flex: 1 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .titleWrap___KZ1Cp > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .titleWrap___KZ1Cp > span img {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .titleWrap___KZ1Cp > span .title___z8HJ6 {
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
padding-left: 8px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .type___IyoH8 {
|
||||
width: 94px;
|
||||
text-align: left;
|
||||
color: #666;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .action___jDpeE {
|
||||
width: 145px;
|
||||
text-align: right;
|
||||
}
|
||||
.tree____ALWP .row___FJTAw .action___jDpeE span {
|
||||
cursor: pointer;
|
||||
margin-left: 20px;
|
||||
font-size: 14px;
|
||||
color: #165DFF;
|
||||
}
|
||||
|
||||
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/CoreCurriculum/Lists/Plan/UploadModal/index.less?modules ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___H3jsn {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___YyGFh {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___X0uSu {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___ZRlgN {
|
||||
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___GuooG {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.des___B_rkq {
|
||||
line-height: 20px;
|
||||
color: #6B758B;
|
||||
}
|
||||
.upload___sTPW3 div[class~='ant-upload-list-text-container'] {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/CoreCurriculum/Lists/Plan/CustomTree/index.less?modules ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___AKNha {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___N_5xZ {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___P62iB {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___UvRAW {
|
||||
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___MVOQn {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.tree___pjOPR {
|
||||
margin-left: -4px;
|
||||
}
|
||||
.tree___pjOPR .auto___vx2pN {
|
||||
max-height: 450px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-switcher {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 26px;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-indent-unit {
|
||||
width: 29px;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-indent-unit::before {
|
||||
right: 15px;
|
||||
border-right: 1px solid #ededed !important;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-switcher-leaf-line::before {
|
||||
right: 12px;
|
||||
border-right: 1px solid #ededed;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-switcher-leaf-line::after {
|
||||
height: 21px;
|
||||
width: 11px;
|
||||
border-bottom: 1px solid #ededed;
|
||||
}
|
||||
.tree___pjOPR .ant-tree .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {
|
||||
height: 21px !important;
|
||||
border-right: 1px solid #ededed;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-node-selected {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.tree___pjOPR .ant-tree-node-selected .ant-tree-title span {
|
||||
color: #3061D0;
|
||||
background: #F7F8F9;
|
||||
}
|
||||
.tree___pjOPR .img___ctMRu {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
}
|
||||
.tree___pjOPR .img___ctMRu::before {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
top: 11px;
|
||||
right: -8px;
|
||||
width: 6px;
|
||||
height: 0px;
|
||||
border-bottom: 1px solid #ededed;
|
||||
content: '';
|
||||
}
|
||||
.tree___pjOPR .name___F39Yk {
|
||||
font-size: 14px;
|
||||
color: #5F6367;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.tree___pjOPR .row___CHNxX {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 34px;
|
||||
}
|
||||
.tree___pjOPR .row___CHNxX img {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.tree___pjOPR .row___CHNxX .title___af81z {
|
||||
flex: 1 1;
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
padding: 4px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/CoreCurriculum/Lists/Plan/AddModal/index.less?modules ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___EqMjQ {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___NqyHo {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___jczd_ {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___AKxIj {
|
||||
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___w6U2u {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.des___l8hfa {
|
||||
line-height: 20px;
|
||||
color: #6B758B;
|
||||
}
|
||||
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/CoreCurriculum/Lists/Plan/EditModal/index.less?modules ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___mmnPF {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___QAzTo {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___Uymk1 {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___5bDKq {
|
||||
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___CGE8P {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.des___Pt4eG {
|
||||
line-height: 20px;
|
||||
color: #6B758B;
|
||||
}
|
||||
|
||||
@ -0,0 +1,707 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95558],{
|
||||
|
||||
/***/ 73208:
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/components/NoData/index.tsx ***!
|
||||
\*****************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var noData = function noData(_ref) {
|
||||
var img = _ref.img,
|
||||
_ref$buttonProps = _ref.buttonProps,
|
||||
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
||||
_ref$styles = _ref.styles,
|
||||
styles = _ref$styles === void 0 ? {} : _ref$styles,
|
||||
customText = _ref.customText,
|
||||
ButtonText = _ref.ButtonText,
|
||||
ButtonClick = _ref.ButtonClick,
|
||||
Buttonclass = _ref.Buttonclass,
|
||||
ButtonTwo = _ref.ButtonTwo,
|
||||
imgStyles = _ref.imgStyles,
|
||||
_ref$loading = _ref.loading,
|
||||
loading = _ref$loading === void 0 ? false : _ref$loading;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
|
||||
className: "tc animated fadeIn",
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
|
||||
color: '#999',
|
||||
margin: '100px auto',
|
||||
visibility: loading ? 'hidden' : 'visible'
|
||||
}), styles),
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
|
||||
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
|
||||
className: "mt20 font14",
|
||||
children: customText || '暂时还没有相关数据哦!'
|
||||
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
className: Buttonclass,
|
||||
onClick: ButtonClick
|
||||
}, buttonProps), {}, {
|
||||
children: ButtonText
|
||||
})), ButtonTwo && ButtonTwo]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (noData);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4929:
|
||||
/*!******************************************************!*\
|
||||
!*** ./src/components/WangEditor/WangEditorForm.tsx ***!
|
||||
\******************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js */ 27161);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index */ 13224);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
var _excluded = ["value"];
|
||||
|
||||
|
||||
|
||||
var MyEditorForm = function MyEditorForm(_ref) {
|
||||
var value = _ref.value,
|
||||
props = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref, _excluded);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_index__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, props), {}, {
|
||||
defaultvalue: value || props.defaultvalue
|
||||
}));
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (MyEditorForm);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13224:
|
||||
/*!*********************************************!*\
|
||||
!*** ./src/components/WangEditor/index.tsx ***!
|
||||
\*********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wangeditor/editor-for-react */ 84686);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/fetch */ 91506);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! umi */ 45295);
|
||||
/* harmony import */ var _wangeditor_editor_dist_css_style_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wangeditor/editor/dist/css/style.css */ 49761);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 引入 css
|
||||
|
||||
|
||||
|
||||
var MyEditor = function MyEditor(_ref) {
|
||||
var defaultvalue = _ref.defaultvalue,
|
||||
onChange = _ref.onChange,
|
||||
style = _ref.style,
|
||||
user = _ref.user,
|
||||
placeholder = _ref.placeholder;
|
||||
//设置分片大小
|
||||
var chunkSize = 1024 * 1024 * 2; // 2MB
|
||||
var abortControllerRef = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null);
|
||||
var concurrency = 4;
|
||||
// editor 实例
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(null),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
editor = _useState2[0],
|
||||
setEditor = _useState2[1]; // TS 语法
|
||||
// const [editor, setEditor] = useState(null) // JS 语法
|
||||
|
||||
// 编辑器内容
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(''),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
html = _useState4[0],
|
||||
setHtml = _useState4[1];
|
||||
|
||||
// 模拟 ajax 请求,异步设置 html
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
setHtml(defaultvalue);
|
||||
}, [defaultvalue]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
onChange(html);
|
||||
}, [html]);
|
||||
|
||||
// 工具栏配置
|
||||
var toolbarConfig = {}; // TS 语法
|
||||
// const toolbarConfig = { } // JS 语法
|
||||
|
||||
// 编辑器配置
|
||||
var editorConfig = {
|
||||
// TS 语法
|
||||
// const editorConfig = { // JS 语法
|
||||
placeholder: placeholder || '请输入内容...',
|
||||
MENU_CONF: {}
|
||||
};
|
||||
editorConfig.MENU_CONF['uploadImage'] = {
|
||||
customUpload: function customUpload(file, insertFn) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee() {
|
||||
var formData, res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
// TS 语法
|
||||
// async customUpload(file, insertFn) { // JS 语法
|
||||
// file 即选中的文件
|
||||
// 自己实现上传,并得到图片 url alt href
|
||||
// 最后插入图片
|
||||
// insertFn(url, alt, href)
|
||||
formData = new FormData();
|
||||
formData.append('file', file);
|
||||
_context.next = 4;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments.json", {
|
||||
method: 'post',
|
||||
body: formData
|
||||
}, true);
|
||||
case 4:
|
||||
res = _context.sent;
|
||||
insertFn(res === null || res === void 0 ? void 0 : res.url, '', '');
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
}
|
||||
};
|
||||
editorConfig.MENU_CONF['uploadVideo'] = {
|
||||
// 上传视频的配置
|
||||
customUpload: function customUpload(file, insertFn) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2() {
|
||||
var fileSize, totalChunks, _user$userInfo, _user$userInfo2, res, uploadId, promises, percent, _loop, i, completed, step, _promises$slice, subTasks, p, uploadRes;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee2$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
// TS 语法
|
||||
// async customUpload(file, insertFn) { // JS 语法
|
||||
// file 即选中的文件
|
||||
// 自己实现上传,并得到视频 url poster
|
||||
fileSize = file.size;
|
||||
totalChunks = Math.ceil(fileSize / chunkSize);
|
||||
_context3.prev = 2;
|
||||
_context3.next = 5;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload_start", {
|
||||
method: 'POST',
|
||||
body: {
|
||||
fileName: file.name,
|
||||
chunkCount: totalChunks,
|
||||
user_id: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id
|
||||
}
|
||||
});
|
||||
case 5:
|
||||
res = _context3.sent;
|
||||
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
|
||||
_context3.next = 8;
|
||||
break;
|
||||
}
|
||||
throw new Error();
|
||||
case 8:
|
||||
uploadId = res.upload_id;
|
||||
abortControllerRef.current = new AbortController();
|
||||
promises = [];
|
||||
percent = 0;
|
||||
_loop = /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _loop() {
|
||||
var start, end, chunk, formData;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _loop$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
start = i * chunkSize;
|
||||
end = Math.min(start + chunkSize, fileSize);
|
||||
chunk = file.slice(start, end);
|
||||
formData = new FormData();
|
||||
formData.append('chunk', chunk);
|
||||
formData.append('fileName', file.name);
|
||||
formData.append('chunkIndex', (i + 1).toString());
|
||||
formData.append('uploadId', uploadId);
|
||||
|
||||
// for (const key in options) {
|
||||
// if (Object.prototype.hasOwnProperty.call(options, key)) {
|
||||
// formData.append(key, options[key]);
|
||||
// }
|
||||
// }
|
||||
|
||||
promises.push(function () {
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload", {
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
signal: abortControllerRef.current.signal
|
||||
}, true).then(function (res) {});
|
||||
});
|
||||
case 9:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _loop);
|
||||
});
|
||||
i = 0;
|
||||
case 14:
|
||||
if (!(i < totalChunks)) {
|
||||
_context3.next = 19;
|
||||
break;
|
||||
}
|
||||
return _context3.delegateYield(_loop(), "t0", 16);
|
||||
case 16:
|
||||
i++;
|
||||
_context3.next = 14;
|
||||
break;
|
||||
case 19:
|
||||
completed = 0;
|
||||
step = concurrency;
|
||||
console.log(promises, 'promises');
|
||||
case 22:
|
||||
if (!(completed < promises.length)) {
|
||||
_context3.next = 31;
|
||||
break;
|
||||
}
|
||||
subTasks = (_promises$slice = promises.slice(completed, completed + step)) === null || _promises$slice === void 0 ? void 0 : _promises$slice.map(function (t) {
|
||||
return t();
|
||||
});
|
||||
if (!(subTasks.length > 0)) {
|
||||
_context3.next = 29;
|
||||
break;
|
||||
}
|
||||
_context3.next = 27;
|
||||
return Promise.all(subTasks);
|
||||
case 27:
|
||||
p = _context3.sent;
|
||||
completed += step;
|
||||
case 29:
|
||||
_context3.next = 22;
|
||||
break;
|
||||
case 31:
|
||||
_context3.next = 33;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload_end", {
|
||||
method: 'POST',
|
||||
body: {
|
||||
fileName: file.name,
|
||||
chunkCount: totalChunks,
|
||||
uploadId: uploadId,
|
||||
user_id: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id
|
||||
}
|
||||
});
|
||||
case 33:
|
||||
uploadRes = _context3.sent;
|
||||
// 最后插入视频 参数1 视频地址 参数2 封面地址 选填
|
||||
// debugger
|
||||
insertFn(uploadRes === null || uploadRes === void 0 ? void 0 : uploadRes.object, '');
|
||||
_context3.next = 39;
|
||||
break;
|
||||
case 37:
|
||||
_context3.prev = 37;
|
||||
_context3.t1 = _context3["catch"](2);
|
||||
case 39:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee2, null, [[2, 37]]);
|
||||
}))();
|
||||
}
|
||||
};
|
||||
|
||||
// 及时销毁 editor ,重要!
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
return function () {
|
||||
if (editor == null) return;
|
||||
editor.destroy();
|
||||
setEditor(null);
|
||||
};
|
||||
}, [editor]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.Fragment, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
||||
style: {
|
||||
border: '1px solid #ccc',
|
||||
zIndex: 100
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__/* .Toolbar */ .o, {
|
||||
editor: editor,
|
||||
defaultConfig: toolbarConfig,
|
||||
mode: "default",
|
||||
style: {
|
||||
borderBottom: '1px solid #ccc'
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__/* .Editor */ .M, {
|
||||
defaultConfig: editorConfig,
|
||||
value: html,
|
||||
onCreated: setEditor,
|
||||
onChange: function onChange(editor) {
|
||||
return setHtml(editor.getHtml());
|
||||
},
|
||||
mode: "default",
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
height: '500px',
|
||||
overflowY: 'hidden'
|
||||
}, style)
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_7__.connect)(function (_ref2) {
|
||||
var user = _ref2.user;
|
||||
return {
|
||||
user: user
|
||||
};
|
||||
})(MyEditor));
|
||||
|
||||
// export default MyEditor
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 86159:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./src/pages/CoreCurriculum/Lists/Virtroom/index.tsx ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! umi */ 45295);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! antd */ 78241);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! antd */ 8591);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! antd */ 6557);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! antd */ 95237);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! antd */ 43418);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! antd */ 1056);
|
||||
/* harmony import */ var _components_ui_customization__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/ui-customization */ 89200);
|
||||
/* harmony import */ var _components_NoData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/NoData */ 73208);
|
||||
/* harmony import */ var _components_WangEditor_WangEditorForm__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/WangEditor/WangEditorForm */ 4929);
|
||||
/* harmony import */ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ant-design/icons */ 48796);
|
||||
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/env */ 78130);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/utils/fetch */ 91506);
|
||||
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/utils/util */ 22739);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Page = function Page(_ref) {
|
||||
var _fileList$2;
|
||||
var coreCurriculum = _ref.coreCurriculum,
|
||||
user = _ref.user,
|
||||
dispatch = _ref.dispatch;
|
||||
var _Form$useForm = antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.useForm(),
|
||||
_Form$useForm2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var isShowModalName = coreCurriculum.isShowModalName,
|
||||
VirtualRoom = coreCurriculum.VirtualRoom;
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)([]),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_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_4__.useState)(false),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
loading = _useState4[0],
|
||||
setLoading = _useState4[1];
|
||||
var params = (0,umi__WEBPACK_IMPORTED_MODULE_5__.useParams)();
|
||||
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 == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .ZP.error("".concat(file.name, " \u65E0\u6CD5\u4E0A\u4F20\u3002").concat(fileSize == 0 ? "文件内容不能为空" : '超过图片大小限制(2MB)'));
|
||||
return antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.LIST_IGNORE;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
onRemove: function onRemove(file) {
|
||||
setFileList([]);
|
||||
},
|
||||
onChange: function onChange(info) {
|
||||
form.setFieldsValue({
|
||||
qrcode_id: ''
|
||||
});
|
||||
var statusList = ["uploading", "done", "removed"];
|
||||
if (statusList.includes(info.file.status)) {
|
||||
var _info$fileList;
|
||||
setFileList(info.fileList);
|
||||
form.setFieldsValue({
|
||||
qrcode_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_9__/* ["default"] */ .Z.API_SERVER, "/api/attachments.json")
|
||||
};
|
||||
var renderImg = function renderImg() {
|
||||
var _fileList$;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
align: "middle",
|
||||
justify: "center",
|
||||
style: {
|
||||
position: "relative",
|
||||
width: 400,
|
||||
backgroundColor: "#f4f3f4"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("img", {
|
||||
src: _utils_env__WEBPACK_IMPORTED_MODULE_9__/* ["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_12__.jsx)("div", {
|
||||
style: {
|
||||
position: "absolute",
|
||||
right: "-6px",
|
||||
top: "-6px",
|
||||
cursor: "pointer",
|
||||
width: 16,
|
||||
height: 16,
|
||||
borderRadius: "50%",
|
||||
backgroundColor: "#fff"
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_17__/* ["default"] */ .Z, {
|
||||
onClick: function onClick() {
|
||||
setFileList([]);
|
||||
form.setFieldsValue({
|
||||
qrcode_id: ''
|
||||
});
|
||||
},
|
||||
style: {
|
||||
fontSize: '16px',
|
||||
color: 'red'
|
||||
}
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
var closeOrOpenModal = function closeOrOpenModal() {
|
||||
var isShowModalName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||||
dispatch({
|
||||
type: "coreCurriculum/save",
|
||||
payload: {
|
||||
isShowModalName: isShowModalName
|
||||
}
|
||||
});
|
||||
};
|
||||
var getData = function getData() {
|
||||
dispatch({
|
||||
type: 'coreCurriculum/getVirtualRoom',
|
||||
payload: {
|
||||
id: params === null || params === void 0 ? void 0 : params.coreId
|
||||
}
|
||||
});
|
||||
};
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
getData();
|
||||
}, []);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
if (VirtualRoom && VirtualRoom !== null && VirtualRoom !== void 0 && VirtualRoom.qrcode_id) {
|
||||
setFileList([{
|
||||
response: VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.qrcode
|
||||
}]);
|
||||
}
|
||||
}, [VirtualRoom]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
(isShowModalName === null || isShowModalName === void 0 ? void 0 : isShowModalName.includes("编辑虚拟教研室")) && form.setFieldsValue(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, VirtualRoom));
|
||||
}, [isShowModalName]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
|
||||
style: {
|
||||
margin: "0 auto",
|
||||
width: 1200
|
||||
},
|
||||
children: [!(VirtualRoom !== null && VirtualRoom !== void 0 && VirtualRoom.content || VirtualRoom !== null && VirtualRoom !== void 0 && VirtualRoom.qrcode_id || VirtualRoom !== null && VirtualRoom !== void 0 && VirtualRoom.url) ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_components_NoData__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.Fragment, {
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("div", {
|
||||
dangerouslySetInnerHTML: {
|
||||
__html: VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.content
|
||||
}
|
||||
}), ((VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.qrcode_id) || (VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.url)) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z, {
|
||||
className: "mt30",
|
||||
align: "middle",
|
||||
justify: "center",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_6__/* .CustomButton */ .op, {
|
||||
type: "primary",
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("i", {
|
||||
className: "iconfont icon-jinru"
|
||||
}),
|
||||
onClick: function onClick() {
|
||||
var modal = antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z.confirm({
|
||||
icon: null,
|
||||
title: '进入虚拟教研室',
|
||||
closable: true,
|
||||
maskClosable: true,
|
||||
content: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
|
||||
style: {
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
alignItems: "center"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("div", {
|
||||
style: {
|
||||
width: "100%"
|
||||
},
|
||||
children: "\u65B9\u5F0F\u4E00\uFF1A"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)("div", {
|
||||
children: ["\u94FE\u63A5\uFF1A", VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.url]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_6__/* .CustomButton */ .op, {
|
||||
type: "primary",
|
||||
onClick: function onClick() {
|
||||
return (0,_utils_util__WEBPACK_IMPORTED_MODULE_11__/* .openNewWindow */ .xg)(VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.url);
|
||||
},
|
||||
children: "\u6253\u5F00\u94FE\u63A5"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("div", {
|
||||
style: {
|
||||
width: "100%"
|
||||
},
|
||||
children: "\u65B9\u5F0F\u4E8C\uFF1A"
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("img", {
|
||||
src: _utils_env__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z.API_SERVER + "/api/attachments/" + (VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.qrcode_id),
|
||||
alt: "avatar",
|
||||
style: {
|
||||
width: '50%'
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("div", {
|
||||
children: "\u4F7F\u7528\u624B\u673A\u626B\u63CF\u4E8C\u7EF4\u7801"
|
||||
})]
|
||||
}),
|
||||
onCancel: function onCancel() {
|
||||
modal.destroy();
|
||||
},
|
||||
footer: null
|
||||
});
|
||||
},
|
||||
children: "\u524D\u5F80\u865A\u62DF\u6559\u7814\u5BA4"
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_18__/* ["default"] */ .Z, {
|
||||
title: "编辑虚拟教研室",
|
||||
open: isShowModalName === null || isShowModalName === void 0 ? void 0 : isShowModalName.includes("编辑虚拟教研室"),
|
||||
confirmLoading: loading,
|
||||
destroyOnClose: true,
|
||||
centered: true,
|
||||
width: 1200,
|
||||
onCancel: function onCancel() {
|
||||
closeOrOpenModal();
|
||||
form.resetFields();
|
||||
},
|
||||
onOk: function onOk() {
|
||||
form.submit();
|
||||
},
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsxs)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z, {
|
||||
form: form,
|
||||
size: "large",
|
||||
initialValues: {},
|
||||
onFinish: /*#__PURE__*/function () {
|
||||
var _ref2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(ValueAll) {
|
||||
var res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
setLoading(true);
|
||||
_context.next = 3;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .ZP)("/api/core_subjects/".concat(params === null || params === void 0 ? void 0 : params.coreId, "/update_virtual_room.json"), {
|
||||
method: 'PUT',
|
||||
body: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, ValueAll)
|
||||
});
|
||||
case 3:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
antd__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .ZP.success("修改成功");
|
||||
closeOrOpenModal();
|
||||
getData();
|
||||
}
|
||||
setLoading(false);
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}(),
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
name: "content",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_components_WangEditor_WangEditorForm__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
||||
defaultvalue: VirtualRoom === null || VirtualRoom === void 0 ? void 0 : VirtualRoom.content,
|
||||
style: {
|
||||
height: "300px"
|
||||
}
|
||||
})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
name: "url",
|
||||
label: "虚拟教研室链接",
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z, {})
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z.Item, {
|
||||
name: "qrcode_id",
|
||||
label: "虚拟教研室二维码",
|
||||
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_12__.jsx)(antd__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z, _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2___default()({}, uploadProps), {}, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(_components_ui_customization__WEBPACK_IMPORTED_MODULE_6__/* .CustomButton */ .op, {
|
||||
style: {
|
||||
borderRadius: "2px"
|
||||
},
|
||||
icon: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)("i", {
|
||||
className: "iconfont icon-shangchuan3"
|
||||
}),
|
||||
children: "\u4E0A\u4F20"
|
||||
})
|
||||
}))
|
||||
})]
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__["default"] = ((0,umi__WEBPACK_IMPORTED_MODULE_5__.connect)(function (_ref3) {
|
||||
var coreCurriculum = _ref3.coreCurriculum,
|
||||
user = _ref3.user;
|
||||
return {
|
||||
coreCurriculum: coreCurriculum,
|
||||
user: user
|
||||
};
|
||||
})(Page));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,632 +0,0 @@
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/pages/HttpStatus/introduction.less ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.page {
|
||||
position: relative;
|
||||
height: 1080px;
|
||||
background-color: #fafafa;
|
||||
overflow: hidden;
|
||||
}
|
||||
.page .section_1 {
|
||||
height: 1080px;
|
||||
background-color: #ffffff;
|
||||
margin: 0px auto;
|
||||
width: 1200px;
|
||||
position: relative;
|
||||
}
|
||||
.page .section_1 .box_1 {
|
||||
width: 134px;
|
||||
height: 30px;
|
||||
margin: 30px 0 0 533px;
|
||||
}
|
||||
.page .section_1 .box_1 .box_2 {
|
||||
width: 14px;
|
||||
height: 17px;
|
||||
background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPnga2fd170c19ea7377d9084fd8bf9a48778c8b9d20a544fac361dc041e19715640) -1px -1px no-repeat;
|
||||
background-size: 16px 19px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.page .section_1 .box_1 .text_1 {
|
||||
width: 91px;
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 22px;
|
||||
font-family: PingFangSC-Semibold;
|
||||
white-space: nowrap;
|
||||
line-height: 30px;
|
||||
text-align: left;
|
||||
margin-left: 9px;
|
||||
}
|
||||
.page .section_1 .box_1 .box_3 {
|
||||
width: 14px;
|
||||
height: 17px;
|
||||
background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPngfbf5b4682afb1295e87ba4f8246f1b02021d36b8734bfa27844db55aac4865f3) -1px -1px no-repeat;
|
||||
background-size: 16px 19px;
|
||||
margin: 6px 0 0 6px;
|
||||
}
|
||||
.page .section_1 .box_4 {
|
||||
width: 1008px;
|
||||
height: 362px;
|
||||
margin: 50px 0 0 132px;
|
||||
}
|
||||
.page .section_1 .box_4 .block_1 {
|
||||
width: 145px;
|
||||
height: 244px;
|
||||
margin-top: 78px;
|
||||
}
|
||||
.page .section_1 .box_4 .block_1 .image_1 {
|
||||
width: 145px;
|
||||
height: 209px;
|
||||
}
|
||||
.page .section_1 .box_4 .block_1 .text_2 {
|
||||
width: 75px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Semibold;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
margin: 15px 0 0 35px;
|
||||
}
|
||||
.page .section_1 .box_4 .block_2 {
|
||||
height: 362px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #165dff;
|
||||
width: 761px;
|
||||
}
|
||||
.page .section_1 .box_4 .block_2 .text-wrapper_1 {
|
||||
height: 48px;
|
||||
border-radius: 6px 6px 0 0;
|
||||
background-color: #165dff;
|
||||
width: 761px;
|
||||
}
|
||||
.page .section_1 .box_4 .block_2 .text-wrapper_1 .text_3 {
|
||||
width: 64px;
|
||||
height: 22px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC-Medium;
|
||||
white-space: nowrap;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
margin: 13px 0 0 20px;
|
||||
}
|
||||
.page .section_1 .box_5 {
|
||||
width: 250px;
|
||||
height: 60px;
|
||||
margin: 213px 0 0 444px;
|
||||
}
|
||||
.page .section_1 .box_5 .image_2 {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .box_5 .image-wrapper_1 {
|
||||
position: relative;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 30px;
|
||||
overflow: hidden;
|
||||
background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPngd717985649e49644fd6dd20f8db8a204c852bf9a92e3edad25754eb51c92ce45) 100% no-repeat;
|
||||
}
|
||||
.page .section_1 .box_5 .image-wrapper_1 .image_3 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .text-wrapper_2 {
|
||||
width: 277px;
|
||||
height: 20px;
|
||||
margin: 20px 0 0 809px;
|
||||
}
|
||||
.page .section_1 .text-wrapper_2 .text_4 {
|
||||
width: 84px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
.page .section_1 .text-wrapper_2 .text_5 {
|
||||
width: 84px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
.page .section_1 .box_6 {
|
||||
width: 253px;
|
||||
height: 60px;
|
||||
margin: 60px 0 206px 821px;
|
||||
}
|
||||
.page .section_1 .box_6 .image-wrapper_5 {
|
||||
height: 60px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.01);
|
||||
width: 60px;
|
||||
}
|
||||
.page .section_1 .box_6 .image-wrapper_5 .image_4 {
|
||||
width: 60px;
|
||||
height: 49px;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.page .section_1 .box_6 .image-wrapper_2 {
|
||||
position: relative;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 30px;
|
||||
overflow: hidden;
|
||||
background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPngd717985649e49644fd6dd20f8db8a204c852bf9a92e3edad25754eb51c92ce45) 100% no-repeat;
|
||||
}
|
||||
.page .section_1 .box_6 .image-wrapper_2 .image_5 {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .text_6 {
|
||||
position: absolute;
|
||||
left: 556px;
|
||||
top: 100px;
|
||||
width: 91px;
|
||||
height: 30px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: rgba(67, 77, 108, 0.49);
|
||||
font-size: 22px;
|
||||
font-family: PingFangSC-Semibold;
|
||||
white-space: nowrap;
|
||||
line-height: 30px;
|
||||
text-align: left;
|
||||
-webkit-text-stroke: 1px;
|
||||
background-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
.page .section_1 .box_7 {
|
||||
height: 362px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #165dff;
|
||||
width: 289px;
|
||||
position: absolute;
|
||||
left: 60px;
|
||||
top: 110px;
|
||||
}
|
||||
.page .section_1 .box_7 .text-wrapper_3 {
|
||||
height: 48px;
|
||||
border-radius: 6px 6px 0 0;
|
||||
background-color: #165dff;
|
||||
width: 289px;
|
||||
}
|
||||
.page .section_1 .box_7 .text-wrapper_3 .text_7 {
|
||||
width: 80px;
|
||||
height: 22px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC-Medium;
|
||||
white-space: nowrap;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
margin: 13px 0 0 20px;
|
||||
}
|
||||
.page .section_1 .text-wrapper_4 {
|
||||
position: absolute;
|
||||
left: 425px;
|
||||
top: 200px;
|
||||
width: 668px;
|
||||
height: 208px;
|
||||
overflow-wrap: break-word;
|
||||
text-align: left;
|
||||
font-size: 0;
|
||||
}
|
||||
.page .section_1 .text-wrapper_4 .paragraph_1 {
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
color: #434d6c;
|
||||
line-height: 30px;
|
||||
}
|
||||
.page .section_1 .text-wrapper_4 .text_8 {
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
color: #434d6c;
|
||||
line-height: 30px;
|
||||
}
|
||||
.page .section_1 .text-wrapper_4 .text_9 {
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
color: #434d6c;
|
||||
line-height: 30px;
|
||||
}
|
||||
.page .section_1 .text-wrapper_4 .text_10 {
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
color: #434d6c;
|
||||
line-height: 30px;
|
||||
}
|
||||
.page .section_1 .box_8 {
|
||||
height: 510px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #165dff;
|
||||
width: 761px;
|
||||
position: absolute;
|
||||
left: 379px;
|
||||
top: 501px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 {
|
||||
width: 761px;
|
||||
height: 332px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_5 {
|
||||
height: 48px;
|
||||
border-radius: 6px 6px 0 0;
|
||||
background-color: #165dff;
|
||||
width: 761px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_5 .text_11 {
|
||||
width: 96px;
|
||||
height: 22px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #ffffff;
|
||||
font-size: 16px;
|
||||
font-family: PingFangSC-Medium;
|
||||
white-space: nowrap;
|
||||
line-height: 22px;
|
||||
text-align: left;
|
||||
margin: 13px 0 0 20px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .image-wrapper_3 {
|
||||
width: 253px;
|
||||
height: 60px;
|
||||
margin: 150px 0 0 442px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .image-wrapper_3 .image_6 {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .image-wrapper_3 .image_7 {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_6 {
|
||||
width: 260px;
|
||||
height: 20px;
|
||||
margin: 18px 0 0 67px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_6 .text_12 {
|
||||
width: 56px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_6 .text_13 {
|
||||
width: 84px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .group_2 {
|
||||
width: 760px;
|
||||
height: 1px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .group_2 .box_9 {
|
||||
width: 191px;
|
||||
height: 1px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .group_2 .box_10 {
|
||||
width: 190px;
|
||||
height: 1px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .image-wrapper_4 {
|
||||
width: 250px;
|
||||
height: 60px;
|
||||
margin: 29px 0 0 65px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .image-wrapper_4 .image_8 {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .image-wrapper_4 .image_9 {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_7 {
|
||||
width: 689px;
|
||||
height: 20px;
|
||||
margin: 18px 0 0 46px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_7 .text_14 {
|
||||
width: 98px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_7 .text_15 {
|
||||
width: 98px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
margin-left: 92px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_7 .text_16 {
|
||||
width: 140px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
margin-left: 68px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_1 .text-wrapper_7 .text_17 {
|
||||
width: 140px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
letter-spacing: -0.05833333px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
margin-left: 53px;
|
||||
}
|
||||
.page .section_1 .box_8 .group_3 {
|
||||
position: absolute;
|
||||
left: 190px;
|
||||
top: 204px;
|
||||
width: 190px;
|
||||
height: 1px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.page .section_1 .box_8 .group_4 {
|
||||
position: absolute;
|
||||
left: 377px;
|
||||
top: 204px;
|
||||
width: 190px;
|
||||
height: 1px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.page .section_2 {
|
||||
height: 60px;
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
box-shadow: 0px 2px 10px 0px rgba(136, 136, 136, 0.5);
|
||||
width: 1920px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.page .section_2 .box_11 {
|
||||
width: 1880px;
|
||||
height: 46px;
|
||||
margin: 14px 0 0 20px;
|
||||
}
|
||||
.page .section_2 .box_11 .image_10 {
|
||||
width: 46px;
|
||||
height: 18px;
|
||||
margin-top: 7px;
|
||||
}
|
||||
.page .section_2 .box_11 .text_18 {
|
||||
width: 271px;
|
||||
height: 24px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #196efd;
|
||||
font-size: 18px;
|
||||
font-family: PingFangSC-Semibold;
|
||||
white-space: nowrap;
|
||||
line-height: 18px;
|
||||
text-align: center;
|
||||
margin: 4px 0 0 4px;
|
||||
}
|
||||
.page .section_2 .box_11 .text_19 {
|
||||
width: 28px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 884px;
|
||||
}
|
||||
.page .section_2 .box_11 .text_20 {
|
||||
width: 56px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 45px;
|
||||
}
|
||||
.page .section_2 .box_11 .paragraph_2 {
|
||||
width: 56px;
|
||||
height: 40px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 47px;
|
||||
}
|
||||
.page .section_2 .box_11 .paragraph_3 {
|
||||
width: 56px;
|
||||
height: 40px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 47px;
|
||||
}
|
||||
.page .section_2 .box_11 .text_21 {
|
||||
width: 56px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 46px;
|
||||
}
|
||||
.page .section_2 .box_11 .section_3 {
|
||||
width: 56px;
|
||||
height: 35px;
|
||||
margin: 6px 0 0 46px;
|
||||
}
|
||||
.page .section_2 .box_11 .section_3 .text_22 {
|
||||
width: 56px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #434d6c;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Semibold;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
.page .section_2 .box_11 .section_3 .image_11 {
|
||||
width: 28px;
|
||||
height: 4px;
|
||||
margin: 11px 0 0 14px;
|
||||
}
|
||||
.page .section_2 .box_11 .text-wrapper_8 {
|
||||
height: 32px;
|
||||
border-radius: 2px;
|
||||
background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPngf0c62fcd1a7ea96a5157edf210c71b49ebd3b32ba45d5f5615068886a80fe700) 100% no-repeat;
|
||||
margin-left: 46px;
|
||||
width: 90px;
|
||||
}
|
||||
.page .section_2 .box_11 .text-wrapper_8 .text_23 {
|
||||
width: 63px;
|
||||
height: 20px;
|
||||
display: inline-block;
|
||||
overflow-wrap: break-word;
|
||||
color: #ffffff;
|
||||
font-size: 14px;
|
||||
font-family: PingFangSC-Regular;
|
||||
white-space: nowrap;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
margin: 6px 0 0 14px;
|
||||
}
|
||||
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/pages/HttpStatus/index.less ***!
|
||||
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.flex-row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.justify-start {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.justify-center {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
.justify-end {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.justify-evenly {
|
||||
display: flex;
|
||||
justify-content: space-evenly;
|
||||
}
|
||||
.justify-around {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
.justify-between {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.align-start {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.align-center {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.align-end {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,717 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[20944],{
|
||||
|
||||
/***/ 13224:
|
||||
/*!*********************************************!*\
|
||||
!*** ./src/components/WangEditor/index.tsx ***!
|
||||
\*********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wangeditor/editor-for-react */ 84686);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/fetch */ 91506);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! umi */ 45295);
|
||||
/* harmony import */ var _wangeditor_editor_dist_css_style_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wangeditor/editor/dist/css/style.css */ 49761);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 引入 css
|
||||
|
||||
|
||||
|
||||
var MyEditor = function MyEditor(_ref) {
|
||||
var defaultvalue = _ref.defaultvalue,
|
||||
onChange = _ref.onChange,
|
||||
style = _ref.style,
|
||||
user = _ref.user,
|
||||
placeholder = _ref.placeholder;
|
||||
//设置分片大小
|
||||
var chunkSize = 1024 * 1024 * 2; // 2MB
|
||||
var abortControllerRef = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null);
|
||||
var concurrency = 4;
|
||||
// editor 实例
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(null),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
editor = _useState2[0],
|
||||
setEditor = _useState2[1]; // TS 语法
|
||||
// const [editor, setEditor] = useState(null) // JS 语法
|
||||
|
||||
// 编辑器内容
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(''),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
html = _useState4[0],
|
||||
setHtml = _useState4[1];
|
||||
|
||||
// 模拟 ajax 请求,异步设置 html
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
setHtml(defaultvalue);
|
||||
}, [defaultvalue]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
onChange(html);
|
||||
}, [html]);
|
||||
|
||||
// 工具栏配置
|
||||
var toolbarConfig = {}; // TS 语法
|
||||
// const toolbarConfig = { } // JS 语法
|
||||
|
||||
// 编辑器配置
|
||||
var editorConfig = {
|
||||
// TS 语法
|
||||
// const editorConfig = { // JS 语法
|
||||
placeholder: placeholder || '请输入内容...',
|
||||
MENU_CONF: {}
|
||||
};
|
||||
editorConfig.MENU_CONF['uploadImage'] = {
|
||||
customUpload: function customUpload(file, insertFn) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee() {
|
||||
var formData, res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
// TS 语法
|
||||
// async customUpload(file, insertFn) { // JS 语法
|
||||
// file 即选中的文件
|
||||
// 自己实现上传,并得到图片 url alt href
|
||||
// 最后插入图片
|
||||
// insertFn(url, alt, href)
|
||||
formData = new FormData();
|
||||
formData.append('file', file);
|
||||
_context.next = 4;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments.json", {
|
||||
method: 'post',
|
||||
body: formData
|
||||
}, true);
|
||||
case 4:
|
||||
res = _context.sent;
|
||||
insertFn(res === null || res === void 0 ? void 0 : res.url, '', '');
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
}
|
||||
};
|
||||
editorConfig.MENU_CONF['uploadVideo'] = {
|
||||
// 上传视频的配置
|
||||
customUpload: function customUpload(file, insertFn) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2() {
|
||||
var fileSize, totalChunks, _user$userInfo, _user$userInfo2, res, uploadId, promises, percent, _loop, i, completed, step, _promises$slice, subTasks, p, uploadRes;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee2$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
// TS 语法
|
||||
// async customUpload(file, insertFn) { // JS 语法
|
||||
// file 即选中的文件
|
||||
// 自己实现上传,并得到视频 url poster
|
||||
fileSize = file.size;
|
||||
totalChunks = Math.ceil(fileSize / chunkSize);
|
||||
_context3.prev = 2;
|
||||
_context3.next = 5;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload_start", {
|
||||
method: 'POST',
|
||||
body: {
|
||||
fileName: file.name,
|
||||
chunkCount: totalChunks,
|
||||
user_id: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id
|
||||
}
|
||||
});
|
||||
case 5:
|
||||
res = _context3.sent;
|
||||
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
|
||||
_context3.next = 8;
|
||||
break;
|
||||
}
|
||||
throw new Error();
|
||||
case 8:
|
||||
uploadId = res.upload_id;
|
||||
abortControllerRef.current = new AbortController();
|
||||
promises = [];
|
||||
percent = 0;
|
||||
_loop = /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _loop() {
|
||||
var start, end, chunk, formData;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _loop$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
start = i * chunkSize;
|
||||
end = Math.min(start + chunkSize, fileSize);
|
||||
chunk = file.slice(start, end);
|
||||
formData = new FormData();
|
||||
formData.append('chunk', chunk);
|
||||
formData.append('fileName', file.name);
|
||||
formData.append('chunkIndex', (i + 1).toString());
|
||||
formData.append('uploadId', uploadId);
|
||||
|
||||
// for (const key in options) {
|
||||
// if (Object.prototype.hasOwnProperty.call(options, key)) {
|
||||
// formData.append(key, options[key]);
|
||||
// }
|
||||
// }
|
||||
|
||||
promises.push(function () {
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload", {
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
signal: abortControllerRef.current.signal
|
||||
}, true).then(function (res) {});
|
||||
});
|
||||
case 9:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _loop);
|
||||
});
|
||||
i = 0;
|
||||
case 14:
|
||||
if (!(i < totalChunks)) {
|
||||
_context3.next = 19;
|
||||
break;
|
||||
}
|
||||
return _context3.delegateYield(_loop(), "t0", 16);
|
||||
case 16:
|
||||
i++;
|
||||
_context3.next = 14;
|
||||
break;
|
||||
case 19:
|
||||
completed = 0;
|
||||
step = concurrency;
|
||||
console.log(promises, 'promises');
|
||||
case 22:
|
||||
if (!(completed < promises.length)) {
|
||||
_context3.next = 31;
|
||||
break;
|
||||
}
|
||||
subTasks = (_promises$slice = promises.slice(completed, completed + step)) === null || _promises$slice === void 0 ? void 0 : _promises$slice.map(function (t) {
|
||||
return t();
|
||||
});
|
||||
if (!(subTasks.length > 0)) {
|
||||
_context3.next = 29;
|
||||
break;
|
||||
}
|
||||
_context3.next = 27;
|
||||
return Promise.all(subTasks);
|
||||
case 27:
|
||||
p = _context3.sent;
|
||||
completed += step;
|
||||
case 29:
|
||||
_context3.next = 22;
|
||||
break;
|
||||
case 31:
|
||||
_context3.next = 33;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload_end", {
|
||||
method: 'POST',
|
||||
body: {
|
||||
fileName: file.name,
|
||||
chunkCount: totalChunks,
|
||||
uploadId: uploadId,
|
||||
user_id: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id
|
||||
}
|
||||
});
|
||||
case 33:
|
||||
uploadRes = _context3.sent;
|
||||
// 最后插入视频 参数1 视频地址 参数2 封面地址 选填
|
||||
// debugger
|
||||
insertFn(uploadRes === null || uploadRes === void 0 ? void 0 : uploadRes.object, '');
|
||||
_context3.next = 39;
|
||||
break;
|
||||
case 37:
|
||||
_context3.prev = 37;
|
||||
_context3.t1 = _context3["catch"](2);
|
||||
case 39:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee2, null, [[2, 37]]);
|
||||
}))();
|
||||
}
|
||||
};
|
||||
|
||||
// 及时销毁 editor ,重要!
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
return function () {
|
||||
if (editor == null) return;
|
||||
editor.destroy();
|
||||
setEditor(null);
|
||||
};
|
||||
}, [editor]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.Fragment, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
||||
style: {
|
||||
border: '1px solid #ccc',
|
||||
zIndex: 100
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__/* .Toolbar */ .o, {
|
||||
editor: editor,
|
||||
defaultConfig: toolbarConfig,
|
||||
mode: "default",
|
||||
style: {
|
||||
borderBottom: '1px solid #ccc'
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__/* .Editor */ .M, {
|
||||
defaultConfig: editorConfig,
|
||||
value: html,
|
||||
onCreated: setEditor,
|
||||
onChange: function onChange(editor) {
|
||||
return setHtml(editor.getHtml());
|
||||
},
|
||||
mode: "default",
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
height: '500px',
|
||||
overflowY: 'hidden'
|
||||
}, style)
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_7__.connect)(function (_ref2) {
|
||||
var user = _ref2.user;
|
||||
return {
|
||||
user: user
|
||||
};
|
||||
})(MyEditor));
|
||||
|
||||
// export default MyEditor
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 48090:
|
||||
/*!**************************************************!*\
|
||||
!*** ./src/pages/News/Add/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 */ Add; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js
|
||||
var toConsumableArray = __webpack_require__(93923);
|
||||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(10574);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(26801);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(39343);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
||||
var es_form = __webpack_require__(78241);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(8591);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(1056);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
||||
var row = __webpack_require__(95237);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
||||
var col = __webpack_require__(43604);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
|
||||
var date_picker = __webpack_require__(52409);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules
|
||||
var es_switch = __webpack_require__(78673);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
|
||||
var upload = __webpack_require__(6557);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules
|
||||
var UploadOutlined = __webpack_require__(96402);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(45295);
|
||||
;// CONCATENATED MODULE: ./src/pages/News/Add/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Addmodules = ({"flex_box_center":"flex_box_center___wcUew","flex_space_between":"flex_space_between___nmtwc","flex_box_vertical_center":"flex_box_vertical_center___IBB5I","flex_box_center_end":"flex_box_center_end___uAffv","flex_box_column":"flex_box_column___MwUKt","ContentWarp":"ContentWarp___dEP9T","footst":"footst___jjaL9","tags":"tags___GAiAz","hidden":"hidden___gQNeb"});
|
||||
// EXTERNAL MODULE: ./src/components/WangEditor/index.tsx
|
||||
var WangEditor = __webpack_require__(13224);
|
||||
// EXTERNAL MODULE: ./node_modules/_swiper@5.4.5@swiper/css/swiper.css
|
||||
var swiper = __webpack_require__(5999);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(91506);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(78130);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/News/Add/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// import Aamodal from '@/components/HomeModal/AAmodal'
|
||||
|
||||
|
||||
|
||||
|
||||
var IndexPage = function IndexPage(_ref) {
|
||||
var homePage = _ref.homePage,
|
||||
globalSetting = _ref.globalSetting,
|
||||
user = _ref.user,
|
||||
loading = _ref.loading,
|
||||
dispatch = _ref.dispatch;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
data = _useState2[0],
|
||||
setData = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([{
|
||||
name: '全部'
|
||||
}]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
taglist = _useState4[0],
|
||||
settaglist = _useState4[1];
|
||||
var _Form$useForm = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
news_event_tags = _useState6[0],
|
||||
setnews_event_tags = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)({
|
||||
page: 1,
|
||||
limit: 10,
|
||||
setag: '全部'
|
||||
}),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
params = _useState8[0],
|
||||
setparams = _useState8[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: false
|
||||
});
|
||||
return function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: true
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
var normFile = function normFile(e) {
|
||||
console.log('Upload event:', e);
|
||||
if (Array.isArray(e)) {
|
||||
return e;
|
||||
}
|
||||
return e === null || e === void 0 ? void 0 : e.fileList;
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
||||
style: {
|
||||
background: '#fff',
|
||||
paddingBottom: 60
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: '0px auto'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
paddingTop: 40,
|
||||
display: 'flex',
|
||||
alignItems: 'center'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
background: '#666666',
|
||||
height: 14,
|
||||
width: 4,
|
||||
marginRight: 8
|
||||
}
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#232B40',
|
||||
fontWeight: 500
|
||||
},
|
||||
children: "\u65B0\u95FB\u52A8\u6001"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Addmodules.ContentWarp,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
size: "large",
|
||||
colon: false,
|
||||
form: form,
|
||||
onFinish: /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(value) {
|
||||
var _value$attachment_ids;
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/news_events.json", {
|
||||
method: 'post',
|
||||
body: objectSpread2_default()(objectSpread2_default()({}, value), {}, {
|
||||
attachment_ids: value === null || value === void 0 || (_value$attachment_ids = value.attachment_ids) === null || _value$attachment_ids === void 0 ? void 0 : _value$attachment_ids.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;
|
||||
}),
|
||||
news_event_tags: news_event_tags
|
||||
})
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
message/* default */.ZP.info("新增成功");
|
||||
history.back();
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}(),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u6807\u9898",
|
||||
name: "title",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '标题不能为空'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
maxLength: 200,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u6807\u7B7E",
|
||||
name: "tags",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
onPressEnter: function onPressEnter(e) {
|
||||
if ((news_event_tags === null || news_event_tags === void 0 ? void 0 : news_event_tags.length) === 5) {
|
||||
message/* default */.ZP.info('最多新增5个标签');
|
||||
return;
|
||||
}
|
||||
news_event_tags.push({
|
||||
id: null,
|
||||
name: e.target.value
|
||||
});
|
||||
setnews_event_tags(toConsumableArray_default()(news_event_tags));
|
||||
form.setFieldsValue({
|
||||
tags: ''
|
||||
});
|
||||
},
|
||||
maxLength: 10,
|
||||
addonAfter: "\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
span: 2
|
||||
}), news_event_tags === null || news_event_tags === void 0 ? void 0 : news_event_tags.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Addmodules.tags,
|
||||
style: {
|
||||
position: 'relative'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
display: 'inline-flex',
|
||||
justifyContent: 'center',
|
||||
padding: '0px 14px',
|
||||
background: '#F6F7F9',
|
||||
borderRadius: 16,
|
||||
height: 32,
|
||||
lineHeight: '32px',
|
||||
color: '#AC651A',
|
||||
marginRight: 20,
|
||||
marginBottom: 16
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
onClick: function onClick() {
|
||||
news_event_tags.splice(index, 1);
|
||||
setnews_event_tags(toConsumableArray_default()(news_event_tags));
|
||||
},
|
||||
className: Addmodules.hidden,
|
||||
style: {
|
||||
position: 'absolute',
|
||||
right: 15,
|
||||
top: -5,
|
||||
width: 14,
|
||||
height: 14,
|
||||
background: '#E30000',
|
||||
color: '#FFFFFF',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
borderRadius: '50%',
|
||||
fontSize: 10,
|
||||
cursor: 'pointer'
|
||||
},
|
||||
children: "x"
|
||||
})]
|
||||
});
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
span: 12,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u53D1\u5E03\u4EBA",
|
||||
labelCol: {
|
||||
span: 4
|
||||
}
|
||||
// wrapperCol={{ span: 10 }}
|
||||
,
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '发布人不能为空'
|
||||
}],
|
||||
name: "publisher",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
maxLength: 10
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
span: 11,
|
||||
style: {
|
||||
marginLeft: 46
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u53D1\u5E03\u65F6\u95F4"
|
||||
// wrapperCol={{ span: 8 }}
|
||||
,
|
||||
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '发布时间不能为空'
|
||||
}],
|
||||
name: "publish_time",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
||||
style: {
|
||||
width: '100%'
|
||||
},
|
||||
showTime: true
|
||||
})
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u94FE\u63A5",
|
||||
name: "url",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u5185\u5BB9",
|
||||
name: "content",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入内容'
|
||||
}],
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(WangEditor/* default */.Z, {})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u7F6E\u9876",
|
||||
name: "is_top",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "attachment_ids",
|
||||
label: "\u9644\u4EF6",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
valuePropName: "fileList",
|
||||
getValueFromEvent: normFile
|
||||
// extra="longgggggggggggggggggggggggggggggggggg"
|
||||
,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
|
||||
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
||||
withCredentials: true,
|
||||
listType: "picture",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}),
|
||||
children: "\u4E0A\u4F20\u6587\u4EF6"
|
||||
})
|
||||
})
|
||||
})]
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Addmodules.footst,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: '0px auto',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
height: '100%'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
onClick: function onClick() {
|
||||
history.back();
|
||||
},
|
||||
size: "large",
|
||||
children: "\u8FD4\u56DE"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
onClick: function onClick() {
|
||||
form.submit();
|
||||
},
|
||||
style: {
|
||||
marginLeft: 10
|
||||
},
|
||||
type: "primary",
|
||||
size: "large",
|
||||
children: "\u786E\u8BA4\u65B0\u5EFA"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Add = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var homePage = _ref3.homePage,
|
||||
loading = _ref3.loading,
|
||||
globalSetting = _ref3.globalSetting,
|
||||
user = _ref3.user;
|
||||
return {
|
||||
homePage: homePage,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.models.homePage,
|
||||
user: user
|
||||
};
|
||||
})(IndexPage));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,900 @@
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/News/Detail/index.less?modules ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___DCdqz {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___gStp0 {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___JSmce {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___jvY5W {
|
||||
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___NqQTL {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.bannerButton___rAehh {
|
||||
width: 136px;
|
||||
height: 32px;
|
||||
display: inline-flex;
|
||||
box-shadow: inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
|
||||
border-radius: 2px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
||||
color: #FFFFFF;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.menuitem___CtZMb {
|
||||
height: 40px;
|
||||
align-items: center;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
line-height: 40px;
|
||||
cursor: pointer;
|
||||
-webkit-box-orient: vertical;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.menuitem___CtZMb:hover {
|
||||
background: #EAEFFA;
|
||||
color: #3061D0;
|
||||
}
|
||||
.semenuitem___nKAsu {
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
align-items: center;
|
||||
padding-left: 26px;
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
cursor: pointer;
|
||||
background: #EAEFFA;
|
||||
color: #3061D0;
|
||||
-webkit-box-orient: vertical;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.description___mN1g0 {
|
||||
color: #333333;
|
||||
font-size: 14px;
|
||||
-webkit-box-orient: vertical;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
}
|
||||
.ehover___pbfuT {
|
||||
color: #666666;
|
||||
cursor: pointer;
|
||||
}
|
||||
.ehover___pbfuT:hover {
|
||||
color: #3061D0;
|
||||
}
|
||||
.dhover___AK0BP {
|
||||
color: #666666;
|
||||
cursor: pointer;
|
||||
}
|
||||
.dhover___AK0BP:hover {
|
||||
color: red;
|
||||
}
|
||||
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./node_modules/_swiper@5.4.5@swiper/css/swiper.css ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/**
|
||||
* Swiper 5.4.5
|
||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
||||
* http://swiperjs.com
|
||||
*
|
||||
* Copyright 2014-2020 Vladimir Kharlampidi
|
||||
*
|
||||
* Released under the MIT License
|
||||
*
|
||||
* Released on: June 16, 2020
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: 'swiper-icons';
|
||||
src: url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA") format("woff");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
:root {
|
||||
--swiper-theme-color: #007aff;
|
||||
}
|
||||
.swiper-container {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
/* Fix of Webkit flickering */
|
||||
z-index: 1;
|
||||
}
|
||||
.swiper-container-vertical > .swiper-wrapper {
|
||||
flex-direction: column;
|
||||
}
|
||||
.swiper-wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
transition-property: transform;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
.swiper-container-android .swiper-slide,
|
||||
.swiper-wrapper {
|
||||
transform: translate3d(0px, 0, 0);
|
||||
}
|
||||
.swiper-container-multirow > .swiper-wrapper {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.swiper-container-multirow-column > .swiper-wrapper {
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
}
|
||||
.swiper-container-free-mode > .swiper-wrapper {
|
||||
transition-timing-function: ease-out;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.swiper-slide {
|
||||
flex-shrink: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
transition-property: transform;
|
||||
}
|
||||
.swiper-slide-invisible-blank {
|
||||
visibility: hidden;
|
||||
}
|
||||
/* Auto Height */
|
||||
.swiper-container-autoheight,
|
||||
.swiper-container-autoheight .swiper-slide {
|
||||
height: auto;
|
||||
}
|
||||
.swiper-container-autoheight .swiper-wrapper {
|
||||
align-items: flex-start;
|
||||
transition-property: transform, height;
|
||||
}
|
||||
/* 3D Effects */
|
||||
.swiper-container-3d {
|
||||
perspective: 1200px;
|
||||
}
|
||||
.swiper-container-3d .swiper-wrapper,
|
||||
.swiper-container-3d .swiper-slide,
|
||||
.swiper-container-3d .swiper-slide-shadow-left,
|
||||
.swiper-container-3d .swiper-slide-shadow-right,
|
||||
.swiper-container-3d .swiper-slide-shadow-top,
|
||||
.swiper-container-3d .swiper-slide-shadow-bottom,
|
||||
.swiper-container-3d .swiper-cube-shadow {
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-left,
|
||||
.swiper-container-3d .swiper-slide-shadow-right,
|
||||
.swiper-container-3d .swiper-slide-shadow-top,
|
||||
.swiper-container-3d .swiper-slide-shadow-bottom {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
pointer-events: none;
|
||||
z-index: 10;
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-left {
|
||||
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-right {
|
||||
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-top {
|
||||
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
.swiper-container-3d .swiper-slide-shadow-bottom {
|
||||
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
||||
}
|
||||
/* CSS Mode */
|
||||
.swiper-container-css-mode > .swiper-wrapper {
|
||||
overflow: auto;
|
||||
scrollbar-width: none;
|
||||
/* For Firefox */
|
||||
-ms-overflow-style: none;
|
||||
/* For Internet Explorer and Edge */
|
||||
}
|
||||
.swiper-container-css-mode > .swiper-wrapper::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.swiper-container-css-mode > .swiper-wrapper > .swiper-slide {
|
||||
scroll-snap-align: start start;
|
||||
}
|
||||
.swiper-container-horizontal.swiper-container-css-mode > .swiper-wrapper {
|
||||
-webkit-scroll-snap-type: x mandatory;
|
||||
-ms-scroll-snap-type: x mandatory;
|
||||
scroll-snap-type: x mandatory;
|
||||
}
|
||||
.swiper-container-vertical.swiper-container-css-mode > .swiper-wrapper {
|
||||
-webkit-scroll-snap-type: y mandatory;
|
||||
-ms-scroll-snap-type: y mandatory;
|
||||
scroll-snap-type: y mandatory;
|
||||
}
|
||||
:root {
|
||||
--swiper-navigation-size: 44px;
|
||||
/*
|
||||
--swiper-navigation-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-button-prev,
|
||||
.swiper-button-next {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: calc(44px / 44 * 27);
|
||||
width: calc(var(--swiper-navigation-size) / 44 * 27);
|
||||
height: 44px;
|
||||
height: var(--swiper-navigation-size);
|
||||
margin-top: calc(-1 * 44px / 2);
|
||||
margin-top: calc(-1 * var(--swiper-navigation-size) / 2);
|
||||
z-index: 10;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #007aff;
|
||||
color: var(--swiper-navigation-color, var(--swiper-theme-color));
|
||||
}
|
||||
.swiper-button-prev.swiper-button-disabled,
|
||||
.swiper-button-next.swiper-button-disabled {
|
||||
opacity: 0.35;
|
||||
cursor: auto;
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-button-prev:after,
|
||||
.swiper-button-next:after {
|
||||
font-family: swiper-icons;
|
||||
font-size: 44px;
|
||||
font-size: var(--swiper-navigation-size);
|
||||
text-transform: none !important;
|
||||
letter-spacing: 0;
|
||||
text-transform: none;
|
||||
font-feature-settings: ;
|
||||
font-variant: normal;
|
||||
font-variant: initial;
|
||||
line-height: 1;
|
||||
}
|
||||
.swiper-button-prev,
|
||||
.swiper-container-rtl .swiper-button-next {
|
||||
left: 10px;
|
||||
right: auto;
|
||||
}
|
||||
.swiper-button-prev:after,
|
||||
.swiper-container-rtl .swiper-button-next:after {
|
||||
content: 'prev';
|
||||
}
|
||||
.swiper-button-next,
|
||||
.swiper-container-rtl .swiper-button-prev {
|
||||
right: 10px;
|
||||
left: auto;
|
||||
}
|
||||
.swiper-button-next:after,
|
||||
.swiper-container-rtl .swiper-button-prev:after {
|
||||
content: 'next';
|
||||
}
|
||||
.swiper-button-prev.swiper-button-white,
|
||||
.swiper-button-next.swiper-button-white {
|
||||
--swiper-navigation-color: #ffffff;
|
||||
}
|
||||
.swiper-button-prev.swiper-button-black,
|
||||
.swiper-button-next.swiper-button-black {
|
||||
--swiper-navigation-color: #000000;
|
||||
}
|
||||
.swiper-button-lock {
|
||||
display: none;
|
||||
}
|
||||
:root {
|
||||
/*
|
||||
--swiper-pagination-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-pagination {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
transition: 300ms opacity;
|
||||
transform: translate3d(0, 0, 0);
|
||||
z-index: 10;
|
||||
}
|
||||
.swiper-pagination.swiper-pagination-hidden {
|
||||
opacity: 0;
|
||||
}
|
||||
/* Common Styles */
|
||||
.swiper-pagination-fraction,
|
||||
.swiper-pagination-custom,
|
||||
.swiper-container-horizontal > .swiper-pagination-bullets {
|
||||
bottom: 10px;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
}
|
||||
/* Bullets */
|
||||
.swiper-pagination-bullets-dynamic {
|
||||
overflow: hidden;
|
||||
font-size: 0;
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transform: scale(0.33);
|
||||
position: relative;
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {
|
||||
transform: scale(1);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {
|
||||
transform: scale(1);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {
|
||||
transform: scale(0.66);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
|
||||
transform: scale(0.33);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {
|
||||
transform: scale(0.66);
|
||||
}
|
||||
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
|
||||
transform: scale(0.33);
|
||||
}
|
||||
.swiper-pagination-bullet {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
display: inline-block;
|
||||
border-radius: 100%;
|
||||
background: #000;
|
||||
opacity: 0.2;
|
||||
}
|
||||
button.swiper-pagination-bullet {
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
.swiper-pagination-clickable .swiper-pagination-bullet {
|
||||
cursor: pointer;
|
||||
}
|
||||
.swiper-pagination-bullet-active {
|
||||
opacity: 1;
|
||||
background: #007aff;
|
||||
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
||||
}
|
||||
.swiper-container-vertical > .swiper-pagination-bullets {
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translate3d(0px, -50%, 0);
|
||||
}
|
||||
.swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet {
|
||||
margin: 6px 0;
|
||||
display: block;
|
||||
}
|
||||
.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 8px;
|
||||
}
|
||||
.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
display: inline-block;
|
||||
transition: 200ms transform, 200ms top;
|
||||
}
|
||||
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
|
||||
margin: 0 4px;
|
||||
}
|
||||
.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transition: 200ms transform, 200ms left;
|
||||
}
|
||||
.swiper-container-horizontal.swiper-container-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {
|
||||
transition: 200ms transform, 200ms right;
|
||||
}
|
||||
/* Progress */
|
||||
.swiper-pagination-progressbar {
|
||||
background: rgba(0, 0, 0, 0.25);
|
||||
position: absolute;
|
||||
}
|
||||
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
|
||||
background: #007aff;
|
||||
background: var(--swiper-pagination-color, var(--swiper-theme-color));
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: scale(0);
|
||||
transform-origin: left top;
|
||||
}
|
||||
.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
|
||||
transform-origin: right top;
|
||||
}
|
||||
.swiper-container-horizontal > .swiper-pagination-progressbar,
|
||||
.swiper-container-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-container-vertical > .swiper-pagination-progressbar,
|
||||
.swiper-container-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-pagination-white {
|
||||
--swiper-pagination-color: #ffffff;
|
||||
}
|
||||
.swiper-pagination-black {
|
||||
--swiper-pagination-color: #000000;
|
||||
}
|
||||
.swiper-pagination-lock {
|
||||
display: none;
|
||||
}
|
||||
/* Scrollbar */
|
||||
.swiper-scrollbar {
|
||||
border-radius: 10px;
|
||||
position: relative;
|
||||
-ms-touch-action: none;
|
||||
background: rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.swiper-container-horizontal > .swiper-scrollbar {
|
||||
position: absolute;
|
||||
left: 1%;
|
||||
bottom: 3px;
|
||||
z-index: 50;
|
||||
height: 5px;
|
||||
width: 98%;
|
||||
}
|
||||
.swiper-container-vertical > .swiper-scrollbar {
|
||||
position: absolute;
|
||||
right: 3px;
|
||||
top: 1%;
|
||||
z-index: 50;
|
||||
width: 5px;
|
||||
height: 98%;
|
||||
}
|
||||
.swiper-scrollbar-drag {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
}
|
||||
.swiper-scrollbar-cursor-drag {
|
||||
cursor: move;
|
||||
}
|
||||
.swiper-scrollbar-lock {
|
||||
display: none;
|
||||
}
|
||||
.swiper-zoom-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.swiper-zoom-container > img,
|
||||
.swiper-zoom-container > svg,
|
||||
.swiper-zoom-container > canvas {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
.swiper-slide-zoomed {
|
||||
cursor: move;
|
||||
}
|
||||
/* Preloader */
|
||||
:root {
|
||||
/*
|
||||
--swiper-preloader-color: var(--swiper-theme-color);
|
||||
*/
|
||||
}
|
||||
.swiper-lazy-preloader {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -21px;
|
||||
margin-top: -21px;
|
||||
z-index: 10;
|
||||
transform-origin: 50%;
|
||||
animation: swiper-preloader-spin 1s infinite linear;
|
||||
box-sizing: border-box;
|
||||
border: 4px solid #007aff;
|
||||
border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));
|
||||
border-radius: 50%;
|
||||
border-top-color: transparent;
|
||||
}
|
||||
.swiper-lazy-preloader-white {
|
||||
--swiper-preloader-color: #fff;
|
||||
}
|
||||
.swiper-lazy-preloader-black {
|
||||
--swiper-preloader-color: #000;
|
||||
}
|
||||
@keyframes swiper-preloader-spin {
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
/* a11y */
|
||||
.swiper-container .swiper-notification {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
z-index: -1000;
|
||||
}
|
||||
.swiper-container-fade.swiper-container-free-mode .swiper-slide {
|
||||
transition-timing-function: ease-out;
|
||||
}
|
||||
.swiper-container-fade .swiper-slide {
|
||||
pointer-events: none;
|
||||
transition-property: opacity;
|
||||
}
|
||||
.swiper-container-fade .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-container-fade .swiper-slide-active,
|
||||
.swiper-container-fade .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-container-cube {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-container-cube .swiper-slide {
|
||||
pointer-events: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
z-index: 1;
|
||||
visibility: hidden;
|
||||
transform-origin: 0 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.swiper-container-cube .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-container-cube.swiper-container-rtl .swiper-slide {
|
||||
transform-origin: 100% 0;
|
||||
}
|
||||
.swiper-container-cube .swiper-slide-active,
|
||||
.swiper-container-cube .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-container-cube .swiper-slide-active,
|
||||
.swiper-container-cube .swiper-slide-next,
|
||||
.swiper-container-cube .swiper-slide-prev,
|
||||
.swiper-container-cube .swiper-slide-next + .swiper-slide {
|
||||
pointer-events: auto;
|
||||
visibility: visible;
|
||||
}
|
||||
.swiper-container-cube .swiper-slide-shadow-top,
|
||||
.swiper-container-cube .swiper-slide-shadow-bottom,
|
||||
.swiper-container-cube .swiper-slide-shadow-left,
|
||||
.swiper-container-cube .swiper-slide-shadow-right {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
.swiper-container-cube .swiper-cube-shadow {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #000;
|
||||
opacity: 0.6;
|
||||
filter: blur(50px);
|
||||
z-index: 0;
|
||||
}
|
||||
.swiper-container-flip {
|
||||
overflow: visible;
|
||||
}
|
||||
.swiper-container-flip .swiper-slide {
|
||||
pointer-events: none;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
z-index: 1;
|
||||
}
|
||||
.swiper-container-flip .swiper-slide .swiper-slide {
|
||||
pointer-events: none;
|
||||
}
|
||||
.swiper-container-flip .swiper-slide-active,
|
||||
.swiper-container-flip .swiper-slide-active .swiper-slide-active {
|
||||
pointer-events: auto;
|
||||
}
|
||||
.swiper-container-flip .swiper-slide-shadow-top,
|
||||
.swiper-container-flip .swiper-slide-shadow-bottom,
|
||||
.swiper-container-flip .swiper-slide-shadow-left,
|
||||
.swiper-container-flip .swiper-slide-shadow-right {
|
||||
z-index: 0;
|
||||
-webkit-backface-visibility: hidden;
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/FileDownloadList/index.less?modules ***!
|
||||
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.flex_box_center___A3pzf {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
-webkit-justify-content: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_space_between___JBoa5 {
|
||||
justify-content: space-between;
|
||||
-webkit-box-pack: justify;
|
||||
}
|
||||
.flex_box_vertical_center___MJuIO {
|
||||
align-items: center;
|
||||
box-align: center;
|
||||
}
|
||||
.flex_box_center_end___OcjUA {
|
||||
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___zSH4A {
|
||||
flex-direction: column;
|
||||
box-orient: block-axis;
|
||||
}
|
||||
.list___KhJas .middle___IjlYi {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.list___KhJas .row___GGtIx {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .title___o_xqf {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 24px;
|
||||
background: rgba(22, 93, 255, 0.06);
|
||||
border-radius: 12px;
|
||||
font-size: 14px;
|
||||
color: #165DFF;
|
||||
padding: 5px 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .title___o_xqf span {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 760px;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .title___o_xqf i {
|
||||
font-size: 13px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .size___OVRoL {
|
||||
font-size: 12px;
|
||||
color: #C5C5C5;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .download___ZLcIH {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
color: #165DFF;
|
||||
margin-left: 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .download___ZLcIH i {
|
||||
font-size: 14px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .preview___gi0kI {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
color: #2FA34F;
|
||||
margin-left: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .preview___gi0kI i {
|
||||
font-size: 14px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .annotation___KVSwj {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
color: #A77F1E;
|
||||
margin-left: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.list___KhJas .row___GGtIx .annotation___KVSwj i {
|
||||
font-size: 14px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/PreviewAll/index.less?modules ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.wrp___dq7YK {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 108;
|
||||
}
|
||||
.wrp___dq7YK.bgBlack___ARIUV {
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
.wrp___dq7YK img,
|
||||
.wrp___dq7YK video {
|
||||
max-width: 100%;
|
||||
max-height: 80%;
|
||||
text-align: center;
|
||||
}
|
||||
.wrp___dq7YK iframe {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background: #fff;
|
||||
border: none;
|
||||
}
|
||||
.monaco___VnZC3 {
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.darkBlue___UprA9 * {
|
||||
font-size: 14px;
|
||||
}
|
||||
.darkBlue___UprA9 [class~='margin'],
|
||||
.darkBlue___UprA9 [class~='monaco-editor-background'] {
|
||||
background: #0a0e2d !important;
|
||||
}
|
||||
.darkBlue___UprA9 [class~='line-numbers'] {
|
||||
color: white !important;
|
||||
}
|
||||
.close___LKoWu {
|
||||
position: absolute;
|
||||
right: 40px;
|
||||
top: 40px;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
}
|
||||
.close___LKoWu > span {
|
||||
background: #4a4a4a;
|
||||
color: #fff;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
cursor: pointer;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.embed___hvpEJ {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[4].oneOf[1].use[2]!./src/components/monaco-editor/index.css ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.my-monaco-editor div,
|
||||
.my-diff-editor div {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.my-error-line-wrp {
|
||||
width: calc(100% - 20px) !important;
|
||||
background: rgba(245, 0, 0, 0.2) !important;
|
||||
height: auto !important;
|
||||
color: rgba(245, 0, 0, 1);
|
||||
}
|
||||
|
||||
|
||||
.noCopyPaste .quick-input-widget {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.breakpoints-select {
|
||||
|
||||
background: #FF0000;
|
||||
width: 8px !important;
|
||||
height: 8px !important;
|
||||
left: 7px !important;
|
||||
top: 7px;
|
||||
border-radius: 4px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.breakpoints-fake {
|
||||
background: rgba(255, 0, 0, 0.5);
|
||||
width: 8px !important;
|
||||
height: 8px !important;
|
||||
left: 7px !important;
|
||||
top: 7px;
|
||||
border-radius: 4px;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.highlighted-line {
|
||||
background: #4B4B18;
|
||||
}
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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.0.89@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.0.89@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/components/ImageDimensions/index.less?modules ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
.imageDimensions___a7crR {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: start;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 4;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
padding-top: 60px;
|
||||
}
|
||||
.imageDimensions___a7crR .img___Kroat {
|
||||
visibility: hidden;
|
||||
max-width: 80%;
|
||||
min-width: 500px;
|
||||
}
|
||||
|
||||
@ -0,0 +1,787 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[28477],{
|
||||
|
||||
/***/ 13224:
|
||||
/*!*********************************************!*\
|
||||
!*** ./src/components/WangEditor/index.tsx ***!
|
||||
\*********************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js */ 10574);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js */ 39343);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js */ 11006);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wangeditor/editor-for-react */ 84686);
|
||||
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/fetch */ 91506);
|
||||
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! umi */ 45295);
|
||||
/* harmony import */ var _wangeditor_editor_dist_css_style_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wangeditor/editor/dist/css/style.css */ 49761);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 引入 css
|
||||
|
||||
|
||||
|
||||
var MyEditor = function MyEditor(_ref) {
|
||||
var defaultvalue = _ref.defaultvalue,
|
||||
onChange = _ref.onChange,
|
||||
style = _ref.style,
|
||||
user = _ref.user,
|
||||
placeholder = _ref.placeholder;
|
||||
//设置分片大小
|
||||
var chunkSize = 1024 * 1024 * 2; // 2MB
|
||||
var abortControllerRef = (0,react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null);
|
||||
var concurrency = 4;
|
||||
// editor 实例
|
||||
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(null),
|
||||
_useState2 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
||||
editor = _useState2[0],
|
||||
setEditor = _useState2[1]; // TS 语法
|
||||
// const [editor, setEditor] = useState(null) // JS 语法
|
||||
|
||||
// 编辑器内容
|
||||
var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_4__.useState)(''),
|
||||
_useState4 = _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3___default()(_useState3, 2),
|
||||
html = _useState4[0],
|
||||
setHtml = _useState4[1];
|
||||
|
||||
// 模拟 ajax 请求,异步设置 html
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
setHtml(defaultvalue);
|
||||
}, [defaultvalue]);
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
onChange(html);
|
||||
}, [html]);
|
||||
|
||||
// 工具栏配置
|
||||
var toolbarConfig = {}; // TS 语法
|
||||
// const toolbarConfig = { } // JS 语法
|
||||
|
||||
// 编辑器配置
|
||||
var editorConfig = {
|
||||
// TS 语法
|
||||
// const editorConfig = { // JS 语法
|
||||
placeholder: placeholder || '请输入内容...',
|
||||
MENU_CONF: {}
|
||||
};
|
||||
editorConfig.MENU_CONF['uploadImage'] = {
|
||||
customUpload: function customUpload(file, insertFn) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee() {
|
||||
var formData, res;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
// TS 语法
|
||||
// async customUpload(file, insertFn) { // JS 语法
|
||||
// file 即选中的文件
|
||||
// 自己实现上传,并得到图片 url alt href
|
||||
// 最后插入图片
|
||||
// insertFn(url, alt, href)
|
||||
formData = new FormData();
|
||||
formData.append('file', file);
|
||||
_context.next = 4;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments.json", {
|
||||
method: 'post',
|
||||
body: formData
|
||||
}, true);
|
||||
case 4:
|
||||
res = _context.sent;
|
||||
insertFn(res === null || res === void 0 ? void 0 : res.url, '', '');
|
||||
case 6:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}))();
|
||||
}
|
||||
};
|
||||
editorConfig.MENU_CONF['uploadVideo'] = {
|
||||
// 上传视频的配置
|
||||
customUpload: function customUpload(file, insertFn) {
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _callee2() {
|
||||
var fileSize, totalChunks, _user$userInfo, _user$userInfo2, res, uploadId, promises, percent, _loop, i, completed, step, _promises$slice, subTasks, p, uploadRes;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee2$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
// TS 语法
|
||||
// async customUpload(file, insertFn) { // JS 语法
|
||||
// file 即选中的文件
|
||||
// 自己实现上传,并得到视频 url poster
|
||||
fileSize = file.size;
|
||||
totalChunks = Math.ceil(fileSize / chunkSize);
|
||||
_context3.prev = 2;
|
||||
_context3.next = 5;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload_start", {
|
||||
method: 'POST',
|
||||
body: {
|
||||
fileName: file.name,
|
||||
chunkCount: totalChunks,
|
||||
user_id: user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id
|
||||
}
|
||||
});
|
||||
case 5:
|
||||
res = _context3.sent;
|
||||
if (!((res === null || res === void 0 ? void 0 : res.status) !== 0)) {
|
||||
_context3.next = 8;
|
||||
break;
|
||||
}
|
||||
throw new Error();
|
||||
case 8:
|
||||
uploadId = res.upload_id;
|
||||
abortControllerRef.current = new AbortController();
|
||||
promises = [];
|
||||
percent = 0;
|
||||
_loop = /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().mark(function _loop() {
|
||||
var start, end, chunk, formData;
|
||||
return _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _loop$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
start = i * chunkSize;
|
||||
end = Math.min(start + chunkSize, fileSize);
|
||||
chunk = file.slice(start, end);
|
||||
formData = new FormData();
|
||||
formData.append('chunk', chunk);
|
||||
formData.append('fileName', file.name);
|
||||
formData.append('chunkIndex', (i + 1).toString());
|
||||
formData.append('uploadId', uploadId);
|
||||
|
||||
// for (const key in options) {
|
||||
// if (Object.prototype.hasOwnProperty.call(options, key)) {
|
||||
// formData.append(key, options[key]);
|
||||
// }
|
||||
// }
|
||||
|
||||
promises.push(function () {
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload", {
|
||||
method: 'POST',
|
||||
body: formData,
|
||||
signal: abortControllerRef.current.signal
|
||||
}, true).then(function (res) {});
|
||||
});
|
||||
case 9:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _loop);
|
||||
});
|
||||
i = 0;
|
||||
case 14:
|
||||
if (!(i < totalChunks)) {
|
||||
_context3.next = 19;
|
||||
break;
|
||||
}
|
||||
return _context3.delegateYield(_loop(), "t0", 16);
|
||||
case 16:
|
||||
i++;
|
||||
_context3.next = 14;
|
||||
break;
|
||||
case 19:
|
||||
completed = 0;
|
||||
step = concurrency;
|
||||
console.log(promises, 'promises');
|
||||
case 22:
|
||||
if (!(completed < promises.length)) {
|
||||
_context3.next = 31;
|
||||
break;
|
||||
}
|
||||
subTasks = (_promises$slice = promises.slice(completed, completed + step)) === null || _promises$slice === void 0 ? void 0 : _promises$slice.map(function (t) {
|
||||
return t();
|
||||
});
|
||||
if (!(subTasks.length > 0)) {
|
||||
_context3.next = 29;
|
||||
break;
|
||||
}
|
||||
_context3.next = 27;
|
||||
return Promise.all(subTasks);
|
||||
case 27:
|
||||
p = _context3.sent;
|
||||
completed += step;
|
||||
case 29:
|
||||
_context3.next = 22;
|
||||
break;
|
||||
case 31:
|
||||
_context3.next = 33;
|
||||
return (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .ZP)("/api/attachments/multipart_upload_end", {
|
||||
method: 'POST',
|
||||
body: {
|
||||
fileName: file.name,
|
||||
chunkCount: totalChunks,
|
||||
uploadId: uploadId,
|
||||
user_id: user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id
|
||||
}
|
||||
});
|
||||
case 33:
|
||||
uploadRes = _context3.sent;
|
||||
// 最后插入视频 参数1 视频地址 参数2 封面地址 选填
|
||||
// debugger
|
||||
insertFn(uploadRes === null || uploadRes === void 0 ? void 0 : uploadRes.object, '');
|
||||
_context3.next = 39;
|
||||
break;
|
||||
case 37:
|
||||
_context3.prev = 37;
|
||||
_context3.t1 = _context3["catch"](2);
|
||||
case 39:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee2, null, [[2, 37]]);
|
||||
}))();
|
||||
}
|
||||
};
|
||||
|
||||
// 及时销毁 editor ,重要!
|
||||
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
||||
return function () {
|
||||
if (editor == null) return;
|
||||
editor.destroy();
|
||||
setEditor(null);
|
||||
};
|
||||
}, [editor]);
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.Fragment, {
|
||||
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
||||
style: {
|
||||
border: '1px solid #ccc',
|
||||
zIndex: 100
|
||||
},
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__/* .Toolbar */ .o, {
|
||||
editor: editor,
|
||||
defaultConfig: toolbarConfig,
|
||||
mode: "default",
|
||||
style: {
|
||||
borderBottom: '1px solid #ccc'
|
||||
}
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_wangeditor_editor_for_react__WEBPACK_IMPORTED_MODULE_5__/* .Editor */ .M, {
|
||||
defaultConfig: editorConfig,
|
||||
value: html,
|
||||
onCreated: setEditor,
|
||||
onChange: function onChange(editor) {
|
||||
return setHtml(editor.getHtml());
|
||||
},
|
||||
mode: "default",
|
||||
style: _root_workspace_ppte5yg23_local_v9_test5_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
height: '500px',
|
||||
overflowY: 'hidden'
|
||||
}, style)
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_7__.connect)(function (_ref2) {
|
||||
var user = _ref2.user;
|
||||
return {
|
||||
user: user
|
||||
};
|
||||
})(MyEditor));
|
||||
|
||||
// export default MyEditor
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 84104:
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/pages/News/Edit/index.tsx + 1 modules ***!
|
||||
\***************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"default": function() { return /* binding */ Edit; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js
|
||||
var toConsumableArray = __webpack_require__(93923);
|
||||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(10574);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(39343);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(26801);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
||||
var es_form = __webpack_require__(78241);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(8591);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(1056);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
||||
var row = __webpack_require__(95237);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
||||
var col = __webpack_require__(43604);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
|
||||
var date_picker = __webpack_require__(52409);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/switch/index.js + 2 modules
|
||||
var es_switch = __webpack_require__(78673);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/upload/index.js + 24 modules
|
||||
var upload = __webpack_require__(6557);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
|
||||
var es_button = __webpack_require__(3113);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UploadOutlined.js + 1 modules
|
||||
var UploadOutlined = __webpack_require__(96402);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(45295);
|
||||
;// CONCATENATED MODULE: ./src/pages/News/Edit/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Editmodules = ({"flex_box_center":"flex_box_center___gfoCg","flex_space_between":"flex_space_between___KrQqO","flex_box_vertical_center":"flex_box_vertical_center___CoDLM","flex_box_center_end":"flex_box_center_end___p9VY3","flex_box_column":"flex_box_column___QDP7f","ContentWarp":"ContentWarp____NGO4","footst":"footst___JOtkR","tags":"tags___d8Fj9","hidden":"hidden___Uq9ip"});
|
||||
// EXTERNAL MODULE: ./src/components/WangEditor/index.tsx
|
||||
var WangEditor = __webpack_require__(13224);
|
||||
// EXTERNAL MODULE: ./node_modules/_swiper@5.4.5@swiper/css/swiper.css
|
||||
var swiper = __webpack_require__(5999);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(91506);
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(78130);
|
||||
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
|
||||
var dayjs_min = __webpack_require__(9498);
|
||||
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/News/Edit/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// import Aamodal from '@/components/HomeModal/AAmodal'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var IndexPage = function IndexPage(_ref) {
|
||||
var homePage = _ref.homePage,
|
||||
globalSetting = _ref.globalSetting,
|
||||
user = _ref.user,
|
||||
loading = _ref.loading,
|
||||
dispatch = _ref.dispatch;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
data = _useState2[0],
|
||||
setData = _useState2[1];
|
||||
var _Form$useForm = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
news_event_tags = _useState4[0],
|
||||
setnews_event_tags = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(objectSpread2_default()({
|
||||
page: 1,
|
||||
limit: 10
|
||||
}, (0,_umi_production_exports.useParams)())),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
params = _useState6[0],
|
||||
setparams = _useState6[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: false
|
||||
});
|
||||
return function () {
|
||||
dispatch({
|
||||
type: 'globalSetting/headerFooterToggle',
|
||||
payload: true
|
||||
});
|
||||
};
|
||||
}, []);
|
||||
var normFile = function normFile(e) {
|
||||
if (Array.isArray(e)) {
|
||||
return e;
|
||||
}
|
||||
return e === null || e === void 0 ? void 0 : e.fileList;
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getdata();
|
||||
// getlist();
|
||||
}, []);
|
||||
function getdata() {
|
||||
return _getdata.apply(this, arguments);
|
||||
}
|
||||
function _getdata() {
|
||||
_getdata = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
|
||||
var res, _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7, _res$data8;
|
||||
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_context3.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/news_events/".concat(params.id, ".json"), {
|
||||
method: 'get'
|
||||
});
|
||||
case 2:
|
||||
res = _context3.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
setData(res === null || res === void 0 ? void 0 : res.data);
|
||||
setnews_event_tags(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.news_event_tags);
|
||||
form.setFieldsValue({
|
||||
title: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.title,
|
||||
publisher: res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.publisher,
|
||||
url: res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.url,
|
||||
content: res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.content,
|
||||
is_top: res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.is_top,
|
||||
publish_time: dayjs_min_default()(res === null || res === void 0 || (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.publish_time),
|
||||
attachment_ids: res === null || res === void 0 || (_res$data8 = res.data) === null || _res$data8 === void 0 || (_res$data8 = _res$data8.attachments) === null || _res$data8 === void 0 ? void 0 : _res$data8.map(function (item) {
|
||||
return {
|
||||
uid: item.id,
|
||||
name: item.title,
|
||||
status: 'down',
|
||||
response: {
|
||||
id: item.id
|
||||
}
|
||||
};
|
||||
})
|
||||
});
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee3);
|
||||
}));
|
||||
return _getdata.apply(this, arguments);
|
||||
}
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
||||
style: {
|
||||
background: '#fff',
|
||||
paddingBottom: 60
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: '0px auto'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
paddingTop: 40,
|
||||
display: 'flex',
|
||||
alignItems: 'center'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
background: '#666666',
|
||||
height: 14,
|
||||
width: 4,
|
||||
marginRight: 8
|
||||
}
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#232B40',
|
||||
fontWeight: 500
|
||||
},
|
||||
children: "\u65B0\u95FB\u52A8\u6001"
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Editmodules.ContentWarp,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
size: "large",
|
||||
colon: false,
|
||||
form: form,
|
||||
onFinish: /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(value) {
|
||||
var _value$attachment_ids;
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/news_events/".concat(params.id, ".json"), {
|
||||
method: 'PUT',
|
||||
body: objectSpread2_default()(objectSpread2_default()({}, value), {}, {
|
||||
attachment_ids: value === null || value === void 0 || (_value$attachment_ids = value.attachment_ids) === null || _value$attachment_ids === void 0 ? void 0 : _value$attachment_ids.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;
|
||||
}),
|
||||
news_event_tags: news_event_tags
|
||||
})
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
message/* default */.ZP.info("保存成功");
|
||||
history.back();
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function (_x) {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}(),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u6807\u9898",
|
||||
name: "title",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '标题不能为空'
|
||||
}],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
maxLength: 200,
|
||||
showCount: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u6807\u7B7E",
|
||||
name: "tags",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
onPressEnter: function onPressEnter(e) {
|
||||
if ((news_event_tags === null || news_event_tags === void 0 ? void 0 : news_event_tags.length) === 5) {
|
||||
message/* default */.ZP.info('最多新增5个标签');
|
||||
return;
|
||||
}
|
||||
news_event_tags.push({
|
||||
id: null,
|
||||
name: e.target.value
|
||||
});
|
||||
setnews_event_tags(toConsumableArray_default()(news_event_tags));
|
||||
form.setFieldsValue({
|
||||
tags: ''
|
||||
});
|
||||
},
|
||||
maxLength: 10,
|
||||
addonAfter: "\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
span: 2
|
||||
}), news_event_tags === null || news_event_tags === void 0 ? void 0 : news_event_tags.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Editmodules.tags,
|
||||
style: {
|
||||
position: 'relative'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
display: 'inline-flex',
|
||||
justifyContent: 'center',
|
||||
padding: '0px 14px',
|
||||
background: '#F6F7F9',
|
||||
borderRadius: 16,
|
||||
height: 32,
|
||||
lineHeight: '32px',
|
||||
color: '#AC651A',
|
||||
marginRight: 20,
|
||||
marginBottom: 16
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
onClick: function onClick() {
|
||||
news_event_tags.splice(index, 1);
|
||||
setnews_event_tags(toConsumableArray_default()(news_event_tags));
|
||||
},
|
||||
className: Editmodules.hidden,
|
||||
style: {
|
||||
position: 'absolute',
|
||||
right: 15,
|
||||
top: -5,
|
||||
width: 14,
|
||||
height: 14,
|
||||
background: '#E30000',
|
||||
color: '#FFFFFF',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
borderRadius: '50%',
|
||||
fontSize: 10,
|
||||
cursor: 'pointer'
|
||||
},
|
||||
children: "x"
|
||||
})]
|
||||
});
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
span: 12,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u53D1\u5E03\u4EBA",
|
||||
labelCol: {
|
||||
span: 4
|
||||
}
|
||||
// wrapperCol={{ span: 10 }}
|
||||
,
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '发布人不能为空'
|
||||
}],
|
||||
name: "publisher",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
maxLength: 10
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
span: 11,
|
||||
style: {
|
||||
marginLeft: 46
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u53D1\u5E03\u65F6\u95F4"
|
||||
// wrapperCol={{ span: 8 }}
|
||||
,
|
||||
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '发布时间不能为空'
|
||||
}],
|
||||
name: "publish_time",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
||||
style: {
|
||||
width: '100%'
|
||||
},
|
||||
showTime: true
|
||||
})
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u94FE\u63A5",
|
||||
name: "url",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u5185\u5BB9",
|
||||
name: "content",
|
||||
rules: [{
|
||||
required: true,
|
||||
message: '请输入内容'
|
||||
}],
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(WangEditor/* default */.Z, {
|
||||
defaultvalue: data === null || data === void 0 ? void 0 : data.content
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
label: "\u7F6E\u9876",
|
||||
name: "is_top",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "attachment_ids",
|
||||
label: "\u9644\u4EF6",
|
||||
labelCol: {
|
||||
span: 2
|
||||
},
|
||||
valuePropName: "fileList",
|
||||
getValueFromEvent: normFile
|
||||
// extra="longgggggggggggggggggggggggggggggggggg"
|
||||
,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(upload/* default */.Z, {
|
||||
onRemove: /*#__PURE__*/function () {
|
||||
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2(e) {
|
||||
var _e$response;
|
||||
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/attachments/".concat(e === null || e === void 0 || (_e$response = e.response) === null || _e$response === void 0 ? void 0 : _e$response.id, ".json"), {
|
||||
method: 'delete'
|
||||
});
|
||||
case 2:
|
||||
res = _context2.sent;
|
||||
case 3:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return function (_x2) {
|
||||
return _ref3.apply(this, arguments);
|
||||
};
|
||||
}(),
|
||||
action: "".concat(env/* default */.Z.API_SERVER, "/api/attachments.json"),
|
||||
withCredentials: true,
|
||||
listType: "picture",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
icon: /*#__PURE__*/(0,jsx_runtime.jsx)(UploadOutlined/* default */.Z, {}),
|
||||
children: "\u4E0A\u4F20\u6587\u4EF6"
|
||||
})
|
||||
})
|
||||
})]
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Editmodules.footst,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: '0px auto',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
height: '100%'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
onClick: function onClick() {
|
||||
history.back();
|
||||
},
|
||||
size: "large",
|
||||
children: "\u8FD4\u56DE"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
onClick: function onClick() {
|
||||
form.submit();
|
||||
},
|
||||
style: {
|
||||
marginLeft: 10
|
||||
},
|
||||
type: "primary",
|
||||
size: "large",
|
||||
children: "\u786E\u8BA4\u4FDD\u5B58"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Edit = ((0,_umi_production_exports.connect)(function (_ref4) {
|
||||
var homePage = _ref4.homePage,
|
||||
loading = _ref4.loading,
|
||||
globalSetting = _ref4.globalSetting,
|
||||
user = _ref4.user;
|
||||
return {
|
||||
homePage: homePage,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.models.homePage,
|
||||
user: user
|
||||
};
|
||||
})(IndexPage));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,742 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[89901],{
|
||||
|
||||
/***/ 52063:
|
||||
/*!******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
|
||||
\******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_LeftOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@ant-design/icons-svg/es/asn/LeftOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/LeftOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_LeftOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_LeftOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 22311:
|
||||
/*!*******************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
|
||||
\*******************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_RightOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@ant-design/icons-svg/es/asn/RightOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/RightOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_RightOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_RightOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 46820:
|
||||
/*!********************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules ***!
|
||||
\********************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_SearchOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@ant-design/icons-svg/es/asn/SearchOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_SearchOutlined = (SearchOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var SearchOutlined_SearchOutlined = function SearchOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_SearchOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_SearchOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(SearchOutlined_SearchOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 22606:
|
||||
/*!**********************************************!*\
|
||||
!*** ./src/pages/News/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 */ News; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(10574);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js
|
||||
var toConsumableArray = __webpack_require__(93923);
|
||||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(26801);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(39343);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
|
||||
var divider = __webpack_require__(28103);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(41867);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(45295);
|
||||
;// CONCATENATED MODULE: ./src/pages/News/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Newsmodules = ({"flex_box_center":"flex_box_center___loW4U","flex_space_between":"flex_space_between___xn33v","flex_box_vertical_center":"flex_box_vertical_center___Qj8zz","flex_box_center_end":"flex_box_center_end___nUecs","flex_box_column":"flex_box_column___Xa5NL","bannerButton":"bannerButton___We7iR","menuitem":"menuitem___sd1JA","semenuitem":"semenuitem___lKUBf","description":"description___WVudY"});
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(78130);
|
||||
// EXTERNAL MODULE: ./node_modules/_swiper@5.4.5@swiper/css/swiper.css
|
||||
var swiper = __webpack_require__(5999);
|
||||
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
|
||||
var dayjs_min = __webpack_require__(9498);
|
||||
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(91506);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/News/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// import Aamodal from '@/components/HomeModal/AAmodal'
|
||||
|
||||
|
||||
|
||||
var IndexPage = function IndexPage(_ref) {
|
||||
var _globalSetting$settin, _data$list;
|
||||
var homePage = _ref.homePage,
|
||||
globalSetting = _ref.globalSetting,
|
||||
user = _ref.user,
|
||||
loading = _ref.loading,
|
||||
dispatch = _ref.dispatch;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
data = _useState2[0],
|
||||
setData = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([{
|
||||
name: '全部'
|
||||
}]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
taglist = _useState4[0],
|
||||
settaglist = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)({
|
||||
page: 1,
|
||||
limit: 10,
|
||||
setag: '全部'
|
||||
}),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
params = _useState6[0],
|
||||
setparams = _useState6[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getdata();
|
||||
// getlist();
|
||||
}, []);
|
||||
function getdata() {
|
||||
return _getdata.apply(this, arguments);
|
||||
}
|
||||
function _getdata() {
|
||||
_getdata = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/news_events/news_event_tag_names.json", {
|
||||
method: 'get'
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
settaglist([].concat(toConsumableArray_default()(taglist), toConsumableArray_default()(res === null || res === void 0 ? void 0 : res.data)));
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return _getdata.apply(this, arguments);
|
||||
}
|
||||
function getlist() {
|
||||
return _getlist.apply(this, arguments);
|
||||
}
|
||||
function _getlist() {
|
||||
_getlist = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
||||
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/news_events.json", {
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
case 2:
|
||||
res = _context2.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
||||
setData(res === null || res === void 0 ? void 0 : res.data);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return _getlist.apply(this, arguments);
|
||||
}
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getlist();
|
||||
}, [params]);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
||||
style: {
|
||||
background: '#fff',
|
||||
paddingBottom: 60
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
height: 240,
|
||||
backgroundImage: "url(".concat(env/* default */.Z.IMG_SERVER, "/").concat(globalSetting === null || globalSetting === void 0 || (_globalSetting$settin = globalSetting.setting) === null || _globalSetting$settin === void 0 ? void 0 : _globalSetting$settin.news_banner_url, ")"),
|
||||
backgroundSize: '100% 100%',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
padding: '40px 120px'
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: '0px auto',
|
||||
paddingTop: 40
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
||||
style: {
|
||||
fontSize: 30,
|
||||
color: '#fff',
|
||||
marginBottom: 26
|
||||
},
|
||||
children: "\u65B0\u95FB\u52A8\u6001"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push("/news/add");
|
||||
},
|
||||
className: Newsmodules.bannerButton,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-xinzengshiti2",
|
||||
style: {
|
||||
marginRight: 5,
|
||||
fontSize: 14
|
||||
}
|
||||
}), " \u65B0\u5EFA\u65B0\u95FB\u52A8\u6001"]
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: 1200,
|
||||
margin: '0px auto',
|
||||
display: 'flex',
|
||||
marginTop: 30
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
minWidth: 180,
|
||||
background: '#FAFAFA',
|
||||
maxHeight: 400
|
||||
},
|
||||
children: taglist === null || taglist === void 0 ? void 0 : taglist.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
onClick: function onClick() {
|
||||
params.setag = item.name;
|
||||
params.page = 1;
|
||||
params.limit = 10;
|
||||
setparams(objectSpread2_default()({}, params));
|
||||
},
|
||||
className: params.setag === item.name ? Newsmodules.semenuitem : Newsmodules.menuitem,
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
});
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginLeft: 20,
|
||||
border: '1px solid #EAEFFA',
|
||||
padding: 25,
|
||||
width: '100%'
|
||||
},
|
||||
children: [data === null || data === void 0 || (_data$list = data.list) === null || _data$list === void 0 ? void 0 : _data$list.map(function (item) {
|
||||
var _item$content, _item$news_event_tags;
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push("/news/".concat(item.id, "/detail"));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
marginBottom: 25
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
fontSize: '16px',
|
||||
fontWeight: 600,
|
||||
color: '#333333',
|
||||
flex: 1
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.title
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
fontSize: 14,
|
||||
color: '#333'
|
||||
},
|
||||
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.publish_time).format("YYYY年MM月DD日")
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Newsmodules.description,
|
||||
children: item === null || item === void 0 || (_item$content = item.content) === null || _item$content === void 0 ? void 0 : _item$content.replaceAll(/<[^>]+>/g, "")
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
marginTop: 15,
|
||||
display: 'flex'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'block',
|
||||
marginTop: 15,
|
||||
width: 200
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
marginRight: 10,
|
||||
color: '#999999'
|
||||
},
|
||||
children: "\u53D1\u5E03\u4EBA"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: item === null || item === void 0 ? void 0 : item.publisher
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
flex: 1,
|
||||
alignItems: 'baseline'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#999999',
|
||||
marginRight: 10
|
||||
},
|
||||
children: "\u6807\u7B7E"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
flex: 1
|
||||
},
|
||||
children: item === null || item === void 0 || (_item$news_event_tags = item.news_event_tags) === null || _item$news_event_tags === void 0 ? void 0 : _item$news_event_tags.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
display: 'inline-flex',
|
||||
justifyContent: 'center',
|
||||
padding: '0px 14px',
|
||||
background: '#F6F7F9',
|
||||
borderRadius: 16,
|
||||
height: 32,
|
||||
lineHeight: '32px',
|
||||
color: '#AC651A',
|
||||
marginRight: 10,
|
||||
marginTop: 10
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
});
|
||||
})
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
|
||||
dashed: true
|
||||
})]
|
||||
});
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
total: data === null || data === void 0 ? void 0 : data.count,
|
||||
hideOnSinglePage: true,
|
||||
showTotal: function showTotal(total, range) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: ["\u5171", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: '#2958D4'
|
||||
},
|
||||
children: total
|
||||
}), "\u6761\u6570\u636E"]
|
||||
});
|
||||
},
|
||||
pageSize: params === null || params === void 0 ? void 0 : params.limit,
|
||||
current: params === null || params === void 0 ? void 0 : params.page,
|
||||
onChange: function onChange(page, pageSize) {
|
||||
params.page = page;
|
||||
params.limit = pageSize;
|
||||
setparams(objectSpread2_default()({}, params));
|
||||
}
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var News = ((0,_umi_production_exports.connect)(function (_ref2) {
|
||||
var homePage = _ref2.homePage,
|
||||
loading = _ref2.loading,
|
||||
globalSetting = _ref2.globalSetting,
|
||||
user = _ref2.user;
|
||||
return {
|
||||
homePage: homePage,
|
||||
globalSetting: globalSetting,
|
||||
loading: loading.models.homePage,
|
||||
user: user
|
||||
};
|
||||
})(IndexPage));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5999:
|
||||
/*!**********************************************************!*\
|
||||
!*** ./node_modules/_swiper@5.4.5@swiper/css/swiper.css ***!
|
||||
\**********************************************************/
|
||||
/***/ (function() {
|
||||
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 28103:
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
|
||||
\***********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ divider; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_classnames);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
||||
var context = __webpack_require__(36355);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
|
||||
var style = __webpack_require__(17313);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
|
||||
var genComponentStyleHook = __webpack_require__(83116);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
|
||||
var statistic = __webpack_require__(37613);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/style/index.js
|
||||
|
||||
|
||||
// ============================== Shared ==============================
|
||||
const genSharedDividerStyle = token => {
|
||||
const {
|
||||
componentCls,
|
||||
sizePaddingEdgeHorizontal,
|
||||
colorSplit,
|
||||
lineWidth,
|
||||
textPaddingInline,
|
||||
orientationMargin,
|
||||
verticalMarginInline
|
||||
} = token;
|
||||
return {
|
||||
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
|
||||
borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
|
||||
// vertical
|
||||
'&-vertical': {
|
||||
position: 'relative',
|
||||
top: '-0.06em',
|
||||
display: 'inline-block',
|
||||
height: '0.9em',
|
||||
marginInline: verticalMarginInline,
|
||||
marginBlock: 0,
|
||||
verticalAlign: 'middle',
|
||||
borderTop: 0,
|
||||
borderInlineStart: `${lineWidth}px solid ${colorSplit}`
|
||||
},
|
||||
'&-horizontal': {
|
||||
display: 'flex',
|
||||
clear: 'both',
|
||||
width: '100%',
|
||||
minWidth: '100%',
|
||||
margin: `${token.dividerHorizontalGutterMargin}px 0`
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text`]: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
|
||||
color: token.colorTextHeading,
|
||||
fontWeight: 500,
|
||||
fontSize: token.fontSizeLG,
|
||||
whiteSpace: 'nowrap',
|
||||
textAlign: 'center',
|
||||
borderBlockStart: `0 ${colorSplit}`,
|
||||
'&::before, &::after': {
|
||||
position: 'relative',
|
||||
width: '50%',
|
||||
borderBlockStart: `${lineWidth}px solid transparent`,
|
||||
// Chrome not accept `inherit` in `border-top`
|
||||
borderBlockStartColor: 'inherit',
|
||||
borderBlockEnd: 0,
|
||||
transform: 'translateY(50%)',
|
||||
content: "''"
|
||||
}
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-left`]: {
|
||||
'&::before': {
|
||||
width: `${orientationMargin * 100}%`
|
||||
},
|
||||
'&::after': {
|
||||
width: `${100 - orientationMargin * 100}%`
|
||||
}
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-right`]: {
|
||||
'&::before': {
|
||||
width: `${100 - orientationMargin * 100}%`
|
||||
},
|
||||
'&::after': {
|
||||
width: `${orientationMargin * 100}%`
|
||||
}
|
||||
},
|
||||
[`${componentCls}-inner-text`]: {
|
||||
display: 'inline-block',
|
||||
paddingBlock: 0,
|
||||
paddingInline: textPaddingInline
|
||||
},
|
||||
'&-dashed': {
|
||||
background: 'none',
|
||||
borderColor: colorSplit,
|
||||
borderStyle: 'dashed',
|
||||
borderWidth: `${lineWidth}px 0 0`
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
|
||||
'&::before, &::after': {
|
||||
borderStyle: 'dashed none none'
|
||||
}
|
||||
},
|
||||
[`&-vertical${componentCls}-dashed`]: {
|
||||
borderInlineStartWidth: lineWidth,
|
||||
borderInlineEnd: 0,
|
||||
borderBlockStart: 0,
|
||||
borderBlockEnd: 0
|
||||
},
|
||||
[`&-plain${componentCls}-with-text`]: {
|
||||
color: token.colorText,
|
||||
fontWeight: 'normal',
|
||||
fontSize: token.fontSize
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
|
||||
'&::before': {
|
||||
width: 0
|
||||
},
|
||||
'&::after': {
|
||||
width: '100%'
|
||||
},
|
||||
[`${componentCls}-inner-text`]: {
|
||||
paddingInlineStart: sizePaddingEdgeHorizontal
|
||||
}
|
||||
},
|
||||
[`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
|
||||
'&::before': {
|
||||
width: '100%'
|
||||
},
|
||||
'&::after': {
|
||||
width: 0
|
||||
},
|
||||
[`${componentCls}-inner-text`]: {
|
||||
paddingInlineEnd: sizePaddingEdgeHorizontal
|
||||
}
|
||||
}
|
||||
})
|
||||
};
|
||||
};
|
||||
// ============================== Export ==============================
|
||||
/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
|
||||
const dividerToken = (0,statistic/* merge */.TS)(token, {
|
||||
dividerHorizontalWithTextGutterMargin: token.margin,
|
||||
dividerHorizontalGutterMargin: token.marginLG,
|
||||
sizePaddingEdgeHorizontal: 0
|
||||
});
|
||||
return [genSharedDividerStyle(dividerToken)];
|
||||
}, token => ({
|
||||
textPaddingInline: '1em',
|
||||
orientationMargin: 0.05,
|
||||
verticalMarginInline: token.marginXS
|
||||
})));
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js
|
||||
"use client";
|
||||
|
||||
var __rest = undefined && undefined.__rest || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Divider = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction,
|
||||
divider
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
type = 'horizontal',
|
||||
orientation = 'center',
|
||||
orientationMargin,
|
||||
className,
|
||||
rootClassName,
|
||||
children,
|
||||
dashed,
|
||||
plain,
|
||||
style
|
||||
} = props,
|
||||
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
|
||||
const prefixCls = getPrefixCls('divider', customizePrefixCls);
|
||||
const [wrapSSR, hashId] = divider_style(prefixCls);
|
||||
const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
|
||||
const hasChildren = !!children;
|
||||
const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
|
||||
const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
|
||||
const classString = _classnames_2_3_2_classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
|
||||
[`${prefixCls}-with-text`]: hasChildren,
|
||||
[`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
|
||||
[`${prefixCls}-dashed`]: !!dashed,
|
||||
[`${prefixCls}-plain`]: !!plain,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
|
||||
[`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
|
||||
}, className, rootClassName);
|
||||
const memoizedOrientationMargin = _react_17_0_2_react.useMemo(() => {
|
||||
if (typeof orientationMargin === 'number') {
|
||||
return orientationMargin;
|
||||
}
|
||||
if (/^\d+$/.test(orientationMargin)) {
|
||||
return Number(orientationMargin);
|
||||
}
|
||||
return orientationMargin;
|
||||
}, [orientationMargin]);
|
||||
const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
|
||||
marginLeft: memoizedOrientationMargin
|
||||
}), hasCustomMarginRight && {
|
||||
marginRight: memoizedOrientationMargin
|
||||
});
|
||||
// Warning children not work in vertical mode
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
|
||||
className: classString,
|
||||
style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
|
||||
}, restProps, {
|
||||
role: "separator"
|
||||
}), children && type !== 'vertical' && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: `${prefixCls}-inner-text`,
|
||||
style: innerStyle
|
||||
}, children)));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var divider = (Divider);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue