@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.
Files changed (39) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/pisellInformationEntry/Input/index.js +6 -3
  12. package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
  13. package/es/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +44 -0
  14. package/es/components/pisellInformationEntry/index.js +14 -2
  15. package/es/components/pisellWalletPassCard/index.d.ts +2 -0
  16. package/es/components/pisellWalletPassCard/index.js +16 -4
  17. package/es/components/pisellWalletPassCard/index.less +3 -0
  18. package/es/locales/en-US.d.ts +2 -0
  19. package/es/locales/en-US.js +3 -1
  20. package/es/locales/zh-CN.d.ts +2 -0
  21. package/es/locales/zh-CN.js +3 -1
  22. package/es/locales/zh-TW.d.ts +2 -0
  23. package/es/locales/zh-TW.js +3 -1
  24. package/lib/components/pisellInformationEntry/Input/index.js +6 -1
  25. package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.d.ts +8 -0
  26. package/lib/components/pisellInformationEntry/hooks/useTerminalPeripherals.js +73 -0
  27. package/lib/components/pisellInformationEntry/index.js +12 -1
  28. package/lib/components/pisellWalletPassCard/index.d.ts +2 -0
  29. package/lib/components/pisellWalletPassCard/index.js +8 -4
  30. package/lib/components/pisellWalletPassCard/index.less +3 -0
  31. package/lib/locales/en-US.d.ts +2 -0
  32. package/lib/locales/en-US.js +3 -1
  33. package/lib/locales/zh-CN.d.ts +2 -0
  34. package/lib/locales/zh-CN.js +3 -1
  35. package/lib/locales/zh-TW.d.ts +2 -0
  36. package/lib/locales/zh-TW.js +3 -1
  37. package/lowcode/pisell-card-list/meta.ts +54 -24
  38. package/lowcode/pisell-information-entry/meta.ts +22 -7
  39. package/package.json +3 -3
@@ -18,64 +18,76 @@ export default {
18
18
  },
19
19
  props: [
20
20
  {
21
- name: "platform",
21
+ name: 'platform',
22
22
  title: {
23
- label: "平台",
23
+ label: '平台',
24
24
  },
25
- propType: { type: "oneOf", value: ["h5", "pc", "ipad"] },
25
+ propType: { type: 'oneOf', value: ['h5', 'pc', 'ipad'] },
26
26
  setter: [
27
27
  {
28
- componentName: "RadioGroupSetter",
28
+ componentName: 'RadioGroupSetter',
29
29
  props: {
30
30
  options: [
31
31
  {
32
- title: "h5",
33
- value: "h5",
32
+ title: 'h5',
33
+ value: 'h5',
34
34
  },
35
35
  {
36
- title: "pc",
37
- value: "pc",
36
+ title: 'pc',
37
+ value: 'pc',
38
38
  },
39
39
  {
40
- title: "ipad",
41
- value: "ipad",
40
+ title: 'ipad',
41
+ value: 'ipad',
42
42
  },
43
43
  ],
44
44
  },
45
45
  },
46
- "VariableSetter",
46
+ 'VariableSetter',
47
47
  ],
48
- defaultValue: "pc",
48
+ defaultValue: 'pc',
49
49
  },
50
50
  {
51
- name: "mode",
51
+ name: 'mode',
52
52
  title: {
53
- label: "选择类型",
53
+ label: '选择类型',
54
54
  },
55
- propType: { type: "oneOf", value: ["multiple", "single", null] },
55
+ propType: { type: 'oneOf', value: ['multiple', 'single', null] },
56
56
  setter: [
57
57
  {
58
- componentName: "RadioGroupSetter",
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: "single",
66
+ title: '单选',
67
+ value: 'single',
68
68
  },
69
69
  {
70
- title: "多选",
71
- value: "multiple",
70
+ title: '多选',
71
+ value: 'multiple',
72
72
  },
73
73
  ],
74
74
  },
75
75
  },
76
- "VariableSetter",
76
+ 'VariableSetter',
77
77
  ],
78
- defaultValue: "single",
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: { supports: { style: true } },
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: "single",
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.getPropValue("entryModes").filter(Boolean).map(item => item?.type);
70
- console.log(typeValues,'typeValues');
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
- configure: { supports: { style: true } },
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.430",
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",