@vunk/form 0.0.1-alpha.38 → 0.0.1-alpha.39
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/firt-ep/index.d.ts +4 -0
- package/components/firt-ep/index.js +58 -0
- package/components/firt-ep/src/ctx.d.ts +9 -0
- package/components/firt-ep/src/ctx.js +9 -0
- package/components/firt-ep/src/index.vue.d.ts +19 -0
- package/components/firt-ep/src/types.d.ts +1 -0
- package/components/firt-ep/src/types.js +1 -0
- package/package.json +1 -1
- package/shared/types/ep-source/el-link.d.ts +8 -0
- package/shared/types/ep-source/index.d.ts +2 -0
- package/shared/types/ep-source/index.js +1 -0
- package/shared/types/index.d.ts +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, normalizeProps, mergeProps, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
|
+
import { ElLink } from 'element-plus';
|
|
4
|
+
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
5
|
+
|
|
6
|
+
const props = {
|
|
7
|
+
data: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: () => ({})
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const emits = {};
|
|
13
|
+
|
|
14
|
+
var script = defineComponent({
|
|
15
|
+
name: "VkfFirtEp",
|
|
16
|
+
components: {
|
|
17
|
+
VkfFormItemRendererTemplate,
|
|
18
|
+
ElLink
|
|
19
|
+
},
|
|
20
|
+
emits,
|
|
21
|
+
props,
|
|
22
|
+
setup() {
|
|
23
|
+
return {
|
|
24
|
+
pickObject
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30
|
+
const _component_ElLink = resolveComponent("ElLink");
|
|
31
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
32
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, { type: "ElLink" }, {
|
|
33
|
+
default: withCtx(({ data: props, templateIf }) => [
|
|
34
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElLink, normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(props, {
|
|
35
|
+
excludes: ["label"]
|
|
36
|
+
}))), {
|
|
37
|
+
default: withCtx(() => [
|
|
38
|
+
createTextVNode(toDisplayString(props.label), 1)
|
|
39
|
+
]),
|
|
40
|
+
_: 2
|
|
41
|
+
}, 1040)) : createCommentVNode("v-if", true)
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
script.render = render;
|
|
48
|
+
script.__file = "firt-ep/src/index.vue";
|
|
49
|
+
|
|
50
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
51
|
+
__proto__: null
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
script.install = (app) => {
|
|
55
|
+
app.component(script.name, script);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export { script as VkfFirtEp, types as __VkfFirtEp, script as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
data: {
|
|
3
|
+
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
pickObject: <T extends import("@vunk/core").NormalObject, EX extends (keyof T)[] | undefined, KI extends keyof T>(data: T, opts?: {
|
|
8
|
+
excludes?: EX | undefined;
|
|
9
|
+
includes?: KI[] | undefined;
|
|
10
|
+
} | undefined) => { [P in EX extends (infer KE)[] ? Exclude<KI, KE> : KI]: T[P]; };
|
|
11
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
data: {
|
|
13
|
+
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
}>>, {
|
|
17
|
+
data: import("@vunk/core").NormalObject;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ElLink } from 'element-plus';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface ElLinkSource extends VueComponentPropsType<typeof ElLink>, BasicSource {
|
|
5
|
+
templateType: 'ElLink';
|
|
6
|
+
label: string;
|
|
7
|
+
target?: '_blank';
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/shared/types/index.d.ts
CHANGED