@pisell/materials 6.2.24 → 6.2.26
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 +146 -146
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +36 -27
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +41 -32
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/icon/index.js +5 -5
- package/es/components/iconfont/index.js +1 -1
- package/es/components/list/index.js +6 -6
- package/es/components/pisellAdjustPrice/index.js +64 -8
- package/es/components/pisellAdjustPrice/index.less +35 -6
- package/es/components/pisellAdjustPrice/status.js +32 -0
- package/es/components/pisellAdjustPrice/type.js +1 -0
- package/es/components/pisellToast/index.js +3 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.js +61 -0
- package/es/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
- package/es/components/productCard/cartSkuCard/components/discountReason/index.js +51 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.js +32 -0
- package/es/components/productCard/cartSkuCard/components/holders/index.less +32 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.js +52 -0
- package/es/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/packages/utils.js +40 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.js +44 -0
- package/es/components/productCard/cartSkuCard/components/resources/index.less +20 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.js +55 -0
- package/es/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.js +43 -0
- package/es/components/productCard/cartSkuCard/components/specs/index.less +28 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.js +53 -0
- package/es/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
- package/es/components/productCard/cartSkuCard/index.js +195 -0
- package/es/components/productCard/cartSkuCard/index.less +69 -0
- package/es/components/productCard/cartSkuCard/locales.js +30 -0
- package/es/components/productCard/components/Header/index.js +4 -3
- package/es/components/productCard/components/Sales/index.js +2 -2
- package/es/components/productCard/index.js +2 -0
- package/es/components/qrcode/index.js +1 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/utils.js +5 -5
- package/es/components/virtual-keyboard/Amount/index.js +79 -7
- 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/BaseNumberKeyboard/index.js +38 -10
- package/es/components/virtual-keyboard/Keyboard/index.js +2 -2
- 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/VirtualKeyInput/index.js +10 -3
- package/es/components/virtual-keyboard/index.js +88 -3
- package/es/components/virtual-keyboard/index.less +33 -1
- package/es/hooks/useResponsive.js +2 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/iconfont/index.js +1 -1
- package/lib/components/lowCodePage/index.js +1 -2
- package/lib/components/pisellAdjustPrice/index.js +119 -57
- package/lib/components/pisellAdjustPrice/index.less +35 -6
- package/lib/components/pisellAdjustPrice/status.js +60 -0
- package/lib/components/pisellAdjustPrice/type.js +17 -0
- package/lib/components/pisellToast/index.js +3 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.js +71 -0
- package/lib/components/productCard/cartSkuCard/components/basicInfo/index.less +98 -0
- package/lib/components/productCard/cartSkuCard/components/discountReason/index.js +70 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.js +52 -0
- package/lib/components/productCard/cartSkuCard/components/holders/index.less +32 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/packages/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/packages/utils.js +44 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.js +73 -0
- package/lib/components/productCard/cartSkuCard/components/resources/index.less +20 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.js +76 -0
- package/lib/components/productCard/cartSkuCard/components/sales/index.less +22 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.js +65 -0
- package/lib/components/productCard/cartSkuCard/components/specs/index.less +28 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.js +67 -0
- package/lib/components/productCard/cartSkuCard/components/timeRange/index.less +37 -0
- package/lib/components/productCard/cartSkuCard/index.js +216 -0
- package/lib/components/productCard/cartSkuCard/index.less +69 -0
- package/lib/components/productCard/cartSkuCard/locales.js +61 -0
- package/lib/components/productCard/components/Header/index.js +4 -3
- package/lib/components/productCard/components/Sales/index.js +2 -2
- package/lib/components/productCard/index.js +2 -0
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/virtual-keyboard/Amount/index.js +72 -16
- 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/BaseNumberKeyboard/index.js +31 -8
- package/lib/components/virtual-keyboard/Keyboard/index.js +2 -1
- 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/VirtualKeyInput/index.js +34 -20
- package/lib/components/virtual-keyboard/index.js +60 -2
- package/lib/components/virtual-keyboard/index.less +33 -1
- package/lib/hooks/useResponsive.js +3 -6
- package/lowcode/_setters/antd-icon-setter/index.tsx +3 -2
- package/lowcode/pisell-adjust-price/meta.ts +168 -0
- package/lowcode/pisell-adjust-price/snippets.ts +1 -0
- 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/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/iconfont/index.d.ts +0 -8
- package/es/components/pisellAdjustPrice/index.d.ts +0 -9
- package/es/components/pisellToast/index.d.ts +0 -16
- package/es/components/productCard/components/Header/index.d.ts +0 -3
- package/es/components/productCard/components/Sales/index.d.ts +0 -3
- package/es/components/productCard/index.d.ts +0 -5
- package/es/components/productCard/locales.d.ts +0 -84
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -84
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
- package/es/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -19
- 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 -11
- package/es/components/virtual-keyboard/index.d.ts +0 -14
- package/lib/components/iconfont/index.d.ts +0 -8
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
- package/lib/components/pisellToast/index.d.ts +0 -16
- package/lib/components/productCard/components/Header/index.d.ts +0 -3
- package/lib/components/productCard/components/Sales/index.d.ts +0 -3
- package/lib/components/productCard/index.d.ts +0 -5
- package/lib/components/productCard/locales.d.ts +0 -84
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -84
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
- package/lib/components/virtual-keyboard/BaseNumberKeyboard/index.d.ts +0 -19
- 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 -11
- package/lib/components/virtual-keyboard/index.d.ts +0 -14
|
@@ -17,6 +17,174 @@ export default {
|
|
|
17
17
|
subName: "",
|
|
18
18
|
},
|
|
19
19
|
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'selectType',
|
|
22
|
+
title: { label: '选择类型', tip: 'selectType | 选择类型' },
|
|
23
|
+
setter: {
|
|
24
|
+
componentName: 'RadioGroupSetter',
|
|
25
|
+
props: {
|
|
26
|
+
options: [
|
|
27
|
+
{ title: 'Light', value: 'light' },
|
|
28
|
+
{ title: 'Dark', value: 'dark' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
defaultValue: 'light',
|
|
33
|
+
extraProps: {
|
|
34
|
+
onChange: (value: string, target: any) => {
|
|
35
|
+
// 根据主题切换自动设置颜色
|
|
36
|
+
const isLight = value === 'light';
|
|
37
|
+
|
|
38
|
+
target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
|
|
39
|
+
target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
|
|
40
|
+
target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
|
|
41
|
+
target.getProps().setPropValue('textColor', "#000000");
|
|
42
|
+
target.getProps().setPropValue('resetButtonBackgroundColor', '#ffffff');
|
|
43
|
+
target.getProps().setPropValue('resetButtonTextColor', "#d92d20");
|
|
44
|
+
target.getProps().setPropValue('doneButtonBackgroundColor', "#4ca30d");
|
|
45
|
+
target.getProps().setPropValue('doneButtonTextColor', "#ffffff");
|
|
46
|
+
target.getProps().setPropValue('isDoneButtonFollowTheme', true);
|
|
47
|
+
target.getProps().setPropValue('isShowMainText', true);
|
|
48
|
+
target.getProps().setPropValue('isShowSubText', true);
|
|
49
|
+
target.getProps().setPropValue('mainTextColor', isLight ? '#101828' : '#ffffff');
|
|
50
|
+
target.getProps().setPropValue('subTextColor', isLight ? '#667085' : '#d0d5dd');
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "backgroundColor",
|
|
56
|
+
title: {
|
|
57
|
+
label: "背景色",
|
|
58
|
+
tip: "backgroundColor | 背景色",
|
|
59
|
+
},
|
|
60
|
+
propType: "string",
|
|
61
|
+
setter: "ColorSetter",
|
|
62
|
+
defaultValue: "#ffffff",
|
|
63
|
+
|
|
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: "resetButtonBackgroundColor",
|
|
97
|
+
title: {
|
|
98
|
+
label: "重置按钮背景色",
|
|
99
|
+
tip: "resetButtonBackgroundColor | 重置按钮背景色",
|
|
100
|
+
},
|
|
101
|
+
propType: "string",
|
|
102
|
+
setter: "ColorSetter",
|
|
103
|
+
defaultValue: "#ffffff",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "resetButtonTextColor",
|
|
107
|
+
title: {
|
|
108
|
+
label: "重置按钮文本颜色",
|
|
109
|
+
tip: "resetButtonTextColor | 重置按钮文本颜色",
|
|
110
|
+
},
|
|
111
|
+
propType: "string",
|
|
112
|
+
setter: "ColorSetter",
|
|
113
|
+
defaultValue: "#d92d20",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'isDoneButtonFollowTheme',
|
|
117
|
+
title: { label: 'Done按钮颜色跟随主题色', tip: 'isDoneButtonFollowTheme | Done按钮颜色跟随主题色' },
|
|
118
|
+
propType: 'bool',
|
|
119
|
+
defaultValue: true,
|
|
120
|
+
setter: 'BoolSetter'
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "doneButtonBackgroundColor",
|
|
124
|
+
title: {
|
|
125
|
+
label: "Done按钮背景色",
|
|
126
|
+
tip: "doneButtonBackgroundColor | Done按钮背景色",
|
|
127
|
+
},
|
|
128
|
+
propType: "string",
|
|
129
|
+
setter: "ColorSetter",
|
|
130
|
+
defaultValue: "#4ca30d",
|
|
131
|
+
condition(target: any) {
|
|
132
|
+
return !target.getProps().getPropValue("isDoneButtonFollowTheme");
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "doneButtonTextColor",
|
|
137
|
+
title: {
|
|
138
|
+
label: "Done按钮文本颜色",
|
|
139
|
+
tip: "doneButtonTextColor | Done按钮文本颜色",
|
|
140
|
+
},
|
|
141
|
+
propType: "string",
|
|
142
|
+
setter: "ColorSetter",
|
|
143
|
+
defaultValue: "#ffffff",
|
|
144
|
+
condition(target: any) {
|
|
145
|
+
return !target.getProps().getPropValue("isDoneButtonFollowTheme");
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'isShowMainText',
|
|
150
|
+
title: { label: '显示主文案', tip: 'isShowMainText | 显示主文案' },
|
|
151
|
+
propType: 'bool',
|
|
152
|
+
defaultValue: true,
|
|
153
|
+
setter: 'BoolSetter'
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: "mainTextColor",
|
|
157
|
+
title: {
|
|
158
|
+
label: "主文案颜色",
|
|
159
|
+
tip: "mainTextColor | 主文案颜色",
|
|
160
|
+
},
|
|
161
|
+
propType: "string",
|
|
162
|
+
setter: "ColorSetter",
|
|
163
|
+
defaultValue: "#101828",
|
|
164
|
+
condition(target: any) {
|
|
165
|
+
return target.getProps().getPropValue("isShowMainText");
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'isShowSubText',
|
|
170
|
+
title: { label: '显示副文案', tip: 'isShowSubText | 显示副文案' },
|
|
171
|
+
propType: 'bool',
|
|
172
|
+
defaultValue: true,
|
|
173
|
+
setter: 'BoolSetter'
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "subTextColor",
|
|
177
|
+
title: {
|
|
178
|
+
label: "副文案颜色",
|
|
179
|
+
tip: "subTextColor | 副文案颜色",
|
|
180
|
+
},
|
|
181
|
+
propType: "string",
|
|
182
|
+
setter: "ColorSetter",
|
|
183
|
+
defaultValue: "#667085",
|
|
184
|
+
condition(target: any) {
|
|
185
|
+
return target.getProps().getPropValue("isShowSubText");
|
|
186
|
+
},
|
|
187
|
+
},
|
|
20
188
|
{
|
|
21
189
|
name: 'defaultValue',
|
|
22
190
|
title: { label: '默认值', tip: '默认值' },
|
|
@@ -54,6 +54,173 @@ const PisellNumberKeyboardMeta: ComponentMetadata = {
|
|
|
54
54
|
propType: "string",
|
|
55
55
|
setter: "PisellI18nSetter",
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
name: 'selectType',
|
|
59
|
+
title: { label: '选择类型', tip: 'selectType | 选择类型' },
|
|
60
|
+
setter: {
|
|
61
|
+
componentName: 'RadioGroupSetter',
|
|
62
|
+
props: {
|
|
63
|
+
options: [
|
|
64
|
+
{ title: 'Light', value: 'light' },
|
|
65
|
+
{ title: 'Dark', value: 'dark' },
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
defaultValue: 'light',
|
|
70
|
+
extraProps: {
|
|
71
|
+
onChange: (value: string, target: any) => {
|
|
72
|
+
// 根据主题切换自动设置颜色
|
|
73
|
+
const isLight = value === 'light';
|
|
74
|
+
|
|
75
|
+
target.getProps().setPropValue('backgroundColor', isLight ? '#ffffff' : 'rgba(0, 0, 0, 0.70)');
|
|
76
|
+
target.getProps().setPropValue('containerBackgroundColor', isLight ? '#d0d5dd' : 'rgba(0, 0, 0, 0.40)');
|
|
77
|
+
target.getProps().setPropValue('buttonBackgroundColor', '#ffffff');
|
|
78
|
+
target.getProps().setPropValue('textColor', "#000000");
|
|
79
|
+
target.getProps().setPropValue('resetButtonBackgroundColor', '#ffffff');
|
|
80
|
+
target.getProps().setPropValue('resetButtonTextColor', "#d92d20");
|
|
81
|
+
target.getProps().setPropValue('doneButtonBackgroundColor', "#4ca30d");
|
|
82
|
+
target.getProps().setPropValue('doneButtonTextColor', "#ffffff");
|
|
83
|
+
target.getProps().setPropValue('isDoneButtonFollowTheme', true);
|
|
84
|
+
target.getProps().setPropValue('keyboardBackgroundColor', isLight ? '#f9f9f9' : 'rgba(0, 0, 0, 0.40)');
|
|
85
|
+
target.getProps().setPropValue('keyboardButtonBackgroundColor', '#ffffff');
|
|
86
|
+
target.getProps().setPropValue('keyboardButtonTextColor', '#000000');
|
|
87
|
+
target.getProps().setPropValue('keyboardButtonHoverColor', '#f5f5f5');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "backgroundColor",
|
|
93
|
+
title: {
|
|
94
|
+
label: "背景色",
|
|
95
|
+
tip: "backgroundColor | 背景色",
|
|
96
|
+
},
|
|
97
|
+
propType: "string",
|
|
98
|
+
setter: "ColorSetter",
|
|
99
|
+
defaultValue: "#ffffff",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "containerBackgroundColor",
|
|
103
|
+
title: {
|
|
104
|
+
label: "容器背景色",
|
|
105
|
+
tip: "containerBackgroundColor | 容器背景色",
|
|
106
|
+
},
|
|
107
|
+
propType: "string",
|
|
108
|
+
setter: "ColorSetter",
|
|
109
|
+
defaultValue: "#d0d5dd",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: "buttonBackgroundColor",
|
|
113
|
+
title: {
|
|
114
|
+
label: "按钮背景色",
|
|
115
|
+
tip: "buttonBackgroundColor | 按钮背景色",
|
|
116
|
+
},
|
|
117
|
+
propType: "string",
|
|
118
|
+
setter: "ColorSetter",
|
|
119
|
+
defaultValue: "#ffffff",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "textColor",
|
|
123
|
+
title: {
|
|
124
|
+
label: "文本颜色",
|
|
125
|
+
tip: "textColor | 文本颜色",
|
|
126
|
+
},
|
|
127
|
+
propType: "string",
|
|
128
|
+
setter: "ColorSetter",
|
|
129
|
+
defaultValue: "#000000",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: "resetButtonBackgroundColor",
|
|
133
|
+
title: {
|
|
134
|
+
label: "重置按钮背景色",
|
|
135
|
+
tip: "resetButtonBackgroundColor | 重置按钮背景色",
|
|
136
|
+
},
|
|
137
|
+
propType: "string",
|
|
138
|
+
setter: "ColorSetter",
|
|
139
|
+
defaultValue: "#ffffff",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: "resetButtonTextColor",
|
|
143
|
+
title: {
|
|
144
|
+
label: "重置按钮文本颜色",
|
|
145
|
+
tip: "resetButtonTextColor | 重置按钮文本颜色",
|
|
146
|
+
},
|
|
147
|
+
propType: "string",
|
|
148
|
+
setter: "ColorSetter",
|
|
149
|
+
defaultValue: "#d92d20",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'isDoneButtonFollowTheme',
|
|
153
|
+
title: { label: 'Done按钮颜色跟随主题色', tip: 'isDoneButtonFollowTheme | Done按钮颜色跟随主题色' },
|
|
154
|
+
propType: 'bool',
|
|
155
|
+
defaultValue: true,
|
|
156
|
+
setter: 'BoolSetter'
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "doneButtonBackgroundColor",
|
|
160
|
+
title: {
|
|
161
|
+
label: "Done按钮背景色",
|
|
162
|
+
tip: "doneButtonBackgroundColor | Done按钮背景色",
|
|
163
|
+
},
|
|
164
|
+
propType: "string",
|
|
165
|
+
setter: "ColorSetter",
|
|
166
|
+
defaultValue: "#4ca30d",
|
|
167
|
+
condition(target: any) {
|
|
168
|
+
return !target.getProps().getPropValue("isDoneButtonFollowTheme");
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "doneButtonTextColor",
|
|
173
|
+
title: {
|
|
174
|
+
label: "Done按钮文本颜色",
|
|
175
|
+
tip: "doneButtonTextColor | Done按钮文本颜色",
|
|
176
|
+
},
|
|
177
|
+
propType: "string",
|
|
178
|
+
setter: "ColorSetter",
|
|
179
|
+
defaultValue: "#ffffff",
|
|
180
|
+
condition(target: any) {
|
|
181
|
+
return !target.getProps().getPropValue("isDoneButtonFollowTheme");
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: "keyboardBackgroundColor",
|
|
186
|
+
title: {
|
|
187
|
+
label: "键盘背景色",
|
|
188
|
+
tip: "keyboardBackgroundColor | 键盘背景色",
|
|
189
|
+
},
|
|
190
|
+
propType: "string",
|
|
191
|
+
setter: "ColorSetter",
|
|
192
|
+
defaultValue: "#f9f9f9",
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "keyboardButtonBackgroundColor",
|
|
196
|
+
title: {
|
|
197
|
+
label: "键盘按钮背景色",
|
|
198
|
+
tip: "keyboardButtonBackgroundColor | 键盘按钮背景色",
|
|
199
|
+
},
|
|
200
|
+
propType: "string",
|
|
201
|
+
setter: "ColorSetter",
|
|
202
|
+
defaultValue: "#ffffff",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "keyboardButtonTextColor",
|
|
206
|
+
title: {
|
|
207
|
+
label: "键盘按钮文本颜色",
|
|
208
|
+
tip: "keyboardButtonTextColor | 键盘按钮文本颜色",
|
|
209
|
+
},
|
|
210
|
+
propType: "string",
|
|
211
|
+
setter: "ColorSetter",
|
|
212
|
+
defaultValue: "#000000",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: "keyboardButtonHoverColor",
|
|
216
|
+
title: {
|
|
217
|
+
label: "键盘按钮悬停颜色",
|
|
218
|
+
tip: "keyboardButtonHoverColor | 键盘按钮悬停颜色",
|
|
219
|
+
},
|
|
220
|
+
propType: "string",
|
|
221
|
+
setter: "ColorSetter",
|
|
222
|
+
defaultValue: "#f5f5f5",
|
|
223
|
+
},
|
|
57
224
|
],
|
|
58
225
|
configure: {
|
|
59
226
|
supports: {
|
|
@@ -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: {
|