@pisell/materials 1.0.430 → 1.0.431
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 +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/pisellInformationEntry/Input/index.js +6 -3
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +44 -0
- package/es/components/pisellInformationEntry/index.js +14 -2
- package/es/components/pisellWalletPassCard/index.d.ts +2 -0
- package/es/components/pisellWalletPassCard/index.js +16 -4
- package/es/components/pisellWalletPassCard/index.less +3 -0
- package/es/locales/en-US.d.ts +2 -0
- package/es/locales/en-US.js +3 -1
- package/es/locales/zh-CN.d.ts +2 -0
- package/es/locales/zh-CN.js +3 -1
- package/es/locales/zh-TW.d.ts +2 -0
- package/es/locales/zh-TW.js +3 -1
- package/lib/components/pisellInformationEntry/Input/index.js +6 -1
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
- package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +73 -0
- package/lib/components/pisellInformationEntry/index.js +12 -1
- package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
- package/lib/components/pisellWalletPassCard/index.js +8 -4
- package/lib/components/pisellWalletPassCard/index.less +3 -0
- package/lib/locales/en-US.d.ts +2 -0
- package/lib/locales/en-US.js +3 -1
- package/lib/locales/zh-CN.d.ts +2 -0
- package/lib/locales/zh-CN.js +3 -1
- package/lib/locales/zh-TW.d.ts +2 -0
- package/lib/locales/zh-TW.js +3 -1
- package/lowcode/pisell-card-list/meta.ts +54 -24
- package/lowcode/pisell-information-entry/meta.ts +22 -7
- package/package.json +3 -3
|
@@ -18,64 +18,76 @@ export default {
|
|
|
18
18
|
},
|
|
19
19
|
props: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
21
|
+
name: 'platform',
|
|
22
22
|
title: {
|
|
23
|
-
label:
|
|
23
|
+
label: '平台',
|
|
24
24
|
},
|
|
25
|
-
propType: { type:
|
|
25
|
+
propType: { type: 'oneOf', value: ['h5', 'pc', 'ipad'] },
|
|
26
26
|
setter: [
|
|
27
27
|
{
|
|
28
|
-
componentName:
|
|
28
|
+
componentName: 'RadioGroupSetter',
|
|
29
29
|
props: {
|
|
30
30
|
options: [
|
|
31
31
|
{
|
|
32
|
-
title:
|
|
33
|
-
value:
|
|
32
|
+
title: 'h5',
|
|
33
|
+
value: 'h5',
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
title:
|
|
37
|
-
value:
|
|
36
|
+
title: 'pc',
|
|
37
|
+
value: 'pc',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
title:
|
|
41
|
-
value:
|
|
40
|
+
title: 'ipad',
|
|
41
|
+
value: 'ipad',
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
44
|
},
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
'VariableSetter',
|
|
47
47
|
],
|
|
48
|
-
defaultValue:
|
|
48
|
+
defaultValue: 'pc',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
name:
|
|
51
|
+
name: 'mode',
|
|
52
52
|
title: {
|
|
53
|
-
label:
|
|
53
|
+
label: '选择类型',
|
|
54
54
|
},
|
|
55
|
-
propType: { type:
|
|
55
|
+
propType: { type: 'oneOf', value: ['multiple', 'single', null] },
|
|
56
56
|
setter: [
|
|
57
57
|
{
|
|
58
|
-
componentName:
|
|
58
|
+
componentName: 'RadioGroupSetter',
|
|
59
59
|
props: {
|
|
60
60
|
options: [
|
|
61
61
|
{
|
|
62
|
-
title:
|
|
62
|
+
title: '不选',
|
|
63
63
|
value: null,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
title:
|
|
67
|
-
value:
|
|
66
|
+
title: '单选',
|
|
67
|
+
value: 'single',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
title:
|
|
71
|
-
value:
|
|
70
|
+
title: '多选',
|
|
71
|
+
value: 'multiple',
|
|
72
72
|
},
|
|
73
73
|
],
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
|
-
|
|
76
|
+
'VariableSetter',
|
|
77
77
|
],
|
|
78
|
-
defaultValue:
|
|
78
|
+
defaultValue: 'single',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'data',
|
|
82
|
+
title: { label: '当前list数据', tip: '当前list数据' },
|
|
83
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'hasMore',
|
|
87
|
+
title: { label: '是否有更多数据', tip: '是否有更多数据' },
|
|
88
|
+
propType: 'bool',
|
|
89
|
+
setter: 'BoolSetter',
|
|
90
|
+
defaultValue: false,
|
|
79
91
|
},
|
|
80
92
|
{
|
|
81
93
|
name: 'showName',
|
|
@@ -140,6 +152,24 @@ export default {
|
|
|
140
152
|
setter: 'BoolSetter',
|
|
141
153
|
defaultValue: true,
|
|
142
154
|
},
|
|
155
|
+
{
|
|
156
|
+
name: 'showEmpty',
|
|
157
|
+
title: { label: '是否展示空占位', tip: '是否展示空占位' },
|
|
158
|
+
propType: 'bool',
|
|
159
|
+
setter: 'BoolSetter',
|
|
160
|
+
defaultValue: false,
|
|
161
|
+
},
|
|
143
162
|
],
|
|
144
|
-
configure: {
|
|
163
|
+
configure: {
|
|
164
|
+
supports: {
|
|
165
|
+
style: true,
|
|
166
|
+
events: [
|
|
167
|
+
{
|
|
168
|
+
name: 'onChange',
|
|
169
|
+
template:
|
|
170
|
+
"onChange(event,${extParams}){\n// 选择变化时的回调\nconsole.log('onChange',event);}",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
},
|
|
145
175
|
};
|
|
@@ -63,11 +63,14 @@ export default {
|
|
|
63
63
|
setter: [
|
|
64
64
|
{
|
|
65
65
|
componentName: 'SelectSetter',
|
|
66
|
-
mode:
|
|
66
|
+
mode: 'single',
|
|
67
67
|
props: (target) => {
|
|
68
68
|
// console.log(target,'targettarget',target.parent.parent.parent.getPropValue("entryModes"));
|
|
69
|
-
const typeValues = target.parent.parent.parent
|
|
70
|
-
|
|
69
|
+
const typeValues = target.parent.parent.parent
|
|
70
|
+
.getPropValue('entryModes')
|
|
71
|
+
.filter(Boolean)
|
|
72
|
+
.map((item) => item?.type);
|
|
73
|
+
console.log(typeValues, 'typeValues');
|
|
71
74
|
return {
|
|
72
75
|
options: [
|
|
73
76
|
{
|
|
@@ -107,9 +110,9 @@ export default {
|
|
|
107
110
|
},
|
|
108
111
|
},
|
|
109
112
|
initialValue: {
|
|
110
|
-
type:
|
|
111
|
-
name:
|
|
112
|
-
}
|
|
113
|
+
type: '',
|
|
114
|
+
name: '',
|
|
115
|
+
},
|
|
113
116
|
},
|
|
114
117
|
},
|
|
115
118
|
},
|
|
@@ -127,5 +130,17 @@ export default {
|
|
|
127
130
|
setter: ['PisellI18nSetter', 'SlotSetter'],
|
|
128
131
|
},
|
|
129
132
|
],
|
|
130
|
-
|
|
133
|
+
|
|
134
|
+
configure: {
|
|
135
|
+
supports: {
|
|
136
|
+
style: true,
|
|
137
|
+
events: [
|
|
138
|
+
{
|
|
139
|
+
name: 'onChange',
|
|
140
|
+
template:
|
|
141
|
+
"onChange(event,${extParams}){\n// 输入框内容变化时的回调\nconsole.log('onChange',event);}",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
131
146
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.431",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
65
65
|
"crypto-js": "^4.2.0",
|
|
66
66
|
"@zxing/library": "0.21.2",
|
|
67
|
-
"@pisell/utils": "1.0.42",
|
|
68
67
|
"@pisell/icon": "0.0.10",
|
|
69
|
-
"@pisell/date-picker": "1.0.111"
|
|
68
|
+
"@pisell/date-picker": "1.0.111",
|
|
69
|
+
"@pisell/utils": "1.0.42"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"react": "^18.0.0",
|