first commit
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import { SFCWithInstall } from "../../utils/vue/typescript.js";
|
||||
import "../../utils/index.js";
|
||||
import { _default } from "./src/teleport.vue.js";
|
||||
import { TeleportInstance, TeleportProps, TeleportPropsPublic, teleportProps } from "./src/teleport.js";
|
||||
|
||||
//#region ../../packages/components/teleport/index.d.ts
|
||||
declare const ElTeleport: SFCWithInstall<typeof _default>;
|
||||
//#endregion
|
||||
export { ElTeleport, ElTeleport as default, TeleportInstance, TeleportProps, TeleportPropsPublic, teleportProps };
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import { withInstall } from "../../utils/vue/install.mjs";
|
||||
import { teleportProps } from "./src/teleport.mjs";
|
||||
import teleport_default from "./src/teleport2.mjs";
|
||||
|
||||
//#region ../../packages/components/teleport/index.ts
|
||||
const ElTeleport = withInstall(teleport_default);
|
||||
|
||||
//#endregion
|
||||
export { ElTeleport, ElTeleport as default, teleportProps };
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","names":["Teleport"],"sources":["../../../../../packages/components/teleport/index.ts"],"sourcesContent":["import { withInstall } from '@element-plus/utils'\nimport Teleport from './src/teleport.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElTeleport: SFCWithInstall<typeof Teleport> = withInstall(Teleport)\n\nexport default ElTeleport\n\nexport * from './src/teleport'\n"],"mappings":";;;;;AAKA,MAAa,aAA8C,YAAYA,iBAAS"}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import "../../../utils/index.js";
|
||||
import { _default } from "./teleport.vue.js";
|
||||
import * as vue from "vue";
|
||||
import { ExtractPropTypes, ExtractPublicPropTypes } from "vue";
|
||||
|
||||
//#region ../../packages/components/teleport/src/teleport.d.ts
|
||||
declare const teleportProps: {
|
||||
readonly to: {
|
||||
readonly type: vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabled: BooleanConstructor;
|
||||
};
|
||||
type TeleportProps = ExtractPropTypes<typeof teleportProps>;
|
||||
type TeleportPropsPublic = ExtractPublicPropTypes<typeof teleportProps>;
|
||||
type TeleportInstance = InstanceType<typeof _default> & unknown;
|
||||
//#endregion
|
||||
export { TeleportInstance, TeleportProps, TeleportPropsPublic, teleportProps };
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { buildProps, definePropType } from "../../../utils/vue/props/runtime.mjs";
|
||||
|
||||
//#region ../../packages/components/teleport/src/teleport.ts
|
||||
const teleportProps = buildProps({
|
||||
to: {
|
||||
type: definePropType([String, Object]),
|
||||
required: true
|
||||
},
|
||||
disabled: Boolean
|
||||
});
|
||||
|
||||
//#endregion
|
||||
export { teleportProps };
|
||||
//# sourceMappingURL=teleport.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"teleport.mjs","names":[],"sources":["../../../../../../packages/components/teleport/src/teleport.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, ExtractPublicPropTypes } from 'vue'\nimport type Teleport from './teleport.vue'\n\nexport const teleportProps = buildProps({\n to: {\n type: definePropType<string | HTMLElement>([String, Object]),\n required: true,\n },\n disabled: Boolean,\n} as const)\n\nexport type TeleportProps = ExtractPropTypes<typeof teleportProps>\nexport type TeleportPropsPublic = ExtractPublicPropTypes<typeof teleportProps>\nexport type TeleportInstance = InstanceType<typeof Teleport> & unknown\n"],"mappings":";;;AAKA,MAAa,gBAAgB,WAAW;CACtC,IAAI;EACF,MAAM,eAAqC,CAAC,QAAQ,OAAO,CAAC;EAC5D,UAAU;EACX;CACD,UAAU;CACX,CAAU"}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
import { EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import "../../../utils/index.js";
|
||||
import * as vue from "vue";
|
||||
|
||||
//#region ../../packages/components/teleport/src/teleport.vue.d.ts
|
||||
declare var __VLS_1: {}, __VLS_9: {};
|
||||
type __VLS_Slots = {} & {
|
||||
default?: (props: typeof __VLS_1) => any;
|
||||
} & {
|
||||
default?: (props: typeof __VLS_9) => any;
|
||||
};
|
||||
declare const __VLS_base: vue.DefineComponent<vue.ExtractPropTypes<{
|
||||
readonly to: {
|
||||
readonly type: vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabled: BooleanConstructor;
|
||||
}>, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
||||
readonly to: {
|
||||
readonly type: vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||||
readonly required: true;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly disabled: BooleanConstructor;
|
||||
}>> & Readonly<{}>, {
|
||||
readonly disabled: boolean;
|
||||
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
||||
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
||||
declare const _default: typeof __VLS_export;
|
||||
type __VLS_WithSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
export { _default };
|
||||
Generated
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
import { teleportProps } from "./teleport.mjs";
|
||||
import { Teleport, createBlock, defineComponent, openBlock, renderSlot } from "vue";
|
||||
|
||||
//#region ../../packages/components/teleport/src/teleport.vue?vue&type=script&setup=true&lang.ts
|
||||
var teleport_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
||||
__name: "teleport",
|
||||
props: teleportProps,
|
||||
setup(__props) {
|
||||
return (_ctx, _cache) => {
|
||||
return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport, {
|
||||
key: 1,
|
||||
to: _ctx.to
|
||||
}, [renderSlot(_ctx.$slots, "default")], 8, ["to"]));
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
//#endregion
|
||||
export { teleport_vue_vue_type_script_setup_true_lang_default as default };
|
||||
//# sourceMappingURL=teleport.vue_vue_type_script_setup_true_lang.mjs.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"teleport.vue_vue_type_script_setup_true_lang.mjs","names":["disabled","to"],"sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <teleport v-else :to=\"to\">\n <slot />\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { teleportProps } from './teleport'\n\ndefineProps(teleportProps)\n</script>\n"],"mappings":";;;;;;;;;UACkBA,KAAAA,WACd,WAAQ,KAAA,QAAA,WAAA,EAAA,KAAA,GAAA,CAAA,iBAEV,YAEW,UAAA;;IAFO,IAAIC,KAAAA;OACpB,WAAQ,KAAA,QAAA,UAAA"}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import teleport_vue_vue_type_script_setup_true_lang_default from "./teleport.vue_vue_type_script_setup_true_lang.mjs";
|
||||
|
||||
//#region ../../packages/components/teleport/src/teleport.vue
|
||||
var teleport_default = teleport_vue_vue_type_script_setup_true_lang_default;
|
||||
|
||||
//#endregion
|
||||
export { teleport_default as default };
|
||||
//# sourceMappingURL=teleport2.mjs.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"teleport2.mjs","names":[],"sources":["../../../../../../packages/components/teleport/src/teleport.vue"],"sourcesContent":["<template>\n <template v-if=\"disabled\">\n <slot />\n </template>\n <teleport v-else :to=\"to\">\n <slot />\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { teleportProps } from './teleport'\n\ndefineProps(teleportProps)\n</script>\n"],"mappings":""}
|
||||
Reference in New Issue
Block a user