@dckj-npm/dc-material 0.1.208 → 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,30 +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 = [
163
- {
164
- label: '图文数据',
165
- value: 'dataList',
166
- children: [
167
- {
168
- label: '图片链接',
169
- value: 'image',
170
- },
171
- {
172
- label: '标题',
173
- value: 'title',
174
- },
175
- {
176
- label: '说明',
177
- value: 'description',
178
- },
179
- ...Array.from({ length: textLines }).map((_, index) => ({
180
- label: `文本${index + 1}`,
181
- value: `text${index + 1}`,
182
- })),
183
- ],
184
- },
185
- ]
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
+ )
186
168
  console.log('dataList getValue', target, value, setter)
187
169
  },
188
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.208';
102
+ version = '0.1.209';
103
103
  }
104
104
  if (basicLibraryVersion === void 0) {
105
105
  basicLibraryVersion = {
@@ -129,33 +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;
138
- target.setter.props.attributes = [{
139
- label: '图文数据',
140
- value: 'dataList',
141
- children: [{
142
- label: '图片链接',
143
- value: 'image'
144
- }, {
145
- label: '标题',
146
- value: 'title'
147
- }, {
148
- label: '说明',
149
- value: 'description'
150
- }].concat(Array.from({
151
- length: textLines
152
- }).map(function (_, index) {
153
- return {
154
- label: "\u6587\u672C" + (index + 1),
155
- value: "text" + (index + 1)
156
- };
157
- }))
158
- }];
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
+ }));
159
147
  console.log('dataList getValue', target, value, setter);
160
148
  },
161
149
  setValue: function setValue(target, value) {
@@ -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.208';
107
+ version = '0.1.209';
108
108
  }
109
109
  if (basicLibraryVersion === void 0) {
110
110
  basicLibraryVersion = {
@@ -134,33 +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;
143
- target.setter.props.attributes = [{
144
- label: '图文数据',
145
- value: 'dataList',
146
- children: [{
147
- label: '图片链接',
148
- value: 'image'
149
- }, {
150
- label: '标题',
151
- value: 'title'
152
- }, {
153
- label: '说明',
154
- value: 'description'
155
- }].concat(Array.from({
156
- length: textLines
157
- }).map(function (_, index) {
158
- return {
159
- label: "\u6587\u672C" + (index + 1),
160
- value: "text" + (index + 1)
161
- };
162
- }))
163
- }];
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
+ }));
164
152
  console.log('dataList getValue', target, value, setter);
165
153
  },
166
154
  setValue: function setValue(target, value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dckj-npm/dc-material",
3
- "version": "0.1.208",
3
+ "version": "0.1.209",
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.208/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"