@king-one/form-antdv 0.0.12 → 0.0.13
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 +8 -0
- package/dist/es/src/components/FormGrid/form-grid-column.vue.mjs +4 -0
- package/dist/es/src/components/FormGrid/form-grid-column.vue2.mjs +37 -0
- package/dist/es/src/components/FormGrid/form-grid.vue.mjs +4 -0
- package/dist/es/src/components/FormGrid/form-grid.vue2.mjs +39 -0
- package/dist/es/src/components/FormGrid/index.mjs +11 -0
- package/dist/es/src/index.mjs +11 -8
- package/dist/lib/src/components/FormGrid/form-grid-column.vue.js +1 -0
- package/dist/lib/src/components/FormGrid/form-grid-column.vue2.js +3 -0
- package/dist/lib/src/components/FormGrid/form-grid.vue.js +1 -0
- package/dist/lib/src/components/FormGrid/form-grid.vue2.js +3 -0
- package/dist/lib/src/components/FormGrid/index.js +1 -0
- package/dist/lib/src/index.js +1 -1
- package/dist/types/src/components/FormGrid/form-grid-column.vue.d.ts +7 -0
- package/dist/types/src/components/FormGrid/form-grid.vue.d.ts +7 -0
- package/dist/types/src/components/FormGrid/index.d.ts +7 -0
- package/dist/types/src/index.d.ts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as r, createBlock as a, unref as n, withCtx as c, createElementBlock as i, Fragment as l, renderList as u, createCommentVNode as h } from "vue";
|
|
2
|
+
import { Col as d } from "ant-design-vue";
|
|
3
|
+
import "../../internal.mjs";
|
|
4
|
+
import { useInjectFieldContext as _, RecursionField as f } from "@king-one/form-render";
|
|
5
|
+
const P = /* @__PURE__ */ m({
|
|
6
|
+
__name: "form-grid-column",
|
|
7
|
+
props: {
|
|
8
|
+
span: {}
|
|
9
|
+
},
|
|
10
|
+
setup(C) {
|
|
11
|
+
const e = _(), o = (e == null ? void 0 : e.schema.properties) || {}, p = (e == null ? void 0 : e.parentPath) || "";
|
|
12
|
+
return (s, k) => (r(), a(n(d), { span: s.span }, {
|
|
13
|
+
default: c(() => [
|
|
14
|
+
(r(!0), i(
|
|
15
|
+
l,
|
|
16
|
+
null,
|
|
17
|
+
u(n(o), (t) => (r(), a(n(f), {
|
|
18
|
+
key: t.id,
|
|
19
|
+
schema: t,
|
|
20
|
+
name: t.name,
|
|
21
|
+
"base-path": n(p)
|
|
22
|
+
}, null, 8, ["schema", "name", "base-path"]))),
|
|
23
|
+
128
|
|
24
|
+
/* KEYED_FRAGMENT */
|
|
25
|
+
)),
|
|
26
|
+
h(` <Col v-for="(prop, index) in properties" :key="index" :span="12">
|
|
27
|
+
<RecursionField :schema="prop" :name="prop.name" :base-path="parentPath" />
|
|
28
|
+
</Col> `)
|
|
29
|
+
]),
|
|
30
|
+
_: 1
|
|
31
|
+
/* STABLE */
|
|
32
|
+
}, 8, ["span"]));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
export {
|
|
36
|
+
P as default
|
|
37
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as m, openBlock as n, createElementBlock as o, createVNode as c, unref as t, withCtx as i, Fragment as u, renderList as d, createBlock as h, createCommentVNode as l } from "vue";
|
|
2
|
+
import { Row as _ } from "ant-design-vue";
|
|
3
|
+
import "../../internal.mjs";
|
|
4
|
+
import { useInjectFieldContext as f, RecursionField as g } from "@king-one/form-render";
|
|
5
|
+
const C = { class: "form-grid" }, R = /* @__PURE__ */ m({
|
|
6
|
+
__name: "form-grid",
|
|
7
|
+
props: {
|
|
8
|
+
gutter: {}
|
|
9
|
+
},
|
|
10
|
+
setup(k) {
|
|
11
|
+
const e = f(), a = (e == null ? void 0 : e.schema.properties) || {}, s = (e == null ? void 0 : e.parentPath) || "";
|
|
12
|
+
return (p, x) => (n(), o("div", C, [
|
|
13
|
+
c(t(_), { gutter: p.gutter }, {
|
|
14
|
+
default: i(() => [
|
|
15
|
+
(n(!0), o(
|
|
16
|
+
u,
|
|
17
|
+
null,
|
|
18
|
+
d(t(a), (r) => (n(), h(t(g), {
|
|
19
|
+
key: r.id,
|
|
20
|
+
schema: r,
|
|
21
|
+
name: r.name,
|
|
22
|
+
"base-path": t(s)
|
|
23
|
+
}, null, 8, ["schema", "name", "base-path"]))),
|
|
24
|
+
128
|
|
25
|
+
/* KEYED_FRAGMENT */
|
|
26
|
+
)),
|
|
27
|
+
l(` <Col v-for="(prop, index) in properties" :key="index" :span="12">
|
|
28
|
+
<RecursionField :schema="prop" :name="prop.name" :base-path="parentPath" />
|
|
29
|
+
</Col> `)
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
/* STABLE */
|
|
33
|
+
}, 8, ["gutter"])
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
R as default
|
|
39
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../internal.mjs";
|
|
2
|
+
import "./form-grid-column.vue.mjs";
|
|
3
|
+
import "./form-grid.vue.mjs";
|
|
4
|
+
import { connect as o, mapProps as m } from "@king-one/form-render";
|
|
5
|
+
import r from "./form-grid.vue2.mjs";
|
|
6
|
+
import i from "./form-grid-column.vue2.mjs";
|
|
7
|
+
const _ = o(r, m()), a = o(i, m());
|
|
8
|
+
export {
|
|
9
|
+
_ as FormGrid,
|
|
10
|
+
a as GridColumn
|
|
11
|
+
};
|
package/dist/es/src/index.mjs
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import "./style/index.mjs";
|
|
2
2
|
import { Input as t } from "./components/Input/index.mjs";
|
|
3
3
|
import { ArrayCard as p } from "./components/ArrayCard/index.mjs";
|
|
4
|
-
import { InputNumber as
|
|
4
|
+
import { InputNumber as a } from "./components/InputNumber/index.mjs";
|
|
5
5
|
import { Select as n } from "./components/Select/index.mjs";
|
|
6
|
-
import { FormArea as
|
|
6
|
+
import { FormArea as d } from "./components/FormArea/index.mjs";
|
|
7
7
|
import { DateRange as l } from "./components/DateRange/index.mjs";
|
|
8
|
-
import { ArrayTable as
|
|
9
|
-
import { Textarea as
|
|
8
|
+
import { ArrayTable as b } from "./components/ArrayTable/index.mjs";
|
|
9
|
+
import { Textarea as C } from "./components/Textarea/index.mjs";
|
|
10
|
+
import { FormGrid as G, GridColumn as I } from "./components/FormGrid/index.mjs";
|
|
10
11
|
export {
|
|
11
12
|
p as ArrayCard,
|
|
12
|
-
|
|
13
|
+
b as ArrayTable,
|
|
13
14
|
l as DateRange,
|
|
14
|
-
|
|
15
|
+
d as FormArea,
|
|
16
|
+
G as FormGrid,
|
|
17
|
+
I as GridColumn,
|
|
15
18
|
t as Input,
|
|
16
|
-
|
|
19
|
+
a as InputNumber,
|
|
17
20
|
n as Select,
|
|
18
|
-
|
|
21
|
+
C as Textarea
|
|
19
22
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./form-grid-column.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("ant-design-vue");require("../../internal.js");const t=require("@king-one/form-render"),p=e.defineComponent({__name:"form-grid-column",props:{span:{}},setup(u){const n=t.useInjectFieldContext(),o=(n==null?void 0:n.schema.properties)||{},a=(n==null?void 0:n.parentPath)||"";return(s,i)=>(e.openBlock(),e.createBlock(e.unref(c.Col),{span:s.span},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),r=>(e.openBlock(),e.createBlock(e.unref(t.RecursionField),{key:r.id,schema:r,name:r.name,"base-path":e.unref(a)},null,8,["schema","name","base-path"]))),128)),e.createCommentVNode(` <Col v-for="(prop, index) in properties" :key="index" :span="12">
|
|
2
|
+
<RecursionField :schema="prop" :name="prop.name" :base-path="parentPath" />
|
|
3
|
+
</Col> `)]),_:1},8,["span"]))}});exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./form-grid.vue2.js");exports.default=e.default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("ant-design-vue");require("../../internal.js");const n=require("@king-one/form-render"),u={class:"form-grid"},i=e.defineComponent({__name:"form-grid",props:{gutter:{}},setup(p){const t=n.useInjectFieldContext(),o=(t==null?void 0:t.schema.properties)||{},a=(t==null?void 0:t.parentPath)||"";return(s,l)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(e.unref(c.Row),{gutter:s.gutter},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),r=>(e.openBlock(),e.createBlock(e.unref(n.RecursionField),{key:r.id,schema:r,name:r.name,"base-path":e.unref(a)},null,8,["schema","name","base-path"]))),128)),e.createCommentVNode(` <Col v-for="(prop, index) in properties" :key="index" :span="12">
|
|
2
|
+
<RecursionField :schema="prop" :name="prop.name" :base-path="parentPath" />
|
|
3
|
+
</Col> `)]),_:1},8,["gutter"])]))}});exports.default=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../internal.js");require("./form-grid-column.vue.js");require("./form-grid.vue.js");const e=require("@king-one/form-render"),r=require("./form-grid.vue2.js"),t=require("./form-grid-column.vue2.js"),u=e.connect(r.default,e.mapProps()),o=e.connect(t.default,e.mapProps());exports.FormGrid=u;exports.GridColumn=o;
|
package/dist/lib/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./style/index.js");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./style/index.js");const r=require("./components/Input/index.js"),n=require("./components/ArrayCard/index.js"),i=require("./components/InputNumber/index.js"),t=require("./components/Select/index.js"),u=require("./components/FormArea/index.js"),a=require("./components/DateRange/index.js"),o=require("./components/ArrayTable/index.js"),d=require("./components/Textarea/index.js"),e=require("./components/FormGrid/index.js");exports.Input=r.Input;exports.ArrayCard=n.ArrayCard;exports.InputNumber=i.InputNumber;exports.Select=t.Select;exports.FormArea=u.FormArea;exports.DateRange=a.DateRange;exports.ArrayTable=o.ArrayTable;exports.Textarea=d.Textarea;exports.FormGrid=e.FormGrid;exports.GridColumn=e.GridColumn;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
|
+
span: number;
|
|
4
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
5
|
+
span: number;
|
|
6
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<{
|
|
3
|
+
gutter: number;
|
|
4
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
5
|
+
gutter: number;
|
|
6
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefineComponent, VNode, RendererNode, RendererElement, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const FormGrid: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export declare const GridColumn: DefineComponent<{}, () => VNode<RendererNode, RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -6,3 +6,5 @@ export { FormArea } from './components/FormArea';
|
|
|
6
6
|
export { DateRange } from './components/DateRange';
|
|
7
7
|
export { ArrayTable } from './components/ArrayTable';
|
|
8
8
|
export { Textarea } from './components/Textarea';
|
|
9
|
+
export { FormGrid } from './components/FormGrid';
|
|
10
|
+
export { GridColumn } from './components/FormGrid';
|
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.13",
|
|
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.10"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public",
|