@tmagic/element-plus-adapter 1.7.0-beta.1 → 1.7.0-beta.3
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 { ElTableColumn, ElTable, ElLoading, ElPopconfirm, ElUpload, ElTooltip, ElTimePicker, ElTag, ElTabs, ElTabPane, ElSwitch, ElSteps, ElStep, ElSelect, ElScrollbar, ElRow, ElRadioGroup, ElRadioButton, ElRadio, ElPagination, ElOptionGroup, ElOption, ElInputNumber, ElInput, ElIcon, ElForm, ElDropdownMenu, ElDropdownItem, ElDropdown, ElDrawer, ElDivider, ElDialog, ElDatePicker, ElColorPicker, ElCollapseItem, ElCollapse, ElCol, ElCheckboxGroup, ElCheckbox, ElCascader, ElCard, ElButton, ElBadge, ElAutocomplete, ElMessageBox, ElMessage, useZIndex } from 'element-plus';
|
|
1
|
+
import { ElFormItem, ElTableColumn, ElTable, ElLoading, ElPopconfirm, ElUpload, ElTooltip, ElTimePicker, ElTag, ElTabs, ElTabPane, ElSwitch, ElSteps, ElStep, ElSelect, ElScrollbar, ElRow, ElRadioGroup, ElRadioButton, ElRadio, ElPagination, ElOptionGroup, ElOption, ElInputNumber, ElInput, ElIcon, ElForm, ElDropdownMenu, ElDropdownItem, ElDropdown, ElDrawer, ElDivider, ElDialog, ElDatePicker, ElColorPicker, ElCollapseItem, ElCollapse, ElCol, ElCheckboxGroup, ElCheckbox, ElCascader, ElCard, ElButton, ElBadge, ElAutocomplete, ElMessageBox, ElMessage, useZIndex } from 'element-plus';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @vue/shared v3.5.22
|
|
@@ -1940,9 +1940,6 @@ getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
|
|
|
1940
1940
|
getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
1941
1941
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
1942
1942
|
const COMPONENTS = "components";
|
|
1943
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
1944
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
1945
|
-
}
|
|
1946
1943
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
1947
1944
|
function resolveDynamicComponent(component) {
|
|
1948
1945
|
if (isString(component)) {
|
|
@@ -2734,9 +2731,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2734
2731
|
return rest;
|
|
2735
2732
|
});
|
|
2736
2733
|
return (_ctx, _cache) => {
|
|
2737
|
-
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
2738
2734
|
return openBlock(), createBlock(
|
|
2739
|
-
|
|
2735
|
+
unref(ElFormItem),
|
|
2740
2736
|
normalizeProps(guardReactiveProps(itemProps.value)),
|
|
2741
2737
|
{
|
|
2742
2738
|
label: withCtx(() => [
|
|
@@ -2879,6 +2875,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2879
2875
|
});
|
|
2880
2876
|
|
|
2881
2877
|
const adapter = {
|
|
2878
|
+
adapterType: "element-plus",
|
|
2882
2879
|
useZIndex,
|
|
2883
2880
|
message: ElMessage,
|
|
2884
2881
|
messageBox: ElMessageBox,
|
|
@@ -2893,7 +2890,12 @@ const adapter = {
|
|
|
2893
2890
|
},
|
|
2894
2891
|
button: {
|
|
2895
2892
|
component: ElButton,
|
|
2896
|
-
props: (props) =>
|
|
2893
|
+
props: (props) => {
|
|
2894
|
+
return {
|
|
2895
|
+
...props,
|
|
2896
|
+
type: props.type === "default" ? "" : props.type
|
|
2897
|
+
};
|
|
2898
|
+
}
|
|
2897
2899
|
},
|
|
2898
2900
|
card: {
|
|
2899
2901
|
component: ElCard,
|
|
@@ -1944,9 +1944,6 @@
|
|
|
1944
1944
|
getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
|
|
1945
1945
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
1946
1946
|
const COMPONENTS = "components";
|
|
1947
|
-
function resolveComponent(name, maybeSelfReference) {
|
|
1948
|
-
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
1949
|
-
}
|
|
1950
1947
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
1951
1948
|
function resolveDynamicComponent(component) {
|
|
1952
1949
|
if (isString(component)) {
|
|
@@ -2738,9 +2735,8 @@ Component that was made reactive: `,
|
|
|
2738
2735
|
return rest;
|
|
2739
2736
|
});
|
|
2740
2737
|
return (_ctx, _cache) => {
|
|
2741
|
-
const _component_ElFormItem = resolveComponent("ElFormItem");
|
|
2742
2738
|
return openBlock(), createBlock(
|
|
2743
|
-
|
|
2739
|
+
unref(elementPlus.ElFormItem),
|
|
2744
2740
|
normalizeProps(guardReactiveProps(itemProps.value)),
|
|
2745
2741
|
{
|
|
2746
2742
|
label: withCtx(() => [
|
|
@@ -2883,6 +2879,7 @@ Component that was made reactive: `,
|
|
|
2883
2879
|
});
|
|
2884
2880
|
|
|
2885
2881
|
const adapter = {
|
|
2882
|
+
adapterType: "element-plus",
|
|
2886
2883
|
useZIndex: elementPlus.useZIndex,
|
|
2887
2884
|
message: elementPlus.ElMessage,
|
|
2888
2885
|
messageBox: elementPlus.ElMessageBox,
|
|
@@ -2897,7 +2894,12 @@ Component that was made reactive: `,
|
|
|
2897
2894
|
},
|
|
2898
2895
|
button: {
|
|
2899
2896
|
component: elementPlus.ElButton,
|
|
2900
|
-
props: (props) =>
|
|
2897
|
+
props: (props) => {
|
|
2898
|
+
return {
|
|
2899
|
+
...props,
|
|
2900
|
+
type: props.type === "default" ? "" : props.type
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2901
2903
|
},
|
|
2902
2904
|
card: {
|
|
2903
2905
|
component: elementPlus.ElCard,
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.7.0-beta.
|
|
2
|
+
"version": "1.7.0-beta.3",
|
|
3
3
|
"name": "@tmagic/element-plus-adapter",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/tmagic-element-plus-adapter.umd.cjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"element-plus": ">=2.9.0",
|
|
39
39
|
"typescript": "^5.9.3",
|
|
40
|
-
"@tmagic/design": "1.7.0-beta.
|
|
40
|
+
"@tmagic/design": "1.7.0-beta.3"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"typescript": {
|
package/src/FormItem.vue
CHANGED
package/src/index.ts
CHANGED
|
@@ -94,6 +94,7 @@ import FormItem from './FormItem.vue';
|
|
|
94
94
|
import Table from './Table.vue';
|
|
95
95
|
|
|
96
96
|
const adapter: DesignPluginOptions = {
|
|
97
|
+
adapterType: 'element-plus',
|
|
97
98
|
useZIndex,
|
|
98
99
|
message: ElMessage,
|
|
99
100
|
messageBox: ElMessageBox,
|
|
@@ -110,7 +111,12 @@ const adapter: DesignPluginOptions = {
|
|
|
110
111
|
|
|
111
112
|
button: {
|
|
112
113
|
component: ElButton as any,
|
|
113
|
-
props: (props: ButtonProps) =>
|
|
114
|
+
props: (props: ButtonProps) => {
|
|
115
|
+
return {
|
|
116
|
+
...props,
|
|
117
|
+
type: props.type === 'default' ? '' : props.type,
|
|
118
|
+
};
|
|
119
|
+
},
|
|
114
120
|
},
|
|
115
121
|
|
|
116
122
|
card: {
|