@dckj-npm/dc-material 0.1.211 → 0.1.213

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.
@@ -349,7 +349,9 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
349
349
  }
350
350
 
351
351
  // 更新数据源绑定的配置
352
- const dataListBindProp = target.node.getProp('dataListBind')
352
+ const dataListBindProp = target.parent.items.find(
353
+ (item) => item.name === 'dataListBind',
354
+ )
353
355
  if (dataListBindProp && dataListBindProp.setter) {
354
356
  const baseChildren = [
355
357
  { label: '图片链接', value: 'image' },
@@ -373,7 +375,16 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
373
375
  ]
374
376
  }
375
377
 
376
- console.log('文字行数', target, value, schema)
378
+ console.log(
379
+ '文字行数',
380
+ target,
381
+ value,
382
+ schema,
383
+ target.node,
384
+ target.parent,
385
+ target.parent.getPropValue('dataListBind'),
386
+ target.parent.node?.getProp('dataListBind'),
387
+ )
377
388
  },
378
389
  },
379
390
  },
@@ -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.211';
102
+ version = '0.1.213';
103
103
  }
104
104
  if (basicLibraryVersion === void 0) {
105
105
  basicLibraryVersion = {
@@ -273,7 +273,7 @@ var TeletextListMeta = {
273
273
  },
274
274
  extraProps: {
275
275
  setValue: function setValue(target, value) {
276
- var _target$node, _schema$children, _schema$children$filt;
276
+ var _target$node, _schema$children, _schema$children$filt, _target$parent$node;
277
277
  target.getProps().setPropValue('textLines', value);
278
278
  // 获取组件schema
279
279
  var schema = target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : _target$node.schema;
@@ -303,7 +303,9 @@ var TeletextListMeta = {
303
303
  }
304
304
 
305
305
  // 更新数据源绑定的配置
306
- var dataListBindProp = target.node.getProp('dataListBind');
306
+ var dataListBindProp = target.parent.items.find(function (item) {
307
+ return item.name === 'dataListBind';
308
+ });
307
309
  if (dataListBindProp && dataListBindProp.setter) {
308
310
  var baseChildren = [{
309
311
  label: '图片链接',
@@ -329,7 +331,7 @@ var TeletextListMeta = {
329
331
  // 更新setter的attributes
330
332
  dataListBindProp.setter.props.attributes[0].children = [].concat(baseChildren, textChildren);
331
333
  }
332
- console.log('文字行数', target, value, schema);
334
+ console.log('文字行数', target, value, schema, target.node, target.parent, target.parent.getPropValue('dataListBind'), (_target$parent$node = target.parent.node) === null || _target$parent$node === void 0 ? void 0 : _target$parent$node.getProp('dataListBind'));
333
335
  }
334
336
  }
335
337
  }, {
@@ -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.211';
107
+ version = '0.1.213';
108
108
  }
109
109
  if (basicLibraryVersion === void 0) {
110
110
  basicLibraryVersion = {
@@ -278,7 +278,7 @@ var TeletextListMeta = {
278
278
  },
279
279
  extraProps: {
280
280
  setValue: function setValue(target, value) {
281
- var _target$node, _schema$children, _schema$children$filt;
281
+ var _target$node, _schema$children, _schema$children$filt, _target$parent$node;
282
282
  target.getProps().setPropValue('textLines', value);
283
283
  // 获取组件schema
284
284
  var schema = target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : _target$node.schema;
@@ -308,7 +308,9 @@ var TeletextListMeta = {
308
308
  }
309
309
 
310
310
  // 更新数据源绑定的配置
311
- var dataListBindProp = target.node.getProp('dataListBind');
311
+ var dataListBindProp = target.parent.items.find(function (item) {
312
+ return item.name === 'dataListBind';
313
+ });
312
314
  if (dataListBindProp && dataListBindProp.setter) {
313
315
  var baseChildren = [{
314
316
  label: '图片链接',
@@ -334,7 +336,7 @@ var TeletextListMeta = {
334
336
  // 更新setter的attributes
335
337
  dataListBindProp.setter.props.attributes[0].children = [].concat(baseChildren, textChildren);
336
338
  }
337
- console.log('文字行数', target, value, schema);
339
+ console.log('文字行数', target, value, schema, target.node, target.parent, target.parent.getPropValue('dataListBind'), (_target$parent$node = target.parent.node) === null || _target$parent$node === void 0 ? void 0 : _target$parent$node.getProp('dataListBind'));
338
340
  }
339
341
  }
340
342
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.211",
3
+ "version": "0.1.213",
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.211/build/lowcode/assets-prod.json"
109
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.213/build/lowcode/assets-prod.json"
110
110
  },
111
111
  "lcMeta": {
112
112
  "type": "component"