@dckj-npm/dc-material 0.1.170 → 0.1.171

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.
@@ -361,6 +361,26 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
361
361
  },
362
362
  },
363
363
  },
364
+ {
365
+ title: '子项列数',
366
+ name: 'itemColumns',
367
+ description: '子项列数',
368
+ setter: {
369
+ componentName: 'NumberSetter',
370
+ isRequired: false,
371
+ initialValue: '',
372
+ defaultValue: (target) => {
373
+ const isTwoColumns =
374
+ target.getProps().getPropValue('imagePlacement') === 'top' ||
375
+ target.getProps().getPropValue('imagePlacement') === 'bottom'
376
+ return isTwoColumns ? 2 : 1
377
+ },
378
+ props: {
379
+ min: 1,
380
+ max: 2,
381
+ },
382
+ },
383
+ },
364
384
  ],
365
385
  supports: {
366
386
  style: true,
@@ -99,7 +99,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
99
99
  packageName = '@dckj-npm/dc-material';
100
100
  }
101
101
  if (version === void 0) {
102
- version = '0.1.170';
102
+ version = '0.1.171';
103
103
  }
104
104
  if (basicLibraryVersion === void 0) {
105
105
  basicLibraryVersion = {
@@ -318,6 +318,23 @@ var TeletextListMeta = {
318
318
  max: 4
319
319
  }
320
320
  }
321
+ }, {
322
+ title: '子项列数',
323
+ name: 'itemColumns',
324
+ description: '子项列数',
325
+ setter: {
326
+ componentName: 'NumberSetter',
327
+ isRequired: false,
328
+ initialValue: '',
329
+ defaultValue: function defaultValue(target) {
330
+ var isTwoColumns = target.getProps().getPropValue('imagePlacement') === 'top' || target.getProps().getPropValue('imagePlacement') === 'bottom';
331
+ return isTwoColumns ? 2 : 1;
332
+ },
333
+ props: {
334
+ min: 1,
335
+ max: 2
336
+ }
337
+ }
321
338
  }],
322
339
  supports: {
323
340
  style: true,
@@ -104,7 +104,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
104
104
  packageName = '@dckj-npm/dc-material';
105
105
  }
106
106
  if (version === void 0) {
107
- version = '0.1.170';
107
+ version = '0.1.171';
108
108
  }
109
109
  if (basicLibraryVersion === void 0) {
110
110
  basicLibraryVersion = {
@@ -323,6 +323,23 @@ var TeletextListMeta = {
323
323
  max: 4
324
324
  }
325
325
  }
326
+ }, {
327
+ title: '子项列数',
328
+ name: 'itemColumns',
329
+ description: '子项列数',
330
+ setter: {
331
+ componentName: 'NumberSetter',
332
+ isRequired: false,
333
+ initialValue: '',
334
+ defaultValue: function defaultValue(target) {
335
+ var isTwoColumns = target.getProps().getPropValue('imagePlacement') === 'top' || target.getProps().getPropValue('imagePlacement') === 'bottom';
336
+ return isTwoColumns ? 2 : 1;
337
+ },
338
+ props: {
339
+ min: 1,
340
+ max: 2
341
+ }
342
+ }
326
343
  }],
327
344
  supports: {
328
345
  style: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.170",
3
+ "version": "0.1.171",
4
4
  "description": "dc低代码物料",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -106,7 +106,7 @@
106
106
  },
107
107
  "componentConfig": {
108
108
  "isComponentLibrary": true,
109
- "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.170/build/lowcode/assets-prod.json"
109
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.171/build/lowcode/assets-prod.json"
110
110
  },
111
111
  "lcMeta": {
112
112
  "type": "component"