@pisell/materials 2.2.87 → 2.2.89
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +160 -144
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +36 -26
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +40 -30
- package/es/components/iconfont/index.d.ts +8 -0
- package/es/components/pisell-config-provider/index.d.ts +12 -0
- package/es/components/pisellWalletPassCard/index.d.ts +0 -1
- package/es/components/productCard/cartSkuCard/index.js +1 -1
- package/es/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/es/components/productCard/cartSkuCard/locales.js +6 -3
- package/es/components/select-time/index.d.ts +0 -1
- package/es/components/virtual-keyboard/Amount/index.js +73 -6
- package/es/components/virtual-keyboard/Amount/index.less +39 -0
- package/es/components/virtual-keyboard/Amount/themeConfig.js +32 -0
- package/es/components/virtual-keyboard/Amount/types.js +1 -0
- package/es/components/virtual-keyboard/Number/index.js +77 -7
- package/es/components/virtual-keyboard/Number/index.less +39 -0
- package/es/components/virtual-keyboard/Number/themeConfig.js +32 -0
- package/es/components/virtual-keyboard/Number/types.js +1 -0
- package/es/components/virtual-keyboard/index.d.ts +11 -0
- package/es/components/virtual-keyboard/index.js +88 -3
- package/es/components/virtual-keyboard/index.less +33 -1
- package/lib/components/iconfont/index.d.ts +8 -0
- package/lib/components/pisell-config-provider/index.d.ts +12 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +0 -1
- package/lib/components/productCard/cartSkuCard/index.js +1 -1
- package/lib/components/productCard/cartSkuCard/locales.d.ts +96 -0
- package/lib/components/productCard/cartSkuCard/locales.js +6 -3
- package/lib/components/select-time/index.d.ts +0 -1
- package/lib/components/virtual-keyboard/Amount/index.js +68 -17
- package/lib/components/virtual-keyboard/Amount/index.less +39 -0
- package/lib/components/virtual-keyboard/Amount/themeConfig.js +60 -0
- package/lib/components/virtual-keyboard/Amount/types.js +17 -0
- package/lib/components/virtual-keyboard/Number/index.js +65 -11
- package/lib/components/virtual-keyboard/Number/index.less +39 -0
- package/lib/components/virtual-keyboard/Number/themeConfig.js +60 -0
- package/lib/components/virtual-keyboard/Number/types.js +17 -0
- package/lib/components/virtual-keyboard/index.d.ts +11 -0
- package/lib/components/virtual-keyboard/index.js +60 -2
- package/lib/components/virtual-keyboard/index.less +33 -1
- package/lowcode/pisell-number-keyboard/meta.ts +167 -0
- package/lowcode/pisell-price-keyboard/meta.ts +167 -0
- package/lowcode/virtual-keyboard/meta.ts +131 -0
- package/package.json +1 -1
- package/es/components/pisellAdjustPrice/index.d.ts +0 -4
- package/es/components/pisellAdjustPrice/status.d.ts +0 -32
- package/es/components/pisellAdjustPrice/type.d.ts +0 -20
- package/es/components/productCard/components/Warning/index.d.ts +0 -7
- package/es/components/productCard/index.d.ts +0 -7
- package/es/components/productCard/utils.d.ts +0 -31
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -32
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/Number/index.d.ts +0 -13
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/es/index.d.ts +0 -140
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -4
- package/lib/components/pisellAdjustPrice/status.d.ts +0 -32
- package/lib/components/pisellAdjustPrice/type.d.ts +0 -20
- package/lib/components/productCard/components/Warning/index.d.ts +0 -7
- package/lib/components/productCard/index.d.ts +0 -7
- package/lib/components/productCard/utils.d.ts +0 -31
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -32
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/Number/index.d.ts +0 -13
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -13
- package/lib/index.d.ts +0 -140
|
@@ -130,6 +130,173 @@ const PisellPriceKeyboardMeta: ComponentMetadata = {
|
|
|
130
130
|
},
|
|
131
131
|
],
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
name: 'selectType',
|
|
135
|
+
title: { label: '选择类型', tip: 'selectType | 选择类型' },
|
|
136
|
+
setter: {
|
|
137
|
+
componentName: 'RadioGroupSetter',
|
|
138
|
+
props: {
|
|
139
|
+
options: [
|
|
140
|
+
{ title: 'Light', value: 'light' },
|
|
141
|
+
{ title: 'Dark', value: 'dark' },
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
defaultValue: 'light',
|
|
146
|
+
extraProps: {
|
|
147
|
+
onChange: (value: string, target: any) => {
|
|
148
|
+
// 根据主题切换自动设置颜色
|
|
149
|
+
const isLight = value === 'light';
|
|
150
|
+
|
|
151
|
+
target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
|
|
152
|
+
target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
|
|
153
|
+
target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
|
|
154
|
+
target.getProps().setPropValue('textColor', "#000000");
|
|
155
|
+
target.getProps().setPropValue('resetButtonBackgroundColor', '#ffffff');
|
|
156
|
+
target.getProps().setPropValue('resetButtonTextColor', "#d92d20");
|
|
157
|
+
target.getProps().setPropValue('doneButtonBackgroundColor', "#4ca30d");
|
|
158
|
+
target.getProps().setPropValue('doneButtonTextColor', "#ffffff");
|
|
159
|
+
target.getProps().setPropValue('isDoneButtonFollowTheme', true);
|
|
160
|
+
target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
|
|
161
|
+
target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
|
|
162
|
+
target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
|
|
163
|
+
target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "backgroundColor",
|
|
169
|
+
title: {
|
|
170
|
+
label: "背景色",
|
|
171
|
+
tip: "backgroundColor | 背景色",
|
|
172
|
+
},
|
|
173
|
+
propType: "string",
|
|
174
|
+
setter: "ColorSetter",
|
|
175
|
+
defaultValue: "#ffffff",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "containerBackgroundColor",
|
|
179
|
+
title: {
|
|
180
|
+
label: "容器背景色",
|
|
181
|
+
tip: "containerBackgroundColor | 容器背景色",
|
|
182
|
+
},
|
|
183
|
+
propType: "string",
|
|
184
|
+
setter: "ColorSetter",
|
|
185
|
+
defaultValue: "#d0d5dd",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "buttonBackgroundColor",
|
|
189
|
+
title: {
|
|
190
|
+
label: "按钮背景色",
|
|
191
|
+
tip: "buttonBackgroundColor | 按钮背景色",
|
|
192
|
+
},
|
|
193
|
+
propType: "string",
|
|
194
|
+
setter: "ColorSetter",
|
|
195
|
+
defaultValue: "#ffffff",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "textColor",
|
|
199
|
+
title: {
|
|
200
|
+
label: "文本颜色",
|
|
201
|
+
tip: "textColor | 文本颜色",
|
|
202
|
+
},
|
|
203
|
+
propType: "string",
|
|
204
|
+
setter: "ColorSetter",
|
|
205
|
+
defaultValue: "#000000",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "resetButtonBackgroundColor",
|
|
209
|
+
title: {
|
|
210
|
+
label: "重置按钮背景色",
|
|
211
|
+
tip: "resetButtonBackgroundColor | 重置按钮背景色",
|
|
212
|
+
},
|
|
213
|
+
propType: "string",
|
|
214
|
+
setter: "ColorSetter",
|
|
215
|
+
defaultValue: "#ffffff",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "resetButtonTextColor",
|
|
219
|
+
title: {
|
|
220
|
+
label: "重置按钮文本颜色",
|
|
221
|
+
tip: "resetButtonTextColor | 重置按钮文本颜色",
|
|
222
|
+
},
|
|
223
|
+
propType: "string",
|
|
224
|
+
setter: "ColorSetter",
|
|
225
|
+
defaultValue: "#d92d20",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'isDoneButtonFollowTheme',
|
|
229
|
+
title: { label: 'Done按钮颜色跟随主题色', tip: 'isDoneButtonFollowTheme | Done按钮颜色跟随主题色' },
|
|
230
|
+
propType: 'bool',
|
|
231
|
+
defaultValue: true,
|
|
232
|
+
setter: 'BoolSetter'
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: "doneButtonBackgroundColor",
|
|
236
|
+
title: {
|
|
237
|
+
label: "Done按钮背景色",
|
|
238
|
+
tip: "doneButtonBackgroundColor | Done按钮背景色",
|
|
239
|
+
},
|
|
240
|
+
propType: "string",
|
|
241
|
+
setter: "ColorSetter",
|
|
242
|
+
defaultValue: "#4ca30d",
|
|
243
|
+
condition(target: any) {
|
|
244
|
+
return !target.getProps().getPropValue("isDoneButtonFollowTheme");
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "doneButtonTextColor",
|
|
249
|
+
title: {
|
|
250
|
+
label: "Done按钮文本颜色",
|
|
251
|
+
tip: "doneButtonTextColor | Done按钮文本颜色",
|
|
252
|
+
},
|
|
253
|
+
propType: "string",
|
|
254
|
+
setter: "ColorSetter",
|
|
255
|
+
defaultValue: "#ffffff",
|
|
256
|
+
condition(target: any) {
|
|
257
|
+
return !target.getProps().getPropValue("isDoneButtonFollowTheme");
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
name: "keyboardBackgroundColor",
|
|
262
|
+
title: {
|
|
263
|
+
label: "键盘背景色",
|
|
264
|
+
tip: "keyboardBackgroundColor | 键盘背景色",
|
|
265
|
+
},
|
|
266
|
+
propType: "string",
|
|
267
|
+
setter: "ColorSetter",
|
|
268
|
+
defaultValue: "#f9f9f9",
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: "keyboardButtonBackgroundColor",
|
|
272
|
+
title: {
|
|
273
|
+
label: "键盘按钮背景色",
|
|
274
|
+
tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
|
|
275
|
+
},
|
|
276
|
+
propType: "string",
|
|
277
|
+
setter: "ColorSetter",
|
|
278
|
+
defaultValue: "#ffffff",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "keyboardButtonTextColor",
|
|
282
|
+
title: {
|
|
283
|
+
label: "键盘按钮文本颜色",
|
|
284
|
+
tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
|
|
285
|
+
},
|
|
286
|
+
propType: "string",
|
|
287
|
+
setter: "ColorSetter",
|
|
288
|
+
defaultValue: "#000000",
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "keyboardButtonHoverColor",
|
|
292
|
+
title: {
|
|
293
|
+
label: "键盘按钮悬停颜色",
|
|
294
|
+
tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
|
|
295
|
+
},
|
|
296
|
+
propType: "string",
|
|
297
|
+
setter: "ColorSetter",
|
|
298
|
+
defaultValue: "#f5f5f5",
|
|
299
|
+
},
|
|
133
300
|
],
|
|
134
301
|
configure: {
|
|
135
302
|
supports: {
|
|
@@ -21,6 +21,137 @@ const VirtualKeyboardMeta: ComponentMetadata = {
|
|
|
21
21
|
name: "others",
|
|
22
22
|
setter: ["JsonSetter", "VariableSetter"],
|
|
23
23
|
},
|
|
24
|
+
{
|
|
25
|
+
name: 'selectType',
|
|
26
|
+
title: { label: '选择类型', tip: 'selectType | 选择类型' },
|
|
27
|
+
setter: {
|
|
28
|
+
componentName: 'RadioGroupSetter',
|
|
29
|
+
props: {
|
|
30
|
+
options: [
|
|
31
|
+
{ title: 'Light', value: 'light' },
|
|
32
|
+
{ title: 'Dark', value: 'dark' },
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
defaultValue: 'light',
|
|
37
|
+
extraProps: {
|
|
38
|
+
onChange: (value: string, target: any) => {
|
|
39
|
+
// 根据主题切换自动设置颜色
|
|
40
|
+
const isLight = value === 'light';
|
|
41
|
+
|
|
42
|
+
target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
|
|
43
|
+
target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
|
|
44
|
+
target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
|
|
45
|
+
target.getProps().setPropValue('textColor', "#000000");
|
|
46
|
+
target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
|
|
47
|
+
target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
|
|
48
|
+
target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
|
|
49
|
+
target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
|
|
50
|
+
target.getProps().setPropValue('primaryButtonBackgroundColor', '#4ca30d');
|
|
51
|
+
target.getProps().setPropValue('primaryButtonTextColor', '#ffffff');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "backgroundColor",
|
|
57
|
+
title: {
|
|
58
|
+
label: "背景色",
|
|
59
|
+
tip: "backgroundColor | 背景色",
|
|
60
|
+
},
|
|
61
|
+
propType: "string",
|
|
62
|
+
setter: "ColorSetter",
|
|
63
|
+
defaultValue: "#ffffff",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "containerBackgroundColor",
|
|
67
|
+
title: {
|
|
68
|
+
label: "容器背景色",
|
|
69
|
+
tip: "containerBackgroundColor | 容器背景色",
|
|
70
|
+
},
|
|
71
|
+
propType: "string",
|
|
72
|
+
setter: "ColorSetter",
|
|
73
|
+
defaultValue: "#d0d5dd",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "buttonBackgroundColor",
|
|
77
|
+
title: {
|
|
78
|
+
label: "按钮背景色",
|
|
79
|
+
tip: "buttonBackgroundColor | 按钮背景色",
|
|
80
|
+
},
|
|
81
|
+
propType: "string",
|
|
82
|
+
setter: "ColorSetter",
|
|
83
|
+
defaultValue: "#ffffff",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: "textColor",
|
|
87
|
+
title: {
|
|
88
|
+
label: "文本颜色",
|
|
89
|
+
tip: "textColor | 文本颜色",
|
|
90
|
+
},
|
|
91
|
+
propType: "string",
|
|
92
|
+
setter: "ColorSetter",
|
|
93
|
+
defaultValue: "#000000",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "keyboardBackgroundColor",
|
|
97
|
+
title: {
|
|
98
|
+
label: "键盘背景色",
|
|
99
|
+
tip: "keyboardBackgroundColor | 键盘背景色",
|
|
100
|
+
},
|
|
101
|
+
propType: "string",
|
|
102
|
+
setter: "ColorSetter",
|
|
103
|
+
defaultValue: "#f9f9f9",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "keyboardButtonBackgroundColor",
|
|
107
|
+
title: {
|
|
108
|
+
label: "键盘按钮背景色",
|
|
109
|
+
tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
|
|
110
|
+
},
|
|
111
|
+
propType: "string",
|
|
112
|
+
setter: "ColorSetter",
|
|
113
|
+
defaultValue: "#ffffff",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "keyboardButtonTextColor",
|
|
117
|
+
title: {
|
|
118
|
+
label: "键盘按钮文本颜色",
|
|
119
|
+
tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
|
|
120
|
+
},
|
|
121
|
+
propType: "string",
|
|
122
|
+
setter: "ColorSetter",
|
|
123
|
+
defaultValue: "#000000",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "keyboardButtonHoverColor",
|
|
127
|
+
title: {
|
|
128
|
+
label: "键盘按钮悬停颜色",
|
|
129
|
+
tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
|
|
130
|
+
},
|
|
131
|
+
propType: "string",
|
|
132
|
+
setter: "ColorSetter",
|
|
133
|
+
defaultValue: "#f5f5f5",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "primaryButtonBackgroundColor",
|
|
137
|
+
title: {
|
|
138
|
+
label: "主要按钮背景色",
|
|
139
|
+
tip: "primaryButtonBackgroundColor | 主要按钮背景色",
|
|
140
|
+
},
|
|
141
|
+
propType: "string",
|
|
142
|
+
setter: "ColorSetter",
|
|
143
|
+
defaultValue: "#4ca30d",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: "primaryButtonTextColor",
|
|
147
|
+
title: {
|
|
148
|
+
label: "主要按钮文本颜色",
|
|
149
|
+
tip: "primaryButtonTextColor | 主要按钮文本颜色",
|
|
150
|
+
},
|
|
151
|
+
propType: "string",
|
|
152
|
+
setter: "ColorSetter",
|
|
153
|
+
defaultValue: "#ffffff",
|
|
154
|
+
},
|
|
24
155
|
],
|
|
25
156
|
configure: {
|
|
26
157
|
supports: {
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare const defaultConfig: {
|
|
2
|
-
dark: {
|
|
3
|
-
backgroundColor: string;
|
|
4
|
-
containerBackgroundColor: string;
|
|
5
|
-
buttonBackgroundColor: string;
|
|
6
|
-
textColor: string;
|
|
7
|
-
resetButtonBackgroundColor: string;
|
|
8
|
-
resetButtonTextColor: string;
|
|
9
|
-
isDoneButtonFollowTheme: boolean;
|
|
10
|
-
doneButtonBackgroundColor: string;
|
|
11
|
-
doneButtonTextColor: string;
|
|
12
|
-
isShowMainText: boolean;
|
|
13
|
-
mainTextColor: string;
|
|
14
|
-
isShowSubText: boolean;
|
|
15
|
-
subTextColor: string;
|
|
16
|
-
};
|
|
17
|
-
light: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
containerBackgroundColor: string;
|
|
20
|
-
buttonBackgroundColor: string;
|
|
21
|
-
textColor: string;
|
|
22
|
-
resetButtonBackgroundColor: string;
|
|
23
|
-
resetButtonTextColor: string;
|
|
24
|
-
isDoneButtonFollowTheme: boolean;
|
|
25
|
-
doneButtonBackgroundColor: string;
|
|
26
|
-
doneButtonTextColor: string;
|
|
27
|
-
isShowMainText: boolean;
|
|
28
|
-
mainTextColor: string;
|
|
29
|
-
isShowSubText: boolean;
|
|
30
|
-
subTextColor: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface PisellAdjustPriceProps {
|
|
2
|
-
value?: number;
|
|
3
|
-
originValue: number;
|
|
4
|
-
defaultValue?: number;
|
|
5
|
-
onChange?: (val: number) => void;
|
|
6
|
-
selectType?: 'light' | 'dark';
|
|
7
|
-
backgroundColor?: string;
|
|
8
|
-
containerBackgroundColor?: string;
|
|
9
|
-
buttonBackgroundColor?: string;
|
|
10
|
-
textColor?: string;
|
|
11
|
-
resetButtonBackgroundColor?: string;
|
|
12
|
-
resetButtonTextColor?: string;
|
|
13
|
-
isDoneButtonFollowTheme?: boolean;
|
|
14
|
-
doneButtonBackgroundColor?: string;
|
|
15
|
-
doneButtonTextColor?: string;
|
|
16
|
-
isShowMainText?: boolean;
|
|
17
|
-
mainTextColor?: string;
|
|
18
|
-
isShowSubText?: boolean;
|
|
19
|
-
subTextColor?: string;
|
|
20
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import 'dayjs/locale/zh-cn';
|
|
2
|
-
import 'dayjs/locale/en';
|
|
3
|
-
import 'dayjs/locale/zh-tw';
|
|
4
|
-
/**
|
|
5
|
-
* @title: 是否英文
|
|
6
|
-
* @description:
|
|
7
|
-
* @param {any} item
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @Author: WangHan
|
|
10
|
-
* @Date: 2024-12-28 22:49
|
|
11
|
-
*/
|
|
12
|
-
export declare const isEn: (item: any) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 跨日预约时间
|
|
15
|
-
* @description:
|
|
16
|
-
* @param {any} item
|
|
17
|
-
* @return {*}
|
|
18
|
-
* @Author: WangHan
|
|
19
|
-
* @Date: 2024-12-28 22:50
|
|
20
|
-
*/
|
|
21
|
-
export declare const formatMultiDayDate: (item: any) => string;
|
|
22
|
-
/**
|
|
23
|
-
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
24
|
-
* @description:
|
|
25
|
-
* @param {any} item
|
|
26
|
-
* @param {any} currentDate
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: zhiwei.Wang
|
|
29
|
-
* @Date: 2024-04-26 14:04
|
|
30
|
-
*/
|
|
31
|
-
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseNumberKeyboardProps } from '../BaseNumberKeyboard';
|
|
3
|
-
export interface RightItemsStyleProps {
|
|
4
|
-
buttonBackgroundColor?: string;
|
|
5
|
-
textColor?: string;
|
|
6
|
-
resetButtonBackgroundColor?: string;
|
|
7
|
-
resetButtonTextColor?: string;
|
|
8
|
-
isDoneButtonFollowTheme?: boolean;
|
|
9
|
-
doneButtonBackgroundColor?: string;
|
|
10
|
-
doneButtonTextColor?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface AmountProps {
|
|
13
|
-
max?: number;
|
|
14
|
-
min?: number;
|
|
15
|
-
doneText?: string;
|
|
16
|
-
resetText?: string;
|
|
17
|
-
defaultValue?: string | number;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
amountProps?: {
|
|
20
|
-
showCurrencySymbol: boolean;
|
|
21
|
-
useThousandsSeparator: boolean;
|
|
22
|
-
};
|
|
23
|
-
presets?: BaseNumberKeyboardProps['presets'];
|
|
24
|
-
value?: string | number;
|
|
25
|
-
onChange?: (val: string | number) => void;
|
|
26
|
-
onEnter?: (val: string | number) => void;
|
|
27
|
-
defaultSelect?: boolean;
|
|
28
|
-
inputFormat?: (_v: string) => React.ReactNode | null;
|
|
29
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
30
|
-
}
|
|
31
|
-
declare const Amount: (props: AmountProps) => JSX.Element;
|
|
32
|
-
export default Amount;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PresetsProps } from './Presets';
|
|
3
|
-
import { RightItemsStyleProps } from '../Amount';
|
|
4
|
-
import './index.less';
|
|
5
|
-
export interface BaseNumberKeyboardProps {
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
format?: (val: string) => React.ReactNode;
|
|
8
|
-
defaultValue?: string | number;
|
|
9
|
-
doneText?: string;
|
|
10
|
-
resetText?: string;
|
|
11
|
-
onChange?: (val: string) => void;
|
|
12
|
-
onEnter?: (val: string) => void;
|
|
13
|
-
value?: string | number;
|
|
14
|
-
max?: number;
|
|
15
|
-
min?: number;
|
|
16
|
-
presets?: PresetsProps['presets'];
|
|
17
|
-
defaultSelect?: boolean;
|
|
18
|
-
rightItemsStyle?: RightItemsStyleProps;
|
|
19
|
-
}
|
|
20
|
-
declare const BaseNumberKeyboard: (props: BaseNumberKeyboardProps) => JSX.Element;
|
|
21
|
-
export default BaseNumberKeyboard;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export declare type ItemValue = string | number;
|
|
4
|
-
export interface Item {
|
|
5
|
-
value: ItemValue;
|
|
6
|
-
label: React.ReactNode;
|
|
7
|
-
disabled: boolean;
|
|
8
|
-
type: 'text' | 'primary';
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
size?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface KeyboardProps {
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
|
-
onChange?: (value?: ItemValue) => void;
|
|
16
|
-
items?: Item[];
|
|
17
|
-
rightItems?: Item[];
|
|
18
|
-
keydown?: boolean;
|
|
19
|
-
}
|
|
20
|
-
declare const _default: React.MemoExoticComponent<(props: KeyboardProps) => JSX.Element>;
|
|
21
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface NumberProps {
|
|
2
|
-
max?: number;
|
|
3
|
-
min?: number;
|
|
4
|
-
doneText?: string;
|
|
5
|
-
resetText: string;
|
|
6
|
-
defaultValue?: string | number;
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
value?: string | number;
|
|
9
|
-
onChange?: (val: string | number) => void;
|
|
10
|
-
onEnter?: (val: string | number) => void;
|
|
11
|
-
}
|
|
12
|
-
declare const Number: (props: NumberProps) => JSX.Element;
|
|
13
|
-
export default Number;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InputProps } from 'antd';
|
|
3
|
-
import './index.less';
|
|
4
|
-
export interface VirtualKeyInputProps extends InputProps {
|
|
5
|
-
previewValue?: string;
|
|
6
|
-
renderInput?: (props: any) => any;
|
|
7
|
-
showDelete?: boolean;
|
|
8
|
-
onValueSelect?: (selected: boolean) => void;
|
|
9
|
-
defaultSelect?: boolean;
|
|
10
|
-
style?: React.CSSProperties;
|
|
11
|
-
}
|
|
12
|
-
declare const VirtualKeyInput: (props: VirtualKeyInputProps) => JSX.Element;
|
|
13
|
-
export default VirtualKeyInput;
|