Commit 1ce3f9eb by lei

1

parent 52dd6dee
...@@ -135,7 +135,7 @@ const Fun = (parent: any, e: any) => { ...@@ -135,7 +135,7 @@ const Fun = (parent: any, e: any) => {
}; };
// 自定义指令 // 自定义指令
const vHideEl = { const vHideEl = {
mounted: (el: HTMLDivElement, e2: any, e3: any) => { mounted: (el: HTMLDivElement) => {
document.addEventListener("click", Fun.bind(this, el)); document.addEventListener("click", Fun.bind(this, el));
}, },
beforeUnmount: (el: HTMLDivElement) => { beforeUnmount: (el: HTMLDivElement) => {
......
...@@ -20,13 +20,12 @@ ...@@ -20,13 +20,12 @@
<script lang="ts" setup> <script lang="ts" setup>
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
options?: any[]; options: any[];
modelValue: string; modelValue: string;
class?: string; class?: string;
margin?: boolean; margin?: boolean;
}>(), }>(),
{ {
options: [],
class: "", class: "",
margin: false, margin: false,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment