@vunk/form 2.6.2 → 2.7.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/components/form-item-renderer/index.cjs +3 -0
- package/components/form-item-renderer/index.mjs +3 -0
- package/components/form-item-renderer/src/types.d.ts +2 -5
- package/components/form-item-renderer-template/src/types.d.ts +6 -2
- package/components/information/index.cjs +22 -36
- package/components/information/index.mjs +23 -37
- package/components/information/src/index.vue.d.ts +2 -370
- package/components/information-collection/index.cjs +78 -0
- package/components/information-collection/index.d.ts +4 -0
- package/components/information-collection/index.mjs +72 -0
- package/components/information-collection/src/ctx.d.ts +112 -0
- package/components/information-collection/src/index.vue.d.ts +232 -0
- package/components/information-collection/src/types.d.ts +6 -0
- package/components/information-tag/index.cjs +101 -0
- package/components/information-tag/index.css +6 -0
- package/components/information-tag/index.d.ts +4 -0
- package/components/information-tag/index.mjs +95 -0
- package/components/information-tag/src/ctx.d.ts +50 -0
- package/components/information-tag/src/index.vue.d.ts +106 -0
- package/components/information-templates-default/index.cjs +56 -169
- package/components/information-templates-default/index.mjs +58 -171
- package/components/information-templates-default/src/index.vue.d.ts +1 -51
- package/components/input-collection/index.cjs +0 -9
- package/components/input-collection/index.mjs +0 -9
- package/components/input-collection/src/ctx.d.ts +0 -7
- package/components/input-collection/src/index.vue.d.ts +0 -9
- package/components/input-collection/src/types.d.ts +2 -0
- package/index.css +7 -7
- package/package.json +14 -9
- package/shared/element-plus/ctx.d.ts +2 -0
- package/shared/element-plus/index.cjs +4 -0
- package/shared/element-plus/index.mjs +4 -2
- package/shared/types/source/index.d.ts +21 -1
- package/components/tag-information/index.cjs +0 -114
- package/components/tag-information/index.css +0 -6
- package/components/tag-information/index.d.ts +0 -4
- package/components/tag-information/index.mjs +0 -108
- package/components/tag-information/src/ctx.d.ts +0 -34
- package/components/tag-information/src/index.vue.d.ts +0 -912
- /package/components/{tag-information → information-tag}/src/types.d.ts +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var form = require('@vunk/form');
|
|
8
|
-
var _function = require('@vunk/shared/function');
|
|
9
|
-
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
10
|
-
|
|
11
|
-
const props = {
|
|
12
|
-
data: {
|
|
13
|
-
type: Object,
|
|
14
|
-
default: () => ({})
|
|
15
|
-
},
|
|
16
|
-
labelRender: {
|
|
17
|
-
type: Function,
|
|
18
|
-
default: (data) => data.label
|
|
19
|
-
},
|
|
20
|
-
title: {
|
|
21
|
-
type: [String, Function],
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
placement: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: "top"
|
|
27
|
-
},
|
|
28
|
-
formItems: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default: () => []
|
|
31
|
-
},
|
|
32
|
-
trigger: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "hover"
|
|
35
|
-
},
|
|
36
|
-
showAfter: {
|
|
37
|
-
type: Number,
|
|
38
|
-
default: 500
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const emits = {};
|
|
42
|
-
|
|
43
|
-
var _sfc_main = vue.defineComponent({
|
|
44
|
-
name: "VkfTagInformation",
|
|
45
|
-
components: {
|
|
46
|
-
ElTag: elementPlus.ElTag,
|
|
47
|
-
ElPopover: elementPlus.ElPopover,
|
|
48
|
-
VkfInformation: form.VkfInformation
|
|
49
|
-
},
|
|
50
|
-
props,
|
|
51
|
-
emits,
|
|
52
|
-
setup(props2) {
|
|
53
|
-
const theTitle = vue.computed(() => {
|
|
54
|
-
return _function.isCallable(props2.title) ? props2.title(props2.data) : props2.title;
|
|
55
|
-
});
|
|
56
|
-
return {
|
|
57
|
-
theTitle
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
63
|
-
const _component_ElTag = vue.resolveComponent("ElTag");
|
|
64
|
-
const _component_VkfInformation = vue.resolveComponent("VkfInformation");
|
|
65
|
-
const _component_ElPopover = vue.resolveComponent("ElPopover");
|
|
66
|
-
return vue.openBlock(), vue.createBlock(_component_ElPopover, {
|
|
67
|
-
placement: _ctx.placement,
|
|
68
|
-
title: _ctx.theTitle,
|
|
69
|
-
width: 250,
|
|
70
|
-
trigger: _ctx.trigger,
|
|
71
|
-
"show-after": _ctx.showAfter
|
|
72
|
-
}, {
|
|
73
|
-
reference: vue.withCtx(() => [
|
|
74
|
-
vue.createVNode(_component_ElTag, { class: "vkf-tag-information__tag" }, {
|
|
75
|
-
default: vue.withCtx(() => [
|
|
76
|
-
vue.createTextVNode(
|
|
77
|
-
vue.toDisplayString(_ctx.labelRender(_ctx.data)),
|
|
78
|
-
1
|
|
79
|
-
/* TEXT */
|
|
80
|
-
)
|
|
81
|
-
]),
|
|
82
|
-
_: 1
|
|
83
|
-
/* STABLE */
|
|
84
|
-
})
|
|
85
|
-
]),
|
|
86
|
-
default: vue.withCtx(() => [
|
|
87
|
-
vue.createVNode(_component_VkfInformation, {
|
|
88
|
-
data: _ctx.data,
|
|
89
|
-
"form-items": _ctx.formItems
|
|
90
|
-
}, {
|
|
91
|
-
default: vue.withCtx(() => [
|
|
92
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
/* FORWARDED */
|
|
96
|
-
}, 8, ["data", "form-items"])
|
|
97
|
-
]),
|
|
98
|
-
_: 3
|
|
99
|
-
/* FORWARDED */
|
|
100
|
-
}, 8, ["placement", "title", "trigger", "show-after"]);
|
|
101
|
-
}
|
|
102
|
-
var VkfTagInformation = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/tag-information/src/index.vue"]]);
|
|
103
|
-
|
|
104
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
105
|
-
__proto__: null
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
VkfTagInformation.install = (app) => {
|
|
109
|
-
app.component(VkfTagInformation.name || "VkfTagInformation", VkfTagInformation);
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
exports.VkfTagInformation = VkfTagInformation;
|
|
113
|
-
exports.__VkfTagInformation = types;
|
|
114
|
-
exports.default = VkfTagInformation;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, createTextVNode, toDisplayString, renderSlot } from 'vue';
|
|
2
|
-
import { ElTag, ElPopover } from 'element-plus';
|
|
3
|
-
import { VkfInformation } from '@vunk/form';
|
|
4
|
-
import { isCallable } from '@vunk/shared/function';
|
|
5
|
-
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
|
-
|
|
7
|
-
const props = {
|
|
8
|
-
data: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: () => ({})
|
|
11
|
-
},
|
|
12
|
-
labelRender: {
|
|
13
|
-
type: Function,
|
|
14
|
-
default: (data) => data.label
|
|
15
|
-
},
|
|
16
|
-
title: {
|
|
17
|
-
type: [String, Function],
|
|
18
|
-
default: ""
|
|
19
|
-
},
|
|
20
|
-
placement: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "top"
|
|
23
|
-
},
|
|
24
|
-
formItems: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => []
|
|
27
|
-
},
|
|
28
|
-
trigger: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "hover"
|
|
31
|
-
},
|
|
32
|
-
showAfter: {
|
|
33
|
-
type: Number,
|
|
34
|
-
default: 500
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
const emits = {};
|
|
38
|
-
|
|
39
|
-
var _sfc_main = defineComponent({
|
|
40
|
-
name: "VkfTagInformation",
|
|
41
|
-
components: {
|
|
42
|
-
ElTag,
|
|
43
|
-
ElPopover,
|
|
44
|
-
VkfInformation
|
|
45
|
-
},
|
|
46
|
-
props,
|
|
47
|
-
emits,
|
|
48
|
-
setup(props2) {
|
|
49
|
-
const theTitle = computed(() => {
|
|
50
|
-
return isCallable(props2.title) ? props2.title(props2.data) : props2.title;
|
|
51
|
-
});
|
|
52
|
-
return {
|
|
53
|
-
theTitle
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
|
|
58
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59
|
-
const _component_ElTag = resolveComponent("ElTag");
|
|
60
|
-
const _component_VkfInformation = resolveComponent("VkfInformation");
|
|
61
|
-
const _component_ElPopover = resolveComponent("ElPopover");
|
|
62
|
-
return openBlock(), createBlock(_component_ElPopover, {
|
|
63
|
-
placement: _ctx.placement,
|
|
64
|
-
title: _ctx.theTitle,
|
|
65
|
-
width: 250,
|
|
66
|
-
trigger: _ctx.trigger,
|
|
67
|
-
"show-after": _ctx.showAfter
|
|
68
|
-
}, {
|
|
69
|
-
reference: withCtx(() => [
|
|
70
|
-
createVNode(_component_ElTag, { class: "vkf-tag-information__tag" }, {
|
|
71
|
-
default: withCtx(() => [
|
|
72
|
-
createTextVNode(
|
|
73
|
-
toDisplayString(_ctx.labelRender(_ctx.data)),
|
|
74
|
-
1
|
|
75
|
-
/* TEXT */
|
|
76
|
-
)
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
/* STABLE */
|
|
80
|
-
})
|
|
81
|
-
]),
|
|
82
|
-
default: withCtx(() => [
|
|
83
|
-
createVNode(_component_VkfInformation, {
|
|
84
|
-
data: _ctx.data,
|
|
85
|
-
"form-items": _ctx.formItems
|
|
86
|
-
}, {
|
|
87
|
-
default: withCtx(() => [
|
|
88
|
-
renderSlot(_ctx.$slots, "default")
|
|
89
|
-
]),
|
|
90
|
-
_: 3
|
|
91
|
-
/* FORWARDED */
|
|
92
|
-
}, 8, ["data", "form-items"])
|
|
93
|
-
]),
|
|
94
|
-
_: 3
|
|
95
|
-
/* FORWARDED */
|
|
96
|
-
}, 8, ["placement", "title", "trigger", "show-after"]);
|
|
97
|
-
}
|
|
98
|
-
var VkfTagInformation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/tag-information/src/index.vue"]]);
|
|
99
|
-
|
|
100
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
101
|
-
__proto__: null
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
VkfTagInformation.install = (app) => {
|
|
105
|
-
app.component(VkfTagInformation.name || "VkfTagInformation", VkfTagInformation);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export { VkfTagInformation, types as __VkfTagInformation, VkfTagInformation as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { Placement } from '@sxzz/popperjs-es';
|
|
3
|
-
import { NormalObject } from '@vunk/shared';
|
|
4
|
-
export declare const props: {
|
|
5
|
-
data: {
|
|
6
|
-
type: ObjectConstructor;
|
|
7
|
-
default: () => {};
|
|
8
|
-
};
|
|
9
|
-
labelRender: {
|
|
10
|
-
type: PropType<(data: NormalObject) => string>;
|
|
11
|
-
default: (data: any) => any;
|
|
12
|
-
};
|
|
13
|
-
title: {
|
|
14
|
-
type: PropType<string | ((data: any) => string)>;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
placement: {
|
|
18
|
-
type: PropType<Placement>;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
formItems: {
|
|
22
|
-
type: PropType<any[]>;
|
|
23
|
-
default: () => any[];
|
|
24
|
-
};
|
|
25
|
-
trigger: {
|
|
26
|
-
type: PropType<"click" | "focus" | "hover" | "contextmenu">;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
|
-
showAfter: {
|
|
30
|
-
type: NumberConstructor;
|
|
31
|
-
default: number;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const emits: {};
|