-
Notifications
You must be signed in to change notification settings - Fork 294
/
Copy pathsize-composition-api.vue
139 lines (135 loc) · 2.36 KB
/
size-composition-api.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<template>
<div class="demo-popeditor-size">
<tiny-popeditor
size="medium"
v-model="value"
:grid-op="gridOp"
text-field="name"
value-field="id"
value-split="@"
text-split="@"
></tiny-popeditor>
<tiny-popeditor
v-model="value"
:grid-op="gridOp"
text-field="name"
value-field="id"
value-split="@"
text-split="@"
></tiny-popeditor>
<tiny-popeditor
size="small"
v-model="value"
:grid-op="gridOp"
text-field="name"
value-field="id"
value-split="@"
text-split="@"
></tiny-popeditor>
<tiny-popeditor
size="mini"
v-model="value"
:grid-op="gridOp"
text-field="name"
value-field="id"
value-split="@"
text-split="@"
></tiny-popeditor>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { Popeditor as TinyPopeditor } from '@opentiny/vue'
const dataset = [
{
id: '1',
name: 'GFD科技YX公司',
city: '福州',
province: '福建'
},
{
id: '2',
name: 'WWW科技YX公司',
city: '深圳',
province: '广东'
},
{
id: '3',
name: 'RFV有限责任公司',
city: '中山',
province: '广东'
},
{
id: '4',
name: 'TGB科技YX公司',
city: '龙岩',
province: '福建'
},
{
id: '5',
name: 'YHN科技YX公司',
city: '韶关',
province: '广东'
},
{
id: '6',
name: 'WSX科技YX公司',
city: '黄冈',
province: '武汉'
},
{
id: '7',
name: 'KBG物业YX公司',
city: '赤壁',
province: '武汉'
},
{
id: '8',
name: '深圳市福德宝网络技术YX公司',
province: '广东',
city: '深圳'
},
{
id: '9',
name: 'KBG物业YX公司',
city: '赤壁',
province: '武汉'
},
{
id: '10',
name: '深圳市福德宝网络技术YX公司',
province: '广东',
city: '深圳'
}
]
const value = ref('')
const gridOp = ref({
columns: [
{
field: 'id',
title: 'ID',
width: 40
},
{
field: 'name',
title: '名称'
},
{
field: 'province',
title: '省份',
width: 80
},
{
field: 'city',
title: '城市',
width: 80
}
],
data: dataset
})
</script>
<style scoped>
.demo-popeditor-size .tiny-popeditor {
margin-bottom: 8px;
}
</style>