improve UIUX
This commit is contained in:
18
README.md
18
README.md
@@ -422,4 +422,20 @@ watch(loading, (load) => {
|
||||
load ? spinner.value?.open() : spinner.value?.close();
|
||||
});
|
||||
</script>
|
||||
```
|
||||
```
|
||||
|
||||
|
||||
### 关于 tooltip
|
||||
|
||||
kuc 没有实现插槽,所以应该当成一个普通组件使用:
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<button ref="buyButton">购买</button>
|
||||
<kuc-tooltip title="点击购买" :container="buyButton"></kuc-tooltip>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const buyButton = shallowRef<HTMLButtonElement | null>(null);
|
||||
</script>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user