File tree Expand file tree Collapse file tree 1 file changed +16
-25
lines changed
docs/.vitepress/components/dropdown Expand file tree Collapse file tree 1 file changed +16
-25
lines changed Original file line number Diff line number Diff line change 11<template >
22 <section class =" uiv" >
3- <alert >You selected: {{ selected }}</alert >
4- <dropdown
3+ <Alert >You selected: {{ selected }}</Alert >
4+ <Dropdown
55 ref =" dropdown"
66 v-model =" show"
77 :not-close-elements =" ele"
88 class =" dropdown-form"
99 >
10- <btn type =" primary" class =" dropdown-toggle"
10+ <Btn type =" primary" class =" dropdown-toggle"
1111 >Dropdown Form <span class =" caret" ></span
12- ></btn >
12+ ></Btn >
1313 <template #dropdown >
1414 <li class =" checkbox" >
1515 <label >
2929 </label >
3030 </li >
3131 <li >
32- <btn block type =" primary" @click =" show = false" >Apply</btn >
32+ <Btn block type =" primary" @click =" show = false" >Apply</Btn >
3333 </li >
3434 </template >
35- </dropdown >
35+ </Dropdown >
3636 </section >
3737</template >
38- <script >
39- import { onMounted , ref } from ' vue' ;
4038
41- export default {
42- setup () {
43- const show = ref (false );
44- const dropdown = ref (null );
45- const ele = ref ([]);
46- const selected = ref ([]);
39+ <script setup>
40+ import { onMounted , ref } from ' vue' ;
4741
48- onMounted (() => {
49- ele .value .push (dropdown .value .$el );
50- });
42+ const show = ref (false );
43+ const dropdown = ref (null );
44+ const ele = ref ([]);
45+ const selected = ref ([]);
5146
52- return {
53- ele,
54- dropdown,
55- show,
56- selected,
57- };
58- },
59- };
47+ onMounted (() => {
48+ ele .value .push (dropdown .value .$el );
49+ });
6050 </script >
51+
6152<style >
6253.uiv .dropdown-form .dropdown-menu {
6354 padding : 10px ;
You can’t perform that action at this time.
0 commit comments