@king-one/form-antdv 0.0.15 → 0.0.17
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/CHANGELOG.md +16 -0
- package/dist/es/src/components/ArrayCard/array-card.vue2.mjs +64 -55
- package/dist/es/src/components/HalfInputNumber/half-input-number.vue2.mjs +27 -25
- package/dist/es/src/components/HalfInputNumber/index.mjs +8 -6
- package/dist/lib/src/components/ArrayCard/array-card.vue2.js +1 -1
- package/dist/lib/src/components/HalfInputNumber/half-input-number.vue2.js +1 -1
- package/dist/lib/src/components/HalfInputNumber/index.js +1 -1
- package/dist/theme-chalk/form-antdv.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/types/src/components/ArrayCard/array-card.vue.d.ts +7 -0
- package/dist/types/src/components/HalfInputNumber/half-input-number.vue.d.ts +14 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @king-one/form-antdv
|
|
2
2
|
|
|
3
|
+
## 0.0.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: 修复表单数据回显,完善加班套件的定义
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @king-one/form-render@0.0.13
|
|
10
|
+
|
|
11
|
+
## 0.0.16
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- feat: 新增一大波功能
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @king-one/form-render@0.0.12
|
|
18
|
+
|
|
3
19
|
## 0.0.15
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,79 +1,83 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Card as
|
|
1
|
+
import { defineComponent as w, mergeModels as A, useModel as E, computed as f, toRaw as V, openBlock as a, createElementBlock as c, normalizeClass as _, unref as r, createBlock as m, withCtx as s, createElementVNode as d, toDisplayString as v, createVNode as F, Fragment as b, renderList as k, createCommentVNode as C, createTextVNode as M } from "vue";
|
|
2
|
+
import { Card as g, Empty as S, Button as j } from "ant-design-vue";
|
|
3
3
|
import "../../internal.mjs";
|
|
4
|
-
import { useNamespace as
|
|
5
|
-
import { useInjectFieldContext as
|
|
6
|
-
const
|
|
4
|
+
import { useNamespace as D } from "../../hooks/use-namespace/index.mjs";
|
|
5
|
+
import { useInjectFieldContext as I, RecursionField as R } from "@king-one/form-render";
|
|
6
|
+
const z = { class: "title-box" }, L = ["onClick"], J = /* @__PURE__ */ w({
|
|
7
7
|
__name: "array-card",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ A({
|
|
9
9
|
title: {
|
|
10
10
|
type: String,
|
|
11
11
|
default: "默认标题"
|
|
12
|
+
},
|
|
13
|
+
disabled: {
|
|
14
|
+
type: Boolean
|
|
12
15
|
}
|
|
13
16
|
}, {
|
|
14
17
|
value: {},
|
|
15
18
|
valueModifiers: {}
|
|
16
19
|
}),
|
|
17
20
|
emits: ["update:value"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
21
|
+
setup(n) {
|
|
22
|
+
const $ = D("ArrayCard"), e = I(), l = E(n, "value"), y = f(() => {
|
|
20
23
|
var t;
|
|
21
24
|
return ((t = e == null ? void 0 : e.path) == null ? void 0 : t.toString()) || "";
|
|
22
25
|
}), p = f(() => !(e != null && e.schema.items) || Array.isArray(e == null ? void 0 : e.schema.items) ? {} : (e == null ? void 0 : e.schema.items.properties) || {});
|
|
23
|
-
function
|
|
24
|
-
if (
|
|
26
|
+
function x() {
|
|
27
|
+
if (l.value) {
|
|
25
28
|
const t = {};
|
|
26
|
-
Object.keys(p.value).forEach((
|
|
27
|
-
const
|
|
28
|
-
t[
|
|
29
|
-
}),
|
|
29
|
+
Object.keys(p.value).forEach((h) => {
|
|
30
|
+
const o = p.value[h].type || "string";
|
|
31
|
+
t[h] = o === "number" ? 0 : "";
|
|
32
|
+
}), l.value = [...V(l.value || []), t];
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
function
|
|
35
|
+
function B(t) {
|
|
33
36
|
e && (e == null || e.remove(t));
|
|
34
37
|
}
|
|
35
|
-
return (t,
|
|
36
|
-
var
|
|
37
|
-
return a(),
|
|
38
|
+
return (t, h) => {
|
|
39
|
+
var o;
|
|
40
|
+
return a(), c(
|
|
38
41
|
"div",
|
|
39
42
|
{
|
|
40
|
-
class:
|
|
43
|
+
class: _(r($).b())
|
|
41
44
|
},
|
|
42
45
|
[
|
|
43
|
-
(
|
|
44
|
-
|
|
46
|
+
(o = l.value) != null && o.length ? (a(!0), c(
|
|
47
|
+
b,
|
|
45
48
|
{ key: 1 },
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
k(l.value, (O, u) => (a(), m(
|
|
50
|
+
r(g),
|
|
48
51
|
{
|
|
49
|
-
key:
|
|
52
|
+
key: u,
|
|
50
53
|
style: { "margin-bottom": "12px" }
|
|
51
54
|
},
|
|
52
55
|
{
|
|
53
|
-
title:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
title: s(() => [
|
|
57
|
+
d("div", z, [
|
|
58
|
+
d(
|
|
56
59
|
"span",
|
|
57
60
|
null,
|
|
58
|
-
"#" +
|
|
61
|
+
"#" + v(u + 1) + " " + v(n.title),
|
|
59
62
|
1
|
|
60
63
|
/* TEXT */
|
|
61
64
|
),
|
|
62
|
-
|
|
65
|
+
n.disabled ? C("v-if", !0) : (a(), c("span", {
|
|
66
|
+
key: 0,
|
|
63
67
|
class: "delete-btn",
|
|
64
|
-
onClick: (
|
|
65
|
-
}, "删除", 8,
|
|
68
|
+
onClick: (i) => B(u)
|
|
69
|
+
}, "删除", 8, L))
|
|
66
70
|
])
|
|
67
71
|
]),
|
|
68
|
-
default:
|
|
69
|
-
(a(!0),
|
|
70
|
-
|
|
72
|
+
default: s(() => [
|
|
73
|
+
(a(!0), c(
|
|
74
|
+
b,
|
|
71
75
|
null,
|
|
72
|
-
|
|
73
|
-
key: `${y.value}.${
|
|
74
|
-
schema:
|
|
75
|
-
name:
|
|
76
|
-
"base-path": `${y.value}.${
|
|
76
|
+
k(p.value, (i, N) => (a(), m(r(R), {
|
|
77
|
+
key: `${y.value}.${N}.${i.name}`,
|
|
78
|
+
schema: i,
|
|
79
|
+
name: i.name,
|
|
80
|
+
"base-path": `${y.value}.${u}`
|
|
77
81
|
}, null, 8, ["schema", "name", "base-path"]))),
|
|
78
82
|
128
|
|
79
83
|
/* KEYED_FRAGMENT */
|
|
@@ -87,35 +91,40 @@ const R = { class: "title-box" }, z = ["onClick"], H = /* @__PURE__ */ A({
|
|
|
87
91
|
))),
|
|
88
92
|
128
|
|
89
93
|
/* KEYED_FRAGMENT */
|
|
90
|
-
)) : (a(),
|
|
91
|
-
title:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
)) : (a(), m(r(g), { key: 0 }, {
|
|
95
|
+
title: s(() => [
|
|
96
|
+
d("div", null, [
|
|
97
|
+
d(
|
|
94
98
|
"span",
|
|
95
99
|
null,
|
|
96
|
-
|
|
100
|
+
v(n.title),
|
|
97
101
|
1
|
|
98
102
|
/* TEXT */
|
|
99
103
|
)
|
|
100
104
|
])
|
|
101
105
|
]),
|
|
102
|
-
default:
|
|
103
|
-
|
|
106
|
+
default: s(() => [
|
|
107
|
+
F(r(S), { description: "暂无数据" })
|
|
104
108
|
]),
|
|
105
109
|
_: 1
|
|
106
110
|
/* STABLE */
|
|
107
111
|
})),
|
|
108
|
-
|
|
112
|
+
n.disabled ? C("v-if", !0) : (a(), m(r(j), {
|
|
113
|
+
key: 2,
|
|
109
114
|
type: "dashed",
|
|
110
115
|
style: { "margin-top": "10px", width: "100%" },
|
|
111
|
-
onClick:
|
|
116
|
+
onClick: x
|
|
112
117
|
}, {
|
|
113
|
-
default:
|
|
114
|
-
M(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
default: s(() => [
|
|
119
|
+
M(
|
|
120
|
+
" 添加 " + v(n.disabled),
|
|
121
|
+
1
|
|
122
|
+
/* TEXT */
|
|
123
|
+
)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
/* STABLE */
|
|
127
|
+
}))
|
|
119
128
|
],
|
|
120
129
|
2
|
|
121
130
|
/* CLASS */
|
|
@@ -124,5 +133,5 @@ const R = { class: "title-box" }, z = ["onClick"], H = /* @__PURE__ */ A({
|
|
|
124
133
|
}
|
|
125
134
|
});
|
|
126
135
|
export {
|
|
127
|
-
|
|
136
|
+
J as default
|
|
128
137
|
};
|
|
@@ -1,43 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InputNumber as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as u, openBlock as d, createBlock as i, unref as m } from "vue";
|
|
2
|
+
import { InputNumber as p } from "ant-design-vue";
|
|
3
|
+
const h = /* @__PURE__ */ u({
|
|
4
|
+
inheritAttrs: !1,
|
|
4
5
|
__name: "half-input-number",
|
|
5
|
-
props:
|
|
6
|
+
props: {
|
|
6
7
|
placeholder: { default: "请输入" },
|
|
7
|
-
min: { default: 0 }
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
emits: ["update:
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
function
|
|
8
|
+
min: { default: 0 },
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
modelValue: {},
|
|
11
|
+
addonAfter: { default: "" }
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(f, { emit: a }) {
|
|
15
|
+
const r = a;
|
|
16
|
+
function t(e) {
|
|
16
17
|
return e == null ? "0" : String(e);
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
+
function o(e) {
|
|
19
20
|
const n = Number.parseFloat(e);
|
|
20
21
|
return Number.isNaN(n) ? 0 : Math.round(n * 2) / 2;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
+
function l(e) {
|
|
23
24
|
if (e === null) {
|
|
24
|
-
|
|
25
|
+
r("update:modelValue", 0);
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
r("update:modelValue", Math.round(e * 2) / 2);
|
|
28
29
|
}
|
|
29
|
-
return (e, n) => (d(),
|
|
30
|
-
value:
|
|
31
|
-
"onUpdate:value": n[0] || (n[0] = (o) => u.value = o),
|
|
30
|
+
return (e, n) => (d(), i(m(p), {
|
|
31
|
+
value: e.modelValue,
|
|
32
32
|
placeholder: e.placeholder,
|
|
33
33
|
min: e.min,
|
|
34
|
+
"addon-after": e.addonAfter,
|
|
34
35
|
step: 0.5,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
disabled: e.disabled,
|
|
37
|
+
formatter: t,
|
|
38
|
+
parser: o,
|
|
39
|
+
onChange: l
|
|
40
|
+
}, null, 8, ["value", "placeholder", "min", "addon-after", "disabled"]));
|
|
39
41
|
}
|
|
40
42
|
});
|
|
41
43
|
export {
|
|
42
|
-
|
|
44
|
+
h as default
|
|
43
45
|
};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import "../../internal.mjs";
|
|
2
2
|
import "./half-input-number.vue.mjs";
|
|
3
|
-
import { transformComponent as o, connect as
|
|
3
|
+
import { transformComponent as o, connect as m, mapProps as r } from "@king-one/form-render";
|
|
4
4
|
import t from "./half-input-number.vue2.mjs";
|
|
5
|
-
const
|
|
6
|
-
change: "update:
|
|
7
|
-
}),
|
|
5
|
+
const e = o(t, {
|
|
6
|
+
change: "update:modelValue"
|
|
7
|
+
}), f = m(e, r({
|
|
8
|
+
value: "modelValue"
|
|
9
|
+
}));
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
f as HalfInputNumber,
|
|
12
|
+
e as TransformHalfInputNumber
|
|
11
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("ant-design-vue");require("../../internal.js");const y=require("../../hooks/use-namespace/index.js"),m=require("@king-one/form-render"),B={class:"title-box"},f=["onClick"],g=e.defineComponent({__name:"array-card",props:e.mergeModels({title:{type:String,default:"默认标题"},disabled:{type:Boolean}},{value:{},valueModifiers:{}}),emits:["update:value"],setup(a){const p=y.useNamespace("ArrayCard"),t=m.useInjectFieldContext(),r=e.useModel(a,"value"),d=e.computed(()=>{var n;return((n=t==null?void 0:t.path)==null?void 0:n.toString())||""}),u=e.computed(()=>!(t!=null&&t.schema.items)||Array.isArray(t==null?void 0:t.schema.items)?{}:(t==null?void 0:t.schema.items.properties)||{});function k(){if(r.value){const n={};Object.keys(u.value).forEach(i=>{const l=u.value[i].type||"string";n[i]=l==="number"?0:""}),r.value=[...e.toRaw(r.value||[]),n]}}function v(n){t&&(t==null||t.remove(n))}return(n,i)=>{var l;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p).b())},[(l=r.value)!=null&&l.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.value,(C,o)=>(e.openBlock(),e.createBlock(e.unref(s.Card),{key:o,style:{"margin-bottom":"12px"}},{title:e.withCtx(()=>[e.createElementVNode("div",B,[e.createElementVNode("span",null,"#"+e.toDisplayString(o+1)+" "+e.toDisplayString(a.title),1),a.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",{key:0,class:"delete-btn",onClick:c=>v(o)},"删除",8,f))])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(c,h)=>(e.openBlock(),e.createBlock(e.unref(m.RecursionField),{key:`${d.value}.${h}.${c.name}`,schema:c,name:c.name,"base-path":`${d.value}.${o}`},null,8,["schema","name","base-path"]))),128))]),_:2},1024))),128)):(e.openBlock(),e.createBlock(e.unref(s.Card),{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString(a.title),1)])]),default:e.withCtx(()=>[e.createVNode(e.unref(s.Empty),{description:"暂无数据"})]),_:1})),a.disabled?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock(e.unref(s.Button),{key:2,type:"dashed",style:{"margin-top":"10px",width:"100%"},onClick:k},{default:e.withCtx(()=>[e.createTextVNode(" 添加 "+e.toDisplayString(a.disabled),1)]),_:1}))],2)}}});exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),d=require("ant-design-vue"),i=n.defineComponent({inheritAttrs:!1,__name:"half-input-number",props:{placeholder:{default:"请输入"},min:{default:0},disabled:{type:Boolean},modelValue:{},addonAfter:{default:""}},emits:["update:modelValue"],setup(s,{emit:u}){const t=u;function a(e){return e==null?"0":String(e)}function l(e){const r=Number.parseFloat(e);return Number.isNaN(r)?0:Math.round(r*2)/2}function o(e){if(e===null){t("update:modelValue",0);return}t("update:modelValue",Math.round(e*2)/2)}return(e,r)=>(n.openBlock(),n.createBlock(n.unref(d.InputNumber),{value:e.modelValue,placeholder:e.placeholder,min:e.min,"addon-after":e.addonAfter,step:.5,disabled:e.disabled,formatter:a,parser:l,onChange:o},null,8,["value","placeholder","min","addon-after","disabled"]))}});exports.default=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../internal.js");require("./half-input-number.vue.js");const e=require("@king-one/form-render"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../internal.js");require("./half-input-number.vue.js");const e=require("@king-one/form-render"),u=require("./half-input-number.vue2.js"),r=e.transformComponent(u.default,{change:"update:modelValue"}),t=e.connect(r,e.mapProps({value:"modelValue"}));exports.HalfInputNumber=t;exports.TransformHalfInputNumber=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kr-antdv-ArrayCard .title-box{display:flex;justify-content:space-between;align-items:center;height:32px}.kr-antdv-ArrayCard .title-box .delete-btn{padding:2px 12px;color:var(--king-color-danger);font-size:14px;cursor:pointer;border:1px solid var(--king-color-danger);border-radius:4px;transition:all .3s ease}.kr-antdv-ArrayCard .title-box .delete-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,79,.3)}.kr-antdv-ArrayTable .ant-table-row .ant-table-cell{padding:0 8px!important}.k-render-form-provider .ant-input-number{width:100%}
|
|
1
|
+
.kr-antdv-ArrayCard .title-box{display:flex;justify-content:space-between;align-items:center;height:32px}.kr-antdv-ArrayCard .title-box .delete-btn{padding:2px 12px;color:var(--king-color-danger);font-size:14px;cursor:pointer;border:1px solid var(--king-color-danger);border-radius:4px;transition:all .3s ease}.kr-antdv-ArrayCard .title-box .delete-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,79,.3)}.kr-antdv-ArrayTable .ant-table-row .ant-table-cell{padding:0 8px!important}.k-render-form-provider .ant-input-number{width:100%}.ant-input-number-group-wrapper{width:100%}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-primary-light-3:#79bbff;--king-color-primary-light-5:#a0cfff;--king-color-primary-light-7:#c6e2ff;--king-color-primary-light-8:#d9ecff;--king-color-primary-light-9:#ecf5ff;--king-color-success:#67c23a;--king-color-success-light-3:#95d475;--king-color-success-light-5:#b3e19d;--king-color-success-light-7:#d1edc4;--king-color-success-light-8:#e1f3d8;--king-color-success-light-9:#f0f9eb;--king-color-warning:#e6a23c;--king-color-warning-light-3:#eebe77;--king-color-warning-light-5:#f3d19e;--king-color-warning-light-7:#f8e3c5;--king-color-warning-light-8:#faecd8;--king-color-warning-light-9:#fdf6ec;--king-color-danger:#f56c6c;--king-color-danger-light-3:#f89898;--king-color-danger-light-5:#fab6b6;--king-color-danger-light-7:#fcd3d3;--king-color-danger-light-8:#fde2e2;--king-color-danger-light-9:#fef0f0;--king-color-error:#f56c6c;--king-color-error-light-3:#f89898;--king-color-error-light-5:#fab6b6;--king-color-error-light-7:#fcd3d3;--king-color-error-light-8:#fde2e2;--king-color-error-light-9:#fef0f0;--king-color-info:#909399;--king-color-info-light-3:#b1b3b8;--king-color-info-light-5:#c8c9cc;--king-color-info-light-7:#dedfe0;--king-color-info-light-8:#e9e9eb;--king-color-info-light-9:#f4f4f5;--king-transition-duration:0.3s}.kr-antdv-ArrayCard .title-box{display:flex;justify-content:space-between;align-items:center;height:32px}.kr-antdv-ArrayCard .title-box .delete-btn{padding:2px 12px;color:var(--king-color-danger);font-size:14px;cursor:pointer;border:1px solid var(--king-color-danger);border-radius:4px;transition:all .3s ease}.kr-antdv-ArrayCard .title-box .delete-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,79,.3)}.kr-antdv-ArrayTable .ant-table-row .ant-table-cell{padding:0 8px!important}.k-render-form-provider .ant-input-number{width:100%}
|
|
1
|
+
:root{--king-color-white:#ffffff;--king-color-primary:#409eff;--king-color-primary-light-3:#79bbff;--king-color-primary-light-5:#a0cfff;--king-color-primary-light-7:#c6e2ff;--king-color-primary-light-8:#d9ecff;--king-color-primary-light-9:#ecf5ff;--king-color-success:#67c23a;--king-color-success-light-3:#95d475;--king-color-success-light-5:#b3e19d;--king-color-success-light-7:#d1edc4;--king-color-success-light-8:#e1f3d8;--king-color-success-light-9:#f0f9eb;--king-color-warning:#e6a23c;--king-color-warning-light-3:#eebe77;--king-color-warning-light-5:#f3d19e;--king-color-warning-light-7:#f8e3c5;--king-color-warning-light-8:#faecd8;--king-color-warning-light-9:#fdf6ec;--king-color-danger:#f56c6c;--king-color-danger-light-3:#f89898;--king-color-danger-light-5:#fab6b6;--king-color-danger-light-7:#fcd3d3;--king-color-danger-light-8:#fde2e2;--king-color-danger-light-9:#fef0f0;--king-color-error:#f56c6c;--king-color-error-light-3:#f89898;--king-color-error-light-5:#fab6b6;--king-color-error-light-7:#fcd3d3;--king-color-error-light-8:#fde2e2;--king-color-error-light-9:#fef0f0;--king-color-info:#909399;--king-color-info-light-3:#b1b3b8;--king-color-info-light-5:#c8c9cc;--king-color-info-light-7:#dedfe0;--king-color-info-light-8:#e9e9eb;--king-color-info-light-9:#f4f4f5;--king-transition-duration:0.3s}.kr-antdv-ArrayCard .title-box{display:flex;justify-content:space-between;align-items:center;height:32px}.kr-antdv-ArrayCard .title-box .delete-btn{padding:2px 12px;color:var(--king-color-danger);font-size:14px;cursor:pointer;border:1px solid var(--king-color-danger);border-radius:4px;transition:all .3s ease}.kr-antdv-ArrayCard .title-box .delete-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(255,77,79,.3)}.kr-antdv-ArrayTable .ant-table-row .ant-table-cell{padding:0 8px!important}.k-render-form-provider .ant-input-number{width:100%}.ant-input-number-group-wrapper{width:100%}
|
|
@@ -4,6 +4,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
|
+
disabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
};
|
|
7
10
|
value: {
|
|
8
11
|
type: PropType<any[]>;
|
|
9
12
|
};
|
|
@@ -14,12 +17,16 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
14
17
|
type: StringConstructor;
|
|
15
18
|
default: string;
|
|
16
19
|
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
};
|
|
17
23
|
value: {
|
|
18
24
|
type: PropType<any[]>;
|
|
19
25
|
};
|
|
20
26
|
}>> & Readonly<{
|
|
21
27
|
"onUpdate:value"?: ((value: any[]) => any) | undefined;
|
|
22
28
|
}>, {
|
|
29
|
+
disabled: boolean;
|
|
23
30
|
title: string;
|
|
24
31
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
25
32
|
export default _default;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
3
|
placeholder?: string;
|
|
4
4
|
min?: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} &
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
modelValue?: number;
|
|
7
|
+
addonAfter?: string;
|
|
8
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:modelValue": (value: number) => any;
|
|
10
|
+
}, string, PublicProps, Readonly<{
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
min?: number;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
modelValue?: number;
|
|
15
|
+
addonAfter?: string;
|
|
16
|
+
}> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
13
18
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
19
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@king-one/form-antdv",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
5
5
|
"description": "@king-one 表单渲染器 - ant-design-vue 组件库",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "ISC",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@king-one/theme": "^1.0.1",
|
|
44
44
|
"ant-design-vue": "^4.2.6",
|
|
45
45
|
"vue": "^3.5.13",
|
|
46
|
-
"@king-one/form-render": "^0.0.
|
|
46
|
+
"@king-one/form-render": "^0.0.13"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public",
|