@ccs-ui/rc-pro 2.3.6-alpha-31 → 2.3.6-alpha-33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -27
- package/LICENSE +0 -21
- package/README.md +0 -37
- package/es/aj-captcha/index.d.ts +0 -34
- package/es/aj-captcha/index.js +0 -302
- package/es/aj-captcha/index.less +0 -89
- package/es/auth/index.d.ts +0 -15
- package/es/auth/index.js +0 -38
- package/es/breadcrumb.d.ts +0 -8
- package/es/breadcrumb.js +0 -40
- package/es/button/dropdown.d.ts +0 -6
- package/es/button/dropdown.js +0 -72
- package/es/button/group.d.ts +0 -2
- package/es/button/group.js +0 -176
- package/es/button/index.d.ts +0 -65
- package/es/button/index.js +0 -133
- package/es/cascader/index.d.ts +0 -33
- package/es/cascader/index.js +0 -120
- package/es/ccs.d.ts +0 -131
- package/es/ccs.js +0 -1
- package/es/color-picker/index.d.ts +0 -7
- package/es/color-picker/index.js +0 -142
- package/es/color-picker/index.less +0 -8
- package/es/config.d.ts +0 -6
- package/es/config.js +0 -126
- package/es/context/index.d.ts +0 -115
- package/es/context/index.js +0 -6
- package/es/date-picker/index.d.ts +0 -19
- package/es/date-picker/index.js +0 -72
- package/es/dialog/HookDrawer.d.ts +0 -9
- package/es/dialog/HookDrawer.js +0 -156
- package/es/dialog/HookModal.d.ts +0 -10
- package/es/dialog/HookModal.js +0 -213
- package/es/dialog/button.d.ts +0 -24
- package/es/dialog/button.js +0 -256
- package/es/dialog/context.d.ts +0 -25
- package/es/dialog/context.js +0 -13
- package/es/dialog/drawer-footer.d.ts +0 -16
- package/es/dialog/drawer-footer.js +0 -43
- package/es/dialog/form.d.ts +0 -16
- package/es/dialog/form.js +0 -53
- package/es/dialog/hook.d.ts +0 -80
- package/es/dialog/hook.js +0 -234
- package/es/dialog/index.d.ts +0 -19
- package/es/dialog/index.js +0 -14
- package/es/dialog/usePatchElement.d.ts +0 -5
- package/es/dialog/usePatchElement.js +0 -35
- package/es/editor/index.d.ts +0 -22
- package/es/editor/index.js +0 -18
- package/es/editor/index.less +0 -19
- package/es/editor/javascript.d.ts +0 -2
- package/es/editor/javascript.js +0 -56
- package/es/editor/json.d.ts +0 -7
- package/es/editor/json.js +0 -82
- package/es/editor/sql.d.ts +0 -2
- package/es/editor/sql.js +0 -54
- package/es/ellipsis/index.d.ts +0 -22
- package/es/ellipsis/index.js +0 -129
- package/es/ellipsis/index.less +0 -5
- package/es/ellipsis/useMeasure.d.ts +0 -9
- package/es/ellipsis/useMeasure.js +0 -142
- package/es/ellipsis/useResizeEffect.d.ts +0 -2
- package/es/ellipsis/useResizeEffect.js +0 -14
- package/es/ellipsis/withStopPropagation.d.ts +0 -4
- package/es/ellipsis/withStopPropagation.js +0 -38
- package/es/full-screen/index.d.ts +0 -3
- package/es/full-screen/index.js +0 -49
- package/es/group-form-item/index.d.ts +0 -11
- package/es/group-form-item/index.js +0 -124
- package/es/hooks/use-app.d.ts +0 -25
- package/es/hooks/use-app.js +0 -52
- package/es/hooks/use-event.d.ts +0 -10
- package/es/hooks/use-event.js +0 -69
- package/es/hooks/use-once-event.d.ts +0 -2
- package/es/hooks/use-once-event.js +0 -16
- package/es/hooks/use-page.d.ts +0 -10
- package/es/hooks/use-page.js +0 -10
- package/es/hooks/use-selection.d.ts +0 -17
- package/es/hooks/use-selection.js +0 -172
- package/es/hooks/use-tabs.d.ts +0 -2
- package/es/hooks/use-tabs.js +0 -10
- package/es/hooks/use-window.d.ts +0 -8
- package/es/hooks/use-window.js +0 -15
- package/es/index.d.ts +0 -37
- package/es/index.js +0 -37
- package/es/interval-button/index.d.ts +0 -14
- package/es/interval-button/index.js +0 -128
- package/es/layout-keep-alive/index.d.ts +0 -29
- package/es/layout-keep-alive/index.js +0 -400
- package/es/layout-keep-alive/index.less +0 -79
- package/es/layout-keep-alive/page.d.ts +0 -14
- package/es/layout-keep-alive/page.js +0 -53
- package/es/layout-single-page/index.d.ts +0 -14
- package/es/layout-single-page/index.js +0 -71
- package/es/layout-single-page/index.less +0 -15
- package/es/layout-single-page/page.d.ts +0 -13
- package/es/layout-single-page/page.js +0 -41
- package/es/loading/index.d.ts +0 -14
- package/es/loading/index.js +0 -43
- package/es/pro-grid/index.d.ts +0 -15
- package/es/pro-grid/index.js +0 -58
- package/es/pro-table/_utils.d.ts +0 -12
- package/es/pro-table/_utils.js +0 -94
- package/es/pro-table/form-item.d.ts +0 -9
- package/es/pro-table/form-item.js +0 -44
- package/es/pro-table/head.d.ts +0 -16
- package/es/pro-table/head.js +0 -225
- package/es/pro-table/index.d.ts +0 -23
- package/es/pro-table/index.js +0 -37
- package/es/pro-table/index.less +0 -82
- package/es/pro-table/operation.d.ts +0 -14
- package/es/pro-table/operation.js +0 -194
- package/es/pro-table/selection-alert.d.ts +0 -20
- package/es/pro-table/selection-alert.js +0 -64
- package/es/pro-table/size.d.ts +0 -10
- package/es/pro-table/size.js +0 -17
- package/es/pro-table/summary.d.ts +0 -8
- package/es/pro-table/summary.js +0 -32
- package/es/pro-table/table.d.ts +0 -104
- package/es/pro-table/table.js +0 -712
- package/es/pro-table/tree.d.ts +0 -24
- package/es/pro-table/tree.js +0 -197
- package/es/pro-tabs/index.d.ts +0 -9
- package/es/pro-tabs/index.js +0 -174
- package/es/resize-observer.d.ts +0 -15
- package/es/resize-observer.js +0 -37
- package/es/result/icon.d.ts +0 -3
- package/es/result/icon.js +0 -3
- package/es/result/index.d.ts +0 -12
- package/es/result/index.js +0 -68
- package/es/select/ modal.d.ts +0 -10
- package/es/select/ modal.js +0 -141
- package/es/select/api.d.ts +0 -25
- package/es/select/api.js +0 -67
- package/es/select/customize.d.ts +0 -25
- package/es/select/customize.js +0 -139
- package/es/select/index.d.ts +0 -31
- package/es/select/index.js +0 -108
- package/es/status-tag/index.d.ts +0 -13
- package/es/status-tag/index.js +0 -31
- package/es/table/index.d.ts +0 -19
- package/es/table/index.js +0 -253
- package/es/table/index.less +0 -29
- package/es/theme-dialog.d.ts +0 -28
- package/es/theme-dialog.js +0 -81
- package/es/time-picker/index.d.ts +0 -15
- package/es/time-picker/index.js +0 -49
- package/es/trigger/index.d.ts +0 -43
- package/es/trigger/index.js +0 -298
- package/es/trigger/index.less +0 -42
- package/es/types.d.ts +0 -0
- package/es/types.js +0 -0
- package/es/upload/index.d.ts +0 -42
- package/es/upload/index.js +0 -167
- package/es/upload/upload-image.d.ts +0 -6
- package/es/upload/upload-image.js +0 -205
- package/es/virtual-list/index.d.ts +0 -51
- package/es/virtual-list/index.js +0 -132
- package/es/water-mark/index.d.ts +0 -65
- package/es/water-mark/index.js +0 -141
- package/es/water-mark/relative.d.ts +0 -62
- package/es/water-mark/relative.js +0 -130
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccs-ui/rc-pro",
|
|
3
|
-
"version": "2.3.6-alpha-
|
|
3
|
+
"version": "2.3.6-alpha-33",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"module": "es/index.js",
|
|
13
13
|
"types": "es/index.d.ts",
|
|
14
14
|
"files": [
|
|
15
|
-
"es"
|
|
15
|
+
"es",
|
|
16
|
+
"docs-dist"
|
|
16
17
|
],
|
|
17
18
|
"scripts": {
|
|
18
19
|
"build": "father build",
|
|
@@ -79,49 +80,29 @@
|
|
|
79
80
|
"@ant-design/compatible": "^5.1.2",
|
|
80
81
|
"@ant-design/icons": "^5.1.4",
|
|
81
82
|
"@ccs-ui/utils": "^0.1.3",
|
|
82
|
-
"@commitlint/cli": "^17.1.2",
|
|
83
|
-
"@commitlint/config-conventional": "^17.1.0",
|
|
84
83
|
"@types/insert-css": "^2.0.3",
|
|
85
84
|
"@types/lodash.clonedeep": "^4.5.9",
|
|
86
85
|
"@types/lodash.debounce": "^4.0.9",
|
|
87
86
|
"@types/lodash.isarray": "^4.0.9",
|
|
88
87
|
"@types/lodash.isnil": "^4.0.9",
|
|
89
88
|
"@types/lodash.uniqueid": "^4.0.9",
|
|
90
|
-
"@types/react": "^18.0.0",
|
|
91
89
|
"@types/react-custom-scrollbars": "^4.0.10",
|
|
92
|
-
"@types/react-dom": "^18.0.0",
|
|
93
90
|
"@types/react-lines-ellipsis": "^0.15.6",
|
|
94
91
|
"@types/react-resizable": "^3.0.7",
|
|
95
|
-
"@umijs/lint": "^4.0.0",
|
|
96
|
-
"ahooks": "^3.7.7",
|
|
97
|
-
"antd": "^5.24.6",
|
|
98
|
-
"classnames": "^2.3.2",
|
|
99
|
-
"cross-env": "^7.0.3",
|
|
100
92
|
"dayjs": "^1.11.7",
|
|
101
|
-
"dumi": "^2.2.0",
|
|
102
|
-
"eslint": "^8.23.0",
|
|
103
|
-
"father": "^4.1.0",
|
|
104
|
-
"husky": "^8.0.1",
|
|
105
|
-
"lint-staged": "^13.0.3",
|
|
106
|
-
"prettier": "^2.7.1",
|
|
107
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
|
108
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
|
109
93
|
"rc-menu": "^9.15.1",
|
|
110
94
|
"rc-table": "^7.47.5",
|
|
111
95
|
"rc-trigger": "^5.3.4",
|
|
112
96
|
"rc-util": "^5.32.4",
|
|
113
|
-
"react": "^18.0.0",
|
|
114
|
-
"react-dom": "^18.0.0",
|
|
115
97
|
"react-router": "^6.11.2",
|
|
116
|
-
"react-router-dom": "^6.11.2"
|
|
117
|
-
"stylelint": "^14.9.1"
|
|
98
|
+
"react-router-dom": "^6.11.2"
|
|
118
99
|
},
|
|
119
100
|
"peerDependencies": {
|
|
120
101
|
"@ant-design/compatible": "^5.1.2",
|
|
121
102
|
"@ant-design/icons": "^5.1.4",
|
|
122
103
|
"@ccs-ui/utils": "^0.1.3",
|
|
123
104
|
"ahooks": "^3.7.7",
|
|
124
|
-
"antd": "^5.
|
|
105
|
+
"antd": "^5.24.6",
|
|
125
106
|
"classnames": "^2.3.2",
|
|
126
107
|
"dayjs": "^1.11.7",
|
|
127
108
|
"rc-menu": "^9.15.1",
|
|
@@ -129,9 +110,7 @@
|
|
|
129
110
|
"rc-trigger": "^5.3.4",
|
|
130
111
|
"rc-util": "^5.32.4",
|
|
131
112
|
"react": ">=16.9.0",
|
|
132
|
-
"react-dom": ">=16.9.0"
|
|
133
|
-
"react-router": "^6.11.2",
|
|
134
|
-
"react-router-dom": "^6.11.2"
|
|
113
|
+
"react-dom": ">=16.9.0"
|
|
135
114
|
},
|
|
136
115
|
"publishConfig": {
|
|
137
116
|
"access": "public"
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Dx
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# @ccs-ui/rc-pro
|
|
2
|
-
|
|
3
|
-
A react library developed with dumi
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
TODO
|
|
8
|
-
|
|
9
|
-
## Options
|
|
10
|
-
|
|
11
|
-
TODO
|
|
12
|
-
|
|
13
|
-
## Development
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
# install dependencies
|
|
17
|
-
$ yarn install
|
|
18
|
-
|
|
19
|
-
# develop library by docs demo
|
|
20
|
-
$ yarn start
|
|
21
|
-
|
|
22
|
-
# build library source code
|
|
23
|
-
$ yarn run build
|
|
24
|
-
|
|
25
|
-
# build library source code in watch mode
|
|
26
|
-
$ yarn run build:watch
|
|
27
|
-
|
|
28
|
-
# build docs
|
|
29
|
-
$ yarn run docs:build
|
|
30
|
-
|
|
31
|
-
# check your project for potential problems
|
|
32
|
-
$ yarn run doctor
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## LICENSE
|
|
36
|
-
|
|
37
|
-
MIT
|
package/es/aj-captcha/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
2
|
-
type Point = {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
};
|
|
6
|
-
export type AjCaptchaProps = {
|
|
7
|
-
/** 打开验证弹框 */
|
|
8
|
-
open: boolean;
|
|
9
|
-
/** sliding|wordSelect,滑动窗口、文字点选 */
|
|
10
|
-
captchaType: 'sliding' | 'wordSelect';
|
|
11
|
-
/** 背景图片 */
|
|
12
|
-
bgImg?: string;
|
|
13
|
-
/** 滑块图片 */
|
|
14
|
-
sliderImg?: string;
|
|
15
|
-
/** 文字选择 */
|
|
16
|
-
words?: string[];
|
|
17
|
-
/** 图片加载loading */
|
|
18
|
-
loadingImg: boolean;
|
|
19
|
-
/** 校验loading */
|
|
20
|
-
loadingValid: boolean;
|
|
21
|
-
/** 校验结果 */
|
|
22
|
-
validErrorMsg?: string;
|
|
23
|
-
/** 关闭验证弹框 */
|
|
24
|
-
onCancel: () => void;
|
|
25
|
-
/** 刷新验证图片 */
|
|
26
|
-
onRefresh: () => void;
|
|
27
|
-
/** 校验方法 */
|
|
28
|
-
onValid: (point: Point | Point[], captchaType: 'sliding' | 'wordSelect') => void;
|
|
29
|
-
};
|
|
30
|
-
declare function AjCaptcha(props: AjCaptchaProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
declare namespace AjCaptcha {
|
|
32
|
-
var displayName: string;
|
|
33
|
-
}
|
|
34
|
-
export default AjCaptcha;
|
package/es/aj-captcha/index.js
DELETED
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
10
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
11
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
13
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
14
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
15
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
|
-
import { CloseOutlined, LeftOutlined, LoadingOutlined, ReloadOutlined, RightOutlined } from '@ant-design/icons';
|
|
18
|
-
import { useEventListener } from 'ahooks';
|
|
19
|
-
import { Button, Modal, Spin, theme } from 'antd';
|
|
20
|
-
import { useEffect, useRef, useState } from 'react';
|
|
21
|
-
import "./index.less";
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
|
-
var useToken = theme.useToken;
|
|
26
|
-
function ShowMsg(_ref) {
|
|
27
|
-
var msg = _ref.msg;
|
|
28
|
-
var _useState = useState(true),
|
|
29
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
30
|
-
visible = _useState2[0],
|
|
31
|
-
setVisible = _useState2[1];
|
|
32
|
-
useEffect(function () {
|
|
33
|
-
if (msg) {
|
|
34
|
-
setTimeout(function () {
|
|
35
|
-
setVisible(false);
|
|
36
|
-
}, 1000);
|
|
37
|
-
}
|
|
38
|
-
}, []);
|
|
39
|
-
return visible ? msg : '';
|
|
40
|
-
}
|
|
41
|
-
function AjCaptchaSliding(_ref2) {
|
|
42
|
-
var bgImg = _ref2.bgImg,
|
|
43
|
-
sliderImg = _ref2.sliderImg,
|
|
44
|
-
loadingImg = _ref2.loadingImg,
|
|
45
|
-
loadingValid = _ref2.loadingValid,
|
|
46
|
-
validErrorMsg = _ref2.validErrorMsg,
|
|
47
|
-
onValid = _ref2.onValid,
|
|
48
|
-
onCancel = _ref2.onCancel,
|
|
49
|
-
onRefresh = _ref2.onRefresh;
|
|
50
|
-
var sliderBarRef = useRef(null);
|
|
51
|
-
var sliderImgRef = useRef(null);
|
|
52
|
-
var moveRef = useRef({
|
|
53
|
-
start: false,
|
|
54
|
-
startX: 0
|
|
55
|
-
});
|
|
56
|
-
useEffect(function () {
|
|
57
|
-
moveRef.current = {
|
|
58
|
-
start: false,
|
|
59
|
-
startX: 0
|
|
60
|
-
};
|
|
61
|
-
sliderBarRef.current.style.left = '0px';
|
|
62
|
-
sliderImgRef.current.style.left = '0px';
|
|
63
|
-
}, [sliderImg]);
|
|
64
|
-
var onChangePosition = function onChangePosition(offsetX) {
|
|
65
|
-
if (offsetX < 0) {
|
|
66
|
-
sliderBarRef.current.style.left = '0px';
|
|
67
|
-
sliderImgRef.current.style.left = '0px';
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
var left = offsetX > 263 ? '263px' : "".concat(offsetX, "px");
|
|
71
|
-
sliderBarRef.current.style.left = left;
|
|
72
|
-
sliderImgRef.current.style.left = left;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
// 开始
|
|
76
|
-
useEventListener('mousedown', function (e) {
|
|
77
|
-
if (loadingValid) return;
|
|
78
|
-
if (!moveRef.current.startX) {
|
|
79
|
-
moveRef.current.startX = e.clientX;
|
|
80
|
-
}
|
|
81
|
-
moveRef.current.start = true;
|
|
82
|
-
}, {
|
|
83
|
-
target: sliderBarRef
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
// 移动
|
|
87
|
-
useEventListener('mousemove', function (e) {
|
|
88
|
-
if (moveRef.current.start) {
|
|
89
|
-
var offsetX = e.clientX - moveRef.current.startX;
|
|
90
|
-
onChangePosition(offsetX);
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
target: document
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
// 结束
|
|
97
|
-
useEventListener('mouseup', function (e) {
|
|
98
|
-
var offsetX = e.clientX - moveRef.current.startX;
|
|
99
|
-
// 触发校验
|
|
100
|
-
onValid({
|
|
101
|
-
x: offsetX,
|
|
102
|
-
y: 5
|
|
103
|
-
}, 'sliding');
|
|
104
|
-
moveRef.current.start = false;
|
|
105
|
-
}, {
|
|
106
|
-
target: document
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
// 离开
|
|
110
|
-
// useEventListener(
|
|
111
|
-
// 'mouseleave',
|
|
112
|
-
// () => {
|
|
113
|
-
// moveRef.current.start = false;
|
|
114
|
-
// },
|
|
115
|
-
// { target: sliderBarRef },
|
|
116
|
-
// );
|
|
117
|
-
|
|
118
|
-
var _useToken = useToken(),
|
|
119
|
-
token = _useToken.token;
|
|
120
|
-
return /*#__PURE__*/_jsxs(Spin, {
|
|
121
|
-
indicator: /*#__PURE__*/_jsx(LoadingOutlined, {
|
|
122
|
-
style: {
|
|
123
|
-
fontSize: 24
|
|
124
|
-
}
|
|
125
|
-
}),
|
|
126
|
-
spinning: loadingImg,
|
|
127
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
128
|
-
className: "ccs-aj-body",
|
|
129
|
-
style: {
|
|
130
|
-
background: token.colorBgContainerDisabled
|
|
131
|
-
},
|
|
132
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
133
|
-
className: "ccs-aj-bg",
|
|
134
|
-
src: bgImg ? "data:image/png;base64,".concat(bgImg) : undefined,
|
|
135
|
-
width: 310,
|
|
136
|
-
height: 155
|
|
137
|
-
}), /*#__PURE__*/_jsx("img", {
|
|
138
|
-
ref: sliderImgRef,
|
|
139
|
-
className: "ccs-aj-slider-img",
|
|
140
|
-
style: {
|
|
141
|
-
height: 155
|
|
142
|
-
},
|
|
143
|
-
src: sliderImg ? "data:image/png;base64,".concat(sliderImg) : undefined
|
|
144
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
145
|
-
className: "ccs-aj-btn",
|
|
146
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
147
|
-
onClick: onRefresh,
|
|
148
|
-
type: "text",
|
|
149
|
-
icon: /*#__PURE__*/_jsx(ReloadOutlined, {})
|
|
150
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
151
|
-
className: "ccs-aj-error",
|
|
152
|
-
children: /*#__PURE__*/_jsx(ShowMsg, {
|
|
153
|
-
msg: validErrorMsg
|
|
154
|
-
}, sliderImg)
|
|
155
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
156
|
-
onClick: onCancel,
|
|
157
|
-
type: "text",
|
|
158
|
-
icon: /*#__PURE__*/_jsx(CloseOutlined, {})
|
|
159
|
-
})]
|
|
160
|
-
})]
|
|
161
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
162
|
-
className: "ccs-aj-slider",
|
|
163
|
-
style: {
|
|
164
|
-
background: token.colorBgElevated
|
|
165
|
-
},
|
|
166
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
167
|
-
className: "ccs-aj-slider-track",
|
|
168
|
-
style: {
|
|
169
|
-
background: token.colorBgContainerDisabled
|
|
170
|
-
},
|
|
171
|
-
children: "\u6309\u4F4F\u6ED1\u5757\uFF0C\u62D6\u52A8\u5B8C\u6210\u4E0A\u65B9\u62FC\u56FE"
|
|
172
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
173
|
-
className: "ccs-aj-slider-bar",
|
|
174
|
-
ref: sliderBarRef,
|
|
175
|
-
style: {
|
|
176
|
-
backgroundColor: token.colorBgBase,
|
|
177
|
-
border: "1px solid ".concat(token.colorBorder)
|
|
178
|
-
},
|
|
179
|
-
children: loadingValid ? /*#__PURE__*/_jsx(LoadingOutlined, {}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
180
|
-
children: [/*#__PURE__*/_jsx(LeftOutlined, {}), /*#__PURE__*/_jsx(RightOutlined, {})]
|
|
181
|
-
})
|
|
182
|
-
})]
|
|
183
|
-
})]
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
function AjCaptchaWord(_ref3) {
|
|
187
|
-
var bgImg = _ref3.bgImg,
|
|
188
|
-
words = _ref3.words,
|
|
189
|
-
loadingImg = _ref3.loadingImg,
|
|
190
|
-
loadingValid = _ref3.loadingValid,
|
|
191
|
-
validErrorMsg = _ref3.validErrorMsg,
|
|
192
|
-
onValid = _ref3.onValid,
|
|
193
|
-
onCancel = _ref3.onCancel,
|
|
194
|
-
onRefresh = _ref3.onRefresh;
|
|
195
|
-
var bgImgRef = useRef(null);
|
|
196
|
-
var _useState3 = useState([]),
|
|
197
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
198
|
-
points = _useState4[0],
|
|
199
|
-
setPoints = _useState4[1];
|
|
200
|
-
useEffect(function () {
|
|
201
|
-
setPoints([]);
|
|
202
|
-
}, [bgImg]);
|
|
203
|
-
|
|
204
|
-
// 结束
|
|
205
|
-
useEventListener('mouseup', function (e) {
|
|
206
|
-
setPoints([].concat(_toConsumableArray(points), [{
|
|
207
|
-
x: e.offsetX,
|
|
208
|
-
y: e.offsetY
|
|
209
|
-
}]));
|
|
210
|
-
}, {
|
|
211
|
-
target: bgImgRef
|
|
212
|
-
});
|
|
213
|
-
useEffect(function () {
|
|
214
|
-
if (points.length === (words === null || words === void 0 ? void 0 : words.length)) {
|
|
215
|
-
onValid(points, 'wordSelect');
|
|
216
|
-
}
|
|
217
|
-
}, [points.length]);
|
|
218
|
-
var _useToken2 = useToken(),
|
|
219
|
-
token = _useToken2.token;
|
|
220
|
-
return /*#__PURE__*/_jsxs(Spin, {
|
|
221
|
-
indicator: /*#__PURE__*/_jsx(LoadingOutlined, {
|
|
222
|
-
style: {
|
|
223
|
-
fontSize: 24
|
|
224
|
-
}
|
|
225
|
-
}),
|
|
226
|
-
spinning: loadingImg || loadingValid,
|
|
227
|
-
children: [/*#__PURE__*/_jsxs("div", {
|
|
228
|
-
className: "ccs-aj-body",
|
|
229
|
-
style: {
|
|
230
|
-
background: token.colorBgContainerDisabled
|
|
231
|
-
},
|
|
232
|
-
children: [/*#__PURE__*/_jsx("img", {
|
|
233
|
-
ref: bgImgRef,
|
|
234
|
-
className: "ccs-aj-bg",
|
|
235
|
-
src: bgImg ? "data:image/png;base64,".concat(bgImg) : undefined,
|
|
236
|
-
width: 310,
|
|
237
|
-
height: 155
|
|
238
|
-
}), points.map(function (point, index) {
|
|
239
|
-
return /*#__PURE__*/_jsx("div", {
|
|
240
|
-
className: "ccs-word-point",
|
|
241
|
-
style: {
|
|
242
|
-
left: point.x - 13,
|
|
243
|
-
top: point.y - 13
|
|
244
|
-
},
|
|
245
|
-
children: index + 1
|
|
246
|
-
}, point.x);
|
|
247
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
248
|
-
className: "ccs-aj-btn",
|
|
249
|
-
children: [/*#__PURE__*/_jsx(Button, {
|
|
250
|
-
onClick: onRefresh,
|
|
251
|
-
type: "text",
|
|
252
|
-
icon: /*#__PURE__*/_jsx(ReloadOutlined, {})
|
|
253
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
254
|
-
className: "ccs-aj-error",
|
|
255
|
-
children: /*#__PURE__*/_jsx(ShowMsg, {
|
|
256
|
-
msg: validErrorMsg
|
|
257
|
-
}, bgImg)
|
|
258
|
-
}), /*#__PURE__*/_jsx(Button, {
|
|
259
|
-
onClick: onCancel,
|
|
260
|
-
type: "text",
|
|
261
|
-
icon: /*#__PURE__*/_jsx(CloseOutlined, {})
|
|
262
|
-
})]
|
|
263
|
-
})]
|
|
264
|
-
}), /*#__PURE__*/_jsxs("div", {
|
|
265
|
-
className: "ccs-aj-word-slider",
|
|
266
|
-
style: {
|
|
267
|
-
color: token.colorTextLabel,
|
|
268
|
-
border: "1px solid ".concat(token.colorTextLabel)
|
|
269
|
-
},
|
|
270
|
-
children: ["\u8BF7\u4F9D\u6B21\u70B9\u51FB\u3010", words === null || words === void 0 ? void 0 : words.join(', '), "\u3011"]
|
|
271
|
-
})]
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
function AjCaptcha(props) {
|
|
275
|
-
var bodyPadding = props.captchaType === 'sliding' ? '10px 10px 0 10px' : 10;
|
|
276
|
-
return /*#__PURE__*/_jsx(Modal, {
|
|
277
|
-
width: 330,
|
|
278
|
-
open: props.open,
|
|
279
|
-
destroyOnClose: true,
|
|
280
|
-
onCancel: props.onCancel,
|
|
281
|
-
footer: null,
|
|
282
|
-
closable: false,
|
|
283
|
-
maskClosable: false,
|
|
284
|
-
styles: {
|
|
285
|
-
body: {
|
|
286
|
-
padding: bodyPadding
|
|
287
|
-
},
|
|
288
|
-
mask: {
|
|
289
|
-
backgroundColor: 'rgba(0, 0, 0, 0.25)'
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
className: "ccs-aj-modal",
|
|
293
|
-
style: {
|
|
294
|
-
top: 'calc(50vh - 200px)'
|
|
295
|
-
},
|
|
296
|
-
children: props.captchaType === 'sliding' ? /*#__PURE__*/_jsx(AjCaptchaSliding, _objectSpread({}, props)) : /*#__PURE__*/_jsx(AjCaptchaWord, _objectSpread({}, props))
|
|
297
|
-
});
|
|
298
|
-
}
|
|
299
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
300
|
-
AjCaptcha.displayName = 'CcsAjCaptcha';
|
|
301
|
-
}
|
|
302
|
-
export default AjCaptcha;
|
package/es/aj-captcha/index.less
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
.ccs-aj-modal {
|
|
2
|
-
.ccs-aj-bg {
|
|
3
|
-
-webkit-user-drag: none;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
// .ant-modal-content {
|
|
7
|
-
// padding: 0;
|
|
8
|
-
// }
|
|
9
|
-
|
|
10
|
-
// .ant-modal-close {
|
|
11
|
-
// top: 0;
|
|
12
|
-
// right: 0;
|
|
13
|
-
// width: 20px;
|
|
14
|
-
// height: 20px;
|
|
15
|
-
// }
|
|
16
|
-
|
|
17
|
-
.ccs-aj-slider-img {
|
|
18
|
-
top: 0;
|
|
19
|
-
position: absolute;
|
|
20
|
-
-webkit-user-drag: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ccs-aj-body {
|
|
24
|
-
position: relative;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.ccs-aj-btn {
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: space-between;
|
|
30
|
-
margin-top: 5px;
|
|
31
|
-
align-items: center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ccs-aj-error {
|
|
35
|
-
color: red;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.ccs-aj-slider {
|
|
39
|
-
position: relative;
|
|
40
|
-
height: 40px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.ccs-aj-slider-track {
|
|
44
|
-
height: 30px;
|
|
45
|
-
margin-top: 10px;
|
|
46
|
-
text-align: center;
|
|
47
|
-
line-height: 30px;
|
|
48
|
-
border-radius: 15px;
|
|
49
|
-
user-select: none;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ccs-aj-slider-bar {
|
|
53
|
-
height: 40px;
|
|
54
|
-
width: 40px;
|
|
55
|
-
position: absolute;
|
|
56
|
-
bottom: 5px;
|
|
57
|
-
border-radius: 50%;
|
|
58
|
-
display: flex;
|
|
59
|
-
align-items: center;
|
|
60
|
-
justify-content: center;
|
|
61
|
-
color: gray;
|
|
62
|
-
font-size: 12px;
|
|
63
|
-
cursor: move;
|
|
64
|
-
|
|
65
|
-
&:hover {
|
|
66
|
-
box-shadow: rgb(102, 102, 102) 0 0 8px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ccs-aj-word-slider {
|
|
71
|
-
color: #52c41a;
|
|
72
|
-
text-align: center;
|
|
73
|
-
border: 1px solid #52c41a;
|
|
74
|
-
height: 36px;
|
|
75
|
-
line-height: 36px;
|
|
76
|
-
margin-top: 10px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ccs-word-point {
|
|
80
|
-
background-color: #52c41a;
|
|
81
|
-
border-radius: 15px;
|
|
82
|
-
width: 26px;
|
|
83
|
-
height: 26px;
|
|
84
|
-
line-height: 26px;
|
|
85
|
-
text-align: center;
|
|
86
|
-
color: #fff;
|
|
87
|
-
position: absolute;
|
|
88
|
-
}
|
|
89
|
-
}
|
package/es/auth/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
export type CcsAuthProps = {
|
|
3
|
-
/** 权限标识 */
|
|
4
|
-
auth?: string;
|
|
5
|
-
/** component children */
|
|
6
|
-
children: ReactElement;
|
|
7
|
-
};
|
|
8
|
-
export declare function ModalConfirm({ modalRef }: {
|
|
9
|
-
modalRef: any;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function CcsAuth({ auth, children }: CcsAuthProps): ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
|
|
12
|
-
declare namespace CcsAuth {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
|
-
export default CcsAuth;
|
package/es/auth/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { Modal } from 'antd';
|
|
8
|
-
import { useEffect } from 'react';
|
|
9
|
-
import { useCcsPage } from '..';
|
|
10
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
export function ModalConfirm(_ref) {
|
|
13
|
-
var modalRef = _ref.modalRef;
|
|
14
|
-
var _Modal$useModal = Modal.useModal(),
|
|
15
|
-
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
16
|
-
modal = _Modal$useModal2[0],
|
|
17
|
-
contextHolder = _Modal$useModal2[1];
|
|
18
|
-
useEffect(function () {
|
|
19
|
-
modalRef.current = modal;
|
|
20
|
-
}, []);
|
|
21
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
22
|
-
children: [" ", contextHolder]
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function CcsAuth(_ref2) {
|
|
26
|
-
var auth = _ref2.auth,
|
|
27
|
-
children = _ref2.children;
|
|
28
|
-
var _ref3 = useCcsPage() || {},
|
|
29
|
-
onAuth = _ref3.onAuth;
|
|
30
|
-
if (onAuth && auth) {
|
|
31
|
-
return onAuth(auth) ? children : null;
|
|
32
|
-
}
|
|
33
|
-
return children;
|
|
34
|
-
}
|
|
35
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
36
|
-
CcsAuth.displayName = 'CcsAuth';
|
|
37
|
-
}
|
|
38
|
-
export default CcsAuth;
|
package/es/breadcrumb.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BreadcrumbProps } from 'antd/lib';
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
3
|
-
export default function CcsBreadcrumb({ items, style, className, history, }: {
|
|
4
|
-
style?: CSSProperties;
|
|
5
|
-
className?: string;
|
|
6
|
-
history: any;
|
|
7
|
-
items: BreadcrumbProps['items'];
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
package/es/breadcrumb.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Space } from 'antd';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
-
export default function CcsBreadcrumb(_ref) {
|
|
6
|
-
var _ref$items = _ref.items,
|
|
7
|
-
items = _ref$items === void 0 ? [] : _ref$items,
|
|
8
|
-
style = _ref.style,
|
|
9
|
-
className = _ref.className,
|
|
10
|
-
history = _ref.history;
|
|
11
|
-
var _onClick = function onClick(href) {
|
|
12
|
-
if (!href || !history) return;
|
|
13
|
-
history.push(href);
|
|
14
|
-
};
|
|
15
|
-
return /*#__PURE__*/_jsx(Space, {
|
|
16
|
-
className: className,
|
|
17
|
-
style: style,
|
|
18
|
-
children: items.map(function (item, index) {
|
|
19
|
-
var isLast = index === items.length - 1;
|
|
20
|
-
var grayColor = 'rgba(0, 0, 0, 0.45)';
|
|
21
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
22
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
23
|
-
style: {
|
|
24
|
-
color: !isLast ? grayColor : undefined,
|
|
25
|
-
cursor: !!item.href ? 'pointer' : 'unset'
|
|
26
|
-
},
|
|
27
|
-
onClick: function onClick() {
|
|
28
|
-
return _onClick(item.href);
|
|
29
|
-
},
|
|
30
|
-
children: item.title
|
|
31
|
-
}, index), !isLast && /*#__PURE__*/_jsx("div", {
|
|
32
|
-
style: {
|
|
33
|
-
color: grayColor
|
|
34
|
-
},
|
|
35
|
-
children: "/"
|
|
36
|
-
})]
|
|
37
|
-
});
|
|
38
|
-
})
|
|
39
|
-
});
|
|
40
|
-
}
|
package/es/button/dropdown.d.ts
DELETED