@opentiny/vue-docs 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demos/mobile/config.js +10 -1
- package/demos/mobile/webdoc/changelog.md +38 -0
- package/demos/mobile/webdoc/import.md +87 -0
- package/demos/mobile/webdoc/introduce.md +23 -0
- package/demos/mobile/webdoc/menus.js +112 -0
- package/demos/mobile/webdoc/mode.md +23 -0
- package/demos/mobile-first/app/action-sheet/webdoc/action-sheet.js +247 -22
- package/demos/mobile-first/app/badge/webdoc/badge.js +47 -30
- package/demos/mobile-first/app/button/image.vue +1 -1
- package/demos/mobile-first/app/button/webdoc/button.js +119 -21
- package/demos/mobile-first/app/calendar-bar/webdoc/calendar-bar.js +73 -19
- package/demos/mobile-first/app/card/check-type-checkbox.vue +1 -1
- package/demos/mobile-first/app/card/webdoc/card.js +217 -47
- package/demos/mobile-first/app/carousel/webdoc/carousel.js +68 -41
- package/demos/mobile-first/app/cell/webdoc/cell.js +53 -15
- package/demos/mobile-first/app/collapse/webdoc/collapse.js +49 -26
- package/demos/mobile-first/app/column-list-item/webdoc/column-list-item.js +221 -28
- package/demos/mobile-first/app/drawer/webdoc/drawer.js +31 -23
- package/demos/mobile-first/app/dropdown/webdoc/dropdown.js +136 -49
- package/demos/mobile-first/app/filter/webdoc/filter.js +156 -29
- package/demos/mobile-first/app/filter-bar/webdoc/filter-bar.js +69 -8
- package/demos/mobile-first/app/form/webdoc/form.js +59 -48
- package/demos/mobile-first/app/grid/webdoc/grid.js +7 -7
- package/demos/mobile-first/app/popover/webdoc/popover.js +50 -44
- package/demos/mobile-first/app/search/webdoc/search.js +63 -25
- package/demos/mobile-first/app/standard-list-item/webdoc/standard-list-item.js +172 -16
- package/demos/mobile-first/app/steps/webdoc/steps.js +121 -29
- package/demos/mobile-first/app/tabbar/webdoc/tabbar.js +56 -41
- package/demos/mobile-first/app/tabs/webdoc/tabs.js +63 -52
- package/demos/mobile-first/app/tag/webdoc/tag.js +71 -24
- package/demos/mobile-first/app/tag-group/webdoc/tag-group.js +63 -14
- package/demos/mobile-first/app/time-line/webdoc/time-line.js +59 -22
- package/demos/pc/app/alert/{base-composition-api.vue → basic-usage-composition-api.vue} +2 -2
- package/demos/pc/app/alert/{base.vue → basic-usage.vue} +2 -2
- package/demos/pc/app/alert/custom-close-composition-api.vue +6 -6
- package/demos/pc/app/alert/custom-close.vue +4 -3
- package/demos/pc/app/alert/icon-composition-api.vue +2 -2
- package/demos/pc/app/alert/icon.vue +3 -3
- package/demos/pc/app/alert/size.vue +15 -0
- package/demos/pc/app/alert/title-composition-api.vue +8 -0
- package/demos/pc/app/alert/title.vue +8 -0
- package/demos/pc/app/alert/webdoc/alert.js +79 -53
- package/demos/pc/app/form/webdoc/form.js +27 -27
- package/demos/pc/app/input/clearable.spec.ts +4 -4
- package/demos/pc/app/input/counter.spec.ts +3 -2
- package/demos/pc/app/input/method-addMemory.spec.ts +1 -1
- package/demos/pc/app/input/resize-composition-api.vue +1 -1
- package/demos/pc/app/input/resize.vue +1 -1
- package/demos/pc/app/input/rows-composition-api.vue +2 -1
- package/demos/pc/app/input/rows.vue +2 -1
- package/demos/pc/app/input/size.spec.ts +6 -6
- package/demos/pc/app/input/validate-event.spec.ts +1 -1
- package/demos/pc/app/ip-address/webdoc/ip-address.js +6 -6
- package/demos/pc/app/popconfirm/{popper-class-composition-api.vue → custom-class-composition-api.vue} +5 -1
- package/demos/pc/app/popconfirm/{popper-class.spec.ts → custom-class.spec.ts} +1 -1
- package/demos/pc/app/popconfirm/{popper-class.vue → custom-class.vue} +5 -1
- package/demos/pc/app/popconfirm/type-composition-api.vue +15 -1
- package/demos/pc/app/popconfirm/type.vue +16 -1
- package/demos/pc/app/popconfirm/webdoc/popconfirm.js +99 -61
- package/demos/pc/app/popconfirm/width-composition-api.vue +1 -1
- package/demos/pc/app/popconfirm/width.spec.ts +1 -1
- package/demos/pc/app/popconfirm/width.vue +1 -1
- package/demos/pc/app/tabs/tabs-separator-composition-api.vue +60 -0
- package/demos/pc/app/tabs/tabs-separator.spec.ts +12 -0
- package/demos/pc/app/tabs/tabs-separator.vue +70 -0
- package/demos/pc/app/tabs/webdoc/tabs.js +19 -0
- package/demos/pc/app/tooltip/basic-usage-composition-api.vue +16 -28
- package/demos/pc/app/tooltip/basic-usage.vue +18 -29
- package/demos/pc/app/tooltip/content-composition-api.vue +51 -0
- package/demos/pc/app/tooltip/content.vue +57 -0
- package/demos/pc/app/tooltip/control-composition-api.vue +84 -0
- package/demos/pc/app/tooltip/control.vue +93 -0
- package/demos/pc/app/tooltip/custom-popper.vue +81 -0
- package/demos/pc/app/tooltip/{open-delay-composition-api.vue → delay-composition-api.vue} +3 -0
- package/demos/pc/app/tooltip/{open-delay.vue → delay.vue} +4 -1
- package/demos/pc/app/tooltip/offset-composition-api.vue +16 -0
- package/demos/pc/app/tooltip/offset.vue +25 -0
- package/demos/pc/app/tooltip/popper-options-composition-api.vue +7 -5
- package/demos/pc/app/tooltip/popper-options.vue +7 -5
- package/demos/pc/app/tooltip/{tooltip-theme-composition-api.vue → theme-composition-api.vue} +14 -9
- package/demos/pc/app/tooltip/{tooltip-theme.vue → theme.vue} +16 -10
- package/demos/pc/app/tooltip/{custom-transition-composition-api.vue → transition-composition-api.vue} +3 -5
- package/demos/pc/app/tooltip/{custom-transition.vue → transition.vue} +3 -8
- package/demos/pc/app/tooltip/webdoc/tooltip.cn.md +1 -1
- package/demos/pc/app/tooltip/webdoc/tooltip.en.md +1 -1
- package/demos/pc/app/tooltip/webdoc/tooltip.js +227 -185
- package/demos/pc/app/watermark/basic-usage-composition-api.vue +26 -0
- package/demos/pc/app/watermark/basic-usage.vue +34 -0
- package/demos/pc/app/watermark/image-composition-api.vue +28 -0
- package/demos/pc/app/watermark/image.vue +36 -0
- package/demos/pc/app/watermark/webdoc/watermark.cn.md +6 -0
- package/demos/pc/app/watermark/webdoc/watermark.en.md +11 -0
- package/demos/pc/app/watermark/webdoc/watermark.js +134 -0
- package/demos/pc/menus.js +2 -1
- package/env/.env.mobilealpha +1 -1
- package/package.json +11 -11
- package/demos/pc/app/tooltip/dynamic-disable-composition-api.vue +0 -14
- package/demos/pc/app/tooltip/dynamic-disable.spec.js +0 -23
- package/demos/pc/app/tooltip/dynamic-disable.vue +0 -22
- package/demos/pc/app/tooltip/enterable-composition-api.vue +0 -12
- package/demos/pc/app/tooltip/enterable.spec.js +0 -16
- package/demos/pc/app/tooltip/enterable.vue +0 -20
- package/demos/pc/app/tooltip/manual-control-tip-composition-api.vue +0 -19
- package/demos/pc/app/tooltip/manual-control-tip.vue +0 -28
- package/demos/pc/app/tooltip/popper-class-composition-api.vue +0 -18
- package/demos/pc/app/tooltip/popper-class.spec.js +0 -13
- package/demos/pc/app/tooltip/popper-class.vue +0 -26
- package/demos/pc/app/tooltip/tabindex-composition-api.vue +0 -9
- package/demos/pc/app/tooltip/tabindex.spec.js +0 -9
- package/demos/pc/app/tooltip/tabindex.vue +0 -15
- package/demos/pc/app/tooltip/tooltip-content-composition-api.vue +0 -39
- package/demos/pc/app/tooltip/tooltip-content.vue +0 -47
- package/demos/pc/app/tooltip/tooltip-offset-composition-api.vue +0 -9
- package/demos/pc/app/tooltip/tooltip-offset.vue +0 -18
- package/demos/pc/app/tooltip/tooltip-render-content-composition-api.vue +0 -20
- package/demos/pc/app/tooltip/tooltip-render-content.spec.js +0 -12
- package/demos/pc/app/tooltip/tooltip-render-content.vue +0 -27
- package/demos/pc/app/tooltip/visible-arrow.vue +0 -20
- package/demos/pc/app/tooltip/visible-show-composition-api.vue +0 -38
- package/demos/pc/app/tooltip/visible-show.spec.js +0 -30
- package/demos/pc/app/tooltip/visible-show.vue +0 -47
- /package/demos/pc/app/alert/{base.spec.ts → basic-usage.spec.ts} +0 -0
- /package/demos/pc/app/tooltip/{tooltip-content.spec.js → content.spec.js} +0 -0
- /package/demos/pc/app/tooltip/{manual-control-tip.spec.js → control.spec.js} +0 -0
- /package/demos/pc/app/tooltip/{visible-arrow-composition-api.vue → custom-popper-composition-api.vue} +0 -0
- /package/demos/pc/app/tooltip/{visible-arrow.spec.js → custom-popper.spec.js} +0 -0
- /package/demos/pc/app/tooltip/{open-delay.spec.js → delay.spec.js} +0 -0
- /package/demos/pc/app/tooltip/{tooltip-offset.spec.js → offset.spec.js} +0 -0
- /package/demos/pc/app/tooltip/{tooltip-theme.spec.js → theme.spec.js} +0 -0
- /package/demos/pc/app/tooltip/{custom-transition.spec.js → transition.spec.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<tiny-slider v-model="offset" :min="-200" :max="200"></tiny-slider>
|
|
4
|
+
<tiny-tooltip content="出现位置的偏移量" :offset="offset" manual v-model="show" :key="offset">
|
|
5
|
+
<button class="tiny-button tiny-button--primary">出现位置的偏移量</button>
|
|
6
|
+
</tiny-tooltip>
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="jsx">
|
|
11
|
+
import { Tooltip, Slider } from '@opentiny/vue'
|
|
12
|
+
|
|
13
|
+
export default {
|
|
14
|
+
components: {
|
|
15
|
+
TinyTooltip: Tooltip,
|
|
16
|
+
TinySlider: Slider
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
offset: 10,
|
|
21
|
+
show: true
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<tiny-tooltip content="提示内容" :popper-options="options">
|
|
4
|
+
<button class="tiny-button tiny-button--primary">鼠标悬浮到这里</button>
|
|
5
|
+
</tiny-tooltip>
|
|
6
|
+
</div>
|
|
5
7
|
</template>
|
|
6
8
|
|
|
7
9
|
<script setup lang="jsx">
|
|
@@ -9,7 +11,7 @@ import { ref } from 'vue'
|
|
|
9
11
|
import { Tooltip as TinyTooltip } from '@opentiny/vue'
|
|
10
12
|
|
|
11
13
|
const options = ref({
|
|
12
|
-
|
|
13
|
-
removeOnDestroy:
|
|
14
|
+
bubbling: true, // 监听元素所有上级有滚动元素的scroll事件,防止弹出层与页面分离
|
|
15
|
+
removeOnDestroy: true // 弹出层消失后,自动从页面上移除相应的DOM元素
|
|
14
16
|
})
|
|
15
17
|
</script>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<tiny-tooltip content="提示内容" :popper-options="options">
|
|
4
|
+
<button class="tiny-button tiny-button--primary">鼠标悬浮到这里</button>
|
|
5
|
+
</tiny-tooltip>
|
|
6
|
+
</div>
|
|
5
7
|
</template>
|
|
6
8
|
|
|
7
9
|
<script lang="jsx">
|
|
@@ -14,8 +16,8 @@ export default {
|
|
|
14
16
|
data() {
|
|
15
17
|
return {
|
|
16
18
|
options: {
|
|
17
|
-
|
|
18
|
-
removeOnDestroy:
|
|
19
|
+
bubbling: true, // 监听元素所有上级有滚动元素的scroll事件,防止弹出层与页面分离
|
|
20
|
+
removeOnDestroy: true // 当你想要在调用 `destroy` 方法时不自动移除 popper 时,应当将此项设置为 false
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
}
|
package/demos/pc/app/tooltip/{tooltip-theme-composition-api.vue → theme-composition-api.vue}
RENAMED
|
@@ -1,35 +1,40 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="box">
|
|
3
|
+
Effects示例:
|
|
3
4
|
<tiny-tooltip content="dark 提示文字" placement="top">
|
|
4
|
-
<button>Dark</button>
|
|
5
|
+
<tiny-button>Dark</tiny-button>
|
|
5
6
|
</tiny-tooltip>
|
|
6
7
|
<tiny-tooltip effect="light" content="light 提示文字" placement="top">
|
|
7
|
-
<button>Light</button>
|
|
8
|
+
<tiny-button>Light</tiny-button>
|
|
8
9
|
</tiny-tooltip>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="box">
|
|
12
|
+
Types示例:
|
|
9
13
|
<tiny-tooltip type="normal" content="normal 提示文字" placement="top">
|
|
10
|
-
<button>normal</button>
|
|
14
|
+
<tiny-button>normal</tiny-button>
|
|
11
15
|
</tiny-tooltip>
|
|
12
16
|
<tiny-tooltip type="warning" content="warning 提示文字" placement="top">
|
|
13
|
-
<button>warning</button>
|
|
17
|
+
<tiny-button>warning</tiny-button>
|
|
14
18
|
</tiny-tooltip>
|
|
15
19
|
<tiny-tooltip type="error" content="error 提示文字" placement="top">
|
|
16
|
-
<button>error</button>
|
|
20
|
+
<tiny-button>error</tiny-button>
|
|
17
21
|
</tiny-tooltip>
|
|
18
22
|
<tiny-tooltip type="info" content="info 提示文字" placement="top">
|
|
19
|
-
<button>info</button>
|
|
23
|
+
<tiny-button>info</tiny-button>
|
|
20
24
|
</tiny-tooltip>
|
|
21
25
|
<tiny-tooltip type="success" content="success 提示文字" placement="top">
|
|
22
|
-
<button>success</button>
|
|
26
|
+
<tiny-button>success</tiny-button>
|
|
23
27
|
</tiny-tooltip>
|
|
24
28
|
</div>
|
|
25
29
|
</template>
|
|
26
30
|
|
|
27
31
|
<script setup lang="jsx">
|
|
28
|
-
import { Tooltip as TinyTooltip } from '@opentiny/vue'
|
|
32
|
+
import { Tooltip as TinyTooltip, Button as TinyButton } from '@opentiny/vue'
|
|
29
33
|
</script>
|
|
30
34
|
|
|
31
35
|
<style scoped>
|
|
32
36
|
.tiny-tooltip {
|
|
33
|
-
margin-right:
|
|
37
|
+
margin-right: 8px;
|
|
38
|
+
margin-bottom: 16px;
|
|
34
39
|
}
|
|
35
40
|
</style>
|
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="box">
|
|
3
|
+
Effects示例:
|
|
3
4
|
<tiny-tooltip content="dark 提示文字" placement="top">
|
|
4
|
-
<button>Dark</button>
|
|
5
|
+
<tiny-button>Dark</tiny-button>
|
|
5
6
|
</tiny-tooltip>
|
|
6
7
|
<tiny-tooltip effect="light" content="light 提示文字" placement="top">
|
|
7
|
-
<button>Light</button>
|
|
8
|
+
<tiny-button>Light</tiny-button>
|
|
8
9
|
</tiny-tooltip>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="box">
|
|
12
|
+
Types示例:
|
|
9
13
|
<tiny-tooltip type="normal" content="normal 提示文字" placement="top">
|
|
10
|
-
<button>normal</button>
|
|
14
|
+
<tiny-button>normal</tiny-button>
|
|
11
15
|
</tiny-tooltip>
|
|
12
16
|
<tiny-tooltip type="warning" content="warning 提示文字" placement="top">
|
|
13
|
-
<button>warning</button>
|
|
17
|
+
<tiny-button>warning</tiny-button>
|
|
14
18
|
</tiny-tooltip>
|
|
15
19
|
<tiny-tooltip type="error" content="error 提示文字" placement="top">
|
|
16
|
-
<button>error</button>
|
|
20
|
+
<tiny-button>error</tiny-button>
|
|
17
21
|
</tiny-tooltip>
|
|
18
22
|
<tiny-tooltip type="info" content="info 提示文字" placement="top">
|
|
19
|
-
<button>info</button>
|
|
23
|
+
<tiny-button>info</tiny-button>
|
|
20
24
|
</tiny-tooltip>
|
|
21
25
|
<tiny-tooltip type="success" content="success 提示文字" placement="top">
|
|
22
|
-
<button>success</button>
|
|
26
|
+
<tiny-button>success</tiny-button>
|
|
23
27
|
</tiny-tooltip>
|
|
24
28
|
</div>
|
|
25
29
|
</template>
|
|
26
30
|
|
|
27
31
|
<script lang="jsx">
|
|
28
|
-
import { Tooltip } from '@opentiny/vue'
|
|
32
|
+
import { Tooltip, Button } from '@opentiny/vue'
|
|
29
33
|
|
|
30
34
|
export default {
|
|
31
35
|
components: {
|
|
32
|
-
TinyTooltip: Tooltip
|
|
36
|
+
TinyTooltip: Tooltip,
|
|
37
|
+
TinyButton: Button
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
</script>
|
|
36
41
|
|
|
37
42
|
<style scoped>
|
|
38
43
|
.tiny-tooltip {
|
|
39
|
-
margin-right:
|
|
44
|
+
margin-right: 8px;
|
|
45
|
+
margin-bottom: 16px;
|
|
40
46
|
}
|
|
41
47
|
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<tiny-tooltip content="
|
|
3
|
-
<button class="tiny-button tiny-button--primary"
|
|
2
|
+
<tiny-tooltip content="渐隐动画" transition="custom-transition" placement="bottom">
|
|
3
|
+
<button class="tiny-button tiny-button--primary">鼠标悬浮到这里</button>
|
|
4
4
|
</tiny-tooltip>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
@@ -13,14 +13,12 @@ import { Tooltip as TinyTooltip } from '@opentiny/vue'
|
|
|
13
13
|
.tiny-tooltip.custom-transition-enter-from,
|
|
14
14
|
.tiny-tooltip.custom-transition-leave-to {
|
|
15
15
|
opacity: 0;
|
|
16
|
-
transform: translateX(-999px);
|
|
17
16
|
transform-origin: center top;
|
|
18
17
|
}
|
|
19
18
|
|
|
20
19
|
.custom-transition-enter-active,
|
|
21
20
|
.custom-transition-leave-active {
|
|
22
21
|
opacity: 1;
|
|
23
|
-
|
|
24
|
-
transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1), opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
|
|
22
|
+
transition: opacity 1.5s cubic-bezier(0.23, 1, 0.32, 1);
|
|
25
23
|
}
|
|
26
24
|
</style>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<tiny-tooltip content="
|
|
3
|
-
<button class="tiny-button tiny-button--primary"
|
|
2
|
+
<tiny-tooltip content="渐隐动画" transition="custom-transition" placement="bottom">
|
|
3
|
+
<button class="tiny-button tiny-button--primary">鼠标悬浮到这里</button>
|
|
4
4
|
</tiny-tooltip>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
@@ -10,9 +10,6 @@ import { Tooltip } from '@opentiny/vue'
|
|
|
10
10
|
export default {
|
|
11
11
|
components: {
|
|
12
12
|
TinyTooltip: Tooltip
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {}
|
|
16
13
|
}
|
|
17
14
|
}
|
|
18
15
|
</script>
|
|
@@ -22,14 +19,12 @@ export default {
|
|
|
22
19
|
.tiny-tooltip.custom-transition-enter-from,
|
|
23
20
|
.tiny-tooltip.custom-transition-leave-to {
|
|
24
21
|
opacity: 0;
|
|
25
|
-
transform: translateX(-999px);
|
|
26
22
|
transform-origin: center top;
|
|
27
23
|
}
|
|
28
24
|
|
|
29
25
|
.custom-transition-enter-active,
|
|
30
26
|
.custom-transition-leave-active {
|
|
31
27
|
opacity: 1;
|
|
32
|
-
|
|
33
|
-
transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1), opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
|
|
28
|
+
transition: opacity 1.5s cubic-bezier(0.23, 1, 0.32, 1);
|
|
34
29
|
}
|
|
35
30
|
</style>
|