@opentiny/vue-docs 2.2.7 → 2.2.8
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/pc/app/drop-times/basic-usage-composition-api.vue +7 -1
- package/demos/pc/app/drop-times/basic-usage.vue +8 -2
- package/demos/pc/app/drop-times/size-composition-api.vue +14 -4
- package/demos/pc/app/drop-times/size.vue +14 -4
- package/demos/pc/app/drop-times/start-end-step-composition-api.vue +8 -13
- package/demos/pc/app/drop-times/start-end-step.vue +10 -16
- package/demos/pc/app/drop-times/webdoc/drop-times.js +27 -17
- package/demos/pc/app/time-select/basic-usage-composition-api.vue +10 -2
- package/demos/pc/app/time-select/basic-usage.vue +10 -2
- package/demos/pc/app/time-select/clear-icon-composition-api.vue +17 -9
- package/demos/pc/app/time-select/clear-icon.vue +17 -9
- package/demos/pc/app/time-select/default-value-composition-api.vue +10 -2
- package/demos/pc/app/time-select/default-value.vue +10 -2
- package/demos/pc/app/time-select/disabled-composition-api.vue +10 -2
- package/demos/pc/app/time-select/disabled.vue +10 -2
- package/demos/pc/app/time-select/editable-composition-api.vue +10 -2
- package/demos/pc/app/time-select/editable.vue +10 -2
- package/demos/pc/app/time-select/event-blur-composition-api.vue +8 -2
- package/demos/pc/app/time-select/event-blur.vue +10 -4
- package/demos/pc/app/time-select/focus-composition-api.vue +12 -3
- package/demos/pc/app/time-select/focus.vue +12 -3
- package/demos/pc/app/time-select/picker-options-composition-api.vue +21 -13
- package/demos/pc/app/time-select/picker-options.vue +21 -13
- package/demos/pc/app/time-select/range-placeholder-composition-api.vue +17 -3
- package/demos/pc/app/time-select/range-placeholder.vue +17 -3
- package/demos/pc/app/time-select/size-medium-composition-api.vue +15 -2
- package/demos/pc/app/time-select/size-medium.vue +15 -2
- package/demos/pc/app/time-select/suffix-icon-composition-api.vue +8 -2
- package/demos/pc/app/time-select/suffix-icon.vue +8 -2
- package/demos/pc/app/time-select/webdoc/time-select.js +57 -78
- package/package.json +6 -6
- package/demos/pc/app/time-select/default-time-composition-api.vue +0 -11
- package/demos/pc/app/time-select/default-time.vue +0 -19
- package/demos/pc/app/time-select/event-change-composition-api.vue +0 -16
- package/demos/pc/app/time-select/event-change.vue +0 -25
- package/demos/pc/app/time-select/popper-class-composition-api.vue +0 -27
- package/demos/pc/app/time-select/popper-class.spec.ts +0 -9
- package/demos/pc/app/time-select/popper-class.vue +0 -35
- package/demos/pc/app/time-select/size-mini-composition-api.vue +0 -10
- package/demos/pc/app/time-select/size-mini.spec.ts +0 -8
- package/demos/pc/app/time-select/size-mini.vue +0 -18
- package/demos/pc/app/time-select/size-small-composition-api.vue +0 -10
- package/demos/pc/app/time-select/size-small.spec.ts +0 -8
- package/demos/pc/app/time-select/size-small.vue +0 -18
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<tiny-time-select v-model="value1" @change="change" placeholder="选择时间"></tiny-time-select>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="jsx">
|
|
8
|
-
import { ref } from 'vue'
|
|
9
|
-
import { TimeSelect as TinyTimeSelect, Modal } from '@opentiny/vue'
|
|
10
|
-
|
|
11
|
-
const value1 = ref('08:30')
|
|
12
|
-
|
|
13
|
-
function change() {
|
|
14
|
-
Modal.message('change事件')
|
|
15
|
-
}
|
|
16
|
-
</script>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<tiny-time-select v-model="value1" @change="change" placeholder="选择时间"></tiny-time-select>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="jsx">
|
|
8
|
-
import { TimeSelect, Modal } from '@opentiny/vue'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
components: {
|
|
12
|
-
TinyTimeSelect: TimeSelect
|
|
13
|
-
},
|
|
14
|
-
data() {
|
|
15
|
-
return {
|
|
16
|
-
value1: '08:30'
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
methods: {
|
|
20
|
-
change() {
|
|
21
|
-
Modal.message('change事件')
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="time-select-demo">
|
|
3
|
-
<tiny-time-select
|
|
4
|
-
v-model="value"
|
|
5
|
-
placeholder="选择时间"
|
|
6
|
-
popper-class="myClass"
|
|
7
|
-
:popper-append-to-body="false"
|
|
8
|
-
></tiny-time-select>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup lang="jsx">
|
|
13
|
-
import { ref } from 'vue'
|
|
14
|
-
import { TimeSelect as TinyTimeSelect } from '@opentiny/vue'
|
|
15
|
-
|
|
16
|
-
const value = ref('')
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<style>
|
|
20
|
-
.time-select-demo {
|
|
21
|
-
min-height: 200px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.myClass {
|
|
25
|
-
background: #dddddd;
|
|
26
|
-
}
|
|
27
|
-
</style>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { test, expect } from '@playwright/test'
|
|
2
|
-
|
|
3
|
-
test('自定义类名', async ({ page }) => {
|
|
4
|
-
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
-
await page.goto('time-select#popper-class')
|
|
6
|
-
await page.getByPlaceholder('选择时间').click()
|
|
7
|
-
const myClass = page.locator('.tiny-input-group__panel div').first()
|
|
8
|
-
await expect(myClass).toHaveClass(/myClass/)
|
|
9
|
-
})
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="time-select-demo">
|
|
3
|
-
<tiny-time-select
|
|
4
|
-
v-model="value"
|
|
5
|
-
placeholder="选择时间"
|
|
6
|
-
popper-class="myClass"
|
|
7
|
-
:popper-append-to-body="false"
|
|
8
|
-
></tiny-time-select>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="jsx">
|
|
13
|
-
import { TimeSelect } from '@opentiny/vue'
|
|
14
|
-
|
|
15
|
-
export default {
|
|
16
|
-
components: {
|
|
17
|
-
TinyTimeSelect: TimeSelect
|
|
18
|
-
},
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
value: ''
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<style>
|
|
28
|
-
.time-select-demo {
|
|
29
|
-
min-height: 200px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.myClass {
|
|
33
|
-
background: #dddddd;
|
|
34
|
-
}
|
|
35
|
-
</style>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tiny-time-select v-model="value" placeholder="选择时间" size="mini"></tiny-time-select>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="jsx">
|
|
6
|
-
import { ref } from 'vue'
|
|
7
|
-
import { TimeSelect as TinyTimeSelect } from '@opentiny/vue'
|
|
8
|
-
|
|
9
|
-
const value = ref('')
|
|
10
|
-
</script>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { test, expect } from '@playwright/test'
|
|
2
|
-
|
|
3
|
-
test('mini 尺寸', async ({ page }) => {
|
|
4
|
-
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
-
await page.goto('time-select#size-mini')
|
|
6
|
-
const miniBox = page.getByPlaceholder('选择时间')
|
|
7
|
-
await expect(miniBox).toHaveCSS('height', '24px')
|
|
8
|
-
})
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tiny-time-select v-model="value" placeholder="选择时间" size="mini"></tiny-time-select>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script lang="jsx">
|
|
6
|
-
import { TimeSelect } from '@opentiny/vue'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
components: {
|
|
10
|
-
TinyTimeSelect: TimeSelect
|
|
11
|
-
},
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
value: ''
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tiny-time-select v-model="value" placeholder="选择时间" size="small"></tiny-time-select>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup lang="jsx">
|
|
6
|
-
import { ref } from 'vue'
|
|
7
|
-
import { TimeSelect as TinyTimeSelect } from '@opentiny/vue'
|
|
8
|
-
|
|
9
|
-
const value = ref('')
|
|
10
|
-
</script>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { test, expect } from '@playwright/test'
|
|
2
|
-
|
|
3
|
-
test('small 尺寸', async ({ page }) => {
|
|
4
|
-
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
-
await page.goto('time-select#size-small')
|
|
6
|
-
const smallBox = page.getByPlaceholder('选择时间')
|
|
7
|
-
await expect(smallBox).toHaveCSS('height', '32px')
|
|
8
|
-
})
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tiny-time-select v-model="value" placeholder="选择时间" size="small"></tiny-time-select>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script lang="jsx">
|
|
6
|
-
import { TimeSelect } from '@opentiny/vue'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
components: {
|
|
10
|
-
TinyTimeSelect: TimeSelect
|
|
11
|
-
},
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
value: ''
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
</script>
|