@dckj-npm/dc-material 0.1.196 → 0.1.198

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,18 +153,10 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
153
153
  extraProps: {
154
154
  getValue(target, value) {
155
155
  const textLines = target.getProps().getPropValue('textLines')
156
- console.log('dataList', target, value)
157
- return [
158
- { label: '图片链接', value: 'image' },
159
- // 根据实际的 textLines 动态生成文本字段
160
- ...Array.from({ length: textLines }).map((_, index) => ({
161
- label: `文本${index + 1}`,
162
- value: `text${index + 1}`,
163
- })),
164
- ]
156
+ console.log('dataList getValue', target, value)
165
157
  },
166
158
  setValue: (target, value) => {
167
- console.log('dataList', target, value)
159
+ console.log('dataList setValue', target, value)
168
160
  },
169
161
  },
170
162
  },
@@ -355,7 +347,7 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
355
347
  ),
356
348
  )
357
349
  }
358
- //改变属性dataList的值
350
+ // 改变属性dataList的值
359
351
  const dataListChildren = target.getProps().getPropValue('数据源绑定')
360
352
  const dataSourceConfig = {
361
353
  label: '图文数据',
@@ -373,7 +365,7 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
373
365
  }
374
366
 
375
367
  // 设置新的数据源绑定配置
376
- target.getProps().setPropValue('数据源绑定', dataSourceConfig)
368
+ // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
377
369
  console.log('文字行数', target, value, schema, dataListChildren)
378
370
  },
379
371
  },
@@ -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.196';
102
+ version = '0.1.198';
103
103
  }
104
104
  if (basicLibraryVersion === void 0) {
105
105
  basicLibraryVersion = {
@@ -129,21 +129,10 @@ var TeletextListMeta = {
129
129
  extraProps: {
130
130
  getValue: function getValue(target, value) {
131
131
  var textLines = target.getProps().getPropValue('textLines');
132
- console.log('dataList', target, value);
133
- return [{
134
- label: '图片链接',
135
- value: 'image'
136
- }].concat(Array.from({
137
- length: textLines
138
- }).map(function (_, index) {
139
- return {
140
- label: "\u6587\u672C" + (index + 1),
141
- value: "text" + (index + 1)
142
- };
143
- }));
132
+ console.log('dataList getValue', target, value);
144
133
  },
145
134
  setValue: function setValue(target, value) {
146
- console.log('dataList', target, value);
135
+ console.log('dataList setValue', target, value);
147
136
  }
148
137
  }
149
138
  }, {
@@ -312,7 +301,7 @@ var TeletextListMeta = {
312
301
  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);
313
302
  });
314
303
  }
315
- //改变属性dataList的值
304
+ // 改变属性dataList的值
316
305
  var dataListChildren = target.getProps().getPropValue('数据源绑定');
317
306
  var dataSourceConfig = {
318
307
  label: '图文数据',
@@ -337,7 +326,7 @@ var TeletextListMeta = {
337
326
  };
338
327
 
339
328
  // 设置新的数据源绑定配置
340
- target.getProps().setPropValue('数据源绑定', dataSourceConfig);
329
+ // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
341
330
  console.log('文字行数', target, value, schema, dataListChildren);
342
331
  }
343
332
  }
@@ -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.196';
107
+ version = '0.1.198';
108
108
  }
109
109
  if (basicLibraryVersion === void 0) {
110
110
  basicLibraryVersion = {
@@ -134,21 +134,10 @@ var TeletextListMeta = {
134
134
  extraProps: {
135
135
  getValue: function getValue(target, value) {
136
136
  var textLines = target.getProps().getPropValue('textLines');
137
- console.log('dataList', target, value);
138
- return [{
139
- label: '图片链接',
140
- value: 'image'
141
- }].concat(Array.from({
142
- length: textLines
143
- }).map(function (_, index) {
144
- return {
145
- label: "\u6587\u672C" + (index + 1),
146
- value: "text" + (index + 1)
147
- };
148
- }));
137
+ console.log('dataList getValue', target, value);
149
138
  },
150
139
  setValue: function setValue(target, value) {
151
- console.log('dataList', target, value);
140
+ console.log('dataList setValue', target, value);
152
141
  }
153
142
  }
154
143
  }, {
@@ -317,7 +306,7 @@ var TeletextListMeta = {
317
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);
318
307
  });
319
308
  }
320
- //改变属性dataList的值
309
+ // 改变属性dataList的值
321
310
  var dataListChildren = target.getProps().getPropValue('数据源绑定');
322
311
  var dataSourceConfig = {
323
312
  label: '图文数据',
@@ -342,7 +331,7 @@ var TeletextListMeta = {
342
331
  };
343
332
 
344
333
  // 设置新的数据源绑定配置
345
- target.getProps().setPropValue('数据源绑定', dataSourceConfig);
334
+ // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
346
335
  console.log('文字行数', target, value, schema, dataListChildren);
347
336
  }
348
337
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.196",
3
+ "version": "0.1.198",
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.196/build/lowcode/assets-prod.json"
109
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.198/build/lowcode/assets-prod.json"
110
110
  },
111
111
  "lcMeta": {
112
112
  "type": "component"