@tmagic/form 1.4.0-beta.2 → 1.4.1
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.
- package/dist/tmagic-form.js +8 -5
- package/dist/tmagic-form.umd.cjs +8 -5
- package/package.json +3 -3
- package/src/containers/GroupListItem.vue +3 -3
- package/src/index.ts +1 -3
- package/src/schema.ts +1 -0
- package/types/index.d.ts +1 -1
- package/types/schema.d.ts +1 -0
package/dist/tmagic-form.js
CHANGED
|
@@ -818,14 +818,19 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
818
818
|
createVNode(unref(TMagicButton), {
|
|
819
819
|
link: "",
|
|
820
820
|
disabled: _ctx.disabled,
|
|
821
|
-
icon: expand.value ? unref(CaretBottom) : unref(CaretRight),
|
|
822
821
|
onClick: expandHandler
|
|
823
822
|
}, {
|
|
824
823
|
default: withCtx(() => [
|
|
824
|
+
createVNode(unref(TMagicIcon), null, {
|
|
825
|
+
default: withCtx(() => [
|
|
826
|
+
expand.value ? (openBlock(), createBlock(unref(CaretBottom), { key: 0 })) : (openBlock(), createBlock(unref(CaretRight), { key: 1 }))
|
|
827
|
+
]),
|
|
828
|
+
_: 1
|
|
829
|
+
}),
|
|
825
830
|
createTextVNode(toDisplayString(title.value), 1)
|
|
826
831
|
]),
|
|
827
832
|
_: 1
|
|
828
|
-
}, 8, ["disabled"
|
|
833
|
+
}, 8, ["disabled"]),
|
|
829
834
|
withDirectives(createVNode(unref(TMagicButton), {
|
|
830
835
|
style: { "color": "#f56c6c" },
|
|
831
836
|
link: "",
|
|
@@ -4524,9 +4529,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4524
4529
|
}
|
|
4525
4530
|
});
|
|
4526
4531
|
|
|
4527
|
-
const createForm =
|
|
4528
|
-
return config;
|
|
4529
|
-
};
|
|
4532
|
+
const createForm = (config) => config;
|
|
4530
4533
|
const defaultInstallOpt = {};
|
|
4531
4534
|
const index = {
|
|
4532
4535
|
install(app, opt = {}) {
|
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -817,14 +817,19 @@
|
|
|
817
817
|
vue.createVNode(vue.unref(design.TMagicButton), {
|
|
818
818
|
link: "",
|
|
819
819
|
disabled: _ctx.disabled,
|
|
820
|
-
icon: expand.value ? vue.unref(iconsVue.CaretBottom) : vue.unref(iconsVue.CaretRight),
|
|
821
820
|
onClick: expandHandler
|
|
822
821
|
}, {
|
|
823
822
|
default: vue.withCtx(() => [
|
|
823
|
+
vue.createVNode(vue.unref(design.TMagicIcon), null, {
|
|
824
|
+
default: vue.withCtx(() => [
|
|
825
|
+
expand.value ? (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretBottom), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(iconsVue.CaretRight), { key: 1 }))
|
|
826
|
+
]),
|
|
827
|
+
_: 1
|
|
828
|
+
}),
|
|
824
829
|
vue.createTextVNode(vue.toDisplayString(title.value), 1)
|
|
825
830
|
]),
|
|
826
831
|
_: 1
|
|
827
|
-
}, 8, ["disabled"
|
|
832
|
+
}, 8, ["disabled"]),
|
|
828
833
|
vue.withDirectives(vue.createVNode(vue.unref(design.TMagicButton), {
|
|
829
834
|
style: { "color": "#f56c6c" },
|
|
830
835
|
link: "",
|
|
@@ -4523,9 +4528,7 @@
|
|
|
4523
4528
|
}
|
|
4524
4529
|
});
|
|
4525
4530
|
|
|
4526
|
-
const createForm =
|
|
4527
|
-
return config;
|
|
4528
|
-
};
|
|
4531
|
+
const createForm = (config) => config;
|
|
4529
4532
|
const defaultInstallOpt = {};
|
|
4530
4533
|
const index = {
|
|
4531
4534
|
install(app, opt = {}) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.4.
|
|
2
|
+
"version": "1.4.1",
|
|
3
3
|
"name": "@tmagic/form",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@element-plus/icons-vue": "^2.3.1",
|
|
35
|
-
"@tmagic/design": "1.4.
|
|
36
|
-
"@tmagic/utils": "1.4.
|
|
35
|
+
"@tmagic/design": "1.4.1",
|
|
36
|
+
"@tmagic/utils": "1.4.1",
|
|
37
37
|
"lodash-es": "^4.17.21",
|
|
38
38
|
"sortablejs": "^1.14.0",
|
|
39
39
|
"vue": "^3.4.21"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="m-fields-group-list-item">
|
|
3
3
|
<div>
|
|
4
|
-
<TMagicButton link :disabled="disabled"
|
|
5
|
-
title
|
|
6
|
-
|
|
4
|
+
<TMagicButton link :disabled="disabled" @click="expandHandler">
|
|
5
|
+
<TMagicIcon><CaretBottom v-if="expand" /><CaretRight v-else /></TMagicIcon>{{ title }}
|
|
6
|
+
</TMagicButton>
|
|
7
7
|
|
|
8
8
|
<TMagicButton
|
|
9
9
|
v-show="showDelete(parseInt(String(index)))"
|
package/src/index.ts
CHANGED
|
@@ -89,9 +89,7 @@ export { default as MSelect } from './fields/Select.vue';
|
|
|
89
89
|
export { default as MCascader } from './fields/Cascader.vue';
|
|
90
90
|
export { default as MDynamicField } from './fields/DynamicField.vue';
|
|
91
91
|
|
|
92
|
-
export const createForm =
|
|
93
|
-
return config;
|
|
94
|
-
};
|
|
92
|
+
export const createForm = <T extends [] = []>(config: FormConfig | T) => config;
|
|
95
93
|
|
|
96
94
|
export interface InstallOptions {
|
|
97
95
|
[key: string]: any;
|
package/src/schema.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export { default as MLink } from './fields/Link.vue';
|
|
|
35
35
|
export { default as MSelect } from './fields/Select.vue';
|
|
36
36
|
export { default as MCascader } from './fields/Cascader.vue';
|
|
37
37
|
export { default as MDynamicField } from './fields/DynamicField.vue';
|
|
38
|
-
export declare const createForm: (config: FormConfig) => FormConfig;
|
|
38
|
+
export declare const createForm: <T extends [] = []>(config: FormConfig | T) => FormConfig | T;
|
|
39
39
|
export interface InstallOptions {
|
|
40
40
|
[key: string]: any;
|
|
41
41
|
}
|