修复 tab-item 组件 closable 属性警告
This commit is contained in:
@@ -17,7 +17,7 @@ const props = withDefaults(
|
||||
defineProps<{
|
||||
id: string;
|
||||
title: string;
|
||||
closable?: boolean;
|
||||
closable?: boolean | string;
|
||||
}>(),
|
||||
{
|
||||
closable: true,
|
||||
|
||||
@@ -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 };
|
||||
Reference in New Issue
Block a user