@a2simcode/ui 0.0.256 → 0.0.257

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.
@@ -153,8 +153,23 @@ const schema = [
153
153
  label: '弹窗选择',
154
154
  field: 'dataItem1',
155
155
  placeholder: '请选择类型',
156
- dataType: 'dataItem',
157
- dataCode: 'dataItem1',
156
+ valueKey: 'id',
157
+ labelKey: 'name',
158
+ width: 800,
159
+ height: 500,
160
+ // isMultiSelect: true,
161
+ columns: [
162
+ { id: 'id', config: { label: 'ID', width: 80 } },
163
+ { id: 'name', config: { label: '名称', width: 120, valueKey: 'username'} },
164
+ { id: 'code', config: { label: '编码' } },
165
+ ],
166
+ loadLayerData: async () => {
167
+ return [
168
+ { id: '1', name: '类型A', code: 'TYPE_A' },
169
+ { id: '2', name: '类型B', code: 'TYPE_B' },
170
+ { id: '3', name: '类型C', code: 'TYPE_C' },
171
+ ]
172
+ },
158
173
  },
159
174
  },
160
175
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2simcode/ui",
3
- "version": "0.0.256",
3
+ "version": "0.0.257",
4
4
  "description": "A Vue 3 UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/simcode-ui.umd.js",