@dckj-npm/dc-material 0.1.207 → 0.1.209

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.
@@ -159,6 +159,12 @@ const TeletextListMeta: IPublicTypeComponentMetadata = {
159
159
  // const c = target?.getDefaultValue()
160
160
  // const d = target?.getExtraPropValue('dataListBind')
161
161
  const setter = target.setter.props.attributes
162
+ target.setter.props.attributes[0].children.push(
163
+ ...Array.from({ length: textLines }).map((_, index) => ({
164
+ label: `文本${index + 1}`,
165
+ value: `text${index + 1}`,
166
+ })),
167
+ )
162
168
  console.log('dataList getValue', target, value, setter)
163
169
  },
164
170
  setValue: (target, value) => {
@@ -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.206';
102
+ version = '0.1.209';
103
103
  }
104
104
  if (basicLibraryVersion === void 0) {
105
105
  basicLibraryVersion = {
@@ -129,12 +129,21 @@ var TeletextListMeta = {
129
129
  },
130
130
  extraProps: {
131
131
  getValue: function getValue(target, value) {
132
+ var _target$setter$props$;
132
133
  var textLines = target.getProps().getPropValue('textLines');
133
134
  // const a = target?.getValue()
134
135
  // const b = target?.getPropValue('dataListBind')
135
136
  // const c = target?.getDefaultValue()
136
137
  // const d = target?.getExtraPropValue('dataListBind')
137
138
  var setter = target.setter.props.attributes;
139
+ (_target$setter$props$ = target.setter.props.attributes[0].children).push.apply(_target$setter$props$, Array.from({
140
+ length: textLines
141
+ }).map(function (_, index) {
142
+ return {
143
+ label: "\u6587\u672C" + (index + 1),
144
+ value: "text" + (index + 1)
145
+ };
146
+ }));
138
147
  console.log('dataList getValue', target, value, setter);
139
148
  },
140
149
  setValue: function setValue(target, value) {
@@ -311,8 +320,6 @@ var TeletextListMeta = {
311
320
  // const b = target?.getPropValue('dataListBind')
312
321
  // const c = target?.getDefaultValue()
313
322
  // const d = target?.getExtraPropValue('dataListBind')
314
- var setter = target.setter.props.attributes;
315
- console.log('SettingField', setter);
316
323
 
317
324
  // 设置新的数据源绑定配置
318
325
  // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
@@ -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.206';
107
+ version = '0.1.209';
108
108
  }
109
109
  if (basicLibraryVersion === void 0) {
110
110
  basicLibraryVersion = {
@@ -134,12 +134,21 @@ var TeletextListMeta = {
134
134
  },
135
135
  extraProps: {
136
136
  getValue: function getValue(target, value) {
137
+ var _target$setter$props$;
137
138
  var textLines = target.getProps().getPropValue('textLines');
138
139
  // const a = target?.getValue()
139
140
  // const b = target?.getPropValue('dataListBind')
140
141
  // const c = target?.getDefaultValue()
141
142
  // const d = target?.getExtraPropValue('dataListBind')
142
143
  var setter = target.setter.props.attributes;
144
+ (_target$setter$props$ = target.setter.props.attributes[0].children).push.apply(_target$setter$props$, Array.from({
145
+ length: textLines
146
+ }).map(function (_, index) {
147
+ return {
148
+ label: "\u6587\u672C" + (index + 1),
149
+ value: "text" + (index + 1)
150
+ };
151
+ }));
143
152
  console.log('dataList getValue', target, value, setter);
144
153
  },
145
154
  setValue: function setValue(target, value) {
@@ -316,8 +325,6 @@ var TeletextListMeta = {
316
325
  // const b = target?.getPropValue('dataListBind')
317
326
  // const c = target?.getDefaultValue()
318
327
  // const d = target?.getExtraPropValue('dataListBind')
319
- var setter = target.setter.props.attributes;
320
- console.log('SettingField', setter);
321
328
 
322
329
  // 设置新的数据源绑定配置
323
330
  // target.getProps().setPropValue('数据源绑定', dataSourceConfig)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.207",
3
+ "version": "0.1.209",
4
4
  "description": "dc低代码物料",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -106,10 +106,10 @@
106
106
  },
107
107
  "componentConfig": {
108
108
  "isComponentLibrary": true,
109
- "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.206/build/lowcode/assets-prod.json"
109
+ "materialSchema": "https://unpkg.com/@dckj-npm/dc-material@0.1.209/build/lowcode/assets-prod.json"
110
110
  },
111
111
  "lcMeta": {
112
112
  "type": "component"
113
113
  },
114
114
  "homepage": "https://unpkg.com/@dckj-npm/dc-material@0.1.148/build/index.html"
115
- }
115
+ }