@tmagic/element-plus-adapter 1.5.2 → 1.5.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.
@@ -1,4 +1,4 @@
1
- import { useZIndex, ElMessage, ElMessageBox, ElAutocomplete, ElBadge, ElButton, ElCard, ElCascader, ElCheckbox, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElColorPicker, ElDatePicker, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElInput, ElInputNumber, ElOption, ElOptionGroup, ElPagination, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElScrollbar, ElSelect, ElStep, ElSteps, ElSwitch, ElTable, ElTableColumn, ElTabPane, ElTabs, ElTag, ElTimePicker, ElTooltip, ElTree, ElUpload } from 'element-plus';
1
+ import { useZIndex, ElMessage, ElMessageBox, ElAutocomplete, ElBadge, ElButton, ElCard, ElCascader, ElCheckbox, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElColorPicker, ElDatePicker, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElInput, ElInputNumber, ElOption, ElOptionGroup, ElPagination, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElScrollbar, ElSelect, ElStep, ElSteps, ElSwitch, ElTable, ElTableColumn, ElTabPane, ElTabs, ElTag, ElTimePicker, ElTooltip, ElTree, ElUpload, ElLoading } from 'element-plus';
2
2
 
3
3
  const adapter = {
4
4
  useZIndex,
@@ -181,7 +181,8 @@ const adapter = {
181
181
  component: ElUpload,
182
182
  props: (props) => props
183
183
  }
184
- }
184
+ },
185
+ loading: ElLoading.directive
185
186
  };
186
187
 
187
188
  export { adapter as default };
@@ -185,7 +185,8 @@
185
185
  component: elementPlus.ElUpload,
186
186
  props: (props) => props
187
187
  }
188
- }
188
+ },
189
+ loading: elementPlus.ElLoading.directive
189
190
  };
190
191
 
191
192
  return adapter;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.2",
2
+ "version": "1.5.4",
3
3
  "name": "@tmagic/element-plus-adapter",
4
4
  "type": "module",
5
5
  "main": "dist/tmagic-element-plus-adapter.umd.cjs",
@@ -42,7 +42,7 @@
42
42
  "peerDependencies": {
43
43
  "element-plus": ">=2.8.0",
44
44
  "typescript": "*",
45
- "@tmagic/design": "1.5.2"
45
+ "@tmagic/design": "1.5.4"
46
46
  },
47
47
  "peerDependenciesMeta": {
48
48
  "typescript": {
package/src/index.ts CHANGED
@@ -22,6 +22,7 @@ import {
22
22
  ElIcon,
23
23
  ElInput,
24
24
  ElInputNumber,
25
+ ElLoading,
25
26
  ElMessage,
26
27
  ElMessageBox,
27
28
  ElOption,
@@ -318,6 +319,7 @@ const adapter: DesignPluginOptions = {
318
319
  props: (props: UploadProps) => props,
319
320
  },
320
321
  },
322
+ loading: ElLoading.directive,
321
323
  };
322
324
 
323
325
  export default adapter;