@opentiny/vue-docs 3.17.2 → 3.17.3
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/menus.js +1 -7
- package/package.json +5 -5
- package/demos/pc/app/tree-select/basic-usage-composition-api.vue +0 -55
- package/demos/pc/app/tree-select/basic-usage.spec.ts +0 -20
- package/demos/pc/app/tree-select/basic-usage.vue +0 -61
- package/demos/pc/app/tree-select/webdoc/tree-select.cn.md +0 -7
- package/demos/pc/app/tree-select/webdoc/tree-select.en.md +0 -7
- package/demos/pc/app/tree-select/webdoc/tree-select.js +0 -18
package/demos/pc/menus.js
CHANGED
|
@@ -151,13 +151,7 @@ export const cmpMenus = [
|
|
|
151
151
|
{ 'nameCn': '开关', 'name': 'Switch', 'key': 'switch' },
|
|
152
152
|
{ 'nameCn': '时间选择器', 'name': 'TimePicker', 'key': 'time-picker' },
|
|
153
153
|
{ 'nameCn': '时间选择', 'name': 'TimeSelect', 'key': 'time-select' },
|
|
154
|
-
{ 'nameCn': '穿梭框', 'name': 'Transfer', 'key': 'transfer' }
|
|
155
|
-
{
|
|
156
|
-
'nameCn': '树形选择器',
|
|
157
|
-
'name': 'TreeSelect',
|
|
158
|
-
'key': 'tree-select',
|
|
159
|
-
'mark': { 'type': 'warning', 'text': 'Beta' }
|
|
160
|
-
}
|
|
154
|
+
{ 'nameCn': '穿梭框', 'name': 'Transfer', 'key': 'transfer' }
|
|
161
155
|
]
|
|
162
156
|
},
|
|
163
157
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@opentiny/vue-repl": "^1.1.2",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"vue-i18n": "^9.1.10",
|
|
18
18
|
"vue-router": "4.1.5",
|
|
19
19
|
"@opentiny/vue": "~3.17.0",
|
|
20
|
+
"@opentiny/vue-design-smb": "~3.17.0",
|
|
20
21
|
"@opentiny/vue-design-saas": "~3.17.0",
|
|
21
22
|
"@opentiny/vue-design-aurora": "~3.17.0",
|
|
22
23
|
"@opentiny/vue-common": "~3.17.0",
|
|
23
|
-
"@opentiny/vue-
|
|
24
|
+
"@opentiny/vue-icon-saas": "~3.17.0",
|
|
24
25
|
"@opentiny/vue-icon": "~3.17.0",
|
|
25
26
|
"@opentiny/vue-theme": "~3.17.3",
|
|
26
|
-
"@opentiny/vue-theme-mobile": "~3.17.0",
|
|
27
27
|
"@opentiny/vue-directive": "~3.17.0",
|
|
28
|
+
"@opentiny/vue-theme-mobile": "~3.17.0",
|
|
28
29
|
"@opentiny/vue-vite-import": "~1.1.5",
|
|
29
|
-
"@opentiny/vue-theme-saas": "~3.17.0"
|
|
30
|
-
"@opentiny/vue-icon-saas": "~3.17.0"
|
|
30
|
+
"@opentiny/vue-theme-saas": "~3.17.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@playwright/test": "~1.42.0",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tiny-tree-select v-model="value" :tree-op="treeOp"></tiny-tree-select>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script setup>
|
|
6
|
-
import { ref } from 'vue'
|
|
7
|
-
import { TreeSelect as TinyTreeSelect } from '@opentiny/vue'
|
|
8
|
-
|
|
9
|
-
const value = ref('')
|
|
10
|
-
|
|
11
|
-
const treeOp = ref({
|
|
12
|
-
data: [
|
|
13
|
-
{
|
|
14
|
-
value: 1,
|
|
15
|
-
label: '一级 1',
|
|
16
|
-
children: [
|
|
17
|
-
{
|
|
18
|
-
value: 4,
|
|
19
|
-
label: '二级 1-1',
|
|
20
|
-
children: [
|
|
21
|
-
{
|
|
22
|
-
value: 9,
|
|
23
|
-
label: '三级 1-1-1'
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
value: 10,
|
|
27
|
-
label: '三级 1-1-2'
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
value: 2,
|
|
35
|
-
label: '一级 2',
|
|
36
|
-
children: [
|
|
37
|
-
{
|
|
38
|
-
value: 5,
|
|
39
|
-
label: '二级 2-1'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
value: 6,
|
|
43
|
-
label: '二级 2-2'
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
})
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style scoped>
|
|
52
|
-
.tiny-tree-select {
|
|
53
|
-
width: 280px;
|
|
54
|
-
}
|
|
55
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { expect, test } from '@playwright/test'
|
|
2
|
-
|
|
3
|
-
test('测试基本用法', async ({ page }) => {
|
|
4
|
-
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
|
5
|
-
await page.goto('tree-select#basic-usage')
|
|
6
|
-
|
|
7
|
-
const wrap = page.locator('#basic-usage')
|
|
8
|
-
const select = wrap.locator('.tiny-tree-select').nth(0)
|
|
9
|
-
const input = select.locator('.tiny-input__inner')
|
|
10
|
-
const dropdown = page.locator('body > .tiny-select-dropdown')
|
|
11
|
-
const treeNode = dropdown.locator('.tiny-tree-node')
|
|
12
|
-
|
|
13
|
-
await input.click()
|
|
14
|
-
await expect(treeNode).toHaveCount(7)
|
|
15
|
-
|
|
16
|
-
await treeNode.filter({ hasText: /^二级 2-1$/ }).click()
|
|
17
|
-
await expect(input).toHaveValue('二级 2-1')
|
|
18
|
-
await input.click()
|
|
19
|
-
await expect(treeNode.filter({ hasText: /^二级 2-1$/ })).toHaveClass(/is-current/)
|
|
20
|
-
})
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<tiny-tree-select v-model="value" :tree-op="treeOp"></tiny-tree-select>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
import { TreeSelect } from '@opentiny/vue'
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
components: {
|
|
10
|
-
TinyTreeSelect: TreeSelect
|
|
11
|
-
},
|
|
12
|
-
data() {
|
|
13
|
-
return {
|
|
14
|
-
treeOp: {
|
|
15
|
-
data: [
|
|
16
|
-
{
|
|
17
|
-
value: 1,
|
|
18
|
-
label: '一级 1',
|
|
19
|
-
children: [
|
|
20
|
-
{
|
|
21
|
-
value: 4,
|
|
22
|
-
label: '二级 1-1',
|
|
23
|
-
children: [
|
|
24
|
-
{
|
|
25
|
-
value: 9,
|
|
26
|
-
label: '三级 1-1-1'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
value: 10,
|
|
30
|
-
label: '三级 1-1-2'
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
value: 2,
|
|
38
|
-
label: '一级 2',
|
|
39
|
-
children: [
|
|
40
|
-
{
|
|
41
|
-
value: 5,
|
|
42
|
-
label: '二级 2-1'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
value: 6,
|
|
46
|
-
label: '二级 2-2'
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
</script>
|
|
56
|
-
|
|
57
|
-
<style scoped>
|
|
58
|
-
.tiny-tree-select {
|
|
59
|
-
width: 280px;
|
|
60
|
-
}
|
|
61
|
-
</style>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
column: '2',
|
|
3
|
-
owner: '',
|
|
4
|
-
demos: [
|
|
5
|
-
{
|
|
6
|
-
demoId: 'basic-usage',
|
|
7
|
-
name: {
|
|
8
|
-
'zh-CN': '基本用法',
|
|
9
|
-
'en-US': 'Basic Usage'
|
|
10
|
-
},
|
|
11
|
-
desc: {
|
|
12
|
-
'zh-CN': '<p>最基础的用法,通过 <code>tree-op</code> 设置下拉树的数据源,<code>v-model</code> 设置绑定值。</p>',
|
|
13
|
-
'en-US': ''
|
|
14
|
-
},
|
|
15
|
-
codeFiles: ['basic-usage.vue']
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|