diff --git a/docs/docs/zh-CN/components/checkbox.md b/docs/docs/zh-CN/components/checkbox.md index 06d49883..3ce44499 100644 --- a/docs/docs/zh-CN/components/checkbox.md +++ b/docs/docs/zh-CN/components/checkbox.md @@ -93,7 +93,7 @@ export default { const disabled = ref(true) - const checked6 = ref(true); + const checked6 = ref(false); return { disabled,checked6 diff --git a/src/module/dropdown/index.vue b/src/module/dropdown/index.vue index 1ddfaa8e..106a4fd2 100644 --- a/src/module/dropdown/index.vue +++ b/src/module/dropdown/index.vue @@ -32,9 +32,10 @@ + + + + + diff --git a/src/module/type/public.ts b/src/module/type/public.ts index e30fec41..8ca0102c 100644 --- a/src/module/type/public.ts +++ b/src/module/type/public.ts @@ -10,9 +10,7 @@ export type IDefineComponent = DefineComponent & { } export interface InstallOptions extends StringObject { - /** Pagination Attributes */ pagination?: null - /** Menu Attributes */ menu?: null } diff --git a/src/module/use/useClickOutside.ts b/src/use/useClickOutside.ts similarity index 97% rename from src/module/use/useClickOutside.ts rename to src/use/useClickOutside.ts index 2d71e4a5..df40a482 100644 --- a/src/module/use/useClickOutside.ts +++ b/src/use/useClickOutside.ts @@ -1,10 +1,9 @@ import { ref, onMounted, onUnmounted, Ref } from 'vue' +// 案例详见 tab.vue const useClickOutside = (elementRef: Ref) => { - // 设置一个导出值 const isClickOutside = ref(false); - // 给界面绑定上事件 const handler = (e: MouseEvent) => { if (elementRef.value) { @@ -25,5 +24,4 @@ const useClickOutside = (elementRef: Ref) => { }); return isClickOutside; } - export default useClickOutside; \ No newline at end of file