@pisell/materials 1.0.1057 → 1.0.1059
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 +3 -3
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/PisellCards/index.d.ts +3 -0
- package/es/components/PisellCards/index.js +3 -1
- package/es/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/es/components/PisellContactBrief/PisellContactBrief.js +223 -0
- package/es/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/es/components/PisellContactBrief/PisellContactBrief.stories.js +196 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/es/components/PisellContactBrief/components/ContactFormModal.js +177 -0
- package/es/components/PisellContactBrief/components/index.d.ts +5 -0
- package/es/components/PisellContactBrief/components/index.js +4 -0
- package/es/components/PisellContactBrief/index.d.ts +6 -0
- package/es/components/PisellContactBrief/index.js +5 -0
- package/es/components/PisellContactBrief/locales.d.ts +55 -0
- package/es/components/PisellContactBrief/locales.js +54 -0
- package/es/components/PisellContactBrief/types.d.ts +82 -0
- package/es/components/PisellContactBrief/types.js +1 -0
- package/es/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/es/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/es/components/pisellActionPanel/PisellActionPanel.js +98 -0
- package/es/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/es/components/pisellActionPanel/PisellActionPanel.stories.js +208 -0
- package/es/components/pisellActionPanel/index.d.ts +6 -0
- package/es/components/pisellActionPanel/index.js +5 -0
- package/es/components/pisellActionPanel/types.d.ts +83 -0
- package/es/components/pisellActionPanel/types.js +1 -0
- package/es/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/es/components/pisellBaseCard/PisellBaseCard.js +96 -0
- package/es/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/es/components/pisellBaseCard/PisellBaseCard.stories.js +99 -0
- package/es/components/pisellBaseCard/index.d.ts +5 -0
- package/es/components/pisellBaseCard/index.js +4 -0
- package/es/components/pisellBaseCard/types.d.ts +45 -0
- package/es/components/pisellBaseCard/types.js +1 -0
- package/es/components/pisellCurrency/PisellCurrency.js +18 -12
- package/es/components/pisellCurrency/PisellCurrency.less +0 -123
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.js +145 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/es/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +193 -0
- package/es/components/pisellCustomerBrief/index.d.ts +6 -0
- package/es/components/pisellCustomerBrief/index.js +5 -0
- package/es/components/pisellCustomerBrief/types.d.ts +82 -0
- package/es/components/pisellCustomerBrief/types.js +1 -0
- package/es/components/pisellEmail/PisellEmail.js +48 -42
- package/es/components/pisellEmail/PisellEmail.less +0 -92
- package/es/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/es/components/pisellEntityCard/PisellEntityCard.js +474 -0
- package/es/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/es/components/pisellEntityCard/PisellEntityCard.stories.js +450 -0
- package/es/components/pisellEntityCard/index.d.ts +5 -0
- package/es/components/pisellEntityCard/index.js +4 -0
- package/es/components/pisellEntityCard/types.d.ts +144 -0
- package/es/components/pisellEntityCard/types.js +1 -0
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +32 -4
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +4 -2
- package/es/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/es/components/pisellFloorMapLayout/components/ViewControls.js +12 -2
- package/es/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/es/components/pisellLongText/PisellLongText.js +18 -12
- package/es/components/pisellLongText/PisellLongText.less +0 -67
- package/es/components/pisellLookup/PisellLookup.js +8 -1
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.js +14 -6
- package/es/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/es/components/pisellMultipleSelect/components/EditView.js +1 -0
- package/es/components/pisellNumber/PisellNumber.js +18 -12
- package/es/components/pisellNumber/PisellNumber.less +0 -103
- package/es/components/pisellPhone/PisellPhone.js +18 -12
- package/es/components/pisellPhone/PisellPhone.less +0 -119
- package/es/components/pisellPhone/components/EditView.js +44 -33
- package/es/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/es/components/pisellPhone/constants/countryCodes.js +26 -25
- package/es/components/pisellPhone/types.d.ts +2 -2
- package/es/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/es/components/pisellPhone/utils/countryCodeHelper.js +5 -5
- package/es/components/pisellRating/PisellRating.js +7 -3
- package/es/components/pisellSingleLineText/PisellSingleLineText.js +27 -20
- package/es/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/es/components/pisellSingleSelect/PisellSingleSelect.js +14 -5
- package/es/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/es/components/pisellUrl/PisellUrl.js +48 -42
- package/es/components/pisellWalletPassCard/index.js +2 -1
- package/es/index.d.ts +15 -4
- package/es/index.js +8 -4
- package/es/theme/pisell-components.d.ts +14 -0
- package/es/theme/pisell-components.js +74 -0
- package/lib/components/PisellCards/index.d.ts +3 -0
- package/lib/components/PisellCards/index.js +3 -1
- package/lib/components/PisellContactBrief/PisellContactBrief.d.ts +13 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.js +231 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.less +192 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.d.ts +31 -0
- package/lib/components/PisellContactBrief/PisellContactBrief.stories.js +188 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.d.ts +23 -0
- package/lib/components/PisellContactBrief/components/ContactFormModal.js +154 -0
- package/lib/components/PisellContactBrief/components/index.d.ts +5 -0
- package/lib/components/PisellContactBrief/components/index.js +29 -0
- package/lib/components/PisellContactBrief/index.d.ts +6 -0
- package/lib/components/PisellContactBrief/index.js +29 -0
- package/lib/components/PisellContactBrief/locales.d.ts +55 -0
- package/lib/components/PisellContactBrief/locales.js +74 -0
- package/lib/components/PisellContactBrief/types.d.ts +82 -0
- package/lib/components/PisellContactBrief/types.js +17 -0
- package/lib/components/dataSourceComponents/fields/Tabs/Tabs.less +8 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.d.ts +13 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.js +124 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.less +69 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.d.ts +19 -0
- package/lib/components/pisellActionPanel/PisellActionPanel.stories.js +186 -0
- package/lib/components/pisellActionPanel/index.d.ts +6 -0
- package/lib/components/pisellActionPanel/index.js +29 -0
- package/lib/components/pisellActionPanel/types.d.ts +83 -0
- package/lib/components/pisellActionPanel/types.js +17 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.d.ts +8 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.js +124 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.less +25 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.d.ts +19 -0
- package/lib/components/pisellBaseCard/PisellBaseCard.stories.js +107 -0
- package/lib/components/pisellBaseCard/index.d.ts +5 -0
- package/lib/components/pisellBaseCard/index.js +29 -0
- package/lib/components/pisellBaseCard/types.d.ts +45 -0
- package/lib/components/pisellBaseCard/types.js +17 -0
- package/lib/components/pisellCurrency/PisellCurrency.js +16 -10
- package/lib/components/pisellCurrency/PisellCurrency.less +0 -123
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.d.ts +15 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.js +143 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.less +8 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.d.ts +23 -0
- package/lib/components/pisellCustomerBrief/PisellCustomerBrief.stories.js +171 -0
- package/lib/components/pisellCustomerBrief/index.d.ts +6 -0
- package/lib/components/pisellCustomerBrief/index.js +29 -0
- package/lib/components/pisellCustomerBrief/types.d.ts +82 -0
- package/lib/components/pisellCustomerBrief/types.js +17 -0
- package/lib/components/pisellEmail/PisellEmail.js +16 -10
- package/lib/components/pisellEmail/PisellEmail.less +0 -92
- package/lib/components/pisellEntityCard/PisellEntityCard.d.ts +8 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.js +426 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.less +362 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.d.ts +47 -0
- package/lib/components/pisellEntityCard/PisellEntityCard.stories.js +349 -0
- package/lib/components/pisellEntityCard/index.d.ts +5 -0
- package/lib/components/pisellEntityCard/index.js +29 -0
- package/lib/components/pisellEntityCard/types.d.ts +144 -0
- package/lib/components/pisellEntityCard/types.js +17 -0
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +22 -3
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +2 -2
- package/lib/components/pisellFloorMapLayout/components/ViewControls.d.ts +4 -0
- package/lib/components/pisellFloorMapLayout/components/ViewControls.js +11 -1
- package/lib/components/pisellFloorMapLayout/types.d.ts +2 -0
- package/lib/components/pisellLongText/PisellLongText.js +16 -10
- package/lib/components/pisellLongText/PisellLongText.less +0 -67
- package/lib/components/pisellLookup/PisellLookup.js +5 -1
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.js +62 -53
- package/lib/components/pisellMultipleSelect/PisellMultipleSelect.less +18 -139
- package/lib/components/pisellMultipleSelect/components/EditView.js +42 -30
- package/lib/components/pisellNumber/PisellNumber.js +16 -10
- package/lib/components/pisellNumber/PisellNumber.less +0 -103
- package/lib/components/pisellPhone/PisellPhone.js +16 -10
- package/lib/components/pisellPhone/PisellPhone.less +0 -119
- package/lib/components/pisellPhone/components/EditView.js +40 -24
- package/lib/components/pisellPhone/constants/countryCodes.d.ts +1 -0
- package/lib/components/pisellPhone/constants/countryCodes.js +24 -24
- package/lib/components/pisellPhone/types.d.ts +2 -2
- package/lib/components/pisellPhone/utils/countryCodeHelper.d.ts +4 -4
- package/lib/components/pisellPhone/utils/countryCodeHelper.js +1 -1
- package/lib/components/pisellRating/PisellRating.js +4 -2
- package/lib/components/pisellSingleLineText/PisellSingleLineText.js +16 -10
- package/lib/components/pisellSingleLineText/PisellSingleLineText.less +58 -201
- package/lib/components/pisellSingleSelect/PisellSingleSelect.js +34 -35
- package/lib/components/pisellSingleSelect/PisellSingleSelect.less +5 -106
- package/lib/components/pisellUrl/PisellUrl.js +16 -10
- package/lib/components/pisellWalletPassCard/index.js +1 -1
- package/lib/index.d.ts +15 -4
- package/lib/index.js +18 -3
- package/lib/theme/pisell-components.d.ts +14 -0
- package/lib/theme/pisell-components.js +89 -0
- package/lowcode/pisell-action-panel/meta.ts +146 -0
- package/lowcode/pisell-action-panel/snippets.ts +42 -0
- package/lowcode/pisell-base-card/meta.ts +98 -0
- package/lowcode/pisell-base-card/snippets.ts +13 -0
- package/lowcode/pisell-contact-brief/meta.ts +178 -0
- package/lowcode/pisell-contact-brief/snippets.ts +40 -0
- package/lowcode/pisell-customer-brief/meta.ts +262 -0
- package/lowcode/pisell-customer-brief/snippets.ts +46 -0
- package/lowcode/pisell-entity-card/meta.ts +296 -0
- package/lowcode/pisell-entity-card/snippets.ts +41 -0
- package/lowcode/pisell-floor-map-layout/meta.ts +37 -1
- package/package.json +4 -4
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellEntityCard',
|
|
6
|
+
title: '实体卡片',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellEntityCard',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
experimental: { hideSelectTools: true },
|
|
20
|
+
configure: {
|
|
21
|
+
component: { isContainer: true },
|
|
22
|
+
supports: {
|
|
23
|
+
style: true,
|
|
24
|
+
events: [
|
|
25
|
+
{
|
|
26
|
+
name: 'onClick',
|
|
27
|
+
template:
|
|
28
|
+
"onClick(event,${extParams}){\n// 点击卡片时的回调\nconsole.log('onClick', event);}",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'onDelete',
|
|
32
|
+
template:
|
|
33
|
+
"onDelete(${extParams}){\n// 左滑删除确认后的回调\nconsole.log('onDelete');}",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
props: [
|
|
38
|
+
{
|
|
39
|
+
title: { label: { type: 'i18n', 'en-US': 'Data', 'zh-CN': '数据源' } },
|
|
40
|
+
display: 'block',
|
|
41
|
+
type: 'group',
|
|
42
|
+
items: [
|
|
43
|
+
{
|
|
44
|
+
name: 'primaryText',
|
|
45
|
+
title: {
|
|
46
|
+
label: { type: 'i18n', 'en-US': 'Primary Text', 'zh-CN': '主文案' },
|
|
47
|
+
tip: 'primaryText | 主标题/名称',
|
|
48
|
+
},
|
|
49
|
+
propType: 'string',
|
|
50
|
+
setter: ['PisellI18nSetter', 'StringSetter', 'VariableSetter'],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'subtitleText',
|
|
54
|
+
title: {
|
|
55
|
+
label: { type: 'i18n', 'en-US': 'Subtitle', 'zh-CN': '副标题' },
|
|
56
|
+
tip: 'subtitleText | 与主标题同行、紧跟主标题后的副标题',
|
|
57
|
+
},
|
|
58
|
+
propType: 'string',
|
|
59
|
+
setter: ['PisellI18nSetter', 'StringSetter', 'VariableSetter'],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'secondaryTexts',
|
|
63
|
+
title: {
|
|
64
|
+
label: { type: 'i18n', 'en-US': 'Secondary Texts', 'zh-CN': '次级文案列表' },
|
|
65
|
+
tip: 'secondaryTexts | 次级信息,顺序即展示顺序',
|
|
66
|
+
},
|
|
67
|
+
propType: { type: 'arrayOf', value: 'object' },
|
|
68
|
+
setter: {
|
|
69
|
+
componentName: 'ArraySetter',
|
|
70
|
+
props: {
|
|
71
|
+
itemSetter: {
|
|
72
|
+
componentName: 'ObjectSetter',
|
|
73
|
+
props: {
|
|
74
|
+
config: {
|
|
75
|
+
items: [
|
|
76
|
+
{ name: 'text', title: { label: '文本' }, propType: 'string', setter: ['PisellI18nSetter', 'StringSetter'] },
|
|
77
|
+
{ name: 'showTooltip', title: { label: '显示提示图标' }, propType: 'bool', setter: 'BoolSetter' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'media',
|
|
87
|
+
title: {
|
|
88
|
+
label: { type: 'i18n', 'en-US': 'Media', 'zh-CN': '媒体区' },
|
|
89
|
+
tip: 'media | 头像/缩略图/图标配置',
|
|
90
|
+
},
|
|
91
|
+
propType: 'object',
|
|
92
|
+
setter: {
|
|
93
|
+
componentName: 'ObjectSetter',
|
|
94
|
+
props: {
|
|
95
|
+
config: {
|
|
96
|
+
items: [
|
|
97
|
+
{
|
|
98
|
+
name: 'type',
|
|
99
|
+
title: { label: { type: 'i18n', 'en-US': 'Type', 'zh-CN': '类型' } },
|
|
100
|
+
propType: { type: 'oneOf', value: ['avatar', 'thumbnail', 'icon'] },
|
|
101
|
+
setter: [
|
|
102
|
+
{
|
|
103
|
+
componentName: 'RadioGroupSetter',
|
|
104
|
+
props: {
|
|
105
|
+
options: [
|
|
106
|
+
{ title: '头像', value: 'avatar' },
|
|
107
|
+
{ title: '缩略图', value: 'thumbnail' },
|
|
108
|
+
{ title: '图标', value: 'icon' },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
'VariableSetter',
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
{ name: 'src', title: { label: '图片地址' }, propType: 'string', setter: ['StringSetter', 'VariableSetter'] },
|
|
116
|
+
{ name: 'alt', title: { label: '替换文本' }, propType: 'string', setter: ['PisellI18nSetter', 'StringSetter'] },
|
|
117
|
+
{ name: 'size', title: { label: '尺寸' }, propType: { type: 'oneOfType', value: ['number', 'string'] }, setter: ['NumberSetter', 'StringSetter', 'VariableSetter'] },
|
|
118
|
+
{
|
|
119
|
+
name: 'shape',
|
|
120
|
+
title: { label: '形状' },
|
|
121
|
+
propType: { type: 'oneOf', value: ['circle', 'square'] },
|
|
122
|
+
setter: [
|
|
123
|
+
{
|
|
124
|
+
componentName: 'RadioGroupSetter',
|
|
125
|
+
props: {
|
|
126
|
+
options: [
|
|
127
|
+
{ title: '圆形', value: 'circle' },
|
|
128
|
+
{ title: '方形', value: 'square' },
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
'VariableSetter',
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
{ name: 'color', title: { label: '图标颜色' }, propType: 'string', setter: ['ColorSetter', 'StringSetter'] },
|
|
136
|
+
{ name: 'icon', title: { label: '图标' }, propType: 'node', setter: 'SlotSetter' },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: 'tags',
|
|
144
|
+
title: {
|
|
145
|
+
label: { type: 'i18n', 'en-US': 'Tags', 'zh-CN': '标签列表' },
|
|
146
|
+
tip: 'tags | 标签,顺序即展示顺序',
|
|
147
|
+
},
|
|
148
|
+
propType: { type: 'arrayOf', value: 'object' },
|
|
149
|
+
setter: {
|
|
150
|
+
componentName: 'ArraySetter',
|
|
151
|
+
props: {
|
|
152
|
+
itemSetter: {
|
|
153
|
+
componentName: 'ObjectSetter',
|
|
154
|
+
props: {
|
|
155
|
+
config: {
|
|
156
|
+
items: [
|
|
157
|
+
{ name: 'text', title: { label: '文本' }, propType: 'string', setter: ['PisellI18nSetter', 'StringSetter'] },
|
|
158
|
+
{ name: 'style', title: { label: '样式' }, propType: 'object', setter: 'StyleSetter' },
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'actions',
|
|
168
|
+
title: {
|
|
169
|
+
label: { type: 'i18n', 'en-US': 'Actions', 'zh-CN': '底部操作' },
|
|
170
|
+
tip: 'actions | 底部操作项(需开启 showActions)',
|
|
171
|
+
},
|
|
172
|
+
propType: { type: 'arrayOf', value: 'object' },
|
|
173
|
+
setter: {
|
|
174
|
+
componentName: 'ArraySetter',
|
|
175
|
+
props: {
|
|
176
|
+
itemSetter: {
|
|
177
|
+
componentName: 'ObjectSetter',
|
|
178
|
+
props: {
|
|
179
|
+
config: {
|
|
180
|
+
items: [
|
|
181
|
+
{
|
|
182
|
+
name: 'type',
|
|
183
|
+
title: { label: '形式' },
|
|
184
|
+
propType: { type: 'oneOf', value: ['text', 'button', 'icon'] },
|
|
185
|
+
setter: 'RadioGroupSetter',
|
|
186
|
+
},
|
|
187
|
+
{ name: 'label', title: { label: '文案' }, propType: 'string', setter: ['PisellI18nSetter', 'StringSetter'] },
|
|
188
|
+
{ name: 'icon', title: { label: '图标' }, propType: 'node', setter: 'SlotSetter' },
|
|
189
|
+
{ name: 'style', title: { label: '样式' }, propType: 'object', setter: 'StyleSetter' },
|
|
190
|
+
{ name: 'className', title: { label: '类名' }, propType: 'string', setter: 'StringSetter' },
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
title: { label: { type: 'i18n', 'en-US': 'Visibility', 'zh-CN': '显隐' } },
|
|
202
|
+
display: 'block',
|
|
203
|
+
type: 'group',
|
|
204
|
+
items: [
|
|
205
|
+
{ name: 'showMedia', title: { label: '显示媒体区' }, propType: 'bool', defaultValue: true, setter: 'BoolSetter' },
|
|
206
|
+
{ name: 'showPrimaryText', title: { label: '显示主文案' }, propType: 'bool', defaultValue: true, setter: 'BoolSetter' },
|
|
207
|
+
{ name: 'showSecondaryText', title: { label: '显示次级文案' }, propType: 'bool', defaultValue: true, setter: 'BoolSetter' },
|
|
208
|
+
{ name: 'showTags', title: { label: '显示标签' }, propType: 'bool', defaultValue: true, setter: 'BoolSetter' },
|
|
209
|
+
{ name: 'showActions', title: { label: '显示底部操作' }, propType: 'bool', defaultValue: false, setter: 'BoolSetter' },
|
|
210
|
+
],
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
title: { label: { type: 'i18n', 'en-US': 'Layout', 'zh-CN': '密度与布局' } },
|
|
214
|
+
display: 'block',
|
|
215
|
+
type: 'group',
|
|
216
|
+
items: [
|
|
217
|
+
{
|
|
218
|
+
name: 'density',
|
|
219
|
+
title: { label: '信息密度', tip: 'B1/B2/B5/B9' },
|
|
220
|
+
propType: { type: 'oneOf', value: ['B1', 'B2', 'B5', 'B9'] },
|
|
221
|
+
defaultValue: 'B2',
|
|
222
|
+
setter: [
|
|
223
|
+
{
|
|
224
|
+
componentName: 'RadioGroupSetter',
|
|
225
|
+
props: {
|
|
226
|
+
options: [
|
|
227
|
+
{ title: 'B1-一行', value: 'B1' },
|
|
228
|
+
{ title: 'B2-两行', value: 'B2' },
|
|
229
|
+
{ title: 'B5-五行', value: 'B5' },
|
|
230
|
+
{ title: 'B9-全部', value: 'B9' },
|
|
231
|
+
],
|
|
232
|
+
},
|
|
233
|
+
},
|
|
234
|
+
'VariableSetter',
|
|
235
|
+
],
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: 'layout',
|
|
239
|
+
title: { label: '布局方向' },
|
|
240
|
+
propType: { type: 'oneOf', value: ['horizontal', 'vertical'] },
|
|
241
|
+
defaultValue: 'horizontal',
|
|
242
|
+
setter: ['RadioGroupSetter', 'VariableSetter'],
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
name: 'width',
|
|
246
|
+
title: { label: '卡片宽度', tip: 'content | full | 数字(px)' },
|
|
247
|
+
propType: { type: 'oneOfType', value: ['string', 'number'] },
|
|
248
|
+
defaultValue: 'content',
|
|
249
|
+
setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
name: 'tagPosition',
|
|
253
|
+
title: { label: '标签位置' },
|
|
254
|
+
propType: { type: 'oneOf', value: ['inline', 'below'] },
|
|
255
|
+
defaultValue: 'below',
|
|
256
|
+
setter: 'RadioGroupSetter',
|
|
257
|
+
},
|
|
258
|
+
{ name: 'contentGap', title: { label: '内容间距' }, propType: { type: 'oneOfType', value: ['number', 'string'] }, setter: ['NumberSetter', 'StringSetter'] },
|
|
259
|
+
{ name: 'primaryLineClamp', title: { label: '主文案行数' }, propType: 'number', setter: ['NumberSetter', 'VariableSetter'] },
|
|
260
|
+
{ name: 'secondaryLineClamp', title: { label: '次级文案行数' }, propType: 'number', setter: ['NumberSetter', 'VariableSetter'] },
|
|
261
|
+
],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
title: { label: { type: 'i18n', 'en-US': 'Swipe Delete', 'zh-CN': '左滑删除' } },
|
|
265
|
+
display: 'block',
|
|
266
|
+
type: 'group',
|
|
267
|
+
items: [
|
|
268
|
+
{ name: 'swipeToDelete', title: { label: '开启左滑删除' }, propType: 'bool', defaultValue: false, setter: 'BoolSetter' },
|
|
269
|
+
],
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
title: { label: { type: 'i18n', 'en-US': 'Base Card', 'zh-CN': '基础卡片' } },
|
|
273
|
+
display: 'block',
|
|
274
|
+
type: 'group',
|
|
275
|
+
items: [
|
|
276
|
+
{ name: 'className', title: { label: '样式类名' }, propType: 'string', setter: ['PisellI18nSetter', 'StringSetter'] },
|
|
277
|
+
{ name: 'style', title: { label: '样式' }, propType: 'object', setter: 'StyleSetter' },
|
|
278
|
+
{ name: 'clickable', title: { label: '可点击' }, propType: 'bool', defaultValue: true, setter: 'BoolSetter' },
|
|
279
|
+
{ name: 'disabled', title: { label: '禁用' }, propType: 'bool', defaultValue: false, setter: 'BoolSetter' },
|
|
280
|
+
],
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
title: { label: { type: 'i18n', 'en-US': 'Slots', 'zh-CN': '插槽' } },
|
|
284
|
+
display: 'block',
|
|
285
|
+
type: 'group',
|
|
286
|
+
items: [
|
|
287
|
+
{ name: 'renderMedia', title: { label: '自定义媒体区' }, propType: 'func', setter: 'SlotSetter' },
|
|
288
|
+
{ name: 'renderPrimary', title: { label: '自定义主文案' }, propType: 'func', setter: 'SlotSetter' },
|
|
289
|
+
{ name: 'renderSecondary', title: { label: '自定义次级文案' }, propType: 'func', setter: 'SlotSetter' },
|
|
290
|
+
{ name: 'renderTags', title: { label: '自定义标签区' }, propType: 'func', setter: 'SlotSetter' },
|
|
291
|
+
{ name: 'renderActions', title: { label: '自定义操作区' }, propType: 'func', setter: 'SlotSetter' },
|
|
292
|
+
],
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
},
|
|
296
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '实体卡片',
|
|
4
|
+
screenshot: '',
|
|
5
|
+
schema: {
|
|
6
|
+
componentName: 'PisellEntityCard',
|
|
7
|
+
props: {
|
|
8
|
+
primaryText: '实体名称',
|
|
9
|
+
subtitleText: '',
|
|
10
|
+
secondaryTexts: [{ text: '次级信息' }],
|
|
11
|
+
media: { type: 'avatar', src: '', alt: '头像' },
|
|
12
|
+
density: 'B2',
|
|
13
|
+
layout: 'horizontal',
|
|
14
|
+
showMedia: true,
|
|
15
|
+
showPrimaryText: true,
|
|
16
|
+
showSecondaryText: true,
|
|
17
|
+
showTags: true,
|
|
18
|
+
showActions: false,
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: '实体卡片-竖向',
|
|
24
|
+
screenshot: '',
|
|
25
|
+
schema: {
|
|
26
|
+
componentName: 'PisellEntityCard',
|
|
27
|
+
props: {
|
|
28
|
+
primaryText: '实体名称',
|
|
29
|
+
subtitleText: '',
|
|
30
|
+
secondaryTexts: [{ text: '描述信息' }],
|
|
31
|
+
media: { type: 'avatar', src: '', alt: '头像', size: 64 },
|
|
32
|
+
density: 'B5',
|
|
33
|
+
layout: 'vertical',
|
|
34
|
+
showMedia: true,
|
|
35
|
+
showPrimaryText: true,
|
|
36
|
+
showSecondaryText: true,
|
|
37
|
+
showTags: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
];
|
|
@@ -9,7 +9,7 @@ const PisellFloorMapLayoutMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1057",
|
|
13
13
|
"exportName": "PisellFloorMapLayout",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
@@ -1283,6 +1283,42 @@ const PisellFloorMapLayoutMeta: ComponentMetadata = {
|
|
|
1283
1283
|
]
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"title": {
|
|
1289
|
+
"label": {
|
|
1290
|
+
"type": "i18n",
|
|
1291
|
+
"en-US": "showFullscreen",
|
|
1292
|
+
"zh-CN": "showFullscreen"
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
"name": "showFullscreen",
|
|
1296
|
+
"setter": {
|
|
1297
|
+
"componentName": "MixedSetter",
|
|
1298
|
+
"props": {
|
|
1299
|
+
"setters": [
|
|
1300
|
+
{
|
|
1301
|
+
"componentName": "ObjectSetter",
|
|
1302
|
+
"props": {
|
|
1303
|
+
"config": {
|
|
1304
|
+
"extraSetter": {
|
|
1305
|
+
"componentName": "MixedSetter",
|
|
1306
|
+
"isRequired": false,
|
|
1307
|
+
"props": {}
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
},
|
|
1311
|
+
"isRequired": false,
|
|
1312
|
+
"initialValue": {}
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"componentName": "BoolSetter",
|
|
1316
|
+
"isRequired": false,
|
|
1317
|
+
"initialValue": false
|
|
1318
|
+
}
|
|
1319
|
+
]
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1286
1322
|
}
|
|
1287
1323
|
],
|
|
1288
1324
|
"extraSetter": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1059",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"swiper": "^8.4.7",
|
|
91
91
|
"antd-mobile": "^5.38.1",
|
|
92
92
|
"vod-js-sdk-v6": "^1.4.11",
|
|
93
|
-
"@pisell/
|
|
94
|
-
"@pisell/utils": "1.0.
|
|
95
|
-
"@pisell/
|
|
93
|
+
"@pisell/icon": "0.0.10",
|
|
94
|
+
"@pisell/utils": "1.0.63",
|
|
95
|
+
"@pisell/date-picker": "1.0.136"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^18.0.0",
|