@zat-design/sisyphus-react 3.4.2 → 3.4.3
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/dist/index.esm.css +286 -240
- package/dist/less.esm.css +5022 -0
- package/dist/less.esm.js +3 -0
- package/es/ProConfigProvider/index.js +2 -1
- package/es/ProEditLabel/style/index.less +1 -1
- package/es/ProEditTable/components/RenderField/index.js +28 -20
- package/es/ProEditTable/index.js +3 -3
- package/es/ProEditTable/propsType.d.ts +1 -1
- package/es/ProEditTable/style/index.less +1 -1
- package/es/ProEditTable/utils/config.js +5 -5
- package/es/ProEditTable/utils/index.js +67 -30
- package/es/ProEditTable/utils/tools.js +3 -1
- package/es/ProEnum/components/Group.d.ts +2 -0
- package/es/ProEnum/components/Group.js +26 -8
- package/es/ProEnum/index.js +4 -3
- package/es/ProEnum/style/index.less +12 -3
- package/es/ProForm/components/base/DatePicker/index.js +2 -2
- package/es/ProForm/components/combination/FormList/index.js +6 -3
- package/es/ProForm/components/combination/FormList/utils.d.ts +2 -1
- package/es/ProForm/components/combination/FormList/utils.js +5 -3
- package/es/ProForm/components/combination/Group/index.js +28 -15
- package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/es/ProForm/components/combination/Group/style/index.less +4 -4
- package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/es/ProForm/components/combination/Group/utils.js +10 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +8 -2
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/es/ProForm/components/index.d.ts +0 -1
- package/es/ProForm/components/index.js +1 -1
- package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/es/ProForm/components/render/Render.js +21 -13
- package/es/ProForm/components/render/RenderFields.d.ts +2 -1
- package/es/ProForm/components/render/RenderFields.js +7 -3
- package/es/ProForm/components/render/propsType.d.ts +1 -4
- package/es/ProForm/index.js +8 -6
- package/es/ProForm/propsType.d.ts +5 -1
- package/es/ProForm/style/index.less +17 -13
- package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/es/ProForm/utils/diffOriginal.js +61 -0
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +1 -1
- package/es/ProForm/utils/transformNames.d.ts +1 -1
- package/es/ProForm/utils/transformNames.js +11 -4
- package/es/ProForm/utils/transformValue.js +2 -2
- package/es/ProForm/utils/useChanged.js +4 -3
- package/es/ProForm/utils/useListChanged.d.ts +1 -1
- package/es/ProForm/utils/useListChanged.js +5 -3
- package/es/ProForm/utils/valueType.d.ts +10 -5
- package/es/ProForm/utils/valueType.js +20 -10
- package/es/ProIcon/config/index.d.ts +2 -1
- package/es/ProIcon/config/index.js +191 -133
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +21 -36
- package/es/ProIcon/propsTypes.d.ts +2 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/es/ProLayout/components/ProCollapse/index.js +22 -3
- package/es/ProLayout/components/ProCollapse/style/index.less +29 -11
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProFooter/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/style/index.less +6 -5
- package/es/ProLayout/style/index.less +176 -88
- package/es/ProStep/components/Item/index.js +2 -1
- package/es/ProStep/style/index.less +71 -70
- package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/es/ProTable/components/RenderColumn/index.js +3 -3
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +2 -2
- package/es/ProTable/utils.js +9 -9
- package/es/ProTabs/style/index.less +3 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +2 -2
- package/es/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/es/ProThemeTools/index.js +21 -28
- package/es/ProThemeTools/propsType.d.ts +1 -1
- package/es/ProThemeTools/style/index.less +25 -8
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
- package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/es/ProTree/index.js +1 -1
- package/es/ProTreeModal/style/index.less +2 -2
- package/es/ProUpload/style/fileItem.less +2 -2
- package/es/ProUpload/style/index.less +2 -2
- package/es/assets/catalog.svg +30 -1
- package/es/assets/fold.svg +27 -0
- package/es/assets/setting.svg +14 -0
- package/es/locale/en_US.d.ts +3 -0
- package/es/locale/en_US.js +3 -0
- package/es/locale/zh_CN.d.ts +3 -0
- package/es/locale/zh_CN.js +3 -0
- package/es/style/components.less +0 -1
- package/es/style/less.less +2 -0
- package/es/style/theme/antd.less +1 -2
- package/es/style/theme/index.less +2 -2
- package/es/style/theme/tokens.less +2 -2
- package/es/tokens.js +2 -2
- package/lib/ProConfigProvider/index.js +2 -1
- package/lib/ProEditLabel/style/index.less +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +27 -19
- package/lib/ProEditTable/index.js +3 -3
- package/lib/ProEditTable/propsType.d.ts +1 -1
- package/lib/ProEditTable/style/index.less +1 -1
- package/lib/ProEditTable/utils/config.js +5 -5
- package/lib/ProEditTable/utils/index.js +67 -30
- package/lib/ProEditTable/utils/tools.js +3 -1
- package/lib/ProEnum/components/Group.d.ts +2 -0
- package/lib/ProEnum/components/Group.js +26 -8
- package/lib/ProEnum/index.js +4 -3
- package/lib/ProEnum/style/index.less +12 -3
- package/lib/ProForm/components/base/DatePicker/index.js +1 -1
- package/lib/ProForm/components/combination/FormList/index.js +6 -3
- package/lib/ProForm/components/combination/FormList/utils.d.ts +2 -1
- package/lib/ProForm/components/combination/FormList/utils.js +5 -3
- package/lib/ProForm/components/combination/Group/index.js +25 -12
- package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
- package/lib/ProForm/components/combination/Group/style/index.less +4 -4
- package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
- package/lib/ProForm/components/combination/Group/utils.js +11 -1
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +7 -1
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
- package/lib/ProForm/components/index.d.ts +0 -1
- package/lib/ProForm/components/index.js +0 -7
- package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
- package/lib/ProForm/components/render/Render.js +21 -13
- package/lib/ProForm/components/render/RenderFields.d.ts +2 -1
- package/lib/ProForm/components/render/RenderFields.js +7 -3
- package/lib/ProForm/components/render/propsType.d.ts +1 -4
- package/lib/ProForm/index.js +7 -5
- package/lib/ProForm/propsType.d.ts +5 -1
- package/lib/ProForm/style/index.less +17 -13
- package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
- package/lib/ProForm/utils/diffOriginal.js +68 -0
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +2 -2
- package/lib/ProForm/utils/transformNames.d.ts +1 -1
- package/lib/ProForm/utils/transformNames.js +10 -3
- package/lib/ProForm/utils/transformValue.js +1 -1
- package/lib/ProForm/utils/useChanged.js +4 -3
- package/lib/ProForm/utils/useListChanged.d.ts +1 -1
- package/lib/ProForm/utils/useListChanged.js +5 -3
- package/lib/ProForm/utils/valueType.d.ts +10 -5
- package/lib/ProForm/utils/valueType.js +20 -10
- package/lib/ProIcon/config/index.d.ts +2 -1
- package/lib/ProIcon/config/index.js +191 -133
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +21 -37
- package/lib/ProIcon/propsTypes.d.ts +2 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -0
- package/lib/ProLayout/components/ProCollapse/index.js +20 -3
- package/lib/ProLayout/components/ProCollapse/style/index.less +29 -11
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +6 -5
- package/lib/ProLayout/style/index.less +176 -88
- package/lib/ProStep/components/Item/index.js +2 -1
- package/lib/ProStep/style/index.less +71 -70
- package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
- package/lib/ProTable/components/RenderColumn/index.js +3 -3
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/style/index.less +2 -2
- package/lib/ProTable/utils.js +9 -9
- package/lib/ProTabs/style/index.less +3 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- package/lib/ProThemeTools/component/PrdTools/style/index.less +1 -1
- package/lib/ProThemeTools/index.js +19 -27
- package/lib/ProThemeTools/propsType.d.ts +1 -1
- package/lib/ProThemeTools/style/index.less +25 -8
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.js +7 -11
- package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.d.ts +1 -1
- package/lib/ProTree/index.js +1 -1
- package/lib/ProTreeModal/style/index.less +2 -2
- package/lib/ProUpload/style/fileItem.less +2 -2
- package/lib/ProUpload/style/index.less +2 -2
- package/lib/assets/catalog.svg +30 -1
- package/lib/assets/fold.svg +27 -0
- package/lib/assets/setting.svg +14 -0
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.js +3 -0
- package/lib/style/components.less +0 -1
- package/lib/style/less.less +2 -0
- package/lib/style/theme/antd.less +1 -2
- package/lib/style/theme/index.less +2 -2
- package/lib/style/theme/tokens.less +2 -2
- package/lib/tokens.js +2 -2
- package/package.json +1 -1
- package/es/ProForm/utils/contrastOriginal.js +0 -24
- package/es/ProIcon/symbolIcon.js +0 -43
- package/lib/ProForm/utils/contrastOriginal.js +0 -30
- package/lib/ProIcon/symbolIcon.js +0 -45
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/es/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/index.d.ts +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/propsType.js +0 -0
- /package/lib/{ProTreeSelect → ProTree/components/ProTreeSelect}/style/index.less +0 -0
|
@@ -6,200 +6,258 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.iconMap = void 0;
|
|
7
7
|
var iconMap = exports.iconMap = [{
|
|
8
8
|
type: 'view',
|
|
9
|
-
text: '查看'
|
|
9
|
+
'text-cn': '查看',
|
|
10
|
+
'text-en': 'view'
|
|
10
11
|
}, {
|
|
11
|
-
type: '',
|
|
12
|
-
text: '编辑'
|
|
12
|
+
type: 'edit',
|
|
13
|
+
'text-cn': '编辑',
|
|
14
|
+
'text-en': 'edit'
|
|
13
15
|
}, {
|
|
14
|
-
type: '',
|
|
15
|
-
text: '查看上传结果'
|
|
16
|
+
type: 'chakanshangchuanjieguo',
|
|
17
|
+
'text-cn': '查看上传结果',
|
|
18
|
+
'text-en': 'view upload results'
|
|
16
19
|
}, {
|
|
17
|
-
type: '',
|
|
18
|
-
text: '操作日志'
|
|
20
|
+
type: 'caozuorizhi',
|
|
21
|
+
'text-cn': '操作日志',
|
|
22
|
+
'text-en': 'operation log'
|
|
19
23
|
}, {
|
|
20
|
-
type: '',
|
|
21
|
-
text: '监管停售'
|
|
24
|
+
type: 'jianguantingshou',
|
|
25
|
+
'text-cn': '监管停售',
|
|
26
|
+
'text-en': 'regulatory suspension'
|
|
22
27
|
}, {
|
|
23
|
-
type: '',
|
|
24
|
-
text: '下架'
|
|
28
|
+
type: 'xiajia',
|
|
29
|
+
'text-cn': '下架',
|
|
30
|
+
'text-en': 'delist'
|
|
25
31
|
}, {
|
|
26
|
-
type: '',
|
|
27
|
-
text: '上架'
|
|
32
|
+
type: 'shangjia',
|
|
33
|
+
'text-cn': '上架',
|
|
34
|
+
'text-en': 'listing'
|
|
28
35
|
}, {
|
|
29
|
-
type: '',
|
|
30
|
-
text: '解锁'
|
|
36
|
+
type: 'jiesuo',
|
|
37
|
+
'text-cn': '解锁',
|
|
38
|
+
'text-en': 'unlock'
|
|
31
39
|
}, {
|
|
32
|
-
type: '',
|
|
33
|
-
text: '审核'
|
|
40
|
+
type: 'shenhe',
|
|
41
|
+
'text-cn': '审核',
|
|
42
|
+
'text-en': 'check'
|
|
34
43
|
}, {
|
|
35
|
-
type: '',
|
|
36
|
-
text: '下载导入文件'
|
|
44
|
+
type: 'xiazaidaoruwenjian',
|
|
45
|
+
'text-cn': '下载导入文件',
|
|
46
|
+
'text-en': 'download import file'
|
|
37
47
|
}, {
|
|
38
|
-
type: '',
|
|
39
|
-
text: '删除'
|
|
48
|
+
type: 'shanchu',
|
|
49
|
+
'text-cn': '删除',
|
|
50
|
+
'text-en': 'delete'
|
|
40
51
|
}, {
|
|
41
|
-
type: '',
|
|
42
|
-
text: '撤回'
|
|
52
|
+
type: 'chehui',
|
|
53
|
+
'text-cn': '撤回',
|
|
54
|
+
'text-en': 'revocation'
|
|
43
55
|
}, {
|
|
44
|
-
type: '',
|
|
45
|
-
text: '再次询价'
|
|
56
|
+
type: 'zaicixunjia',
|
|
57
|
+
'text-cn': '再次询价',
|
|
58
|
+
'text-en': 'reinquiry'
|
|
46
59
|
}, {
|
|
47
|
-
type: '',
|
|
48
|
-
text: '复制'
|
|
60
|
+
type: 'fuzhi',
|
|
61
|
+
'text-cn': '复制',
|
|
62
|
+
'text-en': 'copy'
|
|
49
63
|
}, {
|
|
50
|
-
type: '',
|
|
51
|
-
text: '撤回登记'
|
|
64
|
+
type: 'chehuidengji',
|
|
65
|
+
'text-cn': '撤回登记',
|
|
66
|
+
'text-en': 'withdrawal of registration'
|
|
52
67
|
}, {
|
|
53
|
-
type: '',
|
|
54
|
-
text: '占号补录'
|
|
68
|
+
type: 'zhanhaobulu',
|
|
69
|
+
'text-cn': '占号补录',
|
|
70
|
+
'text-en': 'fill in the number'
|
|
55
71
|
}, {
|
|
56
|
-
type: '',
|
|
57
|
-
text: '处理'
|
|
72
|
+
type: 'chuli',
|
|
73
|
+
'text-cn': '处理',
|
|
74
|
+
'text-en': 'handle'
|
|
58
75
|
}, {
|
|
59
|
-
type: '',
|
|
60
|
-
text: '释放'
|
|
76
|
+
type: 'shifang',
|
|
77
|
+
'text-cn': '释放',
|
|
78
|
+
'text-en': 'release'
|
|
61
79
|
}, {
|
|
62
|
-
type: '',
|
|
63
|
-
text: '关闭'
|
|
80
|
+
type: 'guanbi',
|
|
81
|
+
'text-cn': '关闭',
|
|
82
|
+
'text-en': 'close'
|
|
64
83
|
}, {
|
|
65
|
-
type: '',
|
|
66
|
-
text: '认领'
|
|
84
|
+
type: 'renling',
|
|
85
|
+
'text-cn': '认领',
|
|
86
|
+
'text-en': 'claim'
|
|
67
87
|
}, {
|
|
68
|
-
type: '',
|
|
69
|
-
text: '缴费登记'
|
|
88
|
+
type: 'jiaofeidengji',
|
|
89
|
+
'text-cn': '缴费登记',
|
|
90
|
+
'text-en': 'payment registration'
|
|
70
91
|
}, {
|
|
71
|
-
type: '',
|
|
72
|
-
text: '补传资料'
|
|
92
|
+
type: 'buchuanziliao',
|
|
93
|
+
'text-cn': '补传资料',
|
|
94
|
+
'text-en': 'supplementary data'
|
|
73
95
|
}, {
|
|
74
|
-
type: '',
|
|
75
|
-
text: '资料补传确认'
|
|
96
|
+
type: 'ziliaobuchuanqueren',
|
|
97
|
+
'text-cn': '资料补传确认',
|
|
98
|
+
'text-en': 'data retransmission confirmed'
|
|
76
99
|
}, {
|
|
77
|
-
type: '',
|
|
78
|
-
text: '启用'
|
|
100
|
+
type: 'qiyong',
|
|
101
|
+
'text-cn': '启用',
|
|
102
|
+
'text-en': 'enable'
|
|
79
103
|
}, {
|
|
80
|
-
type: '',
|
|
81
|
-
text: '查勘'
|
|
104
|
+
type: 'chakan',
|
|
105
|
+
'text-cn': '查勘',
|
|
106
|
+
'text-en': 'survey'
|
|
82
107
|
}, {
|
|
83
|
-
type: '',
|
|
84
|
-
text: '会签处理'
|
|
108
|
+
type: 'huiqianchuli',
|
|
109
|
+
'text-cn': '会签处理',
|
|
110
|
+
'text-en': 'countersign processing'
|
|
85
111
|
}, {
|
|
86
|
-
type: '',
|
|
87
|
-
text: '已阅'
|
|
112
|
+
type: 'yiyue',
|
|
113
|
+
'text-cn': '已阅',
|
|
114
|
+
'text-en': 'have read'
|
|
88
115
|
}, {
|
|
89
|
-
type: '',
|
|
90
|
-
text: '下载'
|
|
116
|
+
type: 'xiazai',
|
|
117
|
+
'text-cn': '下载',
|
|
118
|
+
'text-en': 'download'
|
|
91
119
|
}, {
|
|
92
|
-
type: '',
|
|
93
|
-
text: '发送'
|
|
120
|
+
type: 'fasong',
|
|
121
|
+
'text-cn': '发送',
|
|
122
|
+
'text-en': 'send'
|
|
94
123
|
}, {
|
|
95
|
-
type: '',
|
|
96
|
-
text: '导出'
|
|
124
|
+
type: 'daochu',
|
|
125
|
+
'text-cn': '导出',
|
|
126
|
+
'text-en': 'export'
|
|
97
127
|
}, {
|
|
98
|
-
type: '',
|
|
99
|
-
text: '设为失效'
|
|
128
|
+
type: 'sheweishixiao',
|
|
129
|
+
'text-cn': '设为失效',
|
|
130
|
+
'text-en': 'set invalidate'
|
|
100
131
|
}, {
|
|
101
|
-
type: '',
|
|
102
|
-
text: '
|
|
132
|
+
type: 'qingkong',
|
|
133
|
+
'text-cn': '清空',
|
|
134
|
+
'text-en': 'clear'
|
|
103
135
|
}, {
|
|
104
|
-
type: '',
|
|
105
|
-
text: '
|
|
136
|
+
type: 'shixiao',
|
|
137
|
+
'text-cn': '失效',
|
|
138
|
+
'text-en': 'lose effectiveness'
|
|
106
139
|
}, {
|
|
107
|
-
type: '',
|
|
108
|
-
text: '
|
|
140
|
+
type: 'zhongzhi',
|
|
141
|
+
'text-cn': '中止',
|
|
142
|
+
'text-en': 'stop'
|
|
109
143
|
}, {
|
|
110
|
-
type: '',
|
|
111
|
-
text: '
|
|
144
|
+
type: 'wangdian',
|
|
145
|
+
'text-cn': '网点',
|
|
146
|
+
'text-en': 'site'
|
|
112
147
|
}, {
|
|
113
|
-
type: '',
|
|
114
|
-
text: '
|
|
148
|
+
type: 'fuwuwangdian',
|
|
149
|
+
'text-cn': '服务网点',
|
|
150
|
+
'text-en': 'server site'
|
|
115
151
|
}, {
|
|
116
|
-
type: '',
|
|
117
|
-
text: '
|
|
152
|
+
type: 'rukoupeizhi',
|
|
153
|
+
'text-cn': '入口配置',
|
|
154
|
+
'text-en': 'entry config'
|
|
118
155
|
}, {
|
|
119
|
-
type: '',
|
|
120
|
-
text: '
|
|
156
|
+
type: 'yemianpeizhi',
|
|
157
|
+
'text-cn': '页面配置',
|
|
158
|
+
'text-en': 'page config'
|
|
121
159
|
}, {
|
|
122
|
-
type: '',
|
|
123
|
-
text: '
|
|
160
|
+
type: 'bianjifenpei',
|
|
161
|
+
'text-cn': '编辑分配',
|
|
162
|
+
'text-en': 'edit assignment'
|
|
124
163
|
}, {
|
|
125
|
-
type: '',
|
|
126
|
-
text: '
|
|
164
|
+
type: 'chakanxiangqing',
|
|
165
|
+
'text-cn': '查看详情',
|
|
166
|
+
'text-en': 'view detail'
|
|
127
167
|
}, {
|
|
128
|
-
type: '',
|
|
129
|
-
text: '
|
|
168
|
+
type: 'toubaopeizhi',
|
|
169
|
+
'text-cn': '投保配置',
|
|
170
|
+
'text-en': 'insurance config'
|
|
130
171
|
}, {
|
|
131
|
-
type: '',
|
|
132
|
-
text: '
|
|
172
|
+
type: 'tuiguangweipeizhi',
|
|
173
|
+
'text-cn': '推广位配置',
|
|
174
|
+
'text-en': 'promotion bit config'
|
|
133
175
|
}, {
|
|
134
|
-
type: '',
|
|
135
|
-
text: '
|
|
176
|
+
type: 'kaishihezuo',
|
|
177
|
+
'text-cn': '开始合作',
|
|
178
|
+
'text-en': 'start cooperation'
|
|
136
179
|
}, {
|
|
137
|
-
type: '',
|
|
138
|
-
text: '
|
|
180
|
+
type: 'tingzhihezuo',
|
|
181
|
+
'text-cn': '停止合作',
|
|
182
|
+
'text-en': 'stop cooperation'
|
|
139
183
|
}, {
|
|
140
|
-
type: '',
|
|
141
|
-
text: '
|
|
184
|
+
type: 'fuzhilianjie',
|
|
185
|
+
'text-cn': '复制链接',
|
|
186
|
+
'text-en': 'copy link'
|
|
142
187
|
}, {
|
|
143
|
-
type: '',
|
|
144
|
-
text: '
|
|
188
|
+
type: 'jinyong',
|
|
189
|
+
'text-cn': '禁用',
|
|
190
|
+
'text-en': 'disabled'
|
|
145
191
|
}, {
|
|
146
|
-
type: '',
|
|
147
|
-
text: '
|
|
192
|
+
type: 'bianjipeizhi',
|
|
193
|
+
'text-cn': '编辑配置',
|
|
194
|
+
'text-en': 'edit config'
|
|
148
195
|
}, {
|
|
149
|
-
type: '',
|
|
150
|
-
text: '
|
|
196
|
+
type: 'yulan',
|
|
197
|
+
'text-cn': '预览',
|
|
198
|
+
'text-en': 'preview'
|
|
151
199
|
}, {
|
|
152
|
-
type: '',
|
|
153
|
-
text: '
|
|
200
|
+
type: 'daochumoban',
|
|
201
|
+
'text-cn': '导出模板',
|
|
202
|
+
'text-en': 'export template'
|
|
154
203
|
}, {
|
|
155
|
-
type: '',
|
|
156
|
-
text: '
|
|
204
|
+
type: 'xiangqing',
|
|
205
|
+
'text-cn': '详情',
|
|
206
|
+
'text-en': 'detail'
|
|
157
207
|
}, {
|
|
158
|
-
type: '',
|
|
159
|
-
text: '
|
|
208
|
+
type: 'zhongzhiqudao',
|
|
209
|
+
'text-cn': '终止渠道',
|
|
210
|
+
'text-en': 'stop channel'
|
|
160
211
|
}, {
|
|
161
|
-
type: '',
|
|
162
|
-
text: '
|
|
212
|
+
type: 'chakanfapiao',
|
|
213
|
+
'text-cn': '查看发票',
|
|
214
|
+
'text-en': 'view invoice'
|
|
163
215
|
}, {
|
|
164
|
-
type: '',
|
|
165
|
-
text: '
|
|
216
|
+
type: 'qiyerenzheng',
|
|
217
|
+
'text-cn': '企业认证',
|
|
218
|
+
'text-en': 'enterprise certification'
|
|
166
219
|
}, {
|
|
167
|
-
type: '',
|
|
168
|
-
text: '
|
|
220
|
+
type: 'apishouquan',
|
|
221
|
+
'text-cn': 'API授权',
|
|
222
|
+
'text-en': 'api accredit'
|
|
169
223
|
}, {
|
|
170
|
-
type: '',
|
|
171
|
-
text: '
|
|
224
|
+
type: 'chanpinshouquan',
|
|
225
|
+
'text-cn': '产品授权',
|
|
226
|
+
'text-en': 'product accredit'
|
|
172
227
|
}, {
|
|
173
|
-
type: '',
|
|
174
|
-
text: '
|
|
228
|
+
type: 'chongzhimima',
|
|
229
|
+
'text-cn': '重置密码',
|
|
230
|
+
'text-en': 'reset password'
|
|
175
231
|
}, {
|
|
176
|
-
type: '',
|
|
177
|
-
text: '
|
|
232
|
+
type: 'tingyong',
|
|
233
|
+
'text-cn': '停用',
|
|
234
|
+
'text-en': 'disuse'
|
|
178
235
|
}, {
|
|
179
|
-
type: '',
|
|
180
|
-
text: '
|
|
236
|
+
type: 'apiquanxian',
|
|
237
|
+
'text-cn': 'API权限',
|
|
238
|
+
'text-en': 'api authorization'
|
|
181
239
|
}, {
|
|
182
|
-
type: '',
|
|
183
|
-
text: '
|
|
240
|
+
type: 'ipbaimingdan',
|
|
241
|
+
'text-cn': 'IP白名单',
|
|
242
|
+
'text-en': 'ip whitelist'
|
|
184
243
|
}, {
|
|
185
|
-
type: '',
|
|
186
|
-
text: '
|
|
244
|
+
type: 'yulanmoban',
|
|
245
|
+
'text-cn': '预览模板',
|
|
246
|
+
'text-en': 'preview template'
|
|
187
247
|
}, {
|
|
188
|
-
type: '',
|
|
189
|
-
text: '
|
|
248
|
+
type: 'queren',
|
|
249
|
+
'text-cn': '确认',
|
|
250
|
+
'text-en': 'confirm'
|
|
190
251
|
}, {
|
|
191
|
-
type: '',
|
|
192
|
-
text: '
|
|
252
|
+
type: 'xiugai',
|
|
253
|
+
'text-cn': '修改',
|
|
254
|
+
'text-en': 'edit'
|
|
193
255
|
}, {
|
|
194
|
-
type: '',
|
|
195
|
-
text: '
|
|
256
|
+
type: 'chakanlishipeizhi',
|
|
257
|
+
'text-cn': '查看历史配置',
|
|
258
|
+
'text-en': 'view history conifg'
|
|
196
259
|
}, {
|
|
197
|
-
type: '',
|
|
198
|
-
text: '
|
|
199
|
-
|
|
200
|
-
type: '',
|
|
201
|
-
text: '查看历史配置'
|
|
202
|
-
}, {
|
|
203
|
-
type: '',
|
|
204
|
-
text: '调整序号'
|
|
260
|
+
type: 'tiaozhengxuhao',
|
|
261
|
+
'text-cn': '调整序号',
|
|
262
|
+
'text-en': 'adjust order'
|
|
205
263
|
}];
|
package/lib/ProIcon/index.d.ts
CHANGED
package/lib/ProIcon/index.js
CHANGED
|
@@ -4,45 +4,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.createScriptUrlElements = createScriptUrlElements;
|
|
8
7
|
exports.default = void 0;
|
|
9
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
9
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _ahooks = require("ahooks");
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _lodash = require("lodash");
|
|
15
|
-
var _config2 = require("./config");
|
|
16
|
-
var _symbolIcon = _interopRequireDefault(require("./symbolIcon"));
|
|
17
15
|
var _ProConfigProvider = require("../ProConfigProvider");
|
|
16
|
+
var _config2 = require("./config");
|
|
17
|
+
var _locale = _interopRequireDefault(require("../locale"));
|
|
18
18
|
var _excluded = ["type", "onClick", "size", "color", "className", "style", "spin", "rotate", "theme", "disabled", "mode", "buttonProps", "children", "mapList"];
|
|
19
|
-
var customCache = new Set();
|
|
20
|
-
function isValidCustomScriptUrl(scriptUrl) {
|
|
21
|
-
return Boolean(typeof scriptUrl === 'string' && scriptUrl.length && !customCache.has(scriptUrl));
|
|
22
|
-
}
|
|
23
|
-
function createScriptUrlElements(scriptUrls) {
|
|
24
|
-
var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
25
|
-
var currentScriptUrl = scriptUrls[index];
|
|
26
|
-
if (isValidCustomScriptUrl(currentScriptUrl)) {
|
|
27
|
-
var script = document.createElement('script');
|
|
28
|
-
script.setAttribute('src', currentScriptUrl);
|
|
29
|
-
script.setAttribute('data-namespace', currentScriptUrl);
|
|
30
|
-
if (scriptUrls.length > index + 1) {
|
|
31
|
-
script.onload = function () {
|
|
32
|
-
createScriptUrlElements(scriptUrls, index + 1);
|
|
33
|
-
};
|
|
34
|
-
script.onerror = function () {
|
|
35
|
-
createScriptUrlElements(scriptUrls, index + 1);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
customCache.add(currentScriptUrl);
|
|
39
|
-
document.body.appendChild(script);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// 加载内部icon
|
|
43
|
-
if (_symbolIcon.default && typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function') {
|
|
44
|
-
createScriptUrlElements([_symbolIcon.default]);
|
|
45
|
-
}
|
|
46
19
|
var ProIcon = function ProIcon(props) {
|
|
47
20
|
var config = (0, _ProConfigProvider.useProConfig)('ProIcon') || {};
|
|
48
21
|
var _config = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), props !== null && props !== void 0 ? props : {});
|
|
@@ -69,6 +42,13 @@ var ProIcon = function ProIcon(props) {
|
|
|
69
42
|
_config$mapList = _config.mapList,
|
|
70
43
|
mapList = _config$mapList === void 0 ? [] : _config$mapList,
|
|
71
44
|
reset = (0, _objectWithoutProperties2.default)(_config, _excluded);
|
|
45
|
+
// 语言
|
|
46
|
+
var language = _locale.default.ProIcon.language;
|
|
47
|
+
// 加载内部icon
|
|
48
|
+
var status = (0, _ahooks.useExternal)('https://at.alicdn.com/t/c/font_4063056_jmnz9g5uycp.js');
|
|
49
|
+
if (status !== 'ready') {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
72
52
|
var rotateStyle = rotate ? {
|
|
73
53
|
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
74
54
|
transform: "rotate(".concat(rotate, "deg)")
|
|
@@ -80,32 +60,36 @@ var ProIcon = function ProIcon(props) {
|
|
|
80
60
|
'pro-icon-btn': disabled
|
|
81
61
|
});
|
|
82
62
|
var _mode = mode || 'icon';
|
|
63
|
+
// 特殊情况,如果指定了type,并且没有接收到组件内的mode,那模式就是icon
|
|
64
|
+
if (type && !props.mode) {
|
|
65
|
+
_mode = 'icon';
|
|
66
|
+
}
|
|
67
|
+
var targetTextFill = "text-".concat(language); // text-cn text-en
|
|
83
68
|
var isIconMode = _mode === 'icon';
|
|
84
69
|
var isExtendButtonMode = !isIconMode || isIconMode && disabled;
|
|
85
|
-
var mergedMapList = (0, _lodash.uniqBy)(mapList.concat(_config2.iconMap),
|
|
70
|
+
var mergedMapList = (0, _lodash.uniqBy)(mapList.concat(_config2.iconMap), targetTextFill);
|
|
86
71
|
var _type = type;
|
|
87
72
|
var _text = children;
|
|
88
|
-
var textIsExistAndIncludeChinese = _text && /[\u4e00-\u9fa5]/.test(String(_text));
|
|
89
73
|
var typeIsExistAndIncludeEnglish = _type && /[a-zA-Z]/.test(_type);
|
|
90
|
-
// 模式为icon下,对传入的text
|
|
74
|
+
// 模式为icon下,对传入的text进行指定语言-icon 映射
|
|
91
75
|
if (isIconMode && !type) {
|
|
92
|
-
if (
|
|
76
|
+
if (_text) {
|
|
93
77
|
var target = mergedMapList.find(function (item) {
|
|
94
|
-
return item
|
|
78
|
+
return item['text-cn'] === _text || item['text-en'] === _text;
|
|
95
79
|
});
|
|
96
80
|
if (target) {
|
|
97
81
|
_type = target === null || target === void 0 ? void 0 : target.type;
|
|
98
82
|
}
|
|
99
83
|
}
|
|
100
84
|
}
|
|
101
|
-
// 模式为button下,对传入的type进行icon
|
|
85
|
+
// 模式为button下,对传入的type进行icon-指定语言 映射
|
|
102
86
|
if (!isIconMode) {
|
|
103
87
|
if (typeIsExistAndIncludeEnglish) {
|
|
104
88
|
var _target = mergedMapList.find(function (item) {
|
|
105
89
|
return item.type === _type;
|
|
106
90
|
});
|
|
107
91
|
if (_target) {
|
|
108
|
-
_text = _target
|
|
92
|
+
_text = _target[targetTextFill];
|
|
109
93
|
}
|
|
110
94
|
}
|
|
111
95
|
}
|