@lingxiteam/assets 1.0.11-alpha.3 → 1.0.11-alpha.4

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.
@@ -60,13 +60,30 @@ var h5 = {
60
60
  delete props.svgContent;
61
61
  delete props.iconFile;
62
62
  return component;
63
+ },
64
+ DformFile: function DformFile() {
65
+ var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
66
+ // 新数据改成 accept、acceptExtension 从uploadAccepType当中获取 eg uploadAccepType = {accept,acceptExtension}
67
+ var _component$props5 = component.props,
68
+ props = _component$props5 === void 0 ? {} : _component$props5;
69
+ var accept = props.accept,
70
+ acceptExtension = props.acceptExtension;
71
+ if (props.hasOwnProperty('accept')) {
72
+ props.uploadAccepType.accept = accept;
73
+ props === null || props === void 0 ? true : delete props.accept;
74
+ }
75
+ if (props.hasOwnProperty('acceptExtension')) {
76
+ props.uploadAccepType.acceptExtension = acceptExtension;
77
+ props === null || props === void 0 ? true : delete props.acceptExtension;
78
+ }
79
+ return component;
63
80
  }
64
81
  };
65
82
  var pc = {
66
83
  'DatePicker|TimePicker': function DatePickerTimePicker() {
67
84
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
68
- var _component$props5 = component.props,
69
- props = _component$props5 === void 0 ? {} : _component$props5;
85
+ var _component$props6 = component.props,
86
+ props = _component$props6 === void 0 ? {} : _component$props6;
70
87
  var isCurrent = props.isCurrent,
71
88
  defaultValue = props.defaultValue,
72
89
  customTime = props.customTime;
@@ -93,8 +110,8 @@ var pc = {
93
110
  },
94
111
  Button: function Button() {
95
112
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
96
- var _component$props6 = component.props,
97
- props = _component$props6 === void 0 ? {} : _component$props6;
113
+ var _component$props7 = component.props,
114
+ props = _component$props7 === void 0 ? {} : _component$props7;
98
115
  // const { popoverSetting, showPopover } = props;
99
116
  if (props.iconType && !props.icon) {
100
117
  var theme = props.theme,
@@ -123,15 +140,15 @@ var pc = {
123
140
  },
124
141
  'Dropdown|Menu': function DropdownMenu() {
125
142
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
126
- var _component$props7 = component.props,
127
- props = _component$props7 === void 0 ? {} : _component$props7;
143
+ var _component$props8 = component.props,
144
+ props = _component$props8 === void 0 ? {} : _component$props8;
128
145
  delete props.iconInfo;
129
146
  return component;
130
147
  },
131
148
  'Input|Card|Collapse': function InputCardCollapse() {
132
149
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
133
- var _component$props8 = component.props,
134
- props = _component$props8 === void 0 ? {} : _component$props8;
150
+ var _component$props9 = component.props,
151
+ props = _component$props9 === void 0 ? {} : _component$props9;
135
152
  delete props.type;
136
153
  delete props.theme;
137
154
  delete props.fontAddress;
@@ -149,8 +166,8 @@ var pc = {
149
166
  },
150
167
  'StdUpload|Icon': function StdUploadIcon() {
151
168
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
152
- var _component$props9 = component.props,
153
- props = _component$props9 === void 0 ? {} : _component$props9;
169
+ var _component$props10 = component.props,
170
+ props = _component$props10 === void 0 ? {} : _component$props10;
154
171
  delete props.type;
155
172
  delete props.theme;
156
173
  delete props.fontAddress;
@@ -159,6 +176,78 @@ var pc = {
159
176
  delete props.svgContent;
160
177
  delete props.iconFile;
161
178
  return component;
179
+ },
180
+ Table: function Table() {
181
+ var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
182
+ var _component$props11 = component.props,
183
+ props = _component$props11 === void 0 ? {} : _component$props11;
184
+ if (typeof props.showCustom === 'boolean') {
185
+ // 旧数据
186
+ var iconPosition = props.iconPosition,
187
+ type = props.type,
188
+ theme = props.theme,
189
+ fontAddress = props.fontAddress,
190
+ isIconFont = props.isIconFont,
191
+ customTitle = props.customTitle,
192
+ customStyle = props.customStyle,
193
+ iconFile = props.iconFile,
194
+ showCustom = props.showCustom;
195
+ props.showCustom = {
196
+ iconPosition: iconPosition,
197
+ type: type,
198
+ theme: theme,
199
+ fontAddress: fontAddress,
200
+ isIconFont: isIconFont,
201
+ customTitle: customTitle,
202
+ customStyle: customStyle,
203
+ iconFile: iconFile,
204
+ hasCustom: showCustom
205
+ };
206
+ delete props.iconPosition;
207
+ delete props.type;
208
+ delete props.theme;
209
+ delete props.fontAddress;
210
+ delete props.isIconFont;
211
+ delete props.customTitle;
212
+ delete props.customStyle;
213
+ delete props.iconFile;
214
+ }
215
+ return component;
216
+ },
217
+ Upload: function Upload(component) {
218
+ var _component$props12 = component.props,
219
+ props = _component$props12 === void 0 ? {} : _component$props12;
220
+ if (props.hasOwnProperty('action')) {
221
+ // 旧数据含有action
222
+ props.columns.api = props.action;
223
+ delete props.action;
224
+ }
225
+ if (props.hasOwnProperty('accept') && props.hasOwnProperty('acceptType')) {
226
+ // 实际数据是取acceptType
227
+ delete props.accept;
228
+ }
229
+ return component;
230
+ },
231
+ StdUpload: function StdUpload(component) {
232
+ var props = component.props;
233
+ var accept = props.accept,
234
+ acceptExtension = props.acceptExtension,
235
+ action = props.action;
236
+ // 旧数据含有action
237
+ if (props.hasOwnProperty('action')) {
238
+ props.columns.api = action;
239
+ delete props.action;
240
+ }
241
+ // 新数据改成 accept、acceptExtension 从uploadAccepType当中获取 eg uploadAccepType = {accept,acceptExtension}
242
+ if (props.hasOwnProperty('accept')) {
243
+ props.uploadAccepType.accept = accept;
244
+ props === null || props === void 0 ? true : delete props.accept;
245
+ }
246
+ if (props.hasOwnProperty('acceptExtension')) {
247
+ props.uploadAccepType.acceptExtension = acceptExtension;
248
+ props === null || props === void 0 ? true : delete props.acceptExtension;
249
+ }
250
+ return component;
162
251
  }
163
252
  };
164
253
  /**