mirror of https://github.com/halo-dev/halo
refactor(components): remove tooltip component
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/3445/head
parent
ebfbb639a8
commit
2f4721c62b
|
@ -44,14 +44,11 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/halo-dev/halo-admin/tree/next/packages/components#readme",
|
"homepage": "https://github.com/halo-dev/halo-admin/tree/next/packages/components#readme",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
|
||||||
"tippy.js": "^6.3.7"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify-json/ri": "^1.1.2",
|
"@iconify-json/ri": "^1.1.2",
|
||||||
"@rollup/plugin-typescript": "^8.3.3",
|
"@rollup/plugin-typescript": "^8.3.3",
|
||||||
"histoire": "^0.7.6",
|
"histoire": "^0.7.7",
|
||||||
"unplugin-icons": "^0.14.4",
|
"unplugin-icons": "^0.14.5",
|
||||||
"vite-plugin-dts": "^1.2.0"
|
"vite-plugin-dts": "^1.2.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
|
|
@ -12,4 +12,3 @@ export * from "./components/space";
|
||||||
export * from "./components/tabs";
|
export * from "./components/tabs";
|
||||||
export * from "./components/tag";
|
export * from "./components/tag";
|
||||||
export * from "./components/textarea";
|
export * from "./components/textarea";
|
||||||
export * from "./components/tooltip";
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
<script lang="ts" setup>
|
|
||||||
import { VTooltip } from "../../components/tooltip";
|
|
||||||
import { VButton } from "../../components/button";
|
|
||||||
</script>
|
|
||||||
<template>
|
|
||||||
<Story title="Tooltip">
|
|
||||||
<template #default>
|
|
||||||
<VTooltip content="Hello Halo">
|
|
||||||
<VButton>Hello</VButton>
|
|
||||||
</VTooltip>
|
|
||||||
<VTooltip content="Hello Halo">
|
|
||||||
<div class="inline-flex">Halo</div>
|
|
||||||
</VTooltip>
|
|
||||||
</template>
|
|
||||||
</Story>
|
|
||||||
</template>
|
|
|
@ -1,25 +0,0 @@
|
||||||
<script lang="ts" setup>
|
|
||||||
import tippy from "tippy.js";
|
|
||||||
import "tippy.js/dist/tippy.css";
|
|
||||||
import { onMounted } from "vue";
|
|
||||||
|
|
||||||
const props = defineProps({
|
|
||||||
content: {
|
|
||||||
type: String,
|
|
||||||
default: "",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
tippy(".tooltip-wrapper > :first-child", {
|
|
||||||
content: props.content,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
<template>
|
|
||||||
<teleport to="body">
|
|
||||||
<div class="tooltip-wrapper">
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
||||||
</teleport>
|
|
||||||
</template>
|
|
|
@ -1 +0,0 @@
|
||||||
export { default as VTooltip } from "./Tooltip.vue";
|
|
|
@ -113,17 +113,14 @@ importers:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@iconify-json/ri': ^1.1.2
|
'@iconify-json/ri': ^1.1.2
|
||||||
'@rollup/plugin-typescript': ^8.3.3
|
'@rollup/plugin-typescript': ^8.3.3
|
||||||
histoire: ^0.7.6
|
histoire: ^0.7.7
|
||||||
tippy.js: ^6.3.7
|
unplugin-icons: ^0.14.5
|
||||||
unplugin-icons: ^0.14.4
|
|
||||||
vite-plugin-dts: ^1.2.0
|
vite-plugin-dts: ^1.2.0
|
||||||
dependencies:
|
|
||||||
tippy.js: 6.3.7
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@iconify-json/ri': 1.1.2
|
'@iconify-json/ri': 1.1.2
|
||||||
'@rollup/plugin-typescript': 8.3.3
|
'@rollup/plugin-typescript': 8.3.3
|
||||||
histoire: 0.7.6
|
histoire: 0.7.7
|
||||||
unplugin-icons: 0.14.4
|
unplugin-icons: 0.14.5
|
||||||
vite-plugin-dts: 1.2.0
|
vite-plugin-dts: 1.2.0
|
||||||
|
|
||||||
packages/shared:
|
packages/shared:
|
||||||
|
@ -1486,8 +1483,8 @@ packages:
|
||||||
'@hapi/hoek': 9.2.1
|
'@hapi/hoek': 9.2.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@histoire/controls/0.7.6_vue@3.2.37:
|
/@histoire/controls/0.7.7_vue@3.2.37:
|
||||||
resolution: {integrity: sha512-YmRJgpFRzaJxFMn1LjJxY+SjJPnx8/lGMHBTStf0OHyONb9+zYYrM5h41X5Ow0XdA75tdZAl9+M9za60I7p+ZA==}
|
resolution: {integrity: sha512-cPMebozrwECDOpEbnkN19Uq4W+Mx0s55XdYXpY6v6tldgu0a+0cP7McWbgv5nPjnNrSUOsm1jU2Cq4b5wWFNBw==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@iconify/vue': 3.2.1_vue@3.2.37
|
'@iconify/vue': 3.2.1_vue@3.2.37
|
||||||
'@vueuse/core': 8.6.0_vue@3.2.37
|
'@vueuse/core': 8.6.0_vue@3.2.37
|
||||||
|
@ -1497,22 +1494,22 @@ packages:
|
||||||
- vue
|
- vue
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@histoire/plugin-vue/0.7.6_histoire@0.7.6+vue@3.2.37:
|
/@histoire/plugin-vue/0.7.7_histoire@0.7.7+vue@3.2.37:
|
||||||
resolution: {integrity: sha512-6rguSLVQeoOXjIE0QRrx2miM4Bq9HnErUyaLCOFuv+DwU9PbLkiqJuIBXRxq1+0EAEoFglEgwxc06GlCr/VRdw==}
|
resolution: {integrity: sha512-Hyyh5tWGSMYbaLY1c3O5XGNLSuMiZQ1sgZcLya/0IDh1V/rMr2hb/fDhsIR2fsLEwyJNWqG9lYQMx14c02frIA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
histoire: ^0.7.6
|
histoire: ^0.7.7
|
||||||
vue: ^3.2.31
|
vue: ^3.2.31
|
||||||
dependencies:
|
dependencies:
|
||||||
'@histoire/controls': 0.7.6_vue@3.2.37
|
'@histoire/controls': 0.7.7_vue@3.2.37
|
||||||
'@histoire/shared': 0.7.6
|
'@histoire/shared': 0.7.7
|
||||||
histoire: 0.7.6
|
histoire: 0.7.7
|
||||||
vue: 3.2.37
|
vue: 3.2.37
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- '@vue/composition-api'
|
- '@vue/composition-api'
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@histoire/shared/0.7.6:
|
/@histoire/shared/0.7.7:
|
||||||
resolution: {integrity: sha512-sjnOyLLwrNVnx0Jn4+T5Yy1/n1r7B9gKGP5NlMvai73ehSiqpvHZe+TaMCxotiltjwbBvSqbdmrEqYz+B4cKGA==}
|
resolution: {integrity: sha512-ltNnfkEgyfDiyBV8xsT80AOWqxnkE30CCknCtKScbeD//vUgyrdS1YB++GhF3MrjTR7GKk8hcvCrQciQbPKzcQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@humanwhocodes/config-array/0.9.5:
|
/@humanwhocodes/config-array/0.9.5:
|
||||||
|
@ -1540,8 +1537,8 @@ packages:
|
||||||
resolution: {integrity: sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==}
|
resolution: {integrity: sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@iconify/utils/1.0.32:
|
/@iconify/utils/1.0.33:
|
||||||
resolution: {integrity: sha512-m+rnw7qKHq/XF7DAi4BcFoEAcXBfqqMgQJh8brGEHeqE/RUvgDMjmxsHgWnVpFsG+VmjGyAiI7nwXdliCwEU0Q==}
|
resolution: {integrity: sha512-vGeAqo7aGPxOQmGdVoXFUOuyN+0V7Lcrx2EvaiRjxUD1x6Om0Tvq2bdm7E24l2Pz++4S0mWMCVFXe/17EtKImQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@antfu/install-pkg': 0.1.0
|
'@antfu/install-pkg': 0.1.0
|
||||||
'@antfu/utils': 0.5.2
|
'@antfu/utils': 0.5.2
|
||||||
|
@ -1862,10 +1859,6 @@ packages:
|
||||||
resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}
|
resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@popperjs/core/2.11.5:
|
|
||||||
resolution: {integrity: sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==}
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/@rollup/plugin-babel/5.3.1_5wvcgz2wh3u67p6lukoxoocitq:
|
/@rollup/plugin-babel/5.3.1_5wvcgz2wh3u67p6lukoxoocitq:
|
||||||
resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==}
|
resolution: {integrity: sha512-WFfdLWU/xVWKeRQnKmIAQULUI7Il0gZnBIH/ZFO069wYIfPu+8zrfp/KMW0atmELoRDq8FbiP3VCss9MhCut7Q==}
|
||||||
engines: {node: '>= 10.0.0'}
|
engines: {node: '>= 10.0.0'}
|
||||||
|
@ -2050,7 +2043,7 @@ packages:
|
||||||
/@types/concat-stream/1.6.1:
|
/@types/concat-stream/1.6.1:
|
||||||
resolution: {integrity: sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==}
|
resolution: {integrity: sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 17.0.42
|
'@types/node': 17.0.45
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/estree/0.0.39:
|
/@types/estree/0.0.39:
|
||||||
|
@ -2060,7 +2053,7 @@ packages:
|
||||||
/@types/form-data/0.0.33:
|
/@types/form-data/0.0.33:
|
||||||
resolution: {integrity: sha1-yayFsqX9GENbjIXZ7LUObWyJP/g=}
|
resolution: {integrity: sha1-yayFsqX9GENbjIXZ7LUObWyJP/g=}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@types/node': 17.0.42
|
'@types/node': 17.0.45
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@types/istanbul-lib-coverage/2.0.4:
|
/@types/istanbul-lib-coverage/2.0.4:
|
||||||
|
@ -4481,15 +4474,15 @@ packages:
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/histoire/0.7.6:
|
/histoire/0.7.7:
|
||||||
resolution: {integrity: sha512-99DjXlByDgSXzwtuC3JCpIbQmUMXKkBcjGlwO48Q6UKRgV7ZjXtZu1KBze/PVXBfUn6NGZkewUAvT8PVm1fW6g==}
|
resolution: {integrity: sha512-Yk+gSoGdKbRofdCcogmK19wy2X4wdsNpRsEwIPM588wFNCLr3l9H8vt0wqG97eqCBovPU/cBzcvGpjvntlc0YA==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
vite: ^2.9.0
|
vite: ^2.9.0
|
||||||
dependencies:
|
dependencies:
|
||||||
'@histoire/controls': 0.7.6_vue@3.2.37
|
'@histoire/controls': 0.7.7_vue@3.2.37
|
||||||
'@histoire/plugin-vue': 0.7.6_histoire@0.7.6+vue@3.2.37
|
'@histoire/plugin-vue': 0.7.7_histoire@0.7.7+vue@3.2.37
|
||||||
'@histoire/shared': 0.7.6
|
'@histoire/shared': 0.7.7
|
||||||
'@iconify/vue': 3.2.1_vue@3.2.37
|
'@iconify/vue': 3.2.1_vue@3.2.37
|
||||||
'@types/markdown-it': 12.2.3
|
'@types/markdown-it': 12.2.3
|
||||||
'@vueuse/core': 8.6.0_vue@3.2.37
|
'@vueuse/core': 8.6.0_vue@3.2.37
|
||||||
|
@ -4501,7 +4494,7 @@ packages:
|
||||||
diacritics: 1.3.0
|
diacritics: 1.3.0
|
||||||
flexsearch: 0.7.21
|
flexsearch: 0.7.21
|
||||||
floating-vue: 2.0.0-beta.16_vue@3.2.37
|
floating-vue: 2.0.0-beta.16_vue@3.2.37
|
||||||
fs-extra: 10.0.1
|
fs-extra: 10.1.0
|
||||||
globby: 13.1.1
|
globby: 13.1.1
|
||||||
happy-dom: 2.55.0
|
happy-dom: 2.55.0
|
||||||
markdown-it: 12.3.2
|
markdown-it: 12.3.2
|
||||||
|
@ -6426,12 +6419,6 @@ packages:
|
||||||
engines: {node: '>=14.0.0'}
|
engines: {node: '>=14.0.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/tippy.js/6.3.7:
|
|
||||||
resolution: {integrity: sha512-E1d3oP2emgJ9dRQZdf3Kkn0qJgI6ZLpyS5z6ZkY1DF3kaQaBsGZsndEpHwx+eC+tYM41HaSNvNtLx8tU57FzTQ==}
|
|
||||||
dependencies:
|
|
||||||
'@popperjs/core': 2.11.5
|
|
||||||
dev: false
|
|
||||||
|
|
||||||
/tmp/0.2.1:
|
/tmp/0.2.1:
|
||||||
resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==}
|
resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==}
|
||||||
engines: {node: '>=8.17.0'}
|
engines: {node: '>=8.17.0'}
|
||||||
|
@ -6635,8 +6622,8 @@ packages:
|
||||||
engines: {node: '>= 0.8'}
|
engines: {node: '>= 0.8'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/unplugin-icons/0.14.4:
|
/unplugin-icons/0.14.5:
|
||||||
resolution: {integrity: sha512-+5+U5MV/d1HU3rW9bHqPLCC+rikt6OCXwjW9gSbryE2qyezzOyJ7ZNnwWLksxf5A+cVj1D6pcAbpmSjojN8zCg==}
|
resolution: {integrity: sha512-fxi/fuBZXtZu64L8iAPj+ecu/rnSvTbfR14RO44xIWdsI/Ohpzs9Gve7+nHIgD6JFrdtCfzGnXWBEVPbMGWX3A==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@svgr/core': '>=5.5.0'
|
'@svgr/core': '>=5.5.0'
|
||||||
'@vue/compiler-sfc': ^3.0.2
|
'@vue/compiler-sfc': ^3.0.2
|
||||||
|
@ -6654,7 +6641,7 @@ packages:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@antfu/install-pkg': 0.1.0
|
'@antfu/install-pkg': 0.1.0
|
||||||
'@antfu/utils': 0.5.2
|
'@antfu/utils': 0.5.2
|
||||||
'@iconify/utils': 1.0.32
|
'@iconify/utils': 1.0.33
|
||||||
debug: 4.3.4
|
debug: 4.3.4
|
||||||
kolorist: 1.5.1
|
kolorist: 1.5.1
|
||||||
local-pkg: 0.4.1
|
local-pkg: 0.4.1
|
||||||
|
|
Loading…
Reference in New Issue