chore: add tooltip demo
This commit is contained in:
parent
a5d7abb00e
commit
bbf8fb13b8
|
@ -1,19 +1,20 @@
|
|||
<script setup lang="ts">
|
||||
// This starter template is using Vue 3 <script setup> SFCs
|
||||
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
|
||||
import { ref } from "vue";
|
||||
import HelloWorld from "./components/hello-world.vue";
|
||||
import Avatar from "./components/avatar.vue";
|
||||
import Tabs from "./components/tabs.vue";
|
||||
import ButtonEdit from "./components/button-edit.vue";
|
||||
import FButton from "./components/button.vue";
|
||||
import Switch from "./components/switch.vue";
|
||||
import RadioGroup from "./components/radio-group.vue";
|
||||
import Section from "./components/section.vue";
|
||||
import Notify from "./components/notify.vue";
|
||||
import Accordion from "./components/accordion.vue";
|
||||
import ComboList from "./components/combo-list.vue";
|
||||
import CheckboxGroup from "./components/checkbox.vue";
|
||||
import { ref } from 'vue';
|
||||
import HelloWorld from './components/hello-world.vue';
|
||||
import Avatar from './components/avatar.vue';
|
||||
import Tabs from './components/tabs.vue';
|
||||
import ButtonEdit from './components/button-edit.vue';
|
||||
import FButton from './components/button.vue';
|
||||
import Switch from './components/switch.vue';
|
||||
import RadioGroup from './components/radio-group.vue';
|
||||
import Section from './components/section.vue';
|
||||
import Notify from './components/notify.vue';
|
||||
import Accordion from './components/accordion.vue';
|
||||
import ComboList from './components/combo-list.vue';
|
||||
import CheckboxGroup from './components/checkbox.vue';
|
||||
import Tooltip from './components/tooltip.vue';
|
||||
|
||||
const canEdit = ref(true);
|
||||
const disable = ref(false);
|
||||
|
@ -21,45 +22,46 @@ const canAutoComplete = ref(false);
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<a href="https://vitejs.dev" target="_blank">
|
||||
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
||||
</a>
|
||||
<a href="https://vuejs.org/" target="_blank">
|
||||
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
||||
</a>
|
||||
</div>
|
||||
<HelloWorld msg="Vite + Vue" />
|
||||
<!-- <input type="checkbox" id="checkbox" v-model="canEdit" />
|
||||
<div>
|
||||
<a href="https://vitejs.dev" target="_blank">
|
||||
<img src="/vite.svg" class="logo" alt="Vite logo" />
|
||||
</a>
|
||||
<a href="https://vuejs.org/" target="_blank">
|
||||
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
|
||||
</a>
|
||||
</div>
|
||||
<HelloWorld msg="Vite + Vue" />
|
||||
<!-- <input type="checkbox" id="checkbox" v-model="canEdit" />
|
||||
<label for="checkbox">editable:{{ canEdit }}</label>
|
||||
<input type="checkbox" id="checkbox" v-model="canAutoComplete" />
|
||||
<label for="checkbox">auto complete:{{ canAutoComplete }}</label> -->
|
||||
<!-- <ButtonEdit :editable="canEdit" :auto-complete="canAutoComplete" :enable-clear="true"></ButtonEdit> -->
|
||||
<ButtonEdit></ButtonEdit>
|
||||
<Avatar></Avatar>
|
||||
<FButton></FButton>
|
||||
<Switch></Switch>
|
||||
<Section></Section>
|
||||
<Notify></Notify>
|
||||
<Accordion></Accordion>
|
||||
<Tabs />
|
||||
<ComboList />
|
||||
<RadioGroup></RadioGroup>
|
||||
<CheckboxGroup />
|
||||
<!-- <ButtonEdit :editable="canEdit" :auto-complete="canAutoComplete" :enable-clear="true"></ButtonEdit> -->
|
||||
<ButtonEdit></ButtonEdit>
|
||||
<Avatar></Avatar>
|
||||
<FButton></FButton>
|
||||
<Switch></Switch>
|
||||
<Section></Section>
|
||||
<Notify></Notify>
|
||||
<Accordion></Accordion>
|
||||
<Tabs />
|
||||
<ComboList />
|
||||
<RadioGroup></RadioGroup>
|
||||
<CheckboxGroup />
|
||||
<Tooltip></Tooltip>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
|
||||
.logo.vue:hover {
|
||||
filter: drop-shadow(0 0 2em #42b883aa);
|
||||
filter: drop-shadow(0 0 2em #42b883aa);
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import Tooltip from '../../components/tooltip/src/tooltip.component';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Tooltip> </Tooltip>
|
||||
</template>
|
Loading…
Reference in New Issue