nav-tab
Version:
A mobile touch-swappable navigation tabs component for Vue3.x
47 lines • 1.51 kB
JavaScript
import { defineOptions } from 'vue';
// import { getCurrentInstance } from 'vue';
defineOptions({
// 若不使用 defineOptions,组件的 name 选项将不会被识别。
// 因为组合式 API setup 语法糖的组件,该组件的组件名称,是该组件实例的 `__name` 属性,属性值默认为(单文件独立组件的)文件名。
name: 'TabsHead',
});
/* 验证:获取当前组件实例的名称,并输出到控制台 */
// const instance = getCurrentInstance(); // 获取当前组件实例
// const componentName = instance?.type.name; // 获取组件名称
// console.log('componentName: ', componentName); // TabsHead
; /* PartiallyEnd: #3632/scriptSetup.vue */
function __VLS_template() {
const __VLS_ctx = {};
let __VLS_components;
let __VLS_directives;
// CSS variable injection
// CSS variable injection end
__VLS_elementAsFunction(__VLS_intrinsicElements.h1, __VLS_intrinsicElements.h1)({});
var __VLS_slots;
var $slots;
let __VLS_inheritedAttrs;
var $attrs;
const __VLS_refs = {};
var $refs;
var $el;
return {
attrs: {},
slots: __VLS_slots,
refs: $refs,
rootEl: $el,
};
}
;
const __VLS_self = (await import('vue')).defineComponent({
setup() {
return {};
},
});
export default (await import('vue')).defineComponent({
setup() {
return {};
},
__typeEl: {},
});
; /* PartiallyEnd: #4569/main.vue */
//# sourceMappingURL=TabsHead.vue.js.map