@spacego/fe-components 0.2.3 → 0.3.0
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/lib/fe-form/fe-form-select/index.js +26 -30
- package/lib/fe-layouts/auth-layout/index.js +4 -4
- package/lib/fe-layouts/basics-layout/index.js +5 -3
- package/lib/fe-layouts/layout.js +25 -23
- package/lib/fe-table/fe-edit-table-cell/index.js +4 -4
- package/lib/fe-table/fe-normal-table/index.js +3 -3
- package/lib/fe-table/fe-table-link/index.js +3 -3
- package/lib/fe-table/fe-table-toolbar/index.js +4 -4
- package/lib/fe-table/use-table/index.js +3 -3
- package/lib/index.css +1 -1
- package/lib/index.js +165 -163
- package/lib/node_modules/.pnpm/@rc-component_pagination@1.2.0_nnrd3gsncyragczmpvfhocinkq/node_modules/@rc-component/pagination/es/locale/zh_CN.js +18 -0
- package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/common.js +9 -0
- package/lib/node_modules/.pnpm/@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/zh_CN.js +78 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/calendar/locale/zh_CN.js +4 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/date-picker/locale/zh_CN.js +24 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/locale/zh_CN.js +146 -0
- package/lib/node_modules/.pnpm/antd@6.2.2_nnrd3gsncyragczmpvfhocinkq/node_modules/antd/es/time-picker/locale/zh_CN.js +7 -0
- package/lib/store/modules/layout-config.store.js +4 -4
- package/lib/store/modules/theme.store.js +4 -4
- package/lib/types/fe-auto-complete/auto-complete.d.ts +2 -0
- package/lib/types/fe-auto-complete/index.d.ts +3 -2
- package/lib/types/fe-button/button.d.ts +16 -0
- package/lib/types/fe-button/index.d.ts +3 -16
- package/lib/types/fe-cascader/cascader.d.ts +7 -0
- package/lib/types/fe-cascader/index.d.ts +3 -7
- package/lib/types/fe-checkbox/checkbox.d.ts +6 -0
- package/lib/types/fe-checkbox/index.d.ts +3 -6
- package/lib/types/fe-checkbox-group/checkbox-group.d.ts +5 -0
- package/lib/types/fe-checkbox-group/index.d.ts +3 -5
- package/lib/types/fe-date-picker/date-picker.d.ts +3 -0
- package/lib/types/fe-date-picker/index.d.ts +3 -3
- package/lib/types/fe-description-render/description-render.d.ts +31 -0
- package/lib/types/fe-description-render/index.d.ts +8 -31
- package/lib/types/fe-descriptions/descriptions.d.ts +2 -0
- package/lib/types/fe-descriptions/index.d.ts +3 -2
- package/lib/types/fe-empty/empty.d.ts +2 -0
- package/lib/types/fe-empty/index.d.ts +3 -2
- package/lib/types/fe-error-block/error-block.d.ts +6 -0
- package/lib/types/fe-error-block/index.d.ts +3 -6
- package/lib/types/fe-form/fe-form/form.d.ts +354 -0
- package/lib/types/fe-form/fe-form/index.d.ts +3 -354
- package/lib/types/fe-form/fe-form-auto-complete/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-btn-group/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-cascader/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-checkbox-group/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-date-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-date-range-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input-input/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-input-number/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-item/form-item.d.ts +66 -0
- package/lib/types/fe-form/fe-form-item/index.d.ts +3 -66
- package/lib/types/fe-form/fe-form-label/form-label.d.ts +43 -0
- package/lib/types/fe-form/fe-form-label/index.d.ts +3 -43
- package/lib/types/fe-form/fe-form-radio/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-render/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-rich-text/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-select/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-switch/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-text/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-text-area/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-time-picker/index.d.ts +1 -1
- package/lib/types/fe-form/fe-form-upload/index.d.ts +1 -1
- package/lib/types/fe-form/index.d.ts +4 -4
- package/lib/types/fe-form/utils/index.d.ts +1 -1
- package/lib/types/fe-input/index.d.ts +3 -12
- package/lib/types/fe-input/input.d.ts +12 -0
- package/lib/types/fe-input-number/index.d.ts +3 -2
- package/lib/types/fe-input-number/input-number.d.ts +2 -0
- package/lib/types/fe-link/index.d.ts +3 -6
- package/lib/types/fe-link/link.d.ts +6 -0
- package/lib/types/fe-loading/index.d.ts +1 -1
- package/lib/types/fe-map/index.d.ts +3 -73
- package/lib/types/fe-map/map.d.ts +73 -0
- package/lib/types/fe-modal/index.d.ts +3 -20
- package/lib/types/fe-modal/modal.d.ts +20 -0
- package/lib/types/fe-pagination/index.d.ts +3 -2
- package/lib/types/fe-pagination/pagination.d.ts +2 -0
- package/lib/types/fe-panel/index.d.ts +3 -61
- package/lib/types/fe-panel/panel-toolbar.d.ts +1 -1
- package/lib/types/fe-panel/panel.d.ts +61 -0
- package/lib/types/fe-permission/index.d.ts +3 -10
- package/lib/types/fe-permission/permission.d.ts +10 -0
- package/lib/types/fe-permission-provider/index.d.ts +3 -8
- package/lib/types/fe-permission-provider/permission-provider.d.ts +8 -0
- package/lib/types/fe-radio/index.d.ts +3 -2
- package/lib/types/fe-radio/radio.d.ts +2 -0
- package/lib/types/fe-radio-group/index.d.ts +3 -2
- package/lib/types/fe-radio-group/radio-group.d.ts +2 -0
- package/lib/types/fe-rich-text/index.d.ts +3 -167
- package/lib/types/fe-rich-text/rich-text.d.ts +167 -0
- package/lib/types/fe-select/index.d.ts +3 -8
- package/lib/types/fe-select/select.d.ts +8 -0
- package/lib/types/fe-switch/index.d.ts +3 -2
- package/lib/types/fe-switch/switch.d.ts +2 -0
- package/lib/types/fe-table/fe-table-link/index.d.ts +3 -10
- package/lib/types/fe-table/fe-table-link/table-link.d.ts +10 -0
- package/lib/types/fe-table/fe-table-render/index.d.ts +3 -11
- package/lib/types/fe-table/fe-table-render/table-render.d.ts +11 -0
- package/lib/types/fe-table/fe-table-toolbar/index.d.ts +3 -16
- package/lib/types/fe-table/fe-table-toolbar/table-toolbar.d.ts +16 -0
- package/lib/types/fe-text-area/index.d.ts +3 -4
- package/lib/types/fe-text-area/text-area.d.ts +4 -0
- package/lib/types/fe-time-picker/index.d.ts +3 -3
- package/lib/types/fe-time-picker/time-picker.d.ts +3 -0
- package/lib/types/fe-upload/index.d.ts +3 -85
- package/lib/types/fe-upload/upload.d.ts +85 -0
- package/lib/types/fe-upload-atomic/index.d.ts +3 -2
- package/lib/types/fe-upload-atomic/upload-atomic.d.ts +2 -0
- package/lib/types/fe-upload-crop/index.d.ts +2 -2
- package/lib/types/hooks/index.d.ts +1 -0
- package/lib/types/hooks/{use-descriptions → use-descriptions.hook}/index.d.ts +1 -1
- package/lib/types/hooks/use-descriptions.hook/use-descriptions.d.ts +151 -0
- package/lib/types/hooks/use-form.hook/index.d.ts +3 -0
- package/lib/types/hooks/{use-form/index.d.ts → use-form.hook/use-form.d.ts} +1 -1
- package/lib/types/hooks/use-permission.hook/index.d.ts +10 -10
- package/lib/types/hooks/use-permission.hook/use-permission.d.ts +10 -0
- package/lib/types/index.d.ts +30 -1
- package/package.json +1 -1
- /package/lib/hooks/{use-form → use-form.hook}/index.js +0 -0
package/lib/index.js
CHANGED
|
@@ -1,165 +1,167 @@
|
|
|
1
|
-
import { getIcon as
|
|
2
|
-
import { applyTheme as
|
|
3
|
-
import { useLayoutConfigStore as
|
|
4
|
-
import { useThemeStore as
|
|
5
|
-
import { NOOP as
|
|
6
|
-
import { THEME_COLORS as
|
|
7
|
-
import { generateRouter as
|
|
8
|
-
import { useAuth as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { default as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import {
|
|
44
|
-
import { default as
|
|
45
|
-
import {
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import {
|
|
50
|
-
import { default as
|
|
51
|
-
import {
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import {
|
|
68
|
-
import { default as
|
|
69
|
-
import {
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import {
|
|
1
|
+
import { getIcon as a, renderIcon as f } from "./utils/icon.js";
|
|
2
|
+
import { applyTheme as p, applyThemeColor as u, applyThemeWithTransition as s, getRealTheme as l, getTheme as x, initTheme as d, listenSystemTheme as F, toggleTheme as i } from "./utils/theme.js";
|
|
3
|
+
import { useLayoutConfigStore as c } from "./store/modules/layout-config.store.js";
|
|
4
|
+
import { useThemeStore as h } from "./store/modules/theme.store.js";
|
|
5
|
+
import { NOOP as g, STORE_KEY as C } from "./config/constants.js";
|
|
6
|
+
import { THEME_COLORS as b } from "./config/theme.js";
|
|
7
|
+
import { generateRouter as y } from "./router/index.js";
|
|
8
|
+
import { useAuth as I } from "./hooks/use-auth.hook/index.js";
|
|
9
|
+
import "@spacego/turbo-utils";
|
|
10
|
+
import "react";
|
|
11
|
+
import { default as A } from "./fe-description-render/index.js";
|
|
12
|
+
import { useNProgress as G } from "./hooks/use-nprogress.hook/index.js";
|
|
13
|
+
import { usePermission as D } from "./hooks/use-permission.hook/index.js";
|
|
14
|
+
import { default as N } from "./fe-auto-complete/index.js";
|
|
15
|
+
import { default as v } from "./fe-button/index.js";
|
|
16
|
+
import { default as w } from "./fe-cascader/index.js";
|
|
17
|
+
import { default as q } from "./fe-checkbox/index.js";
|
|
18
|
+
import { default as H } from "./fe-checkbox-group/index.js";
|
|
19
|
+
import { default as W } from "./fe-date-picker/index.js";
|
|
20
|
+
import { default as j } from "./fe-descriptions/index.js";
|
|
21
|
+
import { default as Q } from "./fe-empty/index.js";
|
|
22
|
+
import { default as X } from "./fe-error-block/index.js";
|
|
23
|
+
import { default as $ } from "./hooks/use-form.hook/index.js";
|
|
24
|
+
import { default as oe } from "./fe-form/fe-form/index.js";
|
|
25
|
+
import { default as te } from "./fe-form/fe-form-auto-complete/index.js";
|
|
26
|
+
import { default as fe } from "./fe-form/fe-form-btn-group/index.js";
|
|
27
|
+
import { default as pe } from "./fe-form/fe-form-cascader/index.js";
|
|
28
|
+
import { default as se } from "./fe-form/fe-form-checkbox-group/index.js";
|
|
29
|
+
import { default as xe } from "./fe-form/fe-form-date-picker/index.js";
|
|
30
|
+
import { default as Fe } from "./fe-form/fe-form-date-range-picker/index.js";
|
|
31
|
+
import { default as ne } from "./fe-form/fe-form-input/index.js";
|
|
32
|
+
import { default as Te } from "./fe-form/fe-form-input-input/index.js";
|
|
33
|
+
import { default as Pe } from "./fe-form/fe-form-input-number/index.js";
|
|
34
|
+
import { default as Ce } from "./fe-form/fe-form-item/index.js";
|
|
35
|
+
import { default as be } from "./fe-form/fe-form-label/index.js";
|
|
36
|
+
import { default as ye } from "./fe-form/fe-form-radio/index.js";
|
|
37
|
+
import { default as Ie } from "./fe-form/fe-form-render/index.js";
|
|
38
|
+
import { default as Ae } from "./fe-form/fe-form-rich-text/index.js";
|
|
39
|
+
import { default as Ge } from "./fe-form/fe-form-select/index.js";
|
|
40
|
+
import { default as De } from "./fe-form/fe-form-switch/index.js";
|
|
41
|
+
import { default as Ne } from "./fe-form/fe-form-text/index.js";
|
|
42
|
+
import { default as ve } from "./fe-form/fe-form-text-area/index.js";
|
|
43
|
+
import { default as we } from "./fe-form/fe-form-time-picker/index.js";
|
|
44
|
+
import { default as qe } from "./fe-form/fe-form-upload/index.js";
|
|
45
|
+
import { getFormItemProps as He, getLabelProps as Ke } from "./fe-form/utils/index.js";
|
|
46
|
+
import { default as Ye } from "./fe-input/index.js";
|
|
47
|
+
import { default as Je } from "./fe-input-number/index.js";
|
|
48
|
+
import { default as Ve } from "./fe-layouts/auth-layout/index.js";
|
|
49
|
+
import { default as Ze } from "./fe-layouts/basics-layout/index.js";
|
|
50
|
+
import { default as eo } from "./fe-layouts/blank-layout/index.js";
|
|
51
|
+
import { GlobalContext as ro, useGlobal as to } from "./fe-layouts/context/context.js";
|
|
52
|
+
import { default as fo } from "./fe-layouts/context/global-context.provider.js";
|
|
53
|
+
import { default as po } from "./fe-layouts/layout.js";
|
|
54
|
+
import { default as so } from "./fe-link/index.js";
|
|
55
|
+
import { default as xo } from "./fe-loading/index.js";
|
|
56
|
+
import { default as io } from "./fe-map/index.js";
|
|
57
|
+
import { default as co } from "./fe-modal/index.js";
|
|
58
|
+
import { default as ho } from "./fe-pagination/index.js";
|
|
59
|
+
import { default as go } from "./fe-panel/index.js";
|
|
60
|
+
import { usePanelContext as Ro } from "./fe-panel/use-panel-context.js";
|
|
61
|
+
import { FePermission as ko } from "./fe-permission/index.js";
|
|
62
|
+
import { default as Lo } from "./fe-permission-provider/index.js";
|
|
63
|
+
import { default as So } from "./fe-radio/index.js";
|
|
64
|
+
import { default as Eo } from "./fe-radio-group/index.js";
|
|
65
|
+
import { default as Bo } from "./fe-rich-text/index.js";
|
|
66
|
+
import { default as Oo } from "./fe-select/index.js";
|
|
67
|
+
import { default as Uo } from "./fe-switch/index.js";
|
|
68
|
+
import { default as Mo } from "./fe-table/fe-table/index.js";
|
|
69
|
+
import { shouldRequestPreviousPage as _o } from "./fe-table/fe-table-utils/index.js";
|
|
70
|
+
import { default as zo } from "./fe-table/use-edit-table/index.js";
|
|
71
|
+
import { default as Ko } from "./fe-table/use-table/index.js";
|
|
72
|
+
import { default as Yo } from "./fe-text-area/index.js";
|
|
73
|
+
import { default as Jo } from "./fe-time-picker/index.js";
|
|
74
|
+
import { default as Vo } from "./fe-upload/index.js";
|
|
75
|
+
import { default as Zo } from "./fe-upload-atomic/index.js";
|
|
76
|
+
import { default as er } from "./fe-upload-crop/index.js";
|
|
77
|
+
import { createLazyComponent as rr, getPath as tr, processRoutes as ar } from "./router/utils.js";
|
|
76
78
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
79
|
+
Ve as AuthLayout,
|
|
80
|
+
Ze as BasicsLayout,
|
|
81
|
+
eo as BlankLayout,
|
|
82
|
+
N as FeAutoComplete,
|
|
83
|
+
v as FeButton,
|
|
84
|
+
w as FeCascader,
|
|
85
|
+
q as FeCheckbox,
|
|
86
|
+
H as FeCheckboxGroup,
|
|
87
|
+
W as FeDatePicker,
|
|
88
|
+
A as FeDescriptionRender,
|
|
89
|
+
j as FeDescriptions,
|
|
90
|
+
Q as FeEmpty,
|
|
91
|
+
X as FeErrorBlock,
|
|
92
|
+
oe as FeForm,
|
|
93
|
+
te as FeFormAutoComplete,
|
|
94
|
+
fe as FeFormBtnGroup,
|
|
95
|
+
pe as FeFormCascader,
|
|
96
|
+
se as FeFormCheckboxGroup,
|
|
97
|
+
xe as FeFormDatePicker,
|
|
98
|
+
Fe as FeFormDateRangePicker,
|
|
99
|
+
ne as FeFormInput,
|
|
100
|
+
Te as FeFormInputInput,
|
|
101
|
+
Pe as FeFormInputNumber,
|
|
102
|
+
Ce as FeFormItem,
|
|
103
|
+
be as FeFormLabel,
|
|
104
|
+
ye as FeFormRadio,
|
|
105
|
+
Ie as FeFormRender,
|
|
106
|
+
Ae as FeFormRichText,
|
|
107
|
+
Ge as FeFormSelect,
|
|
108
|
+
De as FeFormSwitch,
|
|
109
|
+
Ne as FeFormText,
|
|
110
|
+
ve as FeFormTextArea,
|
|
111
|
+
we as FeFormTimePicker,
|
|
112
|
+
qe as FeFormUpload,
|
|
113
|
+
Ye as FeInput,
|
|
114
|
+
Je as FeInputNumber,
|
|
115
|
+
po as FeLayout,
|
|
116
|
+
so as FeLink,
|
|
117
|
+
xo as FeLoading,
|
|
118
|
+
io as FeMap,
|
|
119
|
+
co as FeModal,
|
|
120
|
+
ho as FePagination,
|
|
121
|
+
go as FePanel,
|
|
122
|
+
ko as FePermission,
|
|
123
|
+
Lo as FePermissionProvider,
|
|
124
|
+
So as FeRadio,
|
|
125
|
+
Eo as FeRadioGroup,
|
|
126
|
+
Bo as FeRichText,
|
|
127
|
+
Oo as FeSelect,
|
|
128
|
+
Uo as FeSwitch,
|
|
129
|
+
Mo as FeTable,
|
|
130
|
+
Yo as FeTextArea,
|
|
131
|
+
Jo as FeTimePicker,
|
|
132
|
+
Vo as FeUpload,
|
|
133
|
+
Zo as FeUploadAtomic,
|
|
134
|
+
er as FeUploadCrop,
|
|
135
|
+
ro as GlobalContext,
|
|
136
|
+
fo as GlobalContextProvider,
|
|
137
|
+
g as NOOP,
|
|
138
|
+
C as STORE_KEY,
|
|
139
|
+
b as THEME_COLORS,
|
|
140
|
+
p as applyTheme,
|
|
141
|
+
u as applyThemeColor,
|
|
142
|
+
s as applyThemeWithTransition,
|
|
143
|
+
rr as createLazyComponent,
|
|
144
|
+
y as generateRouter,
|
|
145
|
+
He as getFormItemProps,
|
|
146
|
+
a as getIcon,
|
|
147
|
+
Ke as getLabelProps,
|
|
148
|
+
tr as getPath,
|
|
149
|
+
l as getRealTheme,
|
|
150
|
+
x as getTheme,
|
|
151
|
+
d as initTheme,
|
|
152
|
+
F as listenSystemTheme,
|
|
153
|
+
ar as processRoutes,
|
|
154
|
+
f as renderIcon,
|
|
155
|
+
_o as shouldRequestPreviousPage,
|
|
156
|
+
i as toggleTheme,
|
|
157
|
+
I as useAuth,
|
|
158
|
+
zo as useEditTable,
|
|
159
|
+
$ as useForm,
|
|
160
|
+
to as useGlobal,
|
|
161
|
+
c as useLayoutConfigStore,
|
|
162
|
+
G as useNProgress,
|
|
163
|
+
Ro as usePanelContext,
|
|
164
|
+
D as usePermission,
|
|
165
|
+
Ko as useTable,
|
|
166
|
+
h as useThemeStore
|
|
165
167
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
// Options
|
|
3
|
+
items_per_page: "条/页",
|
|
4
|
+
jump_to: "跳至",
|
|
5
|
+
jump_to_confirm: "确定",
|
|
6
|
+
page: "页",
|
|
7
|
+
// Pagination
|
|
8
|
+
prev_page: "上一页",
|
|
9
|
+
next_page: "下一页",
|
|
10
|
+
prev_5: "向前 5 页",
|
|
11
|
+
next_5: "向后 5 页",
|
|
12
|
+
prev_3: "向前 3 页",
|
|
13
|
+
next_3: "向后 3 页",
|
|
14
|
+
page_size: "页码"
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
e as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { commonLocale as a } from "./common.js";
|
|
2
|
+
function n(t) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
+
return typeof e;
|
|
6
|
+
} : function(e) {
|
|
7
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
+
}, n(t);
|
|
9
|
+
}
|
|
10
|
+
function i(t, e) {
|
|
11
|
+
var r = Object.keys(t);
|
|
12
|
+
if (Object.getOwnPropertySymbols) {
|
|
13
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
14
|
+
e && (o = o.filter(function(u) {
|
|
15
|
+
return Object.getOwnPropertyDescriptor(t, u).enumerable;
|
|
16
|
+
})), r.push.apply(r, o);
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}
|
|
20
|
+
function c(t) {
|
|
21
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
22
|
+
var r = arguments[e] != null ? arguments[e] : {};
|
|
23
|
+
e % 2 ? i(Object(r), !0).forEach(function(o) {
|
|
24
|
+
l(t, o, r[o]);
|
|
25
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : i(Object(r)).forEach(function(o) {
|
|
26
|
+
Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(r, o));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return t;
|
|
30
|
+
}
|
|
31
|
+
function l(t, e, r) {
|
|
32
|
+
return e = f(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
33
|
+
}
|
|
34
|
+
function f(t) {
|
|
35
|
+
var e = p(t, "string");
|
|
36
|
+
return n(e) == "symbol" ? e : String(e);
|
|
37
|
+
}
|
|
38
|
+
function p(t, e) {
|
|
39
|
+
if (n(t) != "object" || !t) return t;
|
|
40
|
+
var r = t[Symbol.toPrimitive];
|
|
41
|
+
if (r !== void 0) {
|
|
42
|
+
var o = r.call(t, e);
|
|
43
|
+
if (n(o) != "object") return o;
|
|
44
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
45
|
+
}
|
|
46
|
+
return (e === "string" ? String : Number)(t);
|
|
47
|
+
}
|
|
48
|
+
var m = c(c({}, a), {}, {
|
|
49
|
+
locale: "zh_CN",
|
|
50
|
+
today: "今天",
|
|
51
|
+
now: "此刻",
|
|
52
|
+
backToToday: "返回今天",
|
|
53
|
+
ok: "确定",
|
|
54
|
+
timeSelect: "选择时间",
|
|
55
|
+
dateSelect: "选择日期",
|
|
56
|
+
weekSelect: "选择周",
|
|
57
|
+
clear: "清除",
|
|
58
|
+
week: "周",
|
|
59
|
+
month: "月",
|
|
60
|
+
year: "年",
|
|
61
|
+
previousMonth: "上个月 (翻页上键)",
|
|
62
|
+
nextMonth: "下个月 (翻页下键)",
|
|
63
|
+
monthSelect: "选择月份",
|
|
64
|
+
yearSelect: "选择年份",
|
|
65
|
+
decadeSelect: "选择年代",
|
|
66
|
+
previousYear: "上一年 (Control键加左方向键)",
|
|
67
|
+
nextYear: "下一年 (Control键加右方向键)",
|
|
68
|
+
previousDecade: "上一年代",
|
|
69
|
+
nextDecade: "下一年代",
|
|
70
|
+
previousCentury: "上一世纪",
|
|
71
|
+
nextCentury: "下一世纪",
|
|
72
|
+
yearFormat: "YYYY年",
|
|
73
|
+
cellDateFormat: "D",
|
|
74
|
+
monthBeforeYear: !1
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
m as default
|
|
78
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import e from "../../../../../../@rc-component_picker@1.9.0_xrdeekns7he6t7xjrt27lnhvge/node_modules/@rc-component/picker/es/locale/zh_CN.js";
|
|
2
|
+
import l from "../../time-picker/locale/zh_CN.js";
|
|
3
|
+
const a = {
|
|
4
|
+
lang: {
|
|
5
|
+
placeholder: "请选择日期",
|
|
6
|
+
yearPlaceholder: "请选择年份",
|
|
7
|
+
quarterPlaceholder: "请选择季度",
|
|
8
|
+
monthPlaceholder: "请选择月份",
|
|
9
|
+
weekPlaceholder: "请选择周",
|
|
10
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
11
|
+
rangeYearPlaceholder: ["开始年份", "结束年份"],
|
|
12
|
+
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
13
|
+
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
14
|
+
rangeWeekPlaceholder: ["开始周", "结束周"],
|
|
15
|
+
...e
|
|
16
|
+
},
|
|
17
|
+
timePickerLocale: {
|
|
18
|
+
...l
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
a.lang.ok = "确定";
|
|
22
|
+
export {
|
|
23
|
+
a as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import a from "../../../../../@rc-component_pagination@1.2.0_nnrd3gsncyragczmpvfhocinkq/node_modules/@rc-component/pagination/es/locale/zh_CN.js";
|
|
2
|
+
import l from "../date-picker/locale/zh_CN.js";
|
|
3
|
+
import t from "../time-picker/locale/zh_CN.js";
|
|
4
|
+
const e = "${label}不是一个有效的${type}", i = {
|
|
5
|
+
locale: "zh-cn",
|
|
6
|
+
Pagination: a,
|
|
7
|
+
DatePicker: l,
|
|
8
|
+
TimePicker: t,
|
|
9
|
+
Calendar: l,
|
|
10
|
+
// locales for all components
|
|
11
|
+
global: {
|
|
12
|
+
placeholder: "请选择",
|
|
13
|
+
close: "关闭",
|
|
14
|
+
sortable: "可排序"
|
|
15
|
+
},
|
|
16
|
+
Table: {
|
|
17
|
+
filterTitle: "筛选",
|
|
18
|
+
filterConfirm: "确定",
|
|
19
|
+
filterReset: "重置",
|
|
20
|
+
filterEmptyText: "无筛选项",
|
|
21
|
+
filterCheckAll: "全选",
|
|
22
|
+
filterSearchPlaceholder: "在筛选项中搜索",
|
|
23
|
+
emptyText: "暂无数据",
|
|
24
|
+
selectAll: "全选当页",
|
|
25
|
+
selectInvert: "反选当页",
|
|
26
|
+
selectNone: "清空所有",
|
|
27
|
+
selectionAll: "全选所有",
|
|
28
|
+
sortTitle: "排序",
|
|
29
|
+
expand: "展开行",
|
|
30
|
+
collapse: "关闭行",
|
|
31
|
+
triggerDesc: "点击降序",
|
|
32
|
+
triggerAsc: "点击升序",
|
|
33
|
+
cancelSort: "取消排序"
|
|
34
|
+
},
|
|
35
|
+
Modal: {
|
|
36
|
+
okText: "确定",
|
|
37
|
+
cancelText: "取消",
|
|
38
|
+
justOkText: "知道了"
|
|
39
|
+
},
|
|
40
|
+
Tour: {
|
|
41
|
+
Next: "下一步",
|
|
42
|
+
Previous: "上一步",
|
|
43
|
+
Finish: "结束导览"
|
|
44
|
+
},
|
|
45
|
+
Popconfirm: {
|
|
46
|
+
cancelText: "取消",
|
|
47
|
+
okText: "确定"
|
|
48
|
+
},
|
|
49
|
+
Transfer: {
|
|
50
|
+
titles: ["", ""],
|
|
51
|
+
searchPlaceholder: "请输入搜索内容",
|
|
52
|
+
itemUnit: "项",
|
|
53
|
+
itemsUnit: "项",
|
|
54
|
+
remove: "删除",
|
|
55
|
+
selectCurrent: "全选当页",
|
|
56
|
+
removeCurrent: "删除当页",
|
|
57
|
+
selectAll: "全选所有",
|
|
58
|
+
deselectAll: "取消全选",
|
|
59
|
+
removeAll: "删除全部",
|
|
60
|
+
selectInvert: "反选当页"
|
|
61
|
+
},
|
|
62
|
+
Upload: {
|
|
63
|
+
uploading: "文件上传中",
|
|
64
|
+
removeFile: "删除文件",
|
|
65
|
+
uploadError: "上传错误",
|
|
66
|
+
previewFile: "预览文件",
|
|
67
|
+
downloadFile: "下载文件"
|
|
68
|
+
},
|
|
69
|
+
Empty: {
|
|
70
|
+
description: "暂无数据"
|
|
71
|
+
},
|
|
72
|
+
Icon: {
|
|
73
|
+
icon: "图标"
|
|
74
|
+
},
|
|
75
|
+
Text: {
|
|
76
|
+
edit: "编辑",
|
|
77
|
+
copy: "复制",
|
|
78
|
+
copied: "复制成功",
|
|
79
|
+
expand: "展开",
|
|
80
|
+
collapse: "收起"
|
|
81
|
+
},
|
|
82
|
+
Form: {
|
|
83
|
+
optional: "(可选)",
|
|
84
|
+
defaultValidateMessages: {
|
|
85
|
+
default: "字段验证错误${label}",
|
|
86
|
+
required: "请输入${label}",
|
|
87
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
88
|
+
whitespace: "${label}不能为空字符",
|
|
89
|
+
date: {
|
|
90
|
+
format: "${label}日期格式无效",
|
|
91
|
+
parse: "${label}不能转换为日期",
|
|
92
|
+
invalid: "${label}是一个无效日期"
|
|
93
|
+
},
|
|
94
|
+
types: {
|
|
95
|
+
string: e,
|
|
96
|
+
method: e,
|
|
97
|
+
array: e,
|
|
98
|
+
object: e,
|
|
99
|
+
number: e,
|
|
100
|
+
date: e,
|
|
101
|
+
boolean: e,
|
|
102
|
+
integer: e,
|
|
103
|
+
float: e,
|
|
104
|
+
regexp: e,
|
|
105
|
+
email: e,
|
|
106
|
+
url: e,
|
|
107
|
+
hex: e
|
|
108
|
+
},
|
|
109
|
+
string: {
|
|
110
|
+
len: "${label}须为${len}个字符",
|
|
111
|
+
min: "${label}最少${min}个字符",
|
|
112
|
+
max: "${label}最多${max}个字符",
|
|
113
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
114
|
+
},
|
|
115
|
+
number: {
|
|
116
|
+
len: "${label}必须等于${len}",
|
|
117
|
+
min: "${label}最小值为${min}",
|
|
118
|
+
max: "${label}最大值为${max}",
|
|
119
|
+
range: "${label}须在${min}-${max}之间"
|
|
120
|
+
},
|
|
121
|
+
array: {
|
|
122
|
+
len: "须为${len}个${label}",
|
|
123
|
+
min: "最少${min}个${label}",
|
|
124
|
+
max: "最多${max}个${label}",
|
|
125
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
126
|
+
},
|
|
127
|
+
pattern: {
|
|
128
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
QRCode: {
|
|
133
|
+
expired: "二维码过期",
|
|
134
|
+
refresh: "点击刷新",
|
|
135
|
+
scanned: "已扫描"
|
|
136
|
+
},
|
|
137
|
+
ColorPicker: {
|
|
138
|
+
presetEmpty: "暂无",
|
|
139
|
+
transparent: "无色",
|
|
140
|
+
singleColor: "单色",
|
|
141
|
+
gradientColor: "渐变色"
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
i as default
|
|
146
|
+
};
|
|
@@ -7,11 +7,11 @@ import { STORE_KEY as C } from "../../config/constants.js";
|
|
|
7
7
|
import "react-router-dom";
|
|
8
8
|
import "react";
|
|
9
9
|
import "../../fe-layouts/context/context.js";
|
|
10
|
-
import "nprogress";
|
|
11
|
-
import "../../hooks/use-permission.hook/index.js";
|
|
12
|
-
import "antd";
|
|
13
10
|
import "@spacego/turbo-utils";
|
|
11
|
+
import "antd";
|
|
12
|
+
import "../../hooks/use-permission.hook/index.js";
|
|
14
13
|
/* empty css */
|
|
14
|
+
import "nprogress";
|
|
15
15
|
import "lodash-es";
|
|
16
16
|
import "../../fe-form/fe-form-date-range-picker/index.js";
|
|
17
17
|
import "../../fe-rich-text/index.js";
|
|
@@ -26,7 +26,7 @@ import "react-icons/lu";
|
|
|
26
26
|
import "react-icons/md";
|
|
27
27
|
/* empty css */
|
|
28
28
|
import "../../fe-layouts/basics-layout/index.js";
|
|
29
|
-
|
|
29
|
+
import "../../fe-layouts/layout.js";
|
|
30
30
|
/* empty css */
|
|
31
31
|
/* empty css */
|
|
32
32
|
import "react-draggable";
|