@dckj-npm/dc-material 0.1.199 → 0.1.201

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.
@@ -133,7 +133,8 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
133
133
  },
134
134
  },
135
135
  {
136
- name: '数据源绑定',
136
+ title: '数据源绑定',
137
+ name: 'dataListBind',
137
138
  setter: {
138
139
  componentName: 'SetterFormVariable',
139
140
  props: {
@@ -153,7 +154,11 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
153
154
  extraProps: {
154
155
  getValue(target, value) {
155
156
  const textLines = target.getProps().getPropValue('textLines')
156
- console.log('dataList getValue', target, value)
157
+ const a = target?.getValue()
158
+ const b = target?.getPropValue('dataListBind')
159
+ const c = target?.getDefaultValue()
160
+ const d = target?.getExtraPropValue('dataListBind')
161
+ console.log('dataList getValue', target, value, a, b, c, d)
157
162
  },
158
163
  setValue: (target, value) => {
159
164
  console.log('dataList setValue', target, value)
@@ -347,11 +352,15 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
347
352
  ),
348
353
  )
349
354
  }
350
- const setter = target?.node?.getProp('数据源绑定')?.setter
355
+ const a = target?.getValue()
356
+ const b = target?.getPropValue('dataListBind')
357
+ const c = target?.getDefaultValue()
358
+ const d = target?.getExtraPropValue('dataListBind')
359
+ console.log('SettingField', a, b, c, d)
351
360
 
352
361
  // 设置新的数据源绑定配置
353
362
  // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
354
- console.log('文字行数', target, value, schema, setter)
363
+ console.log('文字行数', target, value, schema)
355
364
  },
356
365
  },
357
366
  },
@@ -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.199';
102
+ version = '0.1.201';
103
103
  }
104
104
  if (basicLibraryVersion === void 0) {
105
105
  basicLibraryVersion = {
@@ -106,7 +106,8 @@ var TeletextListMeta = {
106
106
  }
107
107
  }
108
108
  }, {
109
- name: '数据源绑定',
109
+ title: '数据源绑定',
110
+ name: 'dataListBind',
110
111
  setter: {
111
112
  componentName: 'SetterFormVariable',
112
113
  props: {
@@ -129,7 +130,11 @@ var TeletextListMeta = {
129
130
  extraProps: {
130
131
  getValue: function getValue(target, value) {
131
132
  var textLines = target.getProps().getPropValue('textLines');
132
- console.log('dataList getValue', target, value);
133
+ var a = target === null || target === void 0 ? void 0 : target.getValue();
134
+ var b = target === null || target === void 0 ? void 0 : target.getPropValue('dataListBind');
135
+ var c = target === null || target === void 0 ? void 0 : target.getDefaultValue();
136
+ var d = target === null || target === void 0 ? void 0 : target.getExtraPropValue('dataListBind');
137
+ console.log('dataList getValue', target, value, a, b, c, d);
133
138
  },
134
139
  setValue: function setValue(target, value) {
135
140
  console.log('dataList setValue', target, value);
@@ -273,7 +278,7 @@ var TeletextListMeta = {
273
278
  },
274
279
  extraProps: {
275
280
  setValue: function setValue(target, value) {
276
- var _target$node, _schema$children, _schema$children$filt, _target$node2, _target$node2$getProp;
281
+ var _target$node, _schema$children, _schema$children$filt;
277
282
  target.getProps().setPropValue('textLines', value);
278
283
  //获取组件schema
279
284
  var schema = target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : _target$node.schema;
@@ -301,11 +306,15 @@ var TeletextListMeta = {
301
306
  return !(child.componentName === 'NextText' && (_child$props$key2 = child.props.key) !== null && _child$props$key2 !== void 0 && _child$props$key2.startsWith('text-') && parseInt(child.props.key.split('-')[1]) > value);
302
307
  });
303
308
  }
304
- var setter = target === null || target === void 0 ? void 0 : (_target$node2 = target.node) === null || _target$node2 === void 0 ? void 0 : (_target$node2$getProp = _target$node2.getProp('数据源绑定')) === null || _target$node2$getProp === void 0 ? void 0 : _target$node2$getProp.setter;
309
+ var a = target === null || target === void 0 ? void 0 : target.getValue();
310
+ var b = target === null || target === void 0 ? void 0 : target.getPropValue('dataListBind');
311
+ var c = target === null || target === void 0 ? void 0 : target.getDefaultValue();
312
+ var d = target === null || target === void 0 ? void 0 : target.getExtraPropValue('dataListBind');
313
+ console.log('SettingField', a, b, c, d);
305
314
 
306
315
  // 设置新的数据源绑定配置
307
316
  // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
308
- console.log('文字行数', target, value, schema, setter);
317
+ console.log('文字行数', target, value, schema);
309
318
  }
310
319
  }
311
320
  }, {
@@ -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.199';
107
+ version = '0.1.201';
108
108
  }
109
109
  if (basicLibraryVersion === void 0) {
110
110
  basicLibraryVersion = {
@@ -111,7 +111,8 @@ var TeletextListMeta = {
111
111
  }
112
112
  }
113
113
  }, {
114
- name: '数据源绑定',
114
+ title: '数据源绑定',
115
+ name: 'dataListBind',
115
116
  setter: {
116
117
  componentName: 'SetterFormVariable',
117
118
  props: {
@@ -134,7 +135,11 @@ var TeletextListMeta = {
134
135
  extraProps: {
135
136
  getValue: function getValue(target, value) {
136
137
  var textLines = target.getProps().getPropValue('textLines');
137
- console.log('dataList getValue', target, value);
138
+ var a = target === null || target === void 0 ? void 0 : target.getValue();
139
+ var b = target === null || target === void 0 ? void 0 : target.getPropValue('dataListBind');
140
+ var c = target === null || target === void 0 ? void 0 : target.getDefaultValue();
141
+ var d = target === null || target === void 0 ? void 0 : target.getExtraPropValue('dataListBind');
142
+ console.log('dataList getValue', target, value, a, b, c, d);
138
143
  },
139
144
  setValue: function setValue(target, value) {
140
145
  console.log('dataList setValue', target, value);
@@ -278,7 +283,7 @@ var TeletextListMeta = {
278
283
  },
279
284
  extraProps: {
280
285
  setValue: function setValue(target, value) {
281
- var _target$node, _schema$children, _schema$children$filt, _target$node2, _target$node2$getProp;
286
+ var _target$node, _schema$children, _schema$children$filt;
282
287
  target.getProps().setPropValue('textLines', value);
283
288
  //获取组件schema
284
289
  var schema = target === null || target === void 0 ? void 0 : (_target$node = target.node) === null || _target$node === void 0 ? void 0 : _target$node.schema;
@@ -306,11 +311,15 @@ var TeletextListMeta = {
306
311
  return !(child.componentName === 'NextText' && (_child$props$key2 = child.props.key) !== null && _child$props$key2 !== void 0 && _child$props$key2.startsWith('text-') && parseInt(child.props.key.split('-')[1]) > value);
307
312
  });
308
313
  }
309
- var setter = target === null || target === void 0 ? void 0 : (_target$node2 = target.node) === null || _target$node2 === void 0 ? void 0 : (_target$node2$getProp = _target$node2.getProp('数据源绑定')) === null || _target$node2$getProp === void 0 ? void 0 : _target$node2$getProp.setter;
314
+ var a = target === null || target === void 0 ? void 0 : target.getValue();
315
+ var b = target === null || target === void 0 ? void 0 : target.getPropValue('dataListBind');
316
+ var c = target === null || target === void 0 ? void 0 : target.getDefaultValue();
317
+ var d = target === null || target === void 0 ? void 0 : target.getExtraPropValue('dataListBind');
318
+ console.log('SettingField', a, b, c, d);
310
319
 
311
320
  // 设置新的数据源绑定配置
312
321
  // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
313
- console.log('文字行数', target, value, schema, setter);
322
+ console.log('文字行数', target, value, schema);
314
323
  }
315
324
  }
316
325
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.199",
3
+ "version": "0.1.201",
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.199/build/lowcode/assets-prod.json"
109
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.201/build/lowcode/assets-prod.json"
110
110
  },
111
111
  "lcMeta": {
112
112
  "type": "component"