@pisell/materials 1.0.484 → 1.0.486
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 +6 -6
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +16 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -20
- package/es/components/badge/index.d.ts +8 -0
- package/es/components/badge/index.js +44 -0
- package/es/components/badge/index.less +2 -0
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/es/components/dataSourceComponents/fields/ColorPicker/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +4 -4
- package/es/components/pisellCard/index.d.ts +7 -0
- package/es/components/pisellCard/index.js +32 -6
- package/es/components/pisellCard/index.less +24 -4
- package/es/components/pisellEmpty/index.d.ts +1 -1
- package/es/components/pisellInformationEntry/Input/index.d.ts +0 -1
- package/es/components/pisellInformationEntry/Input/index.js +2 -3
- package/es/components/pisellInformationEntry/index.d.ts +0 -2
- package/es/components/pisellInformationEntry/index.js +2 -5
- package/es/components/pisellWalletPassCard/index.d.ts +1 -1
- package/es/components/pisellWalletPassCard/index.js +1 -1
- package/es/components/record-view/index.js +5 -4
- package/es/components/tabs/index.js +9 -7
- package/es/components/tabs/index.less +5 -5
- package/es/components/walletCard/index.d.ts +4 -3
- package/es/components/walletCard/index.js +29 -25
- package/es/index.d.ts +1 -1
- package/es/index.js +4 -1
- package/es/locales/en-US.d.ts +4 -0
- package/es/locales/en-US.js +5 -1
- package/es/locales/zh-CN.d.ts +4 -0
- package/es/locales/zh-CN.js +5 -1
- package/es/locales/zh-TW.d.ts +4 -0
- package/es/locales/zh-TW.js +5 -1
- package/lib/components/badge/index.d.ts +8 -0
- package/lib/components/badge/index.js +70 -0
- package/lib/components/badge/index.less +2 -0
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +3 -3
- package/lib/components/dataSourceComponents/fields/ColorPicker/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +4 -4
- package/lib/components/pisellCard/index.d.ts +7 -0
- package/lib/components/pisellCard/index.js +28 -8
- package/lib/components/pisellCard/index.less +24 -4
- package/lib/components/pisellEmpty/index.d.ts +1 -1
- package/lib/components/pisellInformationEntry/Input/index.d.ts +0 -1
- package/lib/components/pisellInformationEntry/Input/index.js +2 -2
- package/lib/components/pisellInformationEntry/index.d.ts +0 -2
- package/lib/components/pisellInformationEntry/index.js +2 -10
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -1
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/components/record-view/index.js +3 -3
- package/lib/components/tabs/index.js +8 -5
- package/lib/components/tabs/index.less +5 -5
- package/lib/components/walletCard/index.d.ts +4 -3
- package/lib/components/walletCard/index.js +29 -37
- package/lib/index.d.ts +1 -1
- package/lib/index.js +36 -36
- package/lib/locales/en-US.d.ts +4 -0
- package/lib/locales/en-US.js +5 -1
- package/lib/locales/zh-CN.d.ts +4 -0
- package/lib/locales/zh-CN.js +5 -1
- package/lib/locales/zh-TW.d.ts +4 -0
- package/lib/locales/zh-TW.js +5 -1
- package/lowcode/badge/meta.ts +10 -1
- package/lowcode/badge/snippets.ts +2 -0
- package/lowcode/card/snippets.ts +55 -55
- package/lowcode/pisell-card/meta.ts +63 -27
- package/lowcode/pisell-card/snippets.ts +6 -0
- package/lowcode/wallet-card/meta.ts +51 -40
- package/lowcode/wallet-card/snippets.ts +20 -1
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -35,23 +35,23 @@ __export(src_exports, {
|
|
|
35
35
|
AutoComplete: () => import_auto_complete.default,
|
|
36
36
|
AutoCompleteNumber: () => import_auto_complete_number.default,
|
|
37
37
|
Avatar: () => import_antd4.Avatar,
|
|
38
|
-
Badge: () =>
|
|
38
|
+
Badge: () => import_badge.default,
|
|
39
39
|
BatchEditor: () => import_batch_editor.default,
|
|
40
|
-
Breadcrumb: () =>
|
|
40
|
+
Breadcrumb: () => import_antd5.Breadcrumb,
|
|
41
41
|
Button: () => import_button.default,
|
|
42
42
|
ButtonGroupEdit: () => import_buttonGroupEdit.default,
|
|
43
43
|
ButtonGroupPreview: () => import_buttonGroupPreview.default,
|
|
44
44
|
Calendar: () => import_calendar.default,
|
|
45
|
-
Card: () =>
|
|
45
|
+
Card: () => import_antd6.Card,
|
|
46
46
|
CardMetricItem: () => import_cardMetricItem.default,
|
|
47
47
|
CardPro: () => import_cardPro.default,
|
|
48
|
-
Carousel: () =>
|
|
48
|
+
Carousel: () => import_antd7.Carousel,
|
|
49
49
|
Cascader: () => import_cascader.default,
|
|
50
50
|
Checkbox: () => import_checkbox.default,
|
|
51
51
|
ClassicLayout: () => import_classicLayout.default,
|
|
52
|
-
Col: () =>
|
|
52
|
+
Col: () => import_antd8.Col,
|
|
53
53
|
Collapse: () => import_collapse.default,
|
|
54
|
-
ColorPicker: () =>
|
|
54
|
+
ColorPicker: () => import_antd37.ColorPicker,
|
|
55
55
|
Component: () => import_component.default,
|
|
56
56
|
ConfigProvider: () => import_config_provider.default,
|
|
57
57
|
CropPhoto: () => import_cropPhoto.default,
|
|
@@ -62,13 +62,13 @@ __export(src_exports, {
|
|
|
62
62
|
DataSourceTypography: () => import_dataSourceTypography.default,
|
|
63
63
|
DataSourceWrapper: () => import_dataSourceWrapper.default,
|
|
64
64
|
DatePicker: () => import_date_picker.default,
|
|
65
|
-
Descriptions: () =>
|
|
65
|
+
Descriptions: () => import_antd9.Descriptions,
|
|
66
66
|
Div: () => import_div.default,
|
|
67
|
-
Divider: () =>
|
|
67
|
+
Divider: () => import_antd10.Divider,
|
|
68
68
|
DragSortTree: () => import_drag_sort_tree.default,
|
|
69
69
|
Drawer: () => import_drawer.default,
|
|
70
70
|
Dropdown: () => import_dropdown.default,
|
|
71
|
-
Empty: () =>
|
|
71
|
+
Empty: () => import_antd11.Empty,
|
|
72
72
|
Filter: () => import_filter.default,
|
|
73
73
|
Form: () => import_form.default,
|
|
74
74
|
FormGroup: () => import_group.default,
|
|
@@ -81,21 +81,21 @@ __export(src_exports, {
|
|
|
81
81
|
FormItemSelect: () => import_Select.default,
|
|
82
82
|
FormItemTimePicker: () => import_TimePicker.default,
|
|
83
83
|
FormItemUpload: () => import_Upload.default,
|
|
84
|
-
Grid: () =>
|
|
84
|
+
Grid: () => import_antd12.Grid,
|
|
85
85
|
Icon: () => import_icon.default,
|
|
86
86
|
Iconfont: () => import_iconfont.default,
|
|
87
|
-
Image: () =>
|
|
87
|
+
Image: () => import_antd13.Image,
|
|
88
88
|
Input: () => import_input.default,
|
|
89
|
-
InputNumber: () =>
|
|
89
|
+
InputNumber: () => import_antd14.InputNumber,
|
|
90
90
|
InputNumberRange: () => import_input_number_range.default,
|
|
91
91
|
JsonWrapper: () => import_JsonWrapperProvider.default,
|
|
92
92
|
List: () => import_list.default,
|
|
93
93
|
LowCodePage: () => import_lowCodePage.default,
|
|
94
|
-
Mentions: () =>
|
|
95
|
-
Menu: () =>
|
|
94
|
+
Mentions: () => import_antd17.Mentions,
|
|
95
|
+
Menu: () => import_antd16.Menu,
|
|
96
96
|
Modal: () => import_modal.default,
|
|
97
97
|
Page: () => import_page.default,
|
|
98
|
-
Pagination: () =>
|
|
98
|
+
Pagination: () => import_antd20.Pagination,
|
|
99
99
|
PickerView: () => import_picker_view.default,
|
|
100
100
|
PisellAdjustPrice: () => import_pisellAdjustPrice.default,
|
|
101
101
|
PisellAdjustPriceInputNumber: () => import_PisellAdjustPriceInputNumber.default,
|
|
@@ -127,16 +127,16 @@ __export(src_exports, {
|
|
|
127
127
|
PisellTooltip: () => import_pisellTooltip.default,
|
|
128
128
|
PisellUpload: () => import_pisellUpload.default,
|
|
129
129
|
PisellWalletPassCard: () => import_pisellWalletPassCard.default,
|
|
130
|
-
Popconfirm: () =>
|
|
131
|
-
Popover: () =>
|
|
130
|
+
Popconfirm: () => import_antd21.Popconfirm,
|
|
131
|
+
Popover: () => import_antd22.Popover,
|
|
132
132
|
ProductCard: () => import_productCard.default,
|
|
133
|
-
Progress: () =>
|
|
133
|
+
Progress: () => import_antd23.Progress,
|
|
134
134
|
QRCode: () => import_qrcode.default,
|
|
135
135
|
Radio: () => import_radio.default,
|
|
136
|
-
Rate: () =>
|
|
136
|
+
Rate: () => import_antd24.Rate,
|
|
137
137
|
RecordView: () => import_record_view.default,
|
|
138
|
-
Result: () =>
|
|
139
|
-
Row: () =>
|
|
138
|
+
Result: () => import_antd25.Result,
|
|
139
|
+
Row: () => import_antd26.Row,
|
|
140
140
|
SectionFooters: () => import_section_footers2.default,
|
|
141
141
|
Segmented: () => import_segmented.default,
|
|
142
142
|
Select: () => import_select.default,
|
|
@@ -145,21 +145,21 @@ __export(src_exports, {
|
|
|
145
145
|
Slider: () => import_slider.default,
|
|
146
146
|
Sort: () => import_sort.default,
|
|
147
147
|
SortableList: () => import_sortableList.default,
|
|
148
|
-
Space: () =>
|
|
149
|
-
Spin: () =>
|
|
150
|
-
Statistic: () =>
|
|
151
|
-
Steps: () =>
|
|
148
|
+
Space: () => import_antd27.Space,
|
|
149
|
+
Spin: () => import_antd28.Spin,
|
|
150
|
+
Statistic: () => import_antd18.Statistic,
|
|
151
|
+
Steps: () => import_antd29.Steps,
|
|
152
152
|
SubmitButton: () => import_submitButton.default,
|
|
153
|
-
Switch: () =>
|
|
153
|
+
Switch: () => import_antd30.Switch,
|
|
154
154
|
Table: () => import_table.default,
|
|
155
155
|
Tabs: () => import_tabs.default,
|
|
156
|
-
Tag: () =>
|
|
156
|
+
Tag: () => import_antd33.Tag,
|
|
157
157
|
TimePicker: () => import_time_picker.default,
|
|
158
|
-
Timeline: () =>
|
|
159
|
-
Tooltip: () =>
|
|
160
|
-
Transfer: () =>
|
|
158
|
+
Timeline: () => import_antd34.Timeline,
|
|
159
|
+
Tooltip: () => import_antd35.Tooltip,
|
|
160
|
+
Transfer: () => import_antd31.Transfer,
|
|
161
161
|
Translation: () => import_translation.default,
|
|
162
|
-
Tree: () =>
|
|
162
|
+
Tree: () => import_antd32.Tree,
|
|
163
163
|
TreeSelect: () => import_tree_select.default,
|
|
164
164
|
Typography: () => import_typography.default,
|
|
165
165
|
Upload: () => import_upload.default,
|
|
@@ -168,11 +168,11 @@ __export(src_exports, {
|
|
|
168
168
|
WalletCard: () => import_walletCard.default,
|
|
169
169
|
getBankCardTypeImg: () => import_utils.getBankCardTypeImg,
|
|
170
170
|
globalConfig: () => import_context.globalConfig,
|
|
171
|
-
message: () =>
|
|
172
|
-
notification: () =>
|
|
171
|
+
message: () => import_antd15.message,
|
|
172
|
+
notification: () => import_antd19.notification,
|
|
173
173
|
sectionFooters: () => import_section_footers.default,
|
|
174
174
|
usePisellConfig: () => import_usePisellConfig.default,
|
|
175
|
-
version: () =>
|
|
175
|
+
version: () => import_antd36.version
|
|
176
176
|
});
|
|
177
177
|
module.exports = __toCommonJS(src_exports);
|
|
178
178
|
var import_antd = require("antd");
|
|
@@ -211,7 +211,7 @@ var import_antd33 = require("antd");
|
|
|
211
211
|
var import_antd34 = require("antd");
|
|
212
212
|
var import_antd35 = require("antd");
|
|
213
213
|
var import_antd36 = require("antd");
|
|
214
|
-
var
|
|
214
|
+
var import_badge = __toESM(require("./components/badge"));
|
|
215
215
|
var import_typography = __toESM(require("./components/typography"));
|
|
216
216
|
var import_buttonGroupEdit = __toESM(require("./components/buttonGroupEdit"));
|
|
217
217
|
var import_buttonGroupPreview = __toESM(require("./components/buttonGroupPreview"));
|
|
@@ -299,7 +299,7 @@ var import_collapse = __toESM(require("./components/collapse"));
|
|
|
299
299
|
var import_cardMetricItem = __toESM(require("./components/cardMetricItem"));
|
|
300
300
|
var import_walletCard = __toESM(require("./components/walletCard"));
|
|
301
301
|
var import_pisellUpload = __toESM(require("./components/pisellUpload"));
|
|
302
|
-
var
|
|
302
|
+
var import_antd37 = require("antd");
|
|
303
303
|
var import_dataSourceForm = __toESM(require("./components/dataSourceComponents/dataSourceForm"));
|
|
304
304
|
var import_group = __toESM(require("./components/dataSourceComponents/dataSourceForm/group"));
|
|
305
305
|
var import_submitButton = __toESM(require("./components/dataSourceComponents/dataSourceForm/submitButton"));
|
package/lib/locales/en-US.d.ts
CHANGED
|
@@ -151,5 +151,9 @@ declare const _default: {
|
|
|
151
151
|
'pisell-upload-setting-size-error': (maxSize: number) => string;
|
|
152
152
|
'pisell-upload-setting-type-error': (type: string) => string;
|
|
153
153
|
'pisell-upload-count-error': (count: number) => string;
|
|
154
|
+
'walletCard-points': string;
|
|
155
|
+
'walletCard-rechargeable': string;
|
|
156
|
+
'walletCard-voucher': string;
|
|
157
|
+
'walletCard-discount': string;
|
|
154
158
|
};
|
|
155
159
|
export default _default;
|
package/lib/locales/en-US.js
CHANGED
|
@@ -187,5 +187,9 @@ var en_US_default = {
|
|
|
187
187
|
"pisell-upload-button": "Upload",
|
|
188
188
|
"pisell-upload-setting-size-error": (maxSize) => `Each file should not exceed ${maxSize}MB in size.`,
|
|
189
189
|
"pisell-upload-setting-type-error": (type) => `${type} file type is not supported for upload.`,
|
|
190
|
-
"pisell-upload-count-error": (count) => `Please upload ${count} file
|
|
190
|
+
"pisell-upload-count-error": (count) => `Please upload ${count} file`,
|
|
191
|
+
"walletCard-points": "Points",
|
|
192
|
+
"walletCard-rechargeable": "Recharge",
|
|
193
|
+
"walletCard-voucher": "Voucher",
|
|
194
|
+
"walletCard-discount": "Discount"
|
|
191
195
|
};
|
package/lib/locales/zh-CN.d.ts
CHANGED
|
@@ -151,5 +151,9 @@ declare const _default: {
|
|
|
151
151
|
'pisell-upload-setting-size-error': (maxSize: number) => string;
|
|
152
152
|
'pisell-upload-setting-type-error': (type: string) => string;
|
|
153
153
|
'pisell-upload-count-error': (count: number) => string;
|
|
154
|
+
'walletCard-points': string;
|
|
155
|
+
'walletCard-rechargeable': string;
|
|
156
|
+
'walletCard-voucher': string;
|
|
157
|
+
'walletCard-discount': string;
|
|
154
158
|
};
|
|
155
159
|
export default _default;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -186,5 +186,9 @@ var zh_CN_default = {
|
|
|
186
186
|
"pisell-upload-button": "上传",
|
|
187
187
|
"pisell-upload-setting-size-error": (maxSize) => `每个文件的大小不超过${maxSize}MB`,
|
|
188
188
|
"pisell-upload-setting-type-error": (type) => `不支持上传${type}类型的文件`,
|
|
189
|
-
"pisell-upload-count-error": (count) => `请上传${count}
|
|
189
|
+
"pisell-upload-count-error": (count) => `请上传${count}个文件`,
|
|
190
|
+
"walletCard-points": "积分卡",
|
|
191
|
+
"walletCard-rechargeable": "充值卡",
|
|
192
|
+
"walletCard-voucher": "代金券",
|
|
193
|
+
"walletCard-discount": "折扣卡"
|
|
190
194
|
};
|
package/lib/locales/zh-TW.d.ts
CHANGED
|
@@ -151,5 +151,9 @@ declare const _default: {
|
|
|
151
151
|
'pisell-upload-setting-size-error': (maxSize: number) => string;
|
|
152
152
|
'pisell-upload-setting-type-error': (type: string) => string;
|
|
153
153
|
'pisell-upload-count-error': (count: number) => string;
|
|
154
|
+
'walletCard-points': string;
|
|
155
|
+
'walletCard-rechargeable': string;
|
|
156
|
+
'walletCard-voucher': string;
|
|
157
|
+
'walletCard-discount': string;
|
|
154
158
|
};
|
|
155
159
|
export default _default;
|
package/lib/locales/zh-TW.js
CHANGED
|
@@ -187,5 +187,9 @@ var zh_TW_default = {
|
|
|
187
187
|
"pisell-upload-button": "上傳",
|
|
188
188
|
"pisell-upload-setting-size-error": (maxSize) => `每個文件的大小不超過${maxSize}MB`,
|
|
189
189
|
"pisell-upload-setting-type-error": (type) => `不支持上傳${type}類型的文件`,
|
|
190
|
-
"pisell-upload-count-error": (count) => `請上傳${count}
|
|
190
|
+
"pisell-upload-count-error": (count) => `請上傳${count}個文件`,
|
|
191
|
+
"walletCard-points": "積分卡",
|
|
192
|
+
"walletCard-rechargeable": "充值卡",
|
|
193
|
+
"walletCard-voucher": "代金券",
|
|
194
|
+
"walletCard-discount": "折扣卡"
|
|
191
195
|
};
|
package/lowcode/badge/meta.ts
CHANGED
|
@@ -17,6 +17,14 @@ export default {
|
|
|
17
17
|
subName: "",
|
|
18
18
|
},
|
|
19
19
|
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'styleType',
|
|
22
|
+
title: { label: '样式选择', tip: '选择自定义的样式' },
|
|
23
|
+
propType: {
|
|
24
|
+
type: 'oneOf',
|
|
25
|
+
value: ['default', 'warning'],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
20
28
|
{
|
|
21
29
|
name: 'color',
|
|
22
30
|
title: { label: '圆点颜色', tip: '自定义小圆点的颜色' },
|
|
@@ -91,5 +99,6 @@ export default {
|
|
|
91
99
|
},
|
|
92
100
|
],
|
|
93
101
|
configure: {
|
|
94
|
-
supports: { style: true }
|
|
102
|
+
supports: { style: true }
|
|
103
|
+
},
|
|
95
104
|
};
|
package/lowcode/card/snippets.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
export default [
|
|
2
|
-
{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
2
|
+
// {
|
|
3
|
+
// title: '卡片',
|
|
4
|
+
// screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/card-1.png',
|
|
5
|
+
// schema: {
|
|
6
|
+
// componentName: 'Card',
|
|
7
|
+
// props: {
|
|
8
|
+
// title: 'Default size card',
|
|
9
|
+
// },
|
|
10
|
+
// },
|
|
11
|
+
// },
|
|
12
|
+
// {
|
|
13
|
+
// title: '卡片2',
|
|
14
|
+
// screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/card-1.png',
|
|
15
|
+
// schema: {
|
|
16
|
+
// "componentName": "Card",
|
|
17
|
+
// "id": "node_ocljnoao28d",
|
|
18
|
+
// "props": {
|
|
19
|
+
// "title": "Default size card",
|
|
20
|
+
// "bordered": true,
|
|
21
|
+
// "hoverable": false,
|
|
22
|
+
// "loading": false,
|
|
23
|
+
// "size": "default",
|
|
24
|
+
// "type": "default"
|
|
25
|
+
// },
|
|
26
|
+
// "hidden": false,
|
|
27
|
+
// "title": "",
|
|
28
|
+
// "isLocked": false,
|
|
29
|
+
// "ignore": true,
|
|
30
|
+
// "condition": true,
|
|
31
|
+
// "conditionGroup": "",
|
|
32
|
+
// "children": [
|
|
33
|
+
// {
|
|
34
|
+
// "componentName": "Typography.Text",
|
|
35
|
+
// "id": "node_ocljnoao28f",
|
|
36
|
+
// "props": {
|
|
37
|
+
// "children": "text12212",
|
|
38
|
+
// "code": false,
|
|
39
|
+
// "delete": false,
|
|
40
|
+
// "disabled": false,
|
|
41
|
+
// "mark": false,
|
|
42
|
+
// "keyboard": false,
|
|
43
|
+
// "underline": false,
|
|
44
|
+
// "strong": false
|
|
45
|
+
// },
|
|
46
|
+
// "hidden": false,
|
|
47
|
+
// "title": "",
|
|
48
|
+
// "isLocked": true,
|
|
49
|
+
// "locked": true,
|
|
50
|
+
// "ignore": true,
|
|
51
|
+
// "condition": true,
|
|
52
|
+
// "conditionGroup": ""
|
|
53
|
+
// }
|
|
54
|
+
// ]
|
|
55
|
+
// },
|
|
56
|
+
// },
|
|
57
57
|
|
|
58
58
|
];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { set } from "../_utils/utils";
|
|
1
2
|
import snippets from "./snippets";
|
|
2
3
|
|
|
3
4
|
export default {
|
|
@@ -18,12 +19,12 @@ export default {
|
|
|
18
19
|
},
|
|
19
20
|
experimental: { hideSelectTools: true },
|
|
20
21
|
props: [
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
22
|
+
// {
|
|
23
|
+
// name: "title",
|
|
24
|
+
// title: { label: "卡片标题", tip: "卡片标题" },
|
|
25
|
+
// propType: { type: "oneOfType", value: ["string", "node"] },
|
|
26
|
+
// setter: ['PisellI18nSetter', 'SlotSetter']
|
|
27
|
+
// },
|
|
27
28
|
// {
|
|
28
29
|
// name: 'actions',
|
|
29
30
|
// title: { label: '卡片操作组', tip: '卡片操作组,位置在卡片底部' },
|
|
@@ -46,22 +47,28 @@ export default {
|
|
|
46
47
|
defaultValue: true,
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
|
-
name: "
|
|
50
|
-
title: { label: "
|
|
51
|
-
propType: "node",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: "extra",
|
|
55
|
-
title: { label: "额外元素", tip: "卡片右上角的操作区域" },
|
|
56
|
-
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
57
|
-
setter: ['PisellI18nSetter', 'SlotSetter']
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: "hoverable",
|
|
61
|
-
title: { label: "可浮起", tip: "鼠标移过时可浮起" },
|
|
50
|
+
name: "selected",
|
|
51
|
+
title: { label: "是否选中", tip: "是否选中" },
|
|
62
52
|
propType: "bool",
|
|
63
53
|
defaultValue: false,
|
|
64
54
|
},
|
|
55
|
+
// {
|
|
56
|
+
// name: "cover",
|
|
57
|
+
// title: { label: "卡片封面", tip: "卡片封面" },
|
|
58
|
+
// propType: "node",
|
|
59
|
+
// },
|
|
60
|
+
// {
|
|
61
|
+
// name: "extra",
|
|
62
|
+
// title: { label: "额外元素", tip: "卡片右上角的操作区域" },
|
|
63
|
+
// propType: { type: "oneOfType", value: ["string", "node"] },
|
|
64
|
+
// setter: ['PisellI18nSetter', 'SlotSetter']
|
|
65
|
+
// },
|
|
66
|
+
// {
|
|
67
|
+
// name: "hoverable",
|
|
68
|
+
// title: { label: "可浮起", tip: "鼠标移过时可浮起" },
|
|
69
|
+
// propType: "bool",
|
|
70
|
+
// defaultValue: false,
|
|
71
|
+
// },
|
|
65
72
|
{
|
|
66
73
|
name: "loading",
|
|
67
74
|
title: {
|
|
@@ -72,17 +79,46 @@ export default {
|
|
|
72
79
|
defaultValue: false,
|
|
73
80
|
},
|
|
74
81
|
{
|
|
75
|
-
name: "
|
|
76
|
-
title: {
|
|
77
|
-
|
|
78
|
-
|
|
82
|
+
name: "disabled",
|
|
83
|
+
title: {
|
|
84
|
+
label: "是否禁用",
|
|
85
|
+
tip: "是否禁用该卡片",
|
|
86
|
+
},
|
|
87
|
+
propType: "bool",
|
|
88
|
+
defaultValue: false,
|
|
79
89
|
},
|
|
80
90
|
{
|
|
81
|
-
name: "
|
|
82
|
-
title: {
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
name: "padding",
|
|
92
|
+
title: {
|
|
93
|
+
label: "内边距",
|
|
94
|
+
tip: "控制内边距大小 数值",
|
|
95
|
+
},
|
|
96
|
+
propType: "number",
|
|
97
|
+
setter: "NumberSetter",
|
|
98
|
+
defaultValue: 16
|
|
85
99
|
},
|
|
100
|
+
{
|
|
101
|
+
name: "borderRadius",
|
|
102
|
+
title: {
|
|
103
|
+
label: "边框圆角",
|
|
104
|
+
tip: "控制四个圆角大小 数值",
|
|
105
|
+
},
|
|
106
|
+
propType: "number",
|
|
107
|
+
setter: "NumberSetter",
|
|
108
|
+
defaultValue: 12
|
|
109
|
+
}
|
|
110
|
+
// {
|
|
111
|
+
// name: "size",
|
|
112
|
+
// title: { label: "尺寸", tip: "card 的尺寸" },
|
|
113
|
+
// propType: { type: "oneOf", value: ["default", "small"] },
|
|
114
|
+
// defaultValue: "default",
|
|
115
|
+
// },
|
|
116
|
+
// {
|
|
117
|
+
// name: "type",
|
|
118
|
+
// title: { label: "卡片类型", tip: "卡片类型" },
|
|
119
|
+
// propType: { type: "oneOf", value: ["default", "inner"] },
|
|
120
|
+
// defaultValue: "default",
|
|
121
|
+
// },
|
|
86
122
|
],
|
|
87
123
|
configure: {
|
|
88
124
|
component: { isContainer: true },
|
|
@@ -94,12 +94,12 @@ export default {
|
|
|
94
94
|
items: [
|
|
95
95
|
{
|
|
96
96
|
title: 'icon',
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
name: "icon",
|
|
98
|
+
propType: "node",
|
|
99
|
+
setter: {
|
|
100
|
+
componentName: "SlotSetter",
|
|
101
|
+
initialValue: {
|
|
102
|
+
type: "JSSlot",
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
105
|
},
|
|
@@ -131,42 +131,53 @@ export default {
|
|
|
131
131
|
tip: "是否显示二维码/一维码 布尔值"
|
|
132
132
|
},
|
|
133
133
|
setter: "BoolSetter",
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
{
|
|
137
|
+
name: "items",
|
|
138
|
+
title: "显示数据项",
|
|
139
|
+
setter: {
|
|
140
|
+
componentName: "ArraySetter",
|
|
141
|
+
props: {
|
|
142
|
+
itemSetter: {
|
|
143
|
+
componentName: "ObjectSetter",
|
|
144
|
+
props: {
|
|
145
|
+
config: {
|
|
146
|
+
items: [
|
|
147
|
+
{
|
|
148
|
+
name: "key",
|
|
149
|
+
propType: 'string',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: "label",
|
|
153
|
+
title: "标题",
|
|
154
|
+
propType: 'string',
|
|
155
|
+
setter: 'StringSetter',
|
|
156
|
+
isRequired: true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "hidden",
|
|
160
|
+
title: "是否隐藏",
|
|
161
|
+
setter: "BoolSetter",
|
|
162
|
+
initialValue: false,
|
|
163
|
+
supportVariable: true,
|
|
164
|
+
isRequired: true
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
initialValue: () => {
|
|
170
|
+
return {
|
|
171
|
+
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
},
|
|
175
|
+
},
|
|
167
176
|
},
|
|
168
|
-
setter: "BoolSetter",
|
|
169
177
|
},
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
170
181
|
]
|
|
171
182
|
}
|
|
172
183
|
],
|
|
@@ -19,7 +19,26 @@ export default [
|
|
|
19
19
|
coupon: true,
|
|
20
20
|
vouCher: true,
|
|
21
21
|
discountCard: true,
|
|
22
|
-
codeDirection: 'bottom'
|
|
22
|
+
codeDirection: 'bottom',
|
|
23
|
+
items: [
|
|
24
|
+
{
|
|
25
|
+
key: 'rechargeable',
|
|
26
|
+
label: '充值卡',
|
|
27
|
+
hidden: false
|
|
28
|
+
}, {
|
|
29
|
+
key: 'discount',
|
|
30
|
+
label: '折扣卡',
|
|
31
|
+
hidden: false
|
|
32
|
+
}, {
|
|
33
|
+
key: 'voucher',
|
|
34
|
+
label: '代金券',
|
|
35
|
+
hidden: false
|
|
36
|
+
}, {
|
|
37
|
+
key: 'points',
|
|
38
|
+
label: '积分卡',
|
|
39
|
+
hidden: false
|
|
40
|
+
},
|
|
41
|
+
]
|
|
23
42
|
},
|
|
24
43
|
},
|
|
25
44
|
},
|