修复 tab-item 组件 closable 属性警告

This commit is contained in:
就眠儀式
2022-01-24 02:16:34 +08:00
parent f409585315
commit 95c72ada8e
3 changed files with 6 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ const props = withDefaults(
defineProps<{
id: string;
title: string;
closable?: boolean;
closable?: boolean | string;
}>(),
{
closable: true,

View File

@@ -149,7 +149,6 @@ const components: Record<string, IDefineComponent> = {
const install = (app: App, options?: InstallOptions): void => {
const _options = options;
app.config.globalProperties.$PROOPTIONS = _options;
app.config.globalProperties.$layer = useLayer(app._context);
for (const key in components) {
const item = components[key];
app.component(item.name || key, item);
@@ -227,6 +226,6 @@ export {
LaySubMenu,
};
export { layer };
export { layer, useLayer };
export default { install };
export default { install };