@pisell/materials 6.0.18 → 6.0.20
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 +51 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +51 -20
- package/es/components/badge/index.d.ts +7 -0
- package/es/components/badge/index.js +44 -0
- package/es/components/badge/index.less +2 -0
- package/es/components/buttonGroupEdit/index.d.ts +8 -0
- package/es/components/buttonGroupEdit/index.js +408 -0
- package/es/components/buttonGroupPreview/index.d.ts +19 -0
- package/es/components/buttonGroupPreview/index.js +74 -0
- package/es/components/cardMetricItem/index.d.ts +12 -0
- package/es/components/cardMetricItem/index.js +39 -0
- package/es/components/cardMetricItem/index.less +39 -0
- package/es/components/cardPro/index.d.ts +3 -0
- package/es/components/cardPro/index.js +66 -0
- package/es/components/cardPro/index.less +55 -0
- package/es/components/cropPhoto/index.d.ts +3 -0
- package/es/components/cropPhoto/index.js +72 -0
- package/es/components/cropPhoto/index.less +15 -0
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +13 -3
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +24 -1
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +31 -3
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +31 -3
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.less +2 -0
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +102 -141
- package/es/components/dataSourceComponents/fields/Upload/WithMode.js +6 -3
- package/es/components/dataSourceComponents/fields/Upload/serve.js +13 -3
- package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
- package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.js +396 -0
- package/es/components/dataSourceComponents/fields/Upload/type.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/Upload/utils.js +17 -2
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
- package/es/components/dataSourceComponents/hooks/usePlatform.js +12 -0
- package/es/components/login-and-register/index.js +23 -21
- package/es/components/login-and-register/index.less +7 -7
- package/es/components/page/index.js +23 -57
- package/es/components/pisellAnchor/index.d.ts +23 -0
- package/es/components/pisellAnchor/index.js +303 -0
- package/es/components/pisellAnchor/index.less +197 -0
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +18 -2
- package/es/components/pisellQrcode/index.d.ts +10 -0
- package/es/components/pisellQrcode/index.js +70 -0
- package/es/components/pisellQrcode/index.less +41 -0
- package/es/components/pisellStatisticList/index.d.ts +3 -0
- package/es/components/pisellStatisticList/index.js +17 -5
- package/es/components/pisellStatisticList/index.less +1 -1
- package/es/components/pisellText/components/Amount/index.d.ts +2 -0
- package/es/components/pisellText/components/Amount/index.js +3 -2
- package/es/components/pisellWalletPassCard/index.d.ts +4 -4
- package/es/components/pisellWalletPassCard/index.js +28 -12
- package/es/components/pisellWalletPassCard/index.less +26 -4
- package/es/components/record-view/index.d.ts +13 -5
- package/es/components/record-view/index.js +81 -30
- package/es/components/record-view/index.less +37 -2
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/tabs/index.d.ts +1 -0
- package/es/components/tabs/index.js +25 -7
- package/es/components/tabs/index.less +5 -5
- package/es/components/walletCard/Guest/index.d.ts +3 -0
- package/es/components/walletCard/Guest/index.js +83 -0
- package/es/components/walletCard/Guest/index.less +71 -0
- package/es/components/walletCard/index.d.ts +65 -0
- package/es/components/walletCard/index.js +402 -0
- package/es/components/walletCard/index.less +267 -0
- package/es/index.d.ts +10 -1
- package/es/index.js +10 -1
- package/es/locales/en-US.d.ts +38 -2
- package/es/locales/en-US.js +55 -10
- package/es/locales/index.js +4 -2
- package/es/locales/zh-CN.d.ts +36 -0
- package/es/locales/zh-CN.js +41 -1
- package/es/locales/zh-TW.d.ts +36 -0
- package/es/locales/zh-TW.js +41 -1
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +3 -0
- package/es/utils/platform.d.ts +1 -1
- package/lib/components/badge/index.d.ts +7 -0
- package/lib/components/badge/index.js +70 -0
- package/lib/components/badge/index.less +2 -0
- package/lib/components/buttonGroupEdit/index.d.ts +8 -0
- package/lib/components/buttonGroupEdit/index.js +317 -0
- package/lib/components/buttonGroupPreview/index.d.ts +19 -0
- package/lib/components/buttonGroupPreview/index.js +79 -0
- package/lib/components/cardMetricItem/index.d.ts +12 -0
- package/lib/components/cardMetricItem/index.js +75 -0
- package/lib/components/cardMetricItem/index.less +39 -0
- package/lib/components/cardPro/index.d.ts +3 -0
- package/lib/components/cardPro/index.js +98 -0
- package/lib/components/cardPro/index.less +55 -0
- package/lib/components/cropPhoto/index.d.ts +3 -0
- package/lib/components/cropPhoto/index.js +70 -0
- package/lib/components/cropPhoto/index.less +15 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +12 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/lib/components/dataSourceComponents/fields/Input/WithMode.js +21 -0
- package/lib/components/dataSourceComponents/fields/Input.Mobile/serve.js +37 -3
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.js +37 -3
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.less +2 -0
- package/lib/components/dataSourceComponents/fields/Upload/BaseUpload.js +47 -72
- package/lib/components/dataSourceComponents/fields/Upload/WithMode.js +11 -9
- package/lib/components/dataSourceComponents/fields/Upload/serve.js +11 -2
- package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.d.ts +56 -0
- package/lib/components/dataSourceComponents/fields/Upload/shopUploadServe.js +247 -0
- package/lib/components/dataSourceComponents/fields/Upload/type.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/Upload/utils.js +17 -2
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/dataSourceComponents/hooks/usePlatform.d.ts +3 -0
- package/lib/components/dataSourceComponents/hooks/usePlatform.js +51 -0
- package/lib/components/login-and-register/index.js +23 -21
- package/lib/components/login-and-register/index.less +7 -7
- package/lib/components/page/index.js +37 -65
- package/lib/components/pisellAnchor/index.d.ts +23 -0
- package/lib/components/pisellAnchor/index.js +251 -0
- package/lib/components/pisellAnchor/index.less +197 -0
- package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +24 -3
- package/lib/components/pisellQrcode/index.d.ts +10 -0
- package/lib/components/pisellQrcode/index.js +82 -0
- package/lib/components/pisellQrcode/index.less +41 -0
- package/lib/components/pisellStatisticList/index.d.ts +3 -0
- package/lib/components/pisellStatisticList/index.js +35 -15
- package/lib/components/pisellStatisticList/index.less +1 -1
- package/lib/components/pisellText/components/Amount/index.d.ts +2 -0
- package/lib/components/pisellText/components/Amount/index.js +2 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +4 -4
- package/lib/components/pisellWalletPassCard/index.js +17 -9
- package/lib/components/pisellWalletPassCard/index.less +26 -4
- package/lib/components/record-view/index.d.ts +13 -5
- package/lib/components/record-view/index.js +63 -11
- package/lib/components/record-view/index.less +37 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/tabs/index.d.ts +1 -0
- package/lib/components/tabs/index.js +12 -1
- package/lib/components/tabs/index.less +5 -5
- package/lib/components/walletCard/Guest/index.d.ts +3 -0
- package/lib/components/walletCard/Guest/index.js +138 -0
- package/lib/components/walletCard/Guest/index.less +71 -0
- package/lib/components/walletCard/index.d.ts +65 -0
- package/lib/components/walletCard/index.js +374 -0
- package/lib/components/walletCard/index.less +267 -0
- package/lib/index.d.ts +10 -1
- package/lib/index.js +26 -1
- package/lib/locales/en-US.d.ts +38 -2
- package/lib/locales/en-US.js +41 -3
- package/lib/locales/index.js +4 -2
- package/lib/locales/zh-CN.d.ts +36 -0
- package/lib/locales/zh-CN.js +41 -1
- package/lib/locales/zh-TW.d.ts +36 -0
- package/lib/locales/zh-TW.js +41 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +6 -1
- package/lib/utils/platform.d.ts +1 -1
- package/lowcode/badge/meta.ts +20 -11
- package/lowcode/badge/snippets.ts +2 -0
- package/lowcode/button/meta.ts +2 -6
- package/lowcode/button-group/meta.ts +198 -0
- package/lowcode/button-group/snippets.ts +68 -0
- package/lowcode/button-group-edit/meta.ts +32 -0
- package/lowcode/button-group-edit/snippets.ts +98 -0
- package/lowcode/button-group-preview/meta.ts +55 -0
- package/lowcode/button-group-preview/snippets.ts +57 -0
- package/lowcode/card/snippets.ts +55 -55
- package/lowcode/card-metric-item/meta.ts +83 -0
- package/lowcode/card-metric-item/snippets.ts +13 -0
- package/lowcode/card-pro/meta.ts +338 -0
- package/lowcode/card-pro/snippe.ts +39 -0
- package/lowcode/crop-photo/meta.ts +77 -0
- package/lowcode/crop-photo/snippe.ts +12 -0
- package/lowcode/form-item-input/snippets.ts +1 -1
- package/lowcode/form-item-upload/meta.ts +11 -0
- package/lowcode/pisell-anchor/meta.ts +118 -0
- package/lowcode/pisell-anchor/snippets.ts +26 -0
- package/lowcode/pisell-card/meta.ts +63 -27
- package/lowcode/pisell-card/snippets.ts +6 -0
- package/lowcode/pisell-modal.information/meta.ts +8 -0
- package/lowcode/pisell-qrcode/__screenshots__/upload-1.png +0 -0
- package/lowcode/pisell-qrcode/meta.ts +46 -0
- package/lowcode/pisell-qrcode/snippets.ts +13 -0
- package/lowcode/pisell-tooltip/meta.ts +1 -1
- package/lowcode/record-view/meta.ts +20 -0
- package/lowcode/section-footers/meta.ts +66 -0
- package/lowcode/section-footers/snippe.ts +21 -0
- package/lowcode/spin/meta.ts +9 -0
- package/lowcode/tag/meta.ts +6 -0
- package/lowcode/timeline/meta.ts +32 -9
- package/lowcode/timeline/snippets.ts +12 -2
- package/lowcode/timeline.item/meta.ts +1 -1
- package/lowcode/wallet-card/meta.ts +283 -0
- package/lowcode/wallet-card/snippets.ts +44 -0
- package/package.json +5 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import snippets from './snippe';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'CropPhoto',
|
|
6
|
+
title: '图片裁切',
|
|
7
|
+
category: '通用',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "CropPhoto",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'cropShape',
|
|
22
|
+
title: '裁剪框形状',
|
|
23
|
+
propType: {
|
|
24
|
+
type: 'oneOf',
|
|
25
|
+
value: ['rect', 'round'],
|
|
26
|
+
},
|
|
27
|
+
defaultValue: 'rect',
|
|
28
|
+
setter: [
|
|
29
|
+
{
|
|
30
|
+
componentName: 'RadioGroupSetter',
|
|
31
|
+
props: {
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
title: '正方形',
|
|
35
|
+
value: 'rect',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: '圆形',
|
|
39
|
+
value: 'round',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
'VariableSetter',
|
|
45
|
+
],
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
configure: {
|
|
50
|
+
component: { isContainer: true },
|
|
51
|
+
supports: {
|
|
52
|
+
style: true,
|
|
53
|
+
events: [
|
|
54
|
+
{
|
|
55
|
+
name: 'onChange',
|
|
56
|
+
template:
|
|
57
|
+
"onChange({file,fileList,event},${extParams}){\n// 上传文件改变时的回调\nconsole.log('onChange',file,fileList,event);}",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'onPreview',
|
|
61
|
+
template:
|
|
62
|
+
"onPreview(file,${extParams}){\n// 点击文件链接或预览图标时的回调\nconsole.log('onPreview',file);}",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: 'onRemove',
|
|
66
|
+
template:
|
|
67
|
+
"onRemove(file,${extParams}){\n// 点击移除文件时的回调\nconsole.log('onRemove',file);}",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'onDownload',
|
|
71
|
+
template:
|
|
72
|
+
"onDownload(file,${extParams}){\n// 点击下载文件时的回调\nconsole.log('onDownload',file);}",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
@@ -182,6 +182,17 @@ export default {
|
|
|
182
182
|
setter: {
|
|
183
183
|
componentName: 'PisellMediaPresetTypeSetter',
|
|
184
184
|
},
|
|
185
|
+
extraProps: {
|
|
186
|
+
setValue(target: any, values: any) {
|
|
187
|
+
const { value, options } = values;
|
|
188
|
+
const presetTypeString: any[] = [];
|
|
189
|
+
options.forEach((item: any) => {
|
|
190
|
+
presetTypeString.push(...(item.extensions || []).map((item: any) => `.${item}`));
|
|
191
|
+
});
|
|
192
|
+
target.getProps().setPropValue('presetTypeString', presetTypeString);
|
|
193
|
+
target.getProps().setPropValue('presetType', value);
|
|
194
|
+
},
|
|
195
|
+
},
|
|
185
196
|
},
|
|
186
197
|
{
|
|
187
198
|
name: 'enableCustomType',
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { IPublicTypeComponentMetadata } from '@alilc/lowcode-types';
|
|
2
|
+
import { uuid } from '../_utils/utils';
|
|
3
|
+
|
|
4
|
+
import snippets from "./snippets";
|
|
5
|
+
|
|
6
|
+
const AnchorMeta: IPublicTypeComponentMetadata = {
|
|
7
|
+
componentName: "PisellAnchor",
|
|
8
|
+
title: "锚点导航",
|
|
9
|
+
category: "导航",
|
|
10
|
+
docUrl: "",
|
|
11
|
+
screenshot: "",
|
|
12
|
+
devMode: "proCode",
|
|
13
|
+
npm: {
|
|
14
|
+
package: "@pisell/materials",
|
|
15
|
+
version: "1.0.1",
|
|
16
|
+
exportName: "PisellAnchor",
|
|
17
|
+
main: "src/index.tsx",
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: "",
|
|
20
|
+
},
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
name: 'options',
|
|
24
|
+
title: { label: '选项列表', tip: '导航选项列表' },
|
|
25
|
+
propType: {
|
|
26
|
+
type: 'arrayOf',
|
|
27
|
+
value: {
|
|
28
|
+
type: 'shape',
|
|
29
|
+
value: [
|
|
30
|
+
{
|
|
31
|
+
name: 'id',
|
|
32
|
+
propType: 'string',
|
|
33
|
+
description: '选项ID',
|
|
34
|
+
defaultValue: '',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'name',
|
|
38
|
+
propType: 'node',
|
|
39
|
+
description: '选项名称',
|
|
40
|
+
defaultValue: '',
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
setter: {
|
|
46
|
+
componentName: 'ArraySetter',
|
|
47
|
+
props: {
|
|
48
|
+
itemSetter: {
|
|
49
|
+
componentName: 'ObjectSetter',
|
|
50
|
+
props: {
|
|
51
|
+
config: {
|
|
52
|
+
items: [
|
|
53
|
+
{
|
|
54
|
+
name: 'id',
|
|
55
|
+
title: '选项ID',
|
|
56
|
+
setter: 'StringSetter',
|
|
57
|
+
isRequired: true
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'name',
|
|
61
|
+
title: '选项名称',
|
|
62
|
+
setter: ['StringSetter', 'ExpressionSetter'],
|
|
63
|
+
isRequired: true
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
initialValue: () => {
|
|
69
|
+
const id = uuid();
|
|
70
|
+
return {
|
|
71
|
+
id,
|
|
72
|
+
name: `选项${id}`,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'tab',
|
|
81
|
+
title: { label: '当前选中项', tip: '当前选中的选项ID' },
|
|
82
|
+
propType: 'string',
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'className',
|
|
86
|
+
title: { label: '自定义类名', tip: '自定义类名' },
|
|
87
|
+
propType: 'string',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'style',
|
|
91
|
+
title: { label: '自定义样式', tip: '自定义样式' },
|
|
92
|
+
propType: 'object',
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
configure: {
|
|
96
|
+
supports: {
|
|
97
|
+
style: true,
|
|
98
|
+
events: [
|
|
99
|
+
{
|
|
100
|
+
name: "onChange",
|
|
101
|
+
template:
|
|
102
|
+
"onChange(key){\n// 选项切换时的回调\nconsole.log('onChange', key);}",
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
component: {
|
|
107
|
+
isContainer: false,
|
|
108
|
+
nestingRule: {
|
|
109
|
+
childWhitelist: []
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export default {
|
|
116
|
+
...AnchorMeta,
|
|
117
|
+
snippets,
|
|
118
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '锚点导航',
|
|
4
|
+
screenshot: '',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellAnchor',
|
|
7
|
+
props: {
|
|
8
|
+
options: [
|
|
9
|
+
{
|
|
10
|
+
id: '1',
|
|
11
|
+
name: '选项1'
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: '2',
|
|
15
|
+
name: '选项2'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: '3',
|
|
19
|
+
name: '选项3'
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
tab: '1'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
];
|
|
@@ -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 },
|
|
@@ -82,6 +82,14 @@ export default {
|
|
|
82
82
|
title: { label: "取消按钮配置", tip: "详见 antd Modal cancelButtonProps" },
|
|
83
83
|
setter: [ "JSONSetter"],
|
|
84
84
|
},
|
|
85
|
+
{
|
|
86
|
+
name: "destroyOnClose",
|
|
87
|
+
title: { label: "销毁子元素", tip: "关闭时销毁 Modal 里的子元素" },
|
|
88
|
+
propType: "bool",
|
|
89
|
+
defaultValue: false,
|
|
90
|
+
setter: "BoolSetter",
|
|
91
|
+
supportVariable: true,
|
|
92
|
+
},
|
|
85
93
|
],
|
|
86
94
|
configure: {
|
|
87
95
|
component: {
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellQrcode',
|
|
6
|
+
title: '二维码预览',
|
|
7
|
+
category: '通用',
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "PisellQrcode",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'size',
|
|
22
|
+
title: '二维码尺寸',
|
|
23
|
+
propType: 'number'
|
|
24
|
+
}, {
|
|
25
|
+
name: 'platform',
|
|
26
|
+
title: 'PC端&移动端',
|
|
27
|
+
setter: {
|
|
28
|
+
componentName: 'RadioGroupSetter',
|
|
29
|
+
props: {
|
|
30
|
+
options: [
|
|
31
|
+
{ title: 'PC端', value: 'pc' },
|
|
32
|
+
{ title: 'h5', value: 'h5' },
|
|
33
|
+
{ title: 'ipad', value: 'ipad' },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
configure: {
|
|
40
|
+
component: { isContainer: true },
|
|
41
|
+
supports: {
|
|
42
|
+
style: true,
|
|
43
|
+
events: [],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
};
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
tip: 'title | 提示文字',
|
|
30
30
|
},
|
|
31
31
|
propType: { type: 'oneOfType', value: ['string', 'node'] },
|
|
32
|
-
setter: ['PisellI18nSetter', 'SlotSetter', 'VariableSetter'],
|
|
32
|
+
setter: ['PisellI18nSetter', 'SlotSetter', 'VariableSetter', 'StringSetter',],
|
|
33
33
|
},
|
|
34
34
|
],
|
|
35
35
|
},
|
|
@@ -207,6 +207,14 @@ const DivMeta: ComponentMetadata = {
|
|
|
207
207
|
},
|
|
208
208
|
},
|
|
209
209
|
},
|
|
210
|
+
{
|
|
211
|
+
name: "doubleList",
|
|
212
|
+
title: {
|
|
213
|
+
label: "双重列表",
|
|
214
|
+
tip: "doubleList | 双重列表",
|
|
215
|
+
},
|
|
216
|
+
propType: "bool",
|
|
217
|
+
},
|
|
210
218
|
{
|
|
211
219
|
name: "search",
|
|
212
220
|
title: {
|
|
@@ -223,6 +231,18 @@ const DivMeta: ComponentMetadata = {
|
|
|
223
231
|
},
|
|
224
232
|
propType: "bool",
|
|
225
233
|
},
|
|
234
|
+
|
|
235
|
+
{
|
|
236
|
+
name: "pcDetailModalWidth",
|
|
237
|
+
title: {
|
|
238
|
+
label: "详情弹窗展示_(PC端) 宽度值",
|
|
239
|
+
tip: "pcDetailModalWidth | 详情弹窗展示_(PC端) 宽度值",
|
|
240
|
+
},
|
|
241
|
+
propType: "number",
|
|
242
|
+
condition: (target: any) => target.getProps().getPropValue('pcDetailModalDisplay')
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
|
|
226
246
|
{
|
|
227
247
|
name: "padDetailModalDisplay",
|
|
228
248
|
title: {
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import snippets from "./snippe";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "SectionFooters",
|
|
6
|
+
title: "底部内容区块",
|
|
7
|
+
category: "通用",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "SectionFooters",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'left',
|
|
22
|
+
title: { label: '左边插槽', tip: '左边插槽' },
|
|
23
|
+
propType: 'node',
|
|
24
|
+
setter: {
|
|
25
|
+
componentName: 'SlotSetter',
|
|
26
|
+
initialValue: {
|
|
27
|
+
type: 'JSSlot',
|
|
28
|
+
value: [],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
}, {
|
|
32
|
+
name: 'middle',
|
|
33
|
+
title: { label: '中间插槽', tip: '中间插槽' },
|
|
34
|
+
propType: 'node',
|
|
35
|
+
setter: {
|
|
36
|
+
componentName: 'SlotSetter',
|
|
37
|
+
initialValue: {
|
|
38
|
+
type: 'JSSlot',
|
|
39
|
+
value: [],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
}, {
|
|
43
|
+
name: 'right',
|
|
44
|
+
title: { label: '右边插槽', tip: '右边插槽' },
|
|
45
|
+
propType: 'node',
|
|
46
|
+
setter: {
|
|
47
|
+
componentName: 'SlotSetter',
|
|
48
|
+
initialValue: {
|
|
49
|
+
type: 'JSSlot',
|
|
50
|
+
value: [],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
}],
|
|
54
|
+
|
|
55
|
+
supports: {
|
|
56
|
+
style: true,
|
|
57
|
+
events: [
|
|
58
|
+
{
|
|
59
|
+
name: 'onChange',
|
|
60
|
+
template:
|
|
61
|
+
"onChange(event,${extParams}){\n// 选项变化时的回调函数\nconsole.log('onChange',event);}",
|
|
62
|
+
},
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"component": {}
|
|
66
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '底部内容区块',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'SectionFooters',
|
|
6
|
+
props: {
|
|
7
|
+
left: {
|
|
8
|
+
type: "JSSlot",
|
|
9
|
+
value: [],
|
|
10
|
+
},
|
|
11
|
+
middle: {
|
|
12
|
+
type: "JSSlot",
|
|
13
|
+
value: [],
|
|
14
|
+
},
|
|
15
|
+
right: {
|
|
16
|
+
type: "JSSlot",
|
|
17
|
+
value: [],
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}]
|
package/lowcode/spin/meta.ts
CHANGED
|
@@ -27,6 +27,15 @@ export default {
|
|
|
27
27
|
title: { label: '加载指示符', tip: '加载指示符' },
|
|
28
28
|
propType: 'node',
|
|
29
29
|
},
|
|
30
|
+
{
|
|
31
|
+
name: 'fullscreen',
|
|
32
|
+
title: {
|
|
33
|
+
label: '全屏',
|
|
34
|
+
tip: '是否全屏加载',
|
|
35
|
+
},
|
|
36
|
+
propType: 'bool',
|
|
37
|
+
defaultValue: false,
|
|
38
|
+
},
|
|
30
39
|
{
|
|
31
40
|
name: 'size',
|
|
32
41
|
title: {
|
package/lowcode/tag/meta.ts
CHANGED
|
@@ -44,6 +44,12 @@ export default {
|
|
|
44
44
|
title: { label: '关闭时的回调', tip: '关闭时的回调' },
|
|
45
45
|
propType: 'func',
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
name: 'bordered',
|
|
49
|
+
title: { label: '是否显示边框', tip: '是否显示边框' },
|
|
50
|
+
propType: 'bool',
|
|
51
|
+
defaultValue: true,
|
|
52
|
+
},
|
|
47
53
|
// {
|
|
48
54
|
// name: 'visible',
|
|
49
55
|
// title: { label: '是否显示标签', tip: '是否显示标签' },
|