@para-ui/core 4.0.2 → 4.0.4
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/CycleSelector/index.d.ts +35 -0
- package/CycleSelector/index.js +716 -0
- package/CycleSelector/lang/en_US.d.ts +80 -0
- package/CycleSelector/lang/index.d.ts +161 -0
- package/CycleSelector/lang/zh_CN.d.ts +80 -0
- package/DynamicMultiBox/index.js +17 -1
- package/GlobalContext/componentsProps.d.ts +2 -0
- package/InputLang/index.d.ts +7 -3
- package/InputLang/index.js +33 -8
- package/README.md +9 -0
- package/index.d.ts +2 -0
- package/index.js +3 -2
- package/locale/en-US.d.ts +79 -0
- package/locale/index.d.ts +158 -0
- package/locale/index.js +158 -0
- package/locale/zh-CN.d.ts +79 -0
- package/package.json +1 -1
- package/umd/CycleSelector.js +43 -0
- package/umd/DynamicMultiBox.js +3 -3
- package/umd/InputLang.js +1 -1
- package/umd/locale.js +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
pleaseSelect: string;
|
|
4
|
+
week1: string;
|
|
5
|
+
week2: string;
|
|
6
|
+
week3: string;
|
|
7
|
+
week4: string;
|
|
8
|
+
week5: string;
|
|
9
|
+
week6: string;
|
|
10
|
+
week0: string;
|
|
11
|
+
every: string;
|
|
12
|
+
day: string;
|
|
13
|
+
week: string;
|
|
14
|
+
month: string;
|
|
15
|
+
year: string;
|
|
16
|
+
one: string;
|
|
17
|
+
two: string;
|
|
18
|
+
three: string;
|
|
19
|
+
four: string;
|
|
20
|
+
five: string;
|
|
21
|
+
six: string;
|
|
22
|
+
seven: string;
|
|
23
|
+
day1: string;
|
|
24
|
+
day2: string;
|
|
25
|
+
day3: string;
|
|
26
|
+
day4: string;
|
|
27
|
+
day5: string;
|
|
28
|
+
day6: string;
|
|
29
|
+
day7: string;
|
|
30
|
+
day8: string;
|
|
31
|
+
day9: string;
|
|
32
|
+
day10: string;
|
|
33
|
+
day11: string;
|
|
34
|
+
day12: string;
|
|
35
|
+
day13: string;
|
|
36
|
+
day14: string;
|
|
37
|
+
day15: string;
|
|
38
|
+
day16: string;
|
|
39
|
+
day17: string;
|
|
40
|
+
day18: string;
|
|
41
|
+
day19: string;
|
|
42
|
+
day20: string;
|
|
43
|
+
day21: string;
|
|
44
|
+
day22: string;
|
|
45
|
+
day23: string;
|
|
46
|
+
day24: string;
|
|
47
|
+
day25: string;
|
|
48
|
+
day26: string;
|
|
49
|
+
day27: string;
|
|
50
|
+
day28: string;
|
|
51
|
+
day29: string;
|
|
52
|
+
day30: string;
|
|
53
|
+
day31: string;
|
|
54
|
+
the1: string;
|
|
55
|
+
the2: string;
|
|
56
|
+
the3: string;
|
|
57
|
+
the4: string;
|
|
58
|
+
the5: string;
|
|
59
|
+
infiniteRepetition: string;
|
|
60
|
+
deadline: string;
|
|
61
|
+
limitNum: string;
|
|
62
|
+
noRepetition: string;
|
|
63
|
+
repeatEveryDay: string;
|
|
64
|
+
repeatEveryWeek: string;
|
|
65
|
+
repeatEveryMonth: string;
|
|
66
|
+
repeatEveryYear: string;
|
|
67
|
+
customRepetition: string;
|
|
68
|
+
th: string;
|
|
69
|
+
repetitionFrequency: string;
|
|
70
|
+
update: string;
|
|
71
|
+
text1: string;
|
|
72
|
+
text2: string;
|
|
73
|
+
text3: string;
|
|
74
|
+
weekTip: string;
|
|
75
|
+
endRepetition: string;
|
|
76
|
+
customCycle: string;
|
|
77
|
+
cancel: string;
|
|
78
|
+
confirm: string;
|
|
79
|
+
};
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
zh: {
|
|
3
|
+
placeholder: string;
|
|
4
|
+
pleaseSelect: string;
|
|
5
|
+
week1: string;
|
|
6
|
+
week2: string;
|
|
7
|
+
week3: string;
|
|
8
|
+
week4: string;
|
|
9
|
+
week5: string;
|
|
10
|
+
week6: string;
|
|
11
|
+
week0: string;
|
|
12
|
+
every: string;
|
|
13
|
+
day: string;
|
|
14
|
+
week: string;
|
|
15
|
+
month: string;
|
|
16
|
+
year: string;
|
|
17
|
+
one: string;
|
|
18
|
+
two: string;
|
|
19
|
+
three: string;
|
|
20
|
+
four: string;
|
|
21
|
+
five: string;
|
|
22
|
+
six: string;
|
|
23
|
+
seven: string;
|
|
24
|
+
day1: string;
|
|
25
|
+
day2: string;
|
|
26
|
+
day3: string;
|
|
27
|
+
day4: string;
|
|
28
|
+
day5: string;
|
|
29
|
+
day6: string;
|
|
30
|
+
day7: string;
|
|
31
|
+
day8: string;
|
|
32
|
+
day9: string;
|
|
33
|
+
day10: string;
|
|
34
|
+
day11: string;
|
|
35
|
+
day12: string;
|
|
36
|
+
day13: string;
|
|
37
|
+
day14: string;
|
|
38
|
+
day15: string;
|
|
39
|
+
day16: string;
|
|
40
|
+
day17: string;
|
|
41
|
+
day18: string;
|
|
42
|
+
day19: string;
|
|
43
|
+
day20: string;
|
|
44
|
+
day21: string;
|
|
45
|
+
day22: string;
|
|
46
|
+
day23: string;
|
|
47
|
+
day24: string;
|
|
48
|
+
day25: string;
|
|
49
|
+
day26: string;
|
|
50
|
+
day27: string;
|
|
51
|
+
day28: string;
|
|
52
|
+
day29: string;
|
|
53
|
+
day30: string;
|
|
54
|
+
day31: string;
|
|
55
|
+
the1: string;
|
|
56
|
+
the2: string;
|
|
57
|
+
the3: string;
|
|
58
|
+
the4: string;
|
|
59
|
+
the5: string;
|
|
60
|
+
infiniteRepetition: string;
|
|
61
|
+
deadline: string;
|
|
62
|
+
limitNum: string;
|
|
63
|
+
noRepetition: string;
|
|
64
|
+
repeatEveryDay: string;
|
|
65
|
+
repeatEveryWeek: string;
|
|
66
|
+
repeatEveryMonth: string;
|
|
67
|
+
repeatEveryYear: string;
|
|
68
|
+
customRepetition: string;
|
|
69
|
+
th: string;
|
|
70
|
+
repetitionFrequency: string;
|
|
71
|
+
update: string;
|
|
72
|
+
text1: string;
|
|
73
|
+
text2: string;
|
|
74
|
+
text3: string;
|
|
75
|
+
weekTip: string;
|
|
76
|
+
endRepetition: string;
|
|
77
|
+
customCycle: string;
|
|
78
|
+
cancel: string;
|
|
79
|
+
confirm: string;
|
|
80
|
+
};
|
|
81
|
+
en: {
|
|
82
|
+
placeholder: string;
|
|
83
|
+
pleaseSelect: string;
|
|
84
|
+
week1: string;
|
|
85
|
+
week2: string;
|
|
86
|
+
week3: string;
|
|
87
|
+
week4: string;
|
|
88
|
+
week5: string;
|
|
89
|
+
week6: string;
|
|
90
|
+
week0: string;
|
|
91
|
+
every: string;
|
|
92
|
+
day: string;
|
|
93
|
+
week: string;
|
|
94
|
+
month: string;
|
|
95
|
+
year: string;
|
|
96
|
+
one: string;
|
|
97
|
+
two: string;
|
|
98
|
+
three: string;
|
|
99
|
+
four: string;
|
|
100
|
+
five: string;
|
|
101
|
+
six: string;
|
|
102
|
+
seven: string;
|
|
103
|
+
day1: string;
|
|
104
|
+
day2: string;
|
|
105
|
+
day3: string;
|
|
106
|
+
day4: string;
|
|
107
|
+
day5: string;
|
|
108
|
+
day6: string;
|
|
109
|
+
day7: string;
|
|
110
|
+
day8: string;
|
|
111
|
+
day9: string;
|
|
112
|
+
day10: string;
|
|
113
|
+
day11: string;
|
|
114
|
+
day12: string;
|
|
115
|
+
day13: string;
|
|
116
|
+
day14: string;
|
|
117
|
+
day15: string;
|
|
118
|
+
day16: string;
|
|
119
|
+
day17: string;
|
|
120
|
+
day18: string;
|
|
121
|
+
day19: string;
|
|
122
|
+
day20: string;
|
|
123
|
+
day21: string;
|
|
124
|
+
day22: string;
|
|
125
|
+
day23: string;
|
|
126
|
+
day24: string;
|
|
127
|
+
day25: string;
|
|
128
|
+
day26: string;
|
|
129
|
+
day27: string;
|
|
130
|
+
day28: string;
|
|
131
|
+
day29: string;
|
|
132
|
+
day30: string;
|
|
133
|
+
day31: string;
|
|
134
|
+
the1: string;
|
|
135
|
+
the2: string;
|
|
136
|
+
the3: string;
|
|
137
|
+
the4: string;
|
|
138
|
+
the5: string;
|
|
139
|
+
infiniteRepetition: string;
|
|
140
|
+
deadline: string;
|
|
141
|
+
limitNum: string;
|
|
142
|
+
noRepetition: string;
|
|
143
|
+
repeatEveryDay: string;
|
|
144
|
+
repeatEveryWeek: string;
|
|
145
|
+
repeatEveryMonth: string;
|
|
146
|
+
repeatEveryYear: string;
|
|
147
|
+
customRepetition: string;
|
|
148
|
+
th: string;
|
|
149
|
+
repetitionFrequency: string;
|
|
150
|
+
update: string;
|
|
151
|
+
text1: string;
|
|
152
|
+
text2: string;
|
|
153
|
+
text3: string;
|
|
154
|
+
weekTip: string;
|
|
155
|
+
endRepetition: string;
|
|
156
|
+
customCycle: string;
|
|
157
|
+
cancel: string;
|
|
158
|
+
confirm: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
export default _default;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
placeholder: string;
|
|
3
|
+
pleaseSelect: string;
|
|
4
|
+
week1: string;
|
|
5
|
+
week2: string;
|
|
6
|
+
week3: string;
|
|
7
|
+
week4: string;
|
|
8
|
+
week5: string;
|
|
9
|
+
week6: string;
|
|
10
|
+
week0: string;
|
|
11
|
+
every: string;
|
|
12
|
+
day: string;
|
|
13
|
+
week: string;
|
|
14
|
+
month: string;
|
|
15
|
+
year: string;
|
|
16
|
+
one: string;
|
|
17
|
+
two: string;
|
|
18
|
+
three: string;
|
|
19
|
+
four: string;
|
|
20
|
+
five: string;
|
|
21
|
+
six: string;
|
|
22
|
+
seven: string;
|
|
23
|
+
day1: string;
|
|
24
|
+
day2: string;
|
|
25
|
+
day3: string;
|
|
26
|
+
day4: string;
|
|
27
|
+
day5: string;
|
|
28
|
+
day6: string;
|
|
29
|
+
day7: string;
|
|
30
|
+
day8: string;
|
|
31
|
+
day9: string;
|
|
32
|
+
day10: string;
|
|
33
|
+
day11: string;
|
|
34
|
+
day12: string;
|
|
35
|
+
day13: string;
|
|
36
|
+
day14: string;
|
|
37
|
+
day15: string;
|
|
38
|
+
day16: string;
|
|
39
|
+
day17: string;
|
|
40
|
+
day18: string;
|
|
41
|
+
day19: string;
|
|
42
|
+
day20: string;
|
|
43
|
+
day21: string;
|
|
44
|
+
day22: string;
|
|
45
|
+
day23: string;
|
|
46
|
+
day24: string;
|
|
47
|
+
day25: string;
|
|
48
|
+
day26: string;
|
|
49
|
+
day27: string;
|
|
50
|
+
day28: string;
|
|
51
|
+
day29: string;
|
|
52
|
+
day30: string;
|
|
53
|
+
day31: string;
|
|
54
|
+
the1: string;
|
|
55
|
+
the2: string;
|
|
56
|
+
the3: string;
|
|
57
|
+
the4: string;
|
|
58
|
+
the5: string;
|
|
59
|
+
infiniteRepetition: string;
|
|
60
|
+
deadline: string;
|
|
61
|
+
limitNum: string;
|
|
62
|
+
noRepetition: string;
|
|
63
|
+
repeatEveryDay: string;
|
|
64
|
+
repeatEveryWeek: string;
|
|
65
|
+
repeatEveryMonth: string;
|
|
66
|
+
repeatEveryYear: string;
|
|
67
|
+
customRepetition: string;
|
|
68
|
+
th: string;
|
|
69
|
+
repetitionFrequency: string;
|
|
70
|
+
update: string;
|
|
71
|
+
text1: string;
|
|
72
|
+
text2: string;
|
|
73
|
+
text3: string;
|
|
74
|
+
weekTip: string;
|
|
75
|
+
endRepetition: string;
|
|
76
|
+
customCycle: string;
|
|
77
|
+
cancel: string;
|
|
78
|
+
confirm: string;
|
|
79
|
+
};
|
|
80
|
+
export default _default;
|
package/DynamicMultiBox/index.js
CHANGED
|
@@ -161,14 +161,30 @@ var FormItem = function FormItem(props) {
|
|
|
161
161
|
* @param {*} ReactNode
|
|
162
162
|
*/
|
|
163
163
|
var getTextField = function getTextField() {
|
|
164
|
+
var selectList = typeof list === 'function' ? list && list(rowIndex, id, name, valueList) : list || [];
|
|
165
|
+
var mergedProps = Object.assign({}, otherPropsCom);
|
|
166
|
+
if (selectList.length > 0 && mergedProps.fetchSuggestions === undefined) {
|
|
167
|
+
mergedProps.fetchSuggestions = function (value, cb) {
|
|
168
|
+
if (selectList.length > 0) {
|
|
169
|
+
cb(selectList.filter(function (item) {
|
|
170
|
+
var label = (item === null || item === void 0 ? void 0 : item.label) || (item === null || item === void 0 ? void 0 : item.value) || item;
|
|
171
|
+
if (typeof label === 'string') return label.toLowerCase().indexOf(value.toLowerCase()) > -1;
|
|
172
|
+
return false;
|
|
173
|
+
}));
|
|
174
|
+
} else cb([]);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
164
177
|
return jsx(TextField, Object.assign({}, rest, {
|
|
165
178
|
required: false,
|
|
166
179
|
label: "",
|
|
167
180
|
disabled: disabled,
|
|
168
181
|
onChange: function onChange(e) {
|
|
169
182
|
return inputChange(e.target.value);
|
|
183
|
+
},
|
|
184
|
+
onSelect: function onSelect(value) {
|
|
185
|
+
inputChange((value === null || value === void 0 ? void 0 : value.value) || value);
|
|
170
186
|
}
|
|
171
|
-
},
|
|
187
|
+
}, mergedProps));
|
|
172
188
|
};
|
|
173
189
|
/**
|
|
174
190
|
* @description: 返回下拉框组件
|
|
@@ -10,6 +10,7 @@ import { EmptyProps } from '../Empty';
|
|
|
10
10
|
import { QueryingProps } from '../Querying';
|
|
11
11
|
import { SelectorProps } from '../Selector/interface';
|
|
12
12
|
import { ComboSelectProps } from '../ComboSelect/interface';
|
|
13
|
+
import { InputLangProps } from '../InputLang';
|
|
13
14
|
interface ComponentsProps {
|
|
14
15
|
Select?: Partial<SelectProps>;
|
|
15
16
|
TextField?: Partial<TextFieldProps>;
|
|
@@ -18,6 +19,7 @@ interface ComponentsProps {
|
|
|
18
19
|
Querying?: Partial<QueryingProps>;
|
|
19
20
|
Selector?: Partial<SelectorProps>;
|
|
20
21
|
ComboSelect?: Partial<ComboSelectProps>;
|
|
22
|
+
InputLang?: Partial<InputLangProps>;
|
|
21
23
|
[name: string]: any;
|
|
22
24
|
}
|
|
23
25
|
export default ComponentsProps;
|
package/InputLang/index.d.ts
CHANGED
|
@@ -39,11 +39,11 @@ export interface InputLangProps extends HelperTextDetailProps {
|
|
|
39
39
|
/** 弹出框样式class */
|
|
40
40
|
popoverClassName?: string;
|
|
41
41
|
/** 默认值 不受控 */
|
|
42
|
-
defaultValue?: valueProps;
|
|
42
|
+
defaultValue?: string | valueProps;
|
|
43
43
|
/** 值 */
|
|
44
|
-
value?: valueProps;
|
|
44
|
+
value?: string | valueProps;
|
|
45
45
|
/** 改变值 */
|
|
46
|
-
onChange?: (val: valueProps) => void;
|
|
46
|
+
onChange?: (val: string | valueProps) => void;
|
|
47
47
|
/** 语言列表 */
|
|
48
48
|
langList?: (string | {
|
|
49
49
|
label: string;
|
|
@@ -57,6 +57,10 @@ export interface InputLangProps extends HelperTextDetailProps {
|
|
|
57
57
|
disabledDelete?: boolean;
|
|
58
58
|
/** 禁用key */
|
|
59
59
|
disabledKey?: boolean | string[];
|
|
60
|
+
/** 输出类型 */
|
|
61
|
+
typeOutput?: 'string' | 'object';
|
|
62
|
+
/** i18n标识 */
|
|
63
|
+
i18n?: boolean;
|
|
60
64
|
}
|
|
61
65
|
export declare const InputLang: FunctionComponent<InputLangProps>;
|
|
62
66
|
export default InputLang;
|
package/InputLang/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import Internet from '@para-ui/icons/Internet';
|
|
|
9
9
|
import { GetLanguage, ArrayToObject } from '@paraview/lib';
|
|
10
10
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
11
11
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
12
|
+
import { u as useGlobalProps } from '../_verture/useGlobalProps-1e416658.js';
|
|
12
13
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
13
14
|
import '../Label/index.js';
|
|
14
15
|
import '../Help/index.js';
|
|
@@ -23,8 +24,6 @@ import '@para-ui/icons/PreviewOpen';
|
|
|
23
24
|
import '@para-ui/icons/CloseCircleF';
|
|
24
25
|
import '../Loading/index.js';
|
|
25
26
|
import '@para-ui/icons/LoadingF';
|
|
26
|
-
import '../_verture/useGlobalProps-1e416658.js';
|
|
27
|
-
import '@para-ui/core/GlobalContext';
|
|
28
27
|
import '../_verture/index-389675ab.js';
|
|
29
28
|
import 'rc-dropdown';
|
|
30
29
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
@@ -32,6 +31,7 @@ import 'dayjs';
|
|
|
32
31
|
import '@para-ui/icons/Delete';
|
|
33
32
|
import '@para-ui/icons/PlusCircleF';
|
|
34
33
|
import '../_verture/useFormatMessage-eb13cf56.js';
|
|
34
|
+
import '@para-ui/core/GlobalContext';
|
|
35
35
|
|
|
36
36
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-input-lang {\n display: inline-block;\n width: 100%;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v4-input-lang .input-lang-text-field > .text-field-content > .text-field-content-before .lang-key {\n max-width: 100px;\n}\n.paraui-v4-input-lang .input-lang-text-field > .text-field-content > .text-field-content-within > .right-icon .lang-list-icon {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.paraui-v4-input-lang .input-lang-text-field > .text-field-content > .text-field-content-within > .right-icon .lang-list-icon:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-input-lang .input-lang-text-field > .paraui-v4-helper-text {\n display: none;\n}\n\n.paraui-v4-input-lang-popover > .component-popover-content > .component-popover-inner {\n padding: 20px;\n line-height: 0;\n}\n.paraui-v4-input-lang-popover > .component-popover-content > .component-popover-inner .input-lang-multi-box {\n padding-bottom: 0;\n}\n.paraui-v4-input-lang-popover > .component-popover-content > .component-popover-inner .input-lang-multi-box .multi-box-content .multi-box-content-item .multi-box-content-item-input .multi-box-text-field:first-child {\n flex: 1;\n}\n.paraui-v4-input-lang-popover > .component-popover-content > .component-popover-inner .input-lang-multi-box .multi-box-content .multi-box-content-item .multi-box-content-item-input .multi-box-text-field:last-child {\n flex: 3;\n}\n.paraui-v4-input-lang-popover.paraui-v4-input-lang-popover-disabled-add > .component-popover-content > .component-popover-inner .input-lang-multi-box .multi-box-add {\n display: none;\n}\n.paraui-v4-input-lang-popover.paraui-v4-input-lang-popover-disabled-delete > .component-popover-content > .component-popover-inner .input-lang-multi-box .multi-box-content > .multi-box-content-item .opera-box {\n display: none;\n}";
|
|
37
37
|
styleInject(css_248z);
|
|
@@ -60,8 +60,10 @@ const InputLang = props => {
|
|
|
60
60
|
defaultLang,
|
|
61
61
|
disabledDelete,
|
|
62
62
|
disabledAdd,
|
|
63
|
-
disabledKey
|
|
64
|
-
|
|
63
|
+
disabledKey,
|
|
64
|
+
typeOutput = 'object',
|
|
65
|
+
i18n
|
|
66
|
+
} = useGlobalProps(props, 'InputLang');
|
|
65
67
|
const [open, setOpen] = useState(false); // 打开弹窗
|
|
66
68
|
const [lang, setLang] = useState(GetLanguage() || 'zh'); // 当前语言
|
|
67
69
|
const [langMapping, setLangMapping] = useState({});
|
|
@@ -76,6 +78,8 @@ const InputLang = props => {
|
|
|
76
78
|
const refDom = useRef(null);
|
|
77
79
|
constData.current.lang = lang;
|
|
78
80
|
constData.current.disabledDelete = disabledDelete;
|
|
81
|
+
constData.current.typeOutput = typeOutput;
|
|
82
|
+
constData.current.i18n = typeOutput === "string" && i18n === undefined ? true : i18n;
|
|
79
83
|
useEffect(() => {
|
|
80
84
|
if (props.defaultValue !== undefined) {
|
|
81
85
|
handValue(props.defaultValue);
|
|
@@ -123,7 +127,19 @@ const InputLang = props => {
|
|
|
123
127
|
* 处理值
|
|
124
128
|
*/
|
|
125
129
|
const handValue = val => {
|
|
126
|
-
|
|
130
|
+
let jsonVal;
|
|
131
|
+
if (val) {
|
|
132
|
+
try {
|
|
133
|
+
if (typeof val === "string") jsonVal = JSON.parse(val);else jsonVal = val || {};
|
|
134
|
+
} catch (e) {
|
|
135
|
+
jsonVal = {};
|
|
136
|
+
}
|
|
137
|
+
if (constData.current.i18n === true) {
|
|
138
|
+
constData.current._i18n = jsonVal._i18n || 1;
|
|
139
|
+
delete jsonVal._i18n;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
const valueCopy = Object.assign({}, jsonVal || constData.current.valueCom);
|
|
127
143
|
const arr = [];
|
|
128
144
|
const json = {};
|
|
129
145
|
if (constData.current.disabledDelete) {
|
|
@@ -163,11 +179,20 @@ const InputLang = props => {
|
|
|
163
179
|
* 向外抛值
|
|
164
180
|
* */
|
|
165
181
|
const outValue = val => {
|
|
182
|
+
let valHand = Object.assign({}, val);
|
|
166
183
|
if (props.value === undefined) {
|
|
167
|
-
constData.current.valueCom = Object.assign({},
|
|
168
|
-
setValueCom(
|
|
184
|
+
constData.current.valueCom = Object.assign({}, valHand);
|
|
185
|
+
setValueCom(valHand);
|
|
186
|
+
}
|
|
187
|
+
if (constData.current.typeOutput === 'string') {
|
|
188
|
+
try {
|
|
189
|
+
if (constData.current.i18n === true) {
|
|
190
|
+
valHand._i18n = constData.current._i18n || 1;
|
|
191
|
+
}
|
|
192
|
+
valHand = JSON.stringify(valHand);
|
|
193
|
+
} catch (e) {}
|
|
169
194
|
}
|
|
170
|
-
onChange && onChange(
|
|
195
|
+
onChange && onChange(valHand);
|
|
171
196
|
};
|
|
172
197
|
/**
|
|
173
198
|
* 改变当前语言
|
package/README.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 版本: 4.0.4
|
|
2
|
+
para-ui/core@4.0.4 发布
|
|
3
|
+
【国际化输入框-InputLang】支持输出输入为string | object, 是否带有i18n标识
|
|
4
|
+
【DynamicMultibox】动态多值框中输入框支持联想下拉列表
|
|
5
|
+
|
|
6
|
+
## 版本: 4.0.3
|
|
7
|
+
para-ui/core@4.0.3 发布
|
|
8
|
+
【周期选择器-CycleSelector】新增周期选择器-CycleSelector
|
|
9
|
+
|
|
1
10
|
## 版本: 4.0.2
|
|
2
11
|
para-ui/core@4.0.2 发布
|
|
3
12
|
【表格-Table】修复表格name不传,出现浮层边框
|
package/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export { default as Container } from './Container';
|
|
|
32
32
|
export * from './Container';
|
|
33
33
|
export { default as CopyText } from './CopyText';
|
|
34
34
|
export * from './CopyText';
|
|
35
|
+
export { default as CycleSelector } from './CycleSelector';
|
|
36
|
+
export * from './CycleSelector';
|
|
35
37
|
export { default as DatePicker } from './DatePicker';
|
|
36
38
|
export * from './DatePicker';
|
|
37
39
|
export { default as Descriptions } from './Descriptions';
|
package/index.js
CHANGED
|
@@ -15,6 +15,7 @@ export { C as ChromePicker, S as ColorPicker, a as CompactPicker, b as SwatchesP
|
|
|
15
15
|
export { ComboSelect } from './ComboSelect/index.js';
|
|
16
16
|
export { Container } from './Container/index.js';
|
|
17
17
|
export { default as CopyText } from './CopyText/index.js';
|
|
18
|
+
export { default as CycleSelector } from './CycleSelector/index.js';
|
|
18
19
|
export { default as DatePicker } from './DatePicker/index.js';
|
|
19
20
|
export { default as Descriptions } from './Descriptions/index.js';
|
|
20
21
|
export { Desktop } from './Desktop/index.js';
|
|
@@ -115,6 +116,8 @@ import './_verture/utils-c17b5265.js';
|
|
|
115
116
|
import './_verture/useGlobalProps-1e416658.js';
|
|
116
117
|
import '@para-ui/icons/Copy';
|
|
117
118
|
import '@para-ui/icons/CheckS';
|
|
119
|
+
import 'dayjs';
|
|
120
|
+
import '@para-ui/icons/WarningCircleF';
|
|
118
121
|
import 'rc-picker/es/generate/dayjs';
|
|
119
122
|
import 'rc-picker';
|
|
120
123
|
import '@para-ui/icons/Calendar';
|
|
@@ -129,7 +132,6 @@ import '@para-ui/icons/Refresh';
|
|
|
129
132
|
import 'rc-drawer';
|
|
130
133
|
import 'rc-dropdown';
|
|
131
134
|
import './_verture/usePopupContainer-635f66f4.js';
|
|
132
|
-
import 'dayjs';
|
|
133
135
|
import '@para-ui/icons/Panel';
|
|
134
136
|
import '@para-ui/icons/PlusCircleF';
|
|
135
137
|
import '@para-ui/icons/Delete';
|
|
@@ -146,7 +148,6 @@ import 'rc-input-number';
|
|
|
146
148
|
import '@para-ui/icons/Up';
|
|
147
149
|
import '@para-ui/icons/IndentRightFill';
|
|
148
150
|
import '@para-ui/icons/IndentLeftFill';
|
|
149
|
-
import '@para-ui/icons/WarningCircleF';
|
|
150
151
|
import '@para-ui/icons/CheckCircleF';
|
|
151
152
|
import 'rc-dialog';
|
|
152
153
|
import 'rc-notification';
|
package/locale/en-US.d.ts
CHANGED
|
@@ -19,6 +19,85 @@ declare const _default: {
|
|
|
19
19
|
searching: string;
|
|
20
20
|
more: string;
|
|
21
21
|
};
|
|
22
|
+
CycleSelector: {
|
|
23
|
+
placeholder: string;
|
|
24
|
+
pleaseSelect: string;
|
|
25
|
+
week1: string;
|
|
26
|
+
week2: string;
|
|
27
|
+
week3: string;
|
|
28
|
+
week4: string;
|
|
29
|
+
week5: string;
|
|
30
|
+
week6: string;
|
|
31
|
+
week0: string;
|
|
32
|
+
every: string;
|
|
33
|
+
day: string;
|
|
34
|
+
week: string;
|
|
35
|
+
month: string;
|
|
36
|
+
year: string;
|
|
37
|
+
one: string;
|
|
38
|
+
two: string;
|
|
39
|
+
three: string;
|
|
40
|
+
four: string;
|
|
41
|
+
five: string;
|
|
42
|
+
six: string;
|
|
43
|
+
seven: string;
|
|
44
|
+
day1: string;
|
|
45
|
+
day2: string;
|
|
46
|
+
day3: string;
|
|
47
|
+
day4: string;
|
|
48
|
+
day5: string;
|
|
49
|
+
day6: string;
|
|
50
|
+
day7: string;
|
|
51
|
+
day8: string;
|
|
52
|
+
day9: string;
|
|
53
|
+
day10: string;
|
|
54
|
+
day11: string;
|
|
55
|
+
day12: string;
|
|
56
|
+
day13: string;
|
|
57
|
+
day14: string;
|
|
58
|
+
day15: string;
|
|
59
|
+
day16: string;
|
|
60
|
+
day17: string;
|
|
61
|
+
day18: string;
|
|
62
|
+
day19: string;
|
|
63
|
+
day20: string;
|
|
64
|
+
day21: string;
|
|
65
|
+
day22: string;
|
|
66
|
+
day23: string;
|
|
67
|
+
day24: string;
|
|
68
|
+
day25: string;
|
|
69
|
+
day26: string;
|
|
70
|
+
day27: string;
|
|
71
|
+
day28: string;
|
|
72
|
+
day29: string;
|
|
73
|
+
day30: string;
|
|
74
|
+
day31: string;
|
|
75
|
+
the1: string;
|
|
76
|
+
the2: string;
|
|
77
|
+
the3: string;
|
|
78
|
+
the4: string;
|
|
79
|
+
the5: string;
|
|
80
|
+
infiniteRepetition: string;
|
|
81
|
+
deadline: string;
|
|
82
|
+
limitNum: string;
|
|
83
|
+
noRepetition: string;
|
|
84
|
+
repeatEveryDay: string;
|
|
85
|
+
repeatEveryWeek: string;
|
|
86
|
+
repeatEveryMonth: string;
|
|
87
|
+
repeatEveryYear: string;
|
|
88
|
+
customRepetition: string;
|
|
89
|
+
th: string;
|
|
90
|
+
repetitionFrequency: string;
|
|
91
|
+
update: string;
|
|
92
|
+
text1: string;
|
|
93
|
+
text2: string;
|
|
94
|
+
text3: string;
|
|
95
|
+
weekTip: string;
|
|
96
|
+
endRepetition: string;
|
|
97
|
+
customCycle: string;
|
|
98
|
+
cancel: string;
|
|
99
|
+
confirm: string;
|
|
100
|
+
};
|
|
22
101
|
DatePicker: {
|
|
23
102
|
lang: {
|
|
24
103
|
placeholder: string;
|