@lingxiteam/assets 1.0.11-alpha.2 → 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,10 +110,23 @@ 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
- if (props.iconType) {
116
+ if (props.iconType && !props.icon) {
117
+ var theme = props.theme,
118
+ fontAddress = props.fontAddress,
119
+ isIconFont = props.isIconFont,
120
+ svgContent = props.svgContent,
121
+ iconFile = props.iconFile;
122
+ props.icon = {
123
+ type: props.iconType,
124
+ theme: theme,
125
+ fontAddress: fontAddress,
126
+ isIconFont: isIconFont,
127
+ svgContent: svgContent,
128
+ iconFile: iconFile
129
+ };
100
130
  props.icon.type = props.iconType;
101
131
  delete props.iconType;
102
132
  }
@@ -110,15 +140,15 @@ var pc = {
110
140
  },
111
141
  'Dropdown|Menu': function DropdownMenu() {
112
142
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
113
- var _component$props7 = component.props,
114
- props = _component$props7 === void 0 ? {} : _component$props7;
143
+ var _component$props8 = component.props,
144
+ props = _component$props8 === void 0 ? {} : _component$props8;
115
145
  delete props.iconInfo;
116
146
  return component;
117
147
  },
118
148
  'Input|Card|Collapse': function InputCardCollapse() {
119
149
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
120
- var _component$props8 = component.props,
121
- props = _component$props8 === void 0 ? {} : _component$props8;
150
+ var _component$props9 = component.props,
151
+ props = _component$props9 === void 0 ? {} : _component$props9;
122
152
  delete props.type;
123
153
  delete props.theme;
124
154
  delete props.fontAddress;
@@ -136,8 +166,8 @@ var pc = {
136
166
  },
137
167
  'StdUpload|Icon': function StdUploadIcon() {
138
168
  var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
139
- var _component$props9 = component.props,
140
- props = _component$props9 === void 0 ? {} : _component$props9;
169
+ var _component$props10 = component.props,
170
+ props = _component$props10 === void 0 ? {} : _component$props10;
141
171
  delete props.type;
142
172
  delete props.theme;
143
173
  delete props.fontAddress;
@@ -146,6 +176,78 @@ var pc = {
146
176
  delete props.svgContent;
147
177
  delete props.iconFile;
148
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;
149
251
  }
150
252
  };
151
253
  /**