@zykj2024/much-library 1.1.7-beta.1 → 1.1.7-beta.2
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 +7 -8
- package/LICENSE +0 -21
- package/README.md +0 -35
- package/dist/McCascader/city.js +0 -909
- package/dist/McCascader/index.css +0 -60
- package/dist/McCascader/index.d.ts +0 -19
- package/dist/McCascader/index.js +0 -221
- package/dist/McContainer/demo/actionBar.d.ts +0 -8
- package/dist/McContainer/demo/actionBar.js +0 -118
- package/dist/McContainer/demo/base.d.ts +0 -8
- package/dist/McContainer/demo/base.js +0 -82
- package/dist/McContainer/demo/batch.d.ts +0 -8
- package/dist/McContainer/demo/batch.js +0 -129
- package/dist/McContainer/demo/collapse.d.ts +0 -8
- package/dist/McContainer/demo/collapse.js +0 -77
- package/dist/McContainer/demo/expand.d.ts +0 -8
- package/dist/McContainer/demo/expand.js +0 -90
- package/dist/McContainer/demo/generic.d.ts +0 -8
- package/dist/McContainer/demo/generic.js +0 -91
- package/dist/McContainer/demo/pagination.d.ts +0 -7
- package/dist/McContainer/demo/pagination.js +0 -133
- package/dist/McContainer/demo/search.d.ts +0 -7
- package/dist/McContainer/demo/search.js +0 -102
- package/dist/McContainer/demo/standard.d.ts +0 -7
- package/dist/McContainer/demo/standard.js +0 -219
- package/dist/McContainer/index.css +0 -123
- package/dist/McContainer/index.d.ts +0 -192
- package/dist/McContainer/index.js +0 -522
- package/dist/McContainer/mock/index.d.ts +0 -21
- package/dist/McContainer/mock/index.js +0 -50
- package/dist/McDateRange/demo/base.d.ts +0 -6
- package/dist/McDateRange/demo/base.js +0 -22
- package/dist/McDateRange/demo/cancelPresets.d.ts +0 -6
- package/dist/McDateRange/demo/cancelPresets.js +0 -23
- package/dist/McDateRange/demo/overlap.d.ts +0 -2
- package/dist/McDateRange/demo/overlap.js +0 -32
- package/dist/McDateRange/index.css +0 -31
- package/dist/McDateRange/index.d.ts +0 -28
- package/dist/McDateRange/index.js +0 -167
- package/dist/McEllipsis/demo/base.d.ts +0 -6
- package/dist/McEllipsis/demo/base.js +0 -22
- package/dist/McEllipsis/demo/middle.d.ts +0 -6
- package/dist/McEllipsis/demo/middle.js +0 -24
- package/dist/McEllipsis/demo/table.d.ts +0 -5
- package/dist/McEllipsis/demo/table.js +0 -93
- package/dist/McEllipsis/demo/tooltip-size.d.ts +0 -6
- package/dist/McEllipsis/demo/tooltip-size.js +0 -20
- package/dist/McEllipsis/demo/tooltip.d.ts +0 -6
- package/dist/McEllipsis/demo/tooltip.js +0 -53
- package/dist/McEllipsis/index.css +0 -4
- package/dist/McEllipsis/index.d.ts +0 -40
- package/dist/McEllipsis/index.js +0 -115
- package/dist/McEllipsisMiddle/demo/base.d.ts +0 -6
- package/dist/McEllipsisMiddle/demo/base.js +0 -25
- package/dist/McEllipsisMiddle/demo/tooltip.d.ts +0 -6
- package/dist/McEllipsisMiddle/demo/tooltip.js +0 -35
- package/dist/McEllipsisMiddle/index.css +0 -4
- package/dist/McEllipsisMiddle/index.d.ts +0 -13
- package/dist/McEllipsisMiddle/index.js +0 -42
- package/dist/McFonts/index.d.ts +0 -8
- package/dist/McFonts/index.js +0 -7
- package/dist/McGroupPanel/comps/SelectedItem/index.d.ts +0 -4
- package/dist/McGroupPanel/comps/SelectedItem/index.js +0 -75
- package/dist/McGroupPanel/index.css +0 -169
- package/dist/McGroupPanel/index.d.ts +0 -30
- package/dist/McGroupPanel/index.js +0 -426
- package/dist/McIconFont/iconfont.js +0 -1
- package/dist/McIconFont/index.d.ts +0 -5
- package/dist/McIconFont/index.js +0 -8
- package/dist/McIcons/business.json +0 -137
- package/dist/McIcons/index.css +0 -33
- package/dist/McInput/Input.d.ts +0 -19
- package/dist/McInput/Input.js +0 -48
- package/dist/McInput/Search.d.ts +0 -39
- package/dist/McInput/Search.js +0 -81
- package/dist/McInput/TextArea.d.ts +0 -11
- package/dist/McInput/TextArea.js +0 -37
- package/dist/McInput/demo/Input/addonBefore.d.ts +0 -3
- package/dist/McInput/demo/Input/addonBefore.js +0 -67
- package/dist/McInput/demo/Input/base.d.ts +0 -2
- package/dist/McInput/demo/Input/base.js +0 -31
- package/dist/McInput/demo/Input/isTrim.d.ts +0 -2
- package/dist/McInput/demo/Input/isTrim.js +0 -22
- package/dist/McInput/demo/Input/label.d.ts +0 -2
- package/dist/McInput/demo/Input/label.js +0 -26
- package/dist/McInput/demo/Input/ref.d.ts +0 -3
- package/dist/McInput/demo/Input/ref.js +0 -53
- package/dist/McInput/demo/Input/status.d.ts +0 -2
- package/dist/McInput/demo/Input/status.js +0 -23
- package/dist/McInput/demo/Search/search-base.d.ts +0 -2
- package/dist/McInput/demo/Search/search-base.js +0 -38
- package/dist/McInput/demo/TextArea/text-area-base.d.ts +0 -2
- package/dist/McInput/demo/TextArea/text-area-base.js +0 -38
- package/dist/McInput/index.css +0 -71
- package/dist/McInput/index.d.ts +0 -13
- package/dist/McInput/index.js +0 -7
- package/dist/McInputNumber/demo/index.d.ts +0 -2
- package/dist/McInputNumber/demo/index.js +0 -34
- package/dist/McInputNumber/demo/label.d.ts +0 -2
- package/dist/McInputNumber/demo/label.js +0 -26
- package/dist/McInputNumber/demo/precision.d.ts +0 -2
- package/dist/McInputNumber/demo/precision.js +0 -20
- package/dist/McInputNumber/index.css +0 -36
- package/dist/McInputNumber/index.d.ts +0 -16
- package/dist/McInputNumber/index.js +0 -50
- package/dist/McLazyLoader/demo/basic.d.ts +0 -2
- package/dist/McLazyLoader/demo/basic.js +0 -33
- package/dist/McLazyLoader/demo/container.d.ts +0 -2
- package/dist/McLazyLoader/demo/container.js +0 -83
- package/dist/McLazyLoader/demo/form.d.ts +0 -2
- package/dist/McLazyLoader/demo/form.js +0 -38
- package/dist/McLazyLoader/demo/has-root.d.ts +0 -2
- package/dist/McLazyLoader/demo/has-root.js +0 -44
- package/dist/McLazyLoader/demo/hori.d.ts +0 -2
- package/dist/McLazyLoader/demo/hori.js +0 -39
- package/dist/McLazyLoader/demo/table.d.ts +0 -2
- package/dist/McLazyLoader/demo/table.js +0 -73
- package/dist/McLazyLoader/index.d.ts +0 -39
- package/dist/McLazyLoader/index.js +0 -88
- package/dist/McListSelect/comps/ListSelect.d.ts +0 -67
- package/dist/McListSelect/comps/ListSelect.js +0 -289
- package/dist/McListSelect/comps/ListSelectPanel.d.ts +0 -138
- package/dist/McListSelect/comps/ListSelectPanel.js +0 -451
- package/dist/McListSelect/comps/SelectedItem.d.ts +0 -17
- package/dist/McListSelect/comps/SelectedItem.js +0 -76
- package/dist/McListSelect/demo/base.d.ts +0 -6
- package/dist/McListSelect/demo/base.js +0 -125
- package/dist/McListSelect/demo/inexistent.d.ts +0 -6
- package/dist/McListSelect/demo/inexistent.js +0 -111
- package/dist/McListSelect/demo/layout.d.ts +0 -6
- package/dist/McListSelect/demo/layout.js +0 -70
- package/dist/McListSelect/demo/other.d.ts +0 -6
- package/dist/McListSelect/demo/other.js +0 -68
- package/dist/McListSelect/demo/panel-inexistent.d.ts +0 -6
- package/dist/McListSelect/demo/panel-inexistent.js +0 -86
- package/dist/McListSelect/index.css +0 -273
- package/dist/McListSelect/index.d.ts +0 -10
- package/dist/McListSelect/index.js +0 -5
- package/dist/McListSelect/mock/index.d.ts +0 -1
- package/dist/McListSelect/mock/index.js +0 -27
- package/dist/McModalProvider/index.d.ts +0 -174
- package/dist/McModalProvider/index.js +0 -498
- package/dist/McPeriodSelect/demo/base.d.ts +0 -6
- package/dist/McPeriodSelect/demo/base.js +0 -19
- package/dist/McPeriodSelect/demo/half.d.ts +0 -6
- package/dist/McPeriodSelect/demo/half.js +0 -20
- package/dist/McPeriodSelect/index.css +0 -189
- package/dist/McPeriodSelect/index.d.ts +0 -13
- package/dist/McPeriodSelect/index.js +0 -305
- package/dist/McPopoverButton/index.d.ts +0 -14
- package/dist/McPopoverButton/index.js +0 -52
- package/dist/McPopoverForm/index.d.ts +0 -14
- package/dist/McPopoverForm/index.js +0 -95
- package/dist/McProSelect/demo/async.d.ts +0 -2
- package/dist/McProSelect/demo/async.js +0 -66
- package/dist/McProSelect/demo/base.d.ts +0 -2
- package/dist/McProSelect/demo/base.js +0 -29
- package/dist/McProSelect/demo/exclusion-async-rename.d.ts +0 -3
- package/dist/McProSelect/demo/exclusion-async-rename.js +0 -103
- package/dist/McProSelect/demo/exclusion-rename.d.ts +0 -3
- package/dist/McProSelect/demo/exclusion-rename.js +0 -74
- package/dist/McProSelect/demo/exclusion.d.ts +0 -3
- package/dist/McProSelect/demo/exclusion.js +0 -70
- package/dist/McProSelect/demo/require.d.ts +0 -2
- package/dist/McProSelect/demo/require.js +0 -82
- package/dist/McProSelect/index.d.ts +0 -35
- package/dist/McProSelect/index.js +0 -152
- package/dist/McResult/default.d.ts +0 -1
- package/dist/McResult/default.js +0 -98
- package/dist/McResult/demo/403.d.ts +0 -6
- package/dist/McResult/demo/403.js +0 -17
- package/dist/McResult/demo/404.d.ts +0 -6
- package/dist/McResult/demo/404.js +0 -17
- package/dist/McResult/demo/500.d.ts +0 -6
- package/dist/McResult/demo/500.js +0 -17
- package/dist/McResult/demo/building.d.ts +0 -6
- package/dist/McResult/demo/building.js +0 -12
- package/dist/McResult/demo/empty.d.ts +0 -2
- package/dist/McResult/demo/empty.js +0 -11
- package/dist/McResult/demo/noFunction.d.ts +0 -2
- package/dist/McResult/demo/noFunction.js +0 -11
- package/dist/McResult/demo/noUser.d.ts +0 -6
- package/dist/McResult/demo/noUser.js +0 -12
- package/dist/McResult/demo/preview.d.ts +0 -2
- package/dist/McResult/demo/preview.js +0 -19
- package/dist/McResult/icon.d.ts +0 -25
- package/dist/McResult/icon.js +0 -1014
- package/dist/McResult/index.css +0 -20
- package/dist/McResult/index.d.ts +0 -31
- package/dist/McResult/index.js +0 -119
- package/dist/McResult/public/403.svg +0 -164
- package/dist/McResult/public/404.svg +0 -123
- package/dist/McResult/public/500.svg +0 -129
- package/dist/McResult/public/building.svg +0 -127
- package/dist/McResult/public/code403.svg +0 -7
- package/dist/McResult/public/code404.svg +0 -5
- package/dist/McResult/public/code500.svg +0 -5
- package/dist/McResult/public/detailEmpty.svg +0 -1
- package/dist/McResult/public/empty.svg +0 -1
- package/dist/McResult/public/noFunction.svg +0 -1
- package/dist/McResult/public/noUser.svg +0 -90
- package/dist/McSelect/components/PanelSearchInput/index.css +0 -6
- package/dist/McSelect/components/PanelSearchInput/index.d.ts +0 -12
- package/dist/McSelect/components/PanelSearchInput/index.js +0 -45
- package/dist/McSelect/demo/base.d.ts +0 -2
- package/dist/McSelect/demo/base.js +0 -63
- package/dist/McSelect/demo/changeOnHidden.d.ts +0 -2
- package/dist/McSelect/demo/changeOnHidden.js +0 -43
- package/dist/McSelect/demo/dropdownRender.d.ts +0 -7
- package/dist/McSelect/demo/dropdownRender.js +0 -78
- package/dist/McSelect/demo/exclusion.d.ts +0 -3
- package/dist/McSelect/demo/exclusion.js +0 -64
- package/dist/McSelect/demo/fetchOptions.d.ts +0 -7
- package/dist/McSelect/demo/fetchOptions.js +0 -211
- package/dist/McSelect/demo/inexistent.d.ts +0 -2
- package/dist/McSelect/demo/inexistent.js +0 -79
- package/dist/McSelect/demo/labelInValue.d.ts +0 -2
- package/dist/McSelect/demo/labelInValue.js +0 -72
- package/dist/McSelect/demo/maxTagCount.d.ts +0 -3
- package/dist/McSelect/demo/maxTagCount.js +0 -51
- package/dist/McSelect/demo/multiple.d.ts +0 -2
- package/dist/McSelect/demo/multiple.js +0 -46
- package/dist/McSelect/demo/optionRender.d.ts +0 -3
- package/dist/McSelect/demo/optionRender.js +0 -51
- package/dist/McSelect/demo/panelInSearch.d.ts +0 -2
- package/dist/McSelect/demo/panelInSearch.js +0 -47
- package/dist/McSelect/demo/tagRender.d.ts +0 -3
- package/dist/McSelect/demo/tagRender.js +0 -51
- package/dist/McSelect/index.css +0 -60
- package/dist/McSelect/index.d.ts +0 -47
- package/dist/McSelect/index.js +0 -436
- package/dist/McTag/demo/demo1.d.ts +0 -2
- package/dist/McTag/demo/demo1.js +0 -18
- package/dist/McTag/demo/demo2.d.ts +0 -2
- package/dist/McTag/demo/demo2.js +0 -20
- package/dist/McTag/demo/demo3.d.ts +0 -2
- package/dist/McTag/demo/demo3.js +0 -19
- package/dist/McTag/demo/demo4.d.ts +0 -2
- package/dist/McTag/demo/demo4.js +0 -22
- package/dist/McTag/index.d.ts +0 -22
- package/dist/McTag/index.js +0 -59
- package/dist/McThemeConfig/customToken.json +0 -39
- package/dist/McThemeConfig/demo/button.d.ts +0 -2
- package/dist/McThemeConfig/demo/button.js +0 -226
- package/dist/McThemeConfig/demo/card.d.ts +0 -2
- package/dist/McThemeConfig/demo/card.js +0 -60
- package/dist/McThemeConfig/demo/drawer.d.ts +0 -2
- package/dist/McThemeConfig/demo/drawer.js +0 -59
- package/dist/McThemeConfig/demo/modal.d.ts +0 -2
- package/dist/McThemeConfig/demo/modal.js +0 -78
- package/dist/McThemeConfig/demo/radio.d.ts +0 -2
- package/dist/McThemeConfig/demo/radio.js +0 -136
- package/dist/McThemeConfig/demo/switch.d.ts +0 -2
- package/dist/McThemeConfig/demo/switch.js +0 -96
- package/dist/McThemeConfig/demo/tabs.d.ts +0 -2
- package/dist/McThemeConfig/demo/tabs.js +0 -35
- package/dist/McThemeConfig/globalStyle.d.ts +0 -2
- package/dist/McThemeConfig/globalStyle.js +0 -198
- package/dist/McThemeConfig/index.d.ts +0 -9
- package/dist/McThemeConfig/index.js +0 -16
- package/dist/McThemeConfig/layoutStyle.d.ts +0 -2
- package/dist/McThemeConfig/layoutStyle.js +0 -1
- package/dist/McThemeConfig/provider.d.ts +0 -8
- package/dist/McThemeConfig/provider.js +0 -20
- package/dist/McThemeConfig/themeToken.json +0 -152
- package/dist/McTreePanel/SelectedItem.d.ts +0 -4
- package/dist/McTreePanel/SelectedItem.js +0 -75
- package/dist/McTreePanel/demo/base.d.ts +0 -6
- package/dist/McTreePanel/demo/base.js +0 -45
- package/dist/McTreePanel/demo/fieldNames.d.ts +0 -6
- package/dist/McTreePanel/demo/fieldNames.js +0 -37
- package/dist/McTreePanel/demo/inexistent.d.ts +0 -6
- package/dist/McTreePanel/demo/inexistent.js +0 -56
- package/dist/McTreePanel/demo/labelInValue.d.ts +0 -6
- package/dist/McTreePanel/demo/labelInValue.js +0 -56
- package/dist/McTreePanel/demo/sortable.d.ts +0 -6
- package/dist/McTreePanel/demo/sortable.js +0 -34
- package/dist/McTreePanel/index.css +0 -110
- package/dist/McTreePanel/index.d.ts +0 -27
- package/dist/McTreePanel/index.js +0 -315
- package/dist/McTreeSelect/demo/base.d.ts +0 -5
- package/dist/McTreeSelect/demo/base.js +0 -58
- package/dist/McTreeSelect/demo/inexistent.d.ts +0 -5
- package/dist/McTreeSelect/demo/inexistent.js +0 -63
- package/dist/McTreeSelect/demo/label.d.ts +0 -5
- package/dist/McTreeSelect/demo/label.js +0 -60
- package/dist/McTreeSelect/demo/multiple.d.ts +0 -5
- package/dist/McTreeSelect/demo/multiple.js +0 -71
- package/dist/McTreeSelect/index.css +0 -60
- package/dist/McTreeSelect/index.d.ts +0 -13
- package/dist/McTreeSelect/index.js +0 -182
- package/dist/Utils/index.d.ts +0 -13
- package/dist/Utils/index.js +0 -60
- package/dist/index.d.ts +0 -31
- package/dist/index.js +0 -31
- package/dist/styles/demo/basic.d.ts +0 -2
- package/dist/styles/demo/basic.js +0 -44
- package/dist/styles/demo/delete-icon.d.ts +0 -2
- package/dist/styles/demo/delete-icon.js +0 -72
- package/dist/styles/demo/form-bottom-0.d.ts +0 -2
- package/dist/styles/demo/form-bottom-0.js +0 -33
- package/dist/styles/index.css +0 -41
- package/dist/styles/mixins.css +0 -2
- package/dist/styles/utilities.css +0 -41
- package/dist/typings.d.ts +0 -20
@@ -1,136 +0,0 @@
|
|
1
|
-
import { Radio, Space } from 'antd';
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
4
|
-
export default (function () {
|
5
|
-
return /*#__PURE__*/_jsxs(Space, {
|
6
|
-
direction: "vertical",
|
7
|
-
size: 16,
|
8
|
-
children: [/*#__PURE__*/_jsx(Radio.Group, {
|
9
|
-
defaultValue: 1,
|
10
|
-
options: [{
|
11
|
-
label: '选项一',
|
12
|
-
value: 1
|
13
|
-
}, {
|
14
|
-
label: '选项二',
|
15
|
-
value: 2
|
16
|
-
}]
|
17
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
18
|
-
defaultValue: 1,
|
19
|
-
disabled: true,
|
20
|
-
options: [{
|
21
|
-
label: '选项一',
|
22
|
-
value: 1
|
23
|
-
}, {
|
24
|
-
label: '选项二',
|
25
|
-
value: 2
|
26
|
-
}]
|
27
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
28
|
-
defaultValue: 1,
|
29
|
-
options: [{
|
30
|
-
label: '选项一',
|
31
|
-
value: 1,
|
32
|
-
disabled: true
|
33
|
-
}, {
|
34
|
-
label: '选项二',
|
35
|
-
value: 2
|
36
|
-
}]
|
37
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
38
|
-
defaultValue: 2,
|
39
|
-
optionType: "button",
|
40
|
-
options: [{
|
41
|
-
label: '选项一',
|
42
|
-
value: 1
|
43
|
-
}, {
|
44
|
-
label: '选项二',
|
45
|
-
value: 2
|
46
|
-
}, {
|
47
|
-
label: '选项三',
|
48
|
-
value: 3
|
49
|
-
}, {
|
50
|
-
label: '选项四',
|
51
|
-
value: 4
|
52
|
-
}, {
|
53
|
-
label: '选项五',
|
54
|
-
value: 5
|
55
|
-
}]
|
56
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
57
|
-
defaultValue: 1,
|
58
|
-
disabled: true,
|
59
|
-
optionType: "button",
|
60
|
-
options: [{
|
61
|
-
label: '选项一',
|
62
|
-
value: 1
|
63
|
-
}, {
|
64
|
-
label: '选项二',
|
65
|
-
value: 2
|
66
|
-
}, {
|
67
|
-
label: '选项三',
|
68
|
-
value: 3
|
69
|
-
}]
|
70
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
71
|
-
defaultValue: 1,
|
72
|
-
optionType: "button",
|
73
|
-
options: [{
|
74
|
-
label: '选项一',
|
75
|
-
value: 1,
|
76
|
-
disabled: true
|
77
|
-
}, {
|
78
|
-
label: '选项二',
|
79
|
-
value: 2
|
80
|
-
}, {
|
81
|
-
label: '选项三',
|
82
|
-
value: 3
|
83
|
-
}]
|
84
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
85
|
-
defaultValue: 2,
|
86
|
-
optionType: "button",
|
87
|
-
buttonStyle: "solid",
|
88
|
-
options: [{
|
89
|
-
label: '选项一',
|
90
|
-
value: 1
|
91
|
-
}, {
|
92
|
-
label: '选项二',
|
93
|
-
value: 2
|
94
|
-
}, {
|
95
|
-
label: '选项三',
|
96
|
-
value: 3
|
97
|
-
}, {
|
98
|
-
label: '选项四',
|
99
|
-
value: 4
|
100
|
-
}, {
|
101
|
-
label: '选项五',
|
102
|
-
value: 5
|
103
|
-
}]
|
104
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
105
|
-
defaultValue: 1,
|
106
|
-
disabled: true,
|
107
|
-
optionType: "button",
|
108
|
-
buttonStyle: "solid",
|
109
|
-
options: [{
|
110
|
-
label: '选项一',
|
111
|
-
value: 1
|
112
|
-
}, {
|
113
|
-
label: '选项二',
|
114
|
-
value: 2
|
115
|
-
}, {
|
116
|
-
label: '选项三',
|
117
|
-
value: 3
|
118
|
-
}]
|
119
|
-
}), /*#__PURE__*/_jsx(Radio.Group, {
|
120
|
-
defaultValue: 1,
|
121
|
-
optionType: "button",
|
122
|
-
buttonStyle: "solid",
|
123
|
-
options: [{
|
124
|
-
label: '选项一',
|
125
|
-
value: 1,
|
126
|
-
disabled: true
|
127
|
-
}, {
|
128
|
-
label: '选项二',
|
129
|
-
value: 2
|
130
|
-
}, {
|
131
|
-
label: '选项三',
|
132
|
-
value: 3
|
133
|
-
}]
|
134
|
-
})]
|
135
|
-
});
|
136
|
-
});
|
@@ -1,96 +0,0 @@
|
|
1
|
-
import { Col, Row, Switch } from 'antd';
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
4
|
-
export default (function () {
|
5
|
-
var styles = {
|
6
|
-
marginBottom: 30
|
7
|
-
};
|
8
|
-
return /*#__PURE__*/_jsxs(Row, {
|
9
|
-
gutter: [100, 0],
|
10
|
-
children: [/*#__PURE__*/_jsxs(Col, {
|
11
|
-
children: [/*#__PURE__*/_jsx("div", {
|
12
|
-
style: styles,
|
13
|
-
children: "\u5E38\u89C4"
|
14
|
-
}), /*#__PURE__*/_jsx("div", {
|
15
|
-
style: styles,
|
16
|
-
children: /*#__PURE__*/_jsx(Switch, {})
|
17
|
-
}), /*#__PURE__*/_jsx("div", {
|
18
|
-
style: styles,
|
19
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
20
|
-
disabled: true
|
21
|
-
})
|
22
|
-
}), /*#__PURE__*/_jsx("div", {
|
23
|
-
style: styles,
|
24
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
25
|
-
defaultChecked: true
|
26
|
-
})
|
27
|
-
}), /*#__PURE__*/_jsx("div", {
|
28
|
-
style: styles,
|
29
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
30
|
-
defaultChecked: true,
|
31
|
-
disabled: true
|
32
|
-
})
|
33
|
-
})]
|
34
|
-
}), /*#__PURE__*/_jsxs(Col, {
|
35
|
-
children: [/*#__PURE__*/_jsx("div", {
|
36
|
-
style: styles,
|
37
|
-
children: "\u5E26\u6587\u5B57"
|
38
|
-
}), /*#__PURE__*/_jsx("div", {
|
39
|
-
style: styles,
|
40
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
41
|
-
checkedChildren: "\u5F00\u542F",
|
42
|
-
unCheckedChildren: "\u5173\u95ED"
|
43
|
-
})
|
44
|
-
}), /*#__PURE__*/_jsx("div", {
|
45
|
-
style: styles,
|
46
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
47
|
-
checkedChildren: "\u5F00\u542F",
|
48
|
-
unCheckedChildren: "\u5173\u95ED",
|
49
|
-
disabled: true
|
50
|
-
})
|
51
|
-
}), /*#__PURE__*/_jsx("div", {
|
52
|
-
style: styles,
|
53
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
54
|
-
defaultChecked: true
|
55
|
-
})
|
56
|
-
}), /*#__PURE__*/_jsx("div", {
|
57
|
-
style: styles,
|
58
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
59
|
-
checkedChildren: "\u5F00\u542F",
|
60
|
-
unCheckedChildren: "\u5173\u95ED",
|
61
|
-
defaultChecked: true,
|
62
|
-
disabled: true
|
63
|
-
})
|
64
|
-
})]
|
65
|
-
}), /*#__PURE__*/_jsxs(Col, {
|
66
|
-
children: [/*#__PURE__*/_jsx("div", {
|
67
|
-
style: styles,
|
68
|
-
children: "\u5C0F\u6309\u94AE"
|
69
|
-
}), /*#__PURE__*/_jsx("div", {
|
70
|
-
style: styles,
|
71
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
72
|
-
size: "small"
|
73
|
-
})
|
74
|
-
}), /*#__PURE__*/_jsx("div", {
|
75
|
-
style: styles,
|
76
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
77
|
-
disabled: true,
|
78
|
-
size: "small"
|
79
|
-
})
|
80
|
-
}), /*#__PURE__*/_jsx("div", {
|
81
|
-
style: styles,
|
82
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
83
|
-
defaultChecked: true,
|
84
|
-
size: "small"
|
85
|
-
})
|
86
|
-
}), /*#__PURE__*/_jsx("div", {
|
87
|
-
style: styles,
|
88
|
-
children: /*#__PURE__*/_jsx(Switch, {
|
89
|
-
defaultChecked: true,
|
90
|
-
disabled: true,
|
91
|
-
size: "small"
|
92
|
-
})
|
93
|
-
})]
|
94
|
-
})]
|
95
|
-
});
|
96
|
-
});
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { Tabs } 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 () {
|
6
|
-
var items = Array.from({
|
7
|
-
length: 5
|
8
|
-
}, function (_, index) {
|
9
|
-
return {
|
10
|
-
label: "item ".concat(index + 1),
|
11
|
-
key: "".concat(index + 1)
|
12
|
-
};
|
13
|
-
});
|
14
|
-
return /*#__PURE__*/_jsxs(_Fragment, {
|
15
|
-
children: [/*#__PURE__*/_jsx("div", {
|
16
|
-
children: "\u5E38\u89C4"
|
17
|
-
}), /*#__PURE__*/_jsx("div", {
|
18
|
-
children: /*#__PURE__*/_jsx(Tabs, {
|
19
|
-
defaultActiveKey: "1",
|
20
|
-
items: items
|
21
|
-
})
|
22
|
-
}), /*#__PURE__*/_jsx("div", {
|
23
|
-
style: {
|
24
|
-
marginBottom: 16
|
25
|
-
},
|
26
|
-
children: "\u5361\u7247"
|
27
|
-
}), /*#__PURE__*/_jsx("div", {
|
28
|
-
children: /*#__PURE__*/_jsx(Tabs, {
|
29
|
-
defaultActiveKey: "2",
|
30
|
-
type: "card",
|
31
|
-
items: items
|
32
|
-
})
|
33
|
-
})]
|
34
|
-
});
|
35
|
-
});
|
@@ -1,198 +0,0 @@
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
2
|
-
var _templateObject;
|
3
|
-
// @ts-nocheck
|
4
|
-
import { createGlobalStyle } from 'antd-style';
|
5
|
-
|
6
|
-
// 后续如果需要精确控制字体粗细时再加上
|
7
|
-
// @font-face {
|
8
|
-
// font-family: 'SourceHanSansCN';
|
9
|
-
// src: url(${(props) => props.font.Medium});
|
10
|
-
// font-weight: 600;
|
11
|
-
// font-display: swap;
|
12
|
-
// }
|
13
|
-
|
14
|
-
// @font-face {
|
15
|
-
// font-family: 'SourceHanSansCN';
|
16
|
-
// src: url(${(props) => props.font.Bold});
|
17
|
-
// font-weight: 700;
|
18
|
-
// font-display: swap;
|
19
|
-
// }
|
20
|
-
|
21
|
-
var globalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n// <====================== Layout ======================>\n\n", "\n\n// <====================== Font ======================>\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n font-weight: 300;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'SourceHanSansCN';\n src: url(", ");\n font-weight: 400;\n font-display: swap;\n}\n\n@font-face {\n font-family: 'FFDIN';\n src: url(", ");\n}\n\nbody * {\n font-family: 'SourceHanSansCN';\n box-sizing: border-box;\n}\n\n// <====================== Button ======================>\n\n// primary\n.ant-btn-primary[disabled]{\n background: ", ";\n color: ", ";\n opacity: 0.3;\n}\n\n// default\n.ant-btn-default[disabled] {\n border-color: ", " !important;\n}\n\n// danger\n.ant-btn-default.ant-btn-dangerous,.ant-btn-default[data-danger],\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n color: ", ";\n background: ", ";\n border-color:", ";\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color:", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-default.ant-btn-dangerous[disabled],.ant-btn-default[data-danger][disabled] {\n opacity: 0.4;\n}\n\n// secondary\n.ant-btn-default[data-secondary],\n// modal\u3001drawer\u3001popconfirm footer\n.ant-modal-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-drawer-footer .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous),\n.ant-popconfirm-buttons .ant-btn-default:not([data-default]):not([data-danger]):not(.ant-btn-dangerous){\n background: ", ";\n border-color: ", ";\n\n &:hover {\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n border-color: ", " !important;\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-secondary][disabled] {\n color: ", " ;\n background: ", ";\n border-color: ", " !important;\n\n &:hover {\n color: ", ";\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// add\n.ant-btn-default[data-add] {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n background: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n }\n}\n\n.ant-btn-default[data-add][disabled] {\n opacity: 0.4;\n color: ", ";\n\n &:hover {\n background: ", " !important;\n color: ", " !important;\n }\n\n &:active{\n background: ", " !important;\n color: ", " !important;\n }\n}\n\n//dashed\n.ant-btn-dashed {\n background: ", " !important;\n border-color: ", " !important;\n}\n\n.ant-btn-dashed:not([disabled]) {\n &:hover {\n background: ", " !important;\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active{\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// dashed danger\n.ant-btn-dashed.ant-btn-dangerous,\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n color: ", " !important;\n border-color: ", " !important;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n.ant-btn-dashed.ant-btn-dangerous:disabled {\n opacity: 0.4;\n\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// ghost\n.ant-btn-background-ghost:not([disabled]) {\n &:hover {\n color: ", " !important;\n border-color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n border-color: ", " !important;\n }\n}\n\n// link\n.ant-btn-link:not([disabled]) {\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n\n }\n}\n\n.ant-btn-link[disabled] {\n color: ", " !important;\n opacity: 0.3;\n}\n\n// link danger\n.ant-btn-link.ant-btn-dangerous {\n\n &:hover {\n color: ", " !important;\n }\n\n &:active {\n color: ", " !important;\n }\n}\n\n.ant-btn-link.ant-btn-dangerous:disabled {\n color: ", " !important;\n opacity: 0.3;\n}\n\n\n\n// <====================== Drawer ======================>\n\n.ant-drawer .ant-drawer-header{\n border-bottom: none;\n padding: 23px 24px;\n .ant-drawer-header-title {\n flex-direction: row-reverse;\n .ant-drawer-close {\n margin: -4px;\n }\n }\n}\n// Drawer \u5BBD\u9AD8 \u4E1A\u52A1\u65B9\u81EA\u884C\u5B9E\u73B0\n//.ant-drawer .ant-drawer-content-wrapper {\n// min-width: 480px\n//}\n.ant-drawer .ant-drawer-body{\n padding: 0 24px;\n}\n.ant-drawer .ant-drawer-footer{\n border-top: none;\n padding: 24px;\n}\n\n// <====================== Modal ======================>\n\n.ant-modal .ant-modal-header {\n margin-bottom:24px;\n}\n.ant-modal-body {\n overflow-y: auto\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1280px\u4E14\u5C0F\u4E8E1366px\u7684\u65F6\u5019\u6267\u884C,1280-1366*/\n@media screen and (min-width:1280px) and (max-width: 1366px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 80px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 40px;\n }\n }\n}\n\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1440px\u4E14\u5C0F\u4E8E1600px\u7684\u65F6\u5019\u6267\u884C,1440-1600*/\n@media screen and (min-width:1440px) and (max-width:1600px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 80px;\n }\n }\n}\n/*\u5F53\u9875\u9762\u5BBD\u5EA6\u5927\u4E8E1680px\u4E14\u5C0F\u4E8E1920px\u7684\u65F6\u5019\u6267\u884C,1680-1920*/\n@media screen and (min-width:1680px) and (max-width:2560px){\n .ant-modal-root[data-small] {\n .ant-modal-body {\n max-height: 150px;\n }\n .ant-modal {\n top: 200px;\n }\n }\n\n .ant-modal-root[data-medium] {\n .ant-modal-body {\n max-height: 300px;\n min-height: 150px\n }\n .ant-modal {\n top: 150px;\n }\n }\n\n .ant-modal-root[data-large] {\n .ant-modal-body {\n max-height: 450px;\n min-height: 300px\n }\n .ant-modal {\n top: 150px;\n }\n }\n}\n\n// <====================== Tabs ======================>\n\n.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n text-shadow: unset;\n}\n.ant-tabs-card {\n .ant-tabs-nav {\n margin: 0;\n &::before {\n border: none;\n }\n .ant-tabs-nav-wrap {\n background: transparent;\n .ant-tabs-nav-list {\n background: ", ";\n border-top-right-radius: ", "px;\n .ant-tabs-tab {\n position: relative;\n border: ", ";\n border-radius: ", "px ", "px 0px 0px;\n &::after {\n position: absolute;\n top: 11px;\n right: -1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-nav-add {\n position: relative;\n border: none;\n border-top-right-radius: ", "px;\n &::before {\n position: absolute;\n top: 11px;\n left: 1px;\n width: 1px;\n height: 24px;\n background: ", ";\n content: '';\n }\n }\n .ant-tabs-tab-active {\n border: ", ";\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:nth-last-of-type(2) {\n &::after {\n display: none;\n }\n }\n .ant-tabs-tab:has(+ .ant-tabs-tab-active) {\n &::after {\n display: none;\n }\n }\n }\n }\n }\n}\n\n// <====================== Pagination ======================>\n\n.ant-pagination {\n display: flex;\n align-items: center;\n\n .ant-pagination-total-text {\n margin-right: auto;\n color: ", ";\n }\n\n .ant-pagination-item.ant-pagination-item-active {\n &:hover {\n border-color: ", ";\n }\n\n &>a {\n color: ", ";\n }\n }\n\n .ant-pagination-options {\n .ant-pagination-options-quick-jumper {\n input {\n background: ", ";\n border-color: ", ";\n padding: 12px;\n\n &:hover {\n border-color: ", ";\n }\n\n &:focus {\n border-color: ", ";\n }\n }\n }\n }\n\n &.ant-pagination-mini li:not(:first-of-type) {\n margin-left: 2px;\n }\n}\n\n// <====================== Radio ======================>\n .ant-radio-group {\n .ant-radio-button-wrapper {\n position: relative;\n border: 1px solid ", ";\n &::before {\n display: none;\n }\n &::after {\n display: inline-block;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 1px;\n height: ", "px;\n background: ", ";\n right: -1px;\n content: '';\n }\n }\n .ant-radio-button-wrapper-checked {\n border: 1px solid ", ";\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:nth-last-of-type(1) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper:has(+ .ant-radio-button-wrapper-checked) {\n &::after {\n display: none;\n }\n }\n .ant-radio-button-wrapper-disabled {\n border: 1px solid ", " !important;\n }\n .ant-radio-button-wrapper-disabled.ant-radio-button-wrapper-checked {\n border-color: ", " !important;\n }\n}\n// <====================== Collapse ======================>\n.ant-collapse .ant-collapse-content {\n border-top-width: 0px;\n}\n\n// <====================== Card ======================>\n.ant-card-type-inner .ant-card-head {\n border-bottom-width: 0;\n background: #FAFAFA;\n}\n\n// <====================== Global scroll,Fix Table two scroll ======================>\n\n/* \u901A\u7528\u6837\u5F0F\uFF1A\u9002\u7528\u4E8E Firefox */\n* {\n scrollbar-color: #d9d9d9 transparent;\n scrollbar-width: thin;\n /* \u5BF9\u5E94\u6EDA\u52A8\u6761\u5BBD\u5EA6\u7EA6\u4E3A 6px */\n}\n\n/* WebKit \u6D4F\u89C8\u5668\u6837\u5F0F\uFF1A\u5E94\u7528\u4E8E\u6240\u6709\u5E26\u6EDA\u52A8\u6761\u7684\u5143\u7D20 */\n*::-webkit-scrollbar {\n width: 6px;\n /* \u5782\u76F4\u6EDA\u52A8\u6761\u5BBD\u5EA6 */\n height: 6px;\n /* \u6C34\u5E73\u6EDA\u52A8\u6761\u9AD8\u5EA6 */\n}\n\n*::-webkit-scrollbar-thumb {\n background-color: #d9d9d9;\n /* \u6EDA\u52A8\u6761\u989C\u8272 */\n border-radius: 4px;\n /* \u6EDA\u52A8\u6761\u5706\u89D2 */\n}\n\n*::-webkit-scrollbar-track {\n background: transparent;\n /* \u6EDA\u52A8\u6761\u8F68\u9053\u80CC\u666F\u900F\u660E */\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll {\n height: 0 !important;\n background: #d9d9d9;\n border-top-width: 0;\n opacity: 1;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar-active, .ant-table-wrapper .ant-table-sticky-scroll-bar:hover {\n background-color: #d9d9d9;\n}\n\n.ant-table-wrapper .ant-table-sticky-scroll-bar {\n height: 6px;\n background: #d9d9d9;\n}\n\n// <====================== antd 5.22 bugfix ======================>\n.ant-select-multiple .ant-select-selection-wrap {\n position: static;\n}\n\n"])), function (props) {
|
22
|
-
return props.layout;
|
23
|
-
}, function (props) {
|
24
|
-
return props.font.Light;
|
25
|
-
}, function (props) {
|
26
|
-
return props.font.Regular;
|
27
|
-
}, function (props) {
|
28
|
-
return props.font.Alphanumeric;
|
29
|
-
}, function (props) {
|
30
|
-
return props.theme.colorPrimary;
|
31
|
-
}, function (props) {
|
32
|
-
return props.theme.CustomToken.Button.primaryColorDisabled;
|
33
|
-
}, function (props) {
|
34
|
-
return props.theme.CustomToken.Button.defaultBorderColorDisable;
|
35
|
-
}, function (props) {
|
36
|
-
return props.theme.colorError;
|
37
|
-
}, function (props) {
|
38
|
-
return props.theme.CustomToken.Button.dangerBg;
|
39
|
-
}, function (props) {
|
40
|
-
return props.theme.CustomToken.Button.dangerBorderColor;
|
41
|
-
}, function (props) {
|
42
|
-
return props.theme.dangerHoverColor;
|
43
|
-
}, function (props) {
|
44
|
-
return props.theme.CustomToken.Button.dangerBg;
|
45
|
-
}, function (props) {
|
46
|
-
return props.theme.CustomToken.Button.dangerBorderColor;
|
47
|
-
}, function (props) {
|
48
|
-
return props.theme.dangerActiveColor;
|
49
|
-
}, function (props) {
|
50
|
-
return props.theme.CustomToken.Button.resetBg;
|
51
|
-
}, function (props) {
|
52
|
-
return props.theme.CustomToken.Button.secondaryBorderColor;
|
53
|
-
}, function (props) {
|
54
|
-
return props.theme.CustomToken.Button.resetBg;
|
55
|
-
}, function (props) {
|
56
|
-
return props.theme.Button.defaultHoverColor;
|
57
|
-
}, function (props) {
|
58
|
-
return props.theme.CustomToken.Button.activeBorderColor;
|
59
|
-
}, function (props) {
|
60
|
-
return props.theme.CustomToken.Button.activeColor;
|
61
|
-
}, function (props) {
|
62
|
-
return props.theme.CustomToken.Button.secondaryColorDisabled;
|
63
|
-
}, function (props) {
|
64
|
-
return props.theme.CustomToken.Button.secondaryBgDisabled;
|
65
|
-
}, function (props) {
|
66
|
-
return props.theme.CustomToken.Button.secondaryBorderColor;
|
67
|
-
}, function (props) {
|
68
|
-
return props.theme.CustomToken.Button.secondaryColorDisabled;
|
69
|
-
}, function (props) {
|
70
|
-
return props.theme.CustomToken.Button.secondaryBgDisabled;
|
71
|
-
}, function (props) {
|
72
|
-
return props.theme.CustomToken.Button.secondaryBorderColor;
|
73
|
-
}, function (props) {
|
74
|
-
return props.theme.CustomToken.Button.secondaryColorDisabled;
|
75
|
-
}, function (props) {
|
76
|
-
return props.theme.CustomToken.Button.secondaryBorderColor;
|
77
|
-
}, function (props) {
|
78
|
-
return props.theme.CustomToken.Button.addBg;
|
79
|
-
}, function (props) {
|
80
|
-
return props.theme.colorPrimary;
|
81
|
-
}, function (props) {
|
82
|
-
return props.theme.CustomToken.Button.addBg;
|
83
|
-
}, function (props) {
|
84
|
-
return props.theme.CustomToken.Button.hoverColor;
|
85
|
-
}, function (props) {
|
86
|
-
return props.theme.CustomToken.Button.addHoverBg;
|
87
|
-
}, function (props) {
|
88
|
-
return props.theme.CustomToken.Button.addHoverBg;
|
89
|
-
}, function (props) {
|
90
|
-
return props.theme.CustomToken.Button.activeColor;
|
91
|
-
}, function (props) {
|
92
|
-
return props.theme.colorPrimary;
|
93
|
-
}, function (props) {
|
94
|
-
return props.theme.CustomToken.Button.addBg;
|
95
|
-
}, function (props) {
|
96
|
-
return props.theme.colorPrimary;
|
97
|
-
}, function (props) {
|
98
|
-
return props.theme.CustomToken.Button.addBg;
|
99
|
-
}, function (props) {
|
100
|
-
return props.theme.colorPrimary;
|
101
|
-
}, function (props) {
|
102
|
-
return props.theme.CustomToken.Button.resetBg;
|
103
|
-
}, function (props) {
|
104
|
-
return props.theme.CustomToken.Button.dashedBorderColor;
|
105
|
-
}, function (props) {
|
106
|
-
return props.theme.CustomToken.Button.resetBg;
|
107
|
-
}, function (props) {
|
108
|
-
return props.theme.CustomToken.Button.hoverColor;
|
109
|
-
}, function (props) {
|
110
|
-
return props.theme.CustomToken.Button.hoverColor;
|
111
|
-
}, function (props) {
|
112
|
-
return props.theme.CustomToken.Button.activeColor;
|
113
|
-
}, function (props) {
|
114
|
-
return props.theme.CustomToken.Button.activeColor;
|
115
|
-
}, function (props) {
|
116
|
-
return props.theme.colorError;
|
117
|
-
}, function (props) {
|
118
|
-
return props.theme.colorError;
|
119
|
-
}, function (props) {
|
120
|
-
return props.theme.colorErrorHover;
|
121
|
-
}, function (props) {
|
122
|
-
return props.theme.colorErrorBorderHover;
|
123
|
-
}, function (props) {
|
124
|
-
return props.theme.colorErrorActive;
|
125
|
-
}, function (props) {
|
126
|
-
return props.theme.colorError;
|
127
|
-
}, function (props) {
|
128
|
-
return props.theme.colorError;
|
129
|
-
}, function (props) {
|
130
|
-
return props.theme.colorError;
|
131
|
-
}, function (props) {
|
132
|
-
return props.theme.colorError;
|
133
|
-
}, function (props) {
|
134
|
-
return props.theme.CustomToken.Button.hoverColor;
|
135
|
-
}, function (props) {
|
136
|
-
return props.theme.CustomToken.Button.hoverColor;
|
137
|
-
}, function (props) {
|
138
|
-
return props.theme.CustomToken.Button.activeColor;
|
139
|
-
}, function (props) {
|
140
|
-
return props.theme.CustomToken.Button.activeColor;
|
141
|
-
}, function (props) {
|
142
|
-
return props.theme.CustomToken.Button.hoverColor;
|
143
|
-
}, function (props) {
|
144
|
-
return props.theme.CustomToken.Button.activeColor;
|
145
|
-
}, function (props) {
|
146
|
-
return props.theme.colorPrimary;
|
147
|
-
}, function (props) {
|
148
|
-
return props.theme.colorErrorHover;
|
149
|
-
}, function (props) {
|
150
|
-
return props.theme.colorErrorActive;
|
151
|
-
}, function (props) {
|
152
|
-
return props.theme.colorError;
|
153
|
-
}, function (props) {
|
154
|
-
return props.theme.CustomToken.Tabs.cardTabListBg;
|
155
|
-
}, function (props) {
|
156
|
-
return props.theme.CustomToken.Tabs.cardTabRadius;
|
157
|
-
}, function (props) {
|
158
|
-
return props.theme.CustomToken.Tabs.cardTabItemBorder;
|
159
|
-
}, function (props) {
|
160
|
-
return props.theme.CustomToken.Tabs.cardTabRadius;
|
161
|
-
}, function (props) {
|
162
|
-
return props.theme.CustomToken.Tabs.cardTabRadius;
|
163
|
-
}, function (props) {
|
164
|
-
return props.theme.CustomToken.Tabs.cardTabItemLineColor;
|
165
|
-
}, function (props) {
|
166
|
-
return props.theme.CustomToken.Tabs.cardTabRadius;
|
167
|
-
}, function (props) {
|
168
|
-
return props.theme.CustomToken.Tabs.cardTabItemLineColor;
|
169
|
-
}, function (props) {
|
170
|
-
return props.theme.CustomToken.Tabs.cardTabItemActiveBorder;
|
171
|
-
}, function (props) {
|
172
|
-
return props.theme.CustomToken.Pagination.totalTextColor;
|
173
|
-
}, function (props) {
|
174
|
-
return props.theme.CustomToken.Pagination.itemActiveHoverBorderColor;
|
175
|
-
}, function (props) {
|
176
|
-
return props.theme.CustomToken.Pagination.itemActiveColor;
|
177
|
-
}, function (props) {
|
178
|
-
return props.theme.Input.colorBgContainer;
|
179
|
-
}, function (props) {
|
180
|
-
return props.theme.Input.colorBorder;
|
181
|
-
}, function (props) {
|
182
|
-
return props.theme.Input.hoverBorderColor;
|
183
|
-
}, function (props) {
|
184
|
-
return props.theme.Input.hoverBorderColor;
|
185
|
-
}, function (props) {
|
186
|
-
return props.theme.Radio.buttonBg;
|
187
|
-
}, function (props) {
|
188
|
-
return props.theme.CustomToken.Radio.buttonLineHeight;
|
189
|
-
}, function (props) {
|
190
|
-
return props.theme.CustomToken.Radio.buttonLineBg;
|
191
|
-
}, function (props) {
|
192
|
-
return props.theme.colorPrimary;
|
193
|
-
}, function (props) {
|
194
|
-
return props.theme.Radio.colorBgContainerDisabled;
|
195
|
-
}, function (props) {
|
196
|
-
return props.theme.CustomToken.Radio.buttonCheckedBorderColorDisabled;
|
197
|
-
});
|
198
|
-
export default globalStyle;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { ThemeConfig } from 'antd/es/config-provider/context';
|
3
|
-
import { IMcThemeProviderProps } from './provider';
|
4
|
-
type McThemeConfigType = ThemeConfig & {
|
5
|
-
ThemeToken: ThemeConfig;
|
6
|
-
Provider: ({ children }: IMcThemeProviderProps) => JSX.Element;
|
7
|
-
};
|
8
|
-
declare const McThemeConfig: McThemeConfigType;
|
9
|
-
export default McThemeConfig;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
2
|
-
import { default as CustomToken } from "./customToken.json";
|
3
|
-
import Provider from "./provider";
|
4
|
-
import { default as ThemeToken } from "./themeToken.json";
|
5
|
-
var token = ThemeToken.token,
|
6
|
-
components = ThemeToken.components;
|
7
|
-
var AllToken = {
|
8
|
-
token: token,
|
9
|
-
components: _objectSpread(_objectSpread({}, components), CustomToken)
|
10
|
-
};
|
11
|
-
var McThemeConfig = _objectSpread(_objectSpread({}, AllToken), {}, {
|
12
|
-
// 兼容 1.0.1 默认导出 theme.json
|
13
|
-
ThemeToken: AllToken,
|
14
|
-
Provider: Provider
|
15
|
-
});
|
16
|
-
export default McThemeConfig;
|
@@ -1,2 +0,0 @@
|
|
1
|
-
declare const _default: "\n/* =========== 布局样式 =========== */\n.ant-pro-layout {\n /* 侧边菜单 */\n .ant-pro-sider {\n padding: 8px 0 16px 16px;\n background: transparent !important;\n\n .ant-layout-sider-children {\n background: #f0f4f9;\n border-radius: 12px 0 0 12px;\n padding: 0;\n border-right: 0;\n margin-right: 0;\n overflow: hidden;\n\n .ant-pro-sider-menu {\n .ant-pro-base-menu-inline-item-icon .anticon {\n font-size: 18px;\n color: #8c8c8c;\n }\n\n [class*='-selected'] .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n\n a {\n transition: color 0s;\n }\n\n & > .ant-menu-item {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:not(.ant-menu-item-selected):hover {\n color: #325cf7;\n background: transparent !important;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n background: #ffffff;\n }\n }\n\n .ant-menu-submenu {\n .ant-menu-submenu-title {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n &:first-of-type .ant-menu-submenu-title {\n margin-top: 0;\n }\n\n &.ant-menu-submenu-selected {\n .ant-menu-submenu-title {\n color: #325cf7;\n }\n }\n\n .ant-menu-sub {\n padding: 0;\n\n .ant-menu-item {\n color: #595959;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n padding-left: 44px !important;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n font-weight: 500;\n background: #ffffff;\n }\n }\n }\n }\n }\n\n .ant-pro-sider-footer {\n text-align: right;\n padding: 0 12px 16px;\n\n .menu-footer-collapse-btn {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n padding: 0;\n border: 0;\n\n .ant-btn-icon .anticon {\n font-size: 21px;\n color: #b3b3b3;\n }\n\n &:not(:hover) {\n background: #ffffff;\n }\n }\n }\n }\n\n &.ant-layout-sider-collapsed .ant-layout-sider-children .ant-pro-sider-menu {\n margin-top: -4px;\n\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #8c8c8c;\n }\n\n .ant-menu-item {\n &:hover {\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n .ant-menu-item.ant-menu-item-selected,\n .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title {\n background: #ffffff;\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n }\n\n /* 头部区header */\n .ant-pro-layout-container .ant-pro-layout-header {\n border-bottom: 0 !important;\n\n .ant-pro-top-nav-header-main {\n padding-left: 0;\n\n .ant-pro-top-nav-header-menu {\n padding: 0;\n line-height: 48px;\n\n .ant-menu-overflow-item-rest {\n margin: 8px;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n }\n\n .ant-menu-item {\n padding: 0 28px;\n margin: 8px 0;\n\n &:hover {\n font-weight: 500;\n background: rgba(50, 92, 247, 0.1);\n }\n\n &.ant-menu-item-selected {\n font-weight: bold;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n\n &::after {\n content: '';\n display: block;\n width: 21px;\n height: 4px;\n border-radius: 4px;\n background: #325cf7;\n position: absolute;\n bottom: 0;\n left: calc((100% - 21px) / 2);\n }\n }\n }\n }\n }\n }\n\n /* 内容区main */\n .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 32px);\n margin: 8px 16px 16px;\n padding: 0;\n height: calc(100vh - 88px);\n overflow: auto;\n border-radius: 12px;\n }\n\n .ant-layout-has-sider .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 16px);\n margin-left: 0;\n border-radius: 0 12px 12px 0;\n }\n}";
|
2
|
-
export default _default;
|
@@ -1 +0,0 @@
|
|
1
|
-
export default "\n/* =========== \u5E03\u5C40\u6837\u5F0F =========== */\n.ant-pro-layout {\n /* \u4FA7\u8FB9\u83DC\u5355 */\n .ant-pro-sider {\n padding: 8px 0 16px 16px;\n background: transparent !important;\n\n .ant-layout-sider-children {\n background: #f0f4f9;\n border-radius: 12px 0 0 12px;\n padding: 0;\n border-right: 0;\n margin-right: 0;\n overflow: hidden;\n\n .ant-pro-sider-menu {\n .ant-pro-base-menu-inline-item-icon .anticon {\n font-size: 18px;\n color: #8c8c8c;\n }\n\n [class*='-selected'] .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n\n a {\n transition: color 0s;\n }\n\n & > .ant-menu-item {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:first-of-type {\n margin-top: 0;\n }\n\n &:not(.ant-menu-item-selected):hover {\n color: #325cf7;\n background: transparent !important;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n background: #ffffff;\n }\n }\n\n .ant-menu-submenu {\n .ant-menu-submenu-title {\n color: #262626;\n font-weight: 500;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n &:first-of-type .ant-menu-submenu-title {\n margin-top: 0;\n }\n\n &.ant-menu-submenu-selected {\n .ant-menu-submenu-title {\n color: #325cf7;\n }\n }\n\n .ant-menu-sub {\n padding: 0;\n\n .ant-menu-item {\n color: #595959;\n margin: 0;\n margin-bottom: 8px;\n width: 100%;\n border-radius: 4px 0 0 4px;\n padding-left: 44px !important;\n\n &:hover {\n color: #325cf7;\n background: transparent;\n\n .ant-pro-base-menu-inline-item-icon .anticon {\n color: #325cf7;\n }\n }\n\n &.ant-menu-item-selected {\n color: #325cf7;\n font-weight: 500;\n background: #ffffff;\n }\n }\n }\n }\n }\n\n .ant-pro-sider-footer {\n text-align: right;\n padding: 0 12px 16px;\n\n .menu-footer-collapse-btn {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n padding: 0;\n border: 0;\n\n .ant-btn-icon .anticon {\n font-size: 21px;\n color: #b3b3b3;\n }\n\n &:not(:hover) {\n background: #ffffff;\n }\n }\n }\n }\n\n &.ant-layout-sider-collapsed .ant-layout-sider-children .ant-pro-sider-menu {\n margin-top: -4px;\n\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #8c8c8c;\n }\n\n .ant-menu-item {\n &:hover {\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n\n .ant-menu-item.ant-menu-item-selected,\n .ant-menu-submenu.ant-menu-submenu-selected .ant-menu-submenu-title {\n background: #ffffff;\n .ant-pro-base-menu-vertical-item-icon .anticon {\n color: #325cf7;\n }\n }\n }\n }\n\n /* \u5934\u90E8\u533Aheader */\n .ant-pro-layout-container .ant-pro-layout-header {\n border-bottom: 0 !important;\n\n .ant-pro-top-nav-header-main {\n padding-left: 0;\n\n .ant-pro-top-nav-header-menu {\n padding: 0;\n line-height: 48px;\n\n .ant-menu-overflow-item-rest {\n margin: 8px;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n }\n\n .ant-menu-item {\n padding: 0 28px;\n margin: 8px 0;\n\n &:hover {\n font-weight: 500;\n background: rgba(50, 92, 247, 0.1);\n }\n\n &.ant-menu-item-selected {\n font-weight: bold;\n\n &:hover {\n background: rgba(50, 92, 247, 0.1);\n }\n\n &::after {\n content: '';\n display: block;\n width: 21px;\n height: 4px;\n border-radius: 4px;\n background: #325cf7;\n position: absolute;\n bottom: 0;\n left: calc((100% - 21px) / 2);\n }\n }\n }\n }\n }\n }\n\n /* \u5185\u5BB9\u533Amain */\n .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 32px);\n margin: 8px 16px 16px;\n padding: 0;\n height: calc(100vh - 88px);\n overflow: auto;\n border-radius: 12px;\n }\n\n .ant-layout-has-sider .ant-pro-layout-container .ant-pro-layout-content {\n width: calc(100% - 16px);\n margin-left: 0;\n border-radius: 0 12px 12px 0;\n }\n}";
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { ReactElement } from 'react';
|
2
|
-
import '../styles/utilities.less';
|
3
|
-
export interface IMcThemeProviderProps {
|
4
|
-
children: ReactElement;
|
5
|
-
layout?: boolean;
|
6
|
-
}
|
7
|
-
declare const McThemeProvider: ({ children, layout }: IMcThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
-
export default McThemeProvider;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { ThemeProvider } from 'antd-style';
|
2
|
-
import { McFonts } from "./..";
|
3
|
-
import GlobalStyle from "./globalStyle";
|
4
|
-
import McThemeConfig from "./index";
|
5
|
-
import LayoutStyle from "./layoutStyle";
|
6
|
-
import "../styles/utilities.css";
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
9
|
-
var McThemeProvider = function McThemeProvider(_ref) {
|
10
|
-
var children = _ref.children,
|
11
|
-
layout = _ref.layout;
|
12
|
-
return /*#__PURE__*/_jsxs(ThemeProvider, {
|
13
|
-
theme: McThemeConfig.ThemeToken,
|
14
|
-
children: [/*#__PURE__*/_jsx(GlobalStyle, {
|
15
|
-
font: McFonts,
|
16
|
-
layout: layout ? LayoutStyle : ''
|
17
|
-
}), children]
|
18
|
-
});
|
19
|
-
};
|
20
|
-
export default McThemeProvider;
|