chore: add tooltip demo

This commit is contained in:
Sagi 2022-10-11 14:49:07 +08:00
parent a5d7abb00e
commit bbf8fb13b8
2 changed files with 49 additions and 40 deletions

View File

@ -1,19 +1,20 @@
<script setup lang="ts"> <script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs // This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup // Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import { ref } from "vue"; import { ref } from 'vue';
import HelloWorld from "./components/hello-world.vue"; import HelloWorld from './components/hello-world.vue';
import Avatar from "./components/avatar.vue"; import Avatar from './components/avatar.vue';
import Tabs from "./components/tabs.vue"; import Tabs from './components/tabs.vue';
import ButtonEdit from "./components/button-edit.vue"; import ButtonEdit from './components/button-edit.vue';
import FButton from "./components/button.vue"; import FButton from './components/button.vue';
import Switch from "./components/switch.vue"; import Switch from './components/switch.vue';
import RadioGroup from "./components/radio-group.vue"; import RadioGroup from './components/radio-group.vue';
import Section from "./components/section.vue"; import Section from './components/section.vue';
import Notify from "./components/notify.vue"; import Notify from './components/notify.vue';
import Accordion from "./components/accordion.vue"; import Accordion from './components/accordion.vue';
import ComboList from "./components/combo-list.vue"; import ComboList from './components/combo-list.vue';
import CheckboxGroup from "./components/checkbox.vue"; import CheckboxGroup from './components/checkbox.vue';
import Tooltip from './components/tooltip.vue';
const canEdit = ref(true); const canEdit = ref(true);
const disable = ref(false); const disable = ref(false);
@ -46,6 +47,7 @@ const canAutoComplete = ref(false);
<ComboList /> <ComboList />
<RadioGroup></RadioGroup> <RadioGroup></RadioGroup>
<CheckboxGroup /> <CheckboxGroup />
<Tooltip></Tooltip>
</template> </template>
<style scoped> <style scoped>

View File

@ -0,0 +1,7 @@
<script setup lang="ts">
import Tooltip from '../../components/tooltip/src/tooltip.component';
</script>
<template>
<Tooltip> </Tooltip>
</template>