@tmagic/form 1.5.0-beta.1 → 1.5.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.
package/dist/tmagic-form.js
CHANGED
|
@@ -367,6 +367,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
367
367
|
]),
|
|
368
368
|
default: withCtx(() => [
|
|
369
369
|
(openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
370
|
+
"data-tmagic-form-item-prop": itemProp.value,
|
|
370
371
|
key: key(_ctx.config),
|
|
371
372
|
size: _ctx.size,
|
|
372
373
|
model: _ctx.model,
|
|
@@ -377,10 +378,11 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
377
378
|
prop: itemProp.value,
|
|
378
379
|
onChange: onChangeHandler,
|
|
379
380
|
onAddDiffCount
|
|
380
|
-
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"]))
|
|
381
|
+
}, null, 40, ["data-tmagic-form-item-prop", "size", "model", "last-values", "config", "name", "disabled", "prop"]))
|
|
381
382
|
]),
|
|
382
383
|
_: 1
|
|
383
384
|
})) : (openBlock(), createBlock(resolveDynamicComponent(tagName.value), {
|
|
385
|
+
"data-tmagic-form-item-prop": itemProp.value,
|
|
384
386
|
key: key(_ctx.config),
|
|
385
387
|
size: _ctx.size,
|
|
386
388
|
model: _ctx.model,
|
|
@@ -391,7 +393,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
391
393
|
prop: itemProp.value,
|
|
392
394
|
onChange: onChangeHandler,
|
|
393
395
|
onAddDiffCount
|
|
394
|
-
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"])),
|
|
396
|
+
}, null, 40, ["data-tmagic-form-item-prop", "size", "model", "last-values", "config", "name", "disabled", "prop"])),
|
|
395
397
|
extra.value && type.value !== "table" ? (openBlock(), createElementBlock("div", {
|
|
396
398
|
key: 2,
|
|
397
399
|
innerHTML: extra.value,
|
|
@@ -3968,14 +3970,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3968
3970
|
};
|
|
3969
3971
|
return (_ctx, _cache) => {
|
|
3970
3972
|
return openBlock(), createBlock(unref(TMagicPopover), {
|
|
3973
|
+
width: "220px",
|
|
3971
3974
|
visible: popoverVisible.value,
|
|
3972
|
-
|
|
3975
|
+
"destroy-on-close": true
|
|
3973
3976
|
}, {
|
|
3974
3977
|
reference: withCtx(() => [
|
|
3975
3978
|
createVNode(unref(TMagicInput), {
|
|
3976
3979
|
modelValue: _ctx.model[_ctx.name],
|
|
3977
3980
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3978
3981
|
clearable: "",
|
|
3982
|
+
"data-tmagic-form-item-prop": _ctx.prop,
|
|
3979
3983
|
size: _ctx.size,
|
|
3980
3984
|
placeholder: _ctx.config.placeholder,
|
|
3981
3985
|
disabled: _ctx.disabled,
|
|
@@ -4000,7 +4004,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
4000
4004
|
]),
|
|
4001
4005
|
key: "0"
|
|
4002
4006
|
} : void 0
|
|
4003
|
-
]), 1032, ["modelValue", "size", "placeholder", "disabled"])
|
|
4007
|
+
]), 1032, ["modelValue", "data-tmagic-form-item-prop", "size", "placeholder", "disabled"])
|
|
4004
4008
|
]),
|
|
4005
4009
|
default: withCtx(() => [
|
|
4006
4010
|
createElementVNode("div", _hoisted_1$1, [
|
package/dist/tmagic-form.umd.cjs
CHANGED
|
@@ -366,6 +366,7 @@
|
|
|
366
366
|
]),
|
|
367
367
|
default: vue.withCtx(() => [
|
|
368
368
|
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
369
|
+
"data-tmagic-form-item-prop": itemProp.value,
|
|
369
370
|
key: key(_ctx.config),
|
|
370
371
|
size: _ctx.size,
|
|
371
372
|
model: _ctx.model,
|
|
@@ -376,10 +377,11 @@
|
|
|
376
377
|
prop: itemProp.value,
|
|
377
378
|
onChange: onChangeHandler,
|
|
378
379
|
onAddDiffCount
|
|
379
|
-
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"]))
|
|
380
|
+
}, null, 40, ["data-tmagic-form-item-prop", "size", "model", "last-values", "config", "name", "disabled", "prop"]))
|
|
380
381
|
]),
|
|
381
382
|
_: 1
|
|
382
383
|
})) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(tagName.value), {
|
|
384
|
+
"data-tmagic-form-item-prop": itemProp.value,
|
|
383
385
|
key: key(_ctx.config),
|
|
384
386
|
size: _ctx.size,
|
|
385
387
|
model: _ctx.model,
|
|
@@ -390,7 +392,7 @@
|
|
|
390
392
|
prop: itemProp.value,
|
|
391
393
|
onChange: onChangeHandler,
|
|
392
394
|
onAddDiffCount
|
|
393
|
-
}, null, 40, ["size", "model", "last-values", "config", "name", "disabled", "prop"])),
|
|
395
|
+
}, null, 40, ["data-tmagic-form-item-prop", "size", "model", "last-values", "config", "name", "disabled", "prop"])),
|
|
394
396
|
extra.value && type.value !== "table" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
395
397
|
key: 2,
|
|
396
398
|
innerHTML: extra.value,
|
|
@@ -3967,14 +3969,16 @@
|
|
|
3967
3969
|
};
|
|
3968
3970
|
return (_ctx, _cache) => {
|
|
3969
3971
|
return vue.openBlock(), vue.createBlock(vue.unref(design.TMagicPopover), {
|
|
3972
|
+
width: "220px",
|
|
3970
3973
|
visible: popoverVisible.value,
|
|
3971
|
-
|
|
3974
|
+
"destroy-on-close": true
|
|
3972
3975
|
}, {
|
|
3973
3976
|
reference: vue.withCtx(() => [
|
|
3974
3977
|
vue.createVNode(vue.unref(design.TMagicInput), {
|
|
3975
3978
|
modelValue: _ctx.model[_ctx.name],
|
|
3976
3979
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.model[_ctx.name] = $event),
|
|
3977
3980
|
clearable: "",
|
|
3981
|
+
"data-tmagic-form-item-prop": _ctx.prop,
|
|
3978
3982
|
size: _ctx.size,
|
|
3979
3983
|
placeholder: _ctx.config.placeholder,
|
|
3980
3984
|
disabled: _ctx.disabled,
|
|
@@ -3999,7 +4003,7 @@
|
|
|
3999
4003
|
]),
|
|
4000
4004
|
key: "0"
|
|
4001
4005
|
} : void 0
|
|
4002
|
-
]), 1032, ["modelValue", "size", "placeholder", "disabled"])
|
|
4006
|
+
]), 1032, ["modelValue", "data-tmagic-form-item-prop", "size", "placeholder", "disabled"])
|
|
4003
4007
|
]),
|
|
4004
4008
|
default: vue.withCtx(() => [
|
|
4005
4009
|
vue.createElementVNode("div", _hoisted_1$1, [
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.5.0-beta.
|
|
2
|
+
"version": "1.5.0-beta.3",
|
|
3
3
|
"name": "@tmagic/form",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"vue": "^3.4.35",
|
|
55
55
|
"typescript": "*",
|
|
56
|
-
"@tmagic/design": "1.5.0-beta.
|
|
57
|
-
"@tmagic/utils": "1.5.0-beta.
|
|
56
|
+
"@tmagic/design": "1.5.0-beta.3",
|
|
57
|
+
"@tmagic/utils": "1.5.0-beta.3"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|
|
60
60
|
"typescript": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
<template #label><span v-html="type === 'checkbox' ? '' : text" :title="config.labelTitle"></span></template>
|
|
46
46
|
<TMagicTooltip v-if="tooltip">
|
|
47
47
|
<component
|
|
48
|
+
:data-tmagic-form-item-prop="itemProp"
|
|
48
49
|
:key="key(config)"
|
|
49
50
|
:size="size"
|
|
50
51
|
:is="tagName"
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
|
|
65
66
|
<component
|
|
66
67
|
v-else
|
|
68
|
+
:data-tmagic-form-item-prop="itemProp"
|
|
67
69
|
:key="key(config)"
|
|
68
70
|
:size="size"
|
|
69
71
|
:is="tagName"
|
package/src/fields/Text.vue
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<TMagicPopover :visible="popoverVisible"
|
|
2
|
+
<TMagicPopover width="220px" :visible="popoverVisible" :destroy-on-close="true">
|
|
3
3
|
<template #reference>
|
|
4
4
|
<TMagicInput
|
|
5
5
|
v-model="model[name]"
|
|
6
6
|
clearable
|
|
7
|
+
:data-tmagic-form-item-prop="prop"
|
|
7
8
|
:size="size"
|
|
8
9
|
:placeholder="config.placeholder"
|
|
9
10
|
:disabled="disabled"
|