@opentiny/vue-docs 2.1.3 → 2.1.5

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.
Files changed (144) hide show
  1. package/demos/pc/app/grid/align/footer-align/{left-footer-align-composition-api.vue → footer-align-composition-api.vue} +35 -19
  2. package/demos/pc/app/grid/align/footer-align/{left-footer-align.vue → footer-align.vue} +35 -19
  3. package/demos/pc/app/grid/align/grid-align/{left-grid-align-composition-api.vue → grid-align-composition-api.vue} +4 -5
  4. package/demos/pc/app/grid/align/grid-align/{left-grid-align.vue → grid-align.vue} +4 -5
  5. package/demos/pc/app/grid/align/header-align/{left-header-align-composition-api.vue → header-align-composition-api.vue} +4 -4
  6. package/demos/pc/app/grid/align/{grid-align/right-grid-align.vue → header-align/header-align.vue} +5 -6
  7. package/demos/pc/app/grid/slot/editor-slot-composition-api.vue +66 -0
  8. package/demos/pc/app/grid/webdoc/grid-align.js +6 -53
  9. package/demos/pc/app/select/allow-create-composition-api.vue +1 -1
  10. package/demos/pc/app/select/allow-create.vue +1 -1
  11. package/demos/pc/app/select/automatic-dropdown-composition-api.vue +3 -3
  12. package/demos/pc/app/select/automatic-dropdown.vue +1 -1
  13. package/demos/pc/app/select/basic-usage-composition-api.vue +1 -1
  14. package/demos/pc/app/select/basic-usage.vue +1 -1
  15. package/demos/pc/app/select/binding-obj-composition-api.vue +1 -1
  16. package/demos/pc/app/select/binding-obj.vue +1 -1
  17. package/demos/pc/app/select/cache-usage-composition-api.vue +2 -3
  18. package/demos/pc/app/select/cache-usage.vue +1 -1
  19. package/demos/pc/app/select/clear-no-match-value-composition-api.vue +6 -2
  20. package/demos/pc/app/select/clear-no-match-value.vue +6 -2
  21. package/demos/pc/app/select/clearable-composition-api.vue +1 -1
  22. package/demos/pc/app/select/clearable.vue +1 -1
  23. package/demos/pc/app/select/collapse-tags-composition-api.vue +1 -1
  24. package/demos/pc/app/select/collapse-tags.vue +1 -1
  25. package/demos/pc/app/select/custom-options-composition-api.vue +1 -1
  26. package/demos/pc/app/select/custom-options.vue +1 -1
  27. package/demos/pc/app/select/custom-prefix-composition-api.vue +1 -1
  28. package/demos/pc/app/select/custom-prefix.vue +3 -3
  29. package/demos/pc/app/select/custom-reference-slot-composition-api.vue +1 -1
  30. package/demos/pc/app/select/custom-reference-slot.vue +1 -1
  31. package/demos/pc/app/select/disable-grid-select-radio-composition-api.vue +3 -2
  32. package/demos/pc/app/select/disable-grid-select-radio.vue +3 -2
  33. package/demos/pc/app/select/disabled-and-selected-options-composition-api.vue +1 -1
  34. package/demos/pc/app/select/disabled-and-selected-options.vue +1 -1
  35. package/demos/pc/app/select/disabled-composition-api.vue +1 -1
  36. package/demos/pc/app/select/disabled-options-composition-api.vue +1 -1
  37. package/demos/pc/app/select/disabled-options.vue +1 -1
  38. package/demos/pc/app/select/disabled.vue +1 -1
  39. package/demos/pc/app/select/envts-change-composition-api.vue +5 -5
  40. package/demos/pc/app/select/envts-change.vue +1 -1
  41. package/demos/pc/app/select/envts-remove-composition-api.vue +2 -2
  42. package/demos/pc/app/select/envts-remove.vue +1 -1
  43. package/demos/pc/app/select/filter-method-composition-api.vue +2 -2
  44. package/demos/pc/app/select/filter-method.vue +3 -1
  45. package/demos/pc/app/select/focus-remote-method-composition-api.vue +2 -2
  46. package/demos/pc/app/select/focus-remote-method.vue +1 -1
  47. package/demos/pc/app/select/hide-select-input-border-composition-api.vue +1 -1
  48. package/demos/pc/app/select/hide-select-input-border.vue +1 -1
  49. package/demos/pc/app/select/input-box-type-composition-api.vue +11 -4
  50. package/demos/pc/app/select/input-box-type.vue +11 -4
  51. package/demos/pc/app/select/is-drop-inherit-width-composition-api.vue +10 -3
  52. package/demos/pc/app/select/is-drop-inherit-width.vue +10 -3
  53. package/demos/pc/app/select/manual-focus-blur-composition-api.vue +3 -3
  54. package/demos/pc/app/select/manual-focus-blur.vue +1 -1
  55. package/demos/pc/app/select/memoize-usage-composition-api.vue +2 -2
  56. package/demos/pc/app/select/memoize-usage.vue +1 -1
  57. package/demos/pc/app/select/multiple-composition-api.vue +1 -1
  58. package/demos/pc/app/select/multiple-limit-composition-api.vue +1 -1
  59. package/demos/pc/app/select/multiple-limit.vue +1 -1
  60. package/demos/pc/app/select/multiple.vue +1 -1
  61. package/demos/pc/app/select/name-composition-api.vue +1 -1
  62. package/demos/pc/app/select/name.vue +1 -1
  63. package/demos/pc/app/select/nest-checkbox-grid-clearable-composition-api.vue +2 -2
  64. package/demos/pc/app/select/nest-checkbox-grid-clearable.vue +1 -1
  65. package/demos/pc/app/select/nest-checkbox-grid-composition-api.vue +1 -1
  66. package/demos/pc/app/select/nest-checkbox-grid.vue +1 -1
  67. package/demos/pc/app/select/nest-checkbox-tree-composition-api.vue +1 -1
  68. package/demos/pc/app/select/nest-checkbox-tree.vue +1 -1
  69. package/demos/pc/app/select/nest-filterable-tree-composition-api.vue +2 -2
  70. package/demos/pc/app/select/nest-filterable-tree.vue +1 -1
  71. package/demos/pc/app/select/nest-grid-remote-filter-composition-api.vue +5 -4
  72. package/demos/pc/app/select/nest-grid-remote-filter.vue +3 -2
  73. package/demos/pc/app/select/nest-radio-grid-composition-api.vue +1 -1
  74. package/demos/pc/app/select/nest-radio-grid-much-data-composition-api.vue +1 -1
  75. package/demos/pc/app/select/nest-radio-grid-much-data.vue +1 -1
  76. package/demos/pc/app/select/nest-radio-grid.vue +1 -1
  77. package/demos/pc/app/select/nest-radio-tree-composition-api.vue +1 -1
  78. package/demos/pc/app/select/nest-radio-tree.vue +1 -1
  79. package/demos/pc/app/select/nest-remote-grid-composition-api.vue +5 -3
  80. package/demos/pc/app/select/nest-remote-grid.vue +4 -2
  81. package/demos/pc/app/select/no-data-text-composition-api.vue +11 -3
  82. package/demos/pc/app/select/no-data-text.vue +10 -3
  83. package/demos/pc/app/select/no-match-text-composition-api.vue +1 -1
  84. package/demos/pc/app/select/no-match-text.vue +1 -1
  85. package/demos/pc/app/select/optimization-composition-api.vue +2 -2
  86. package/demos/pc/app/select/optimization.vue +1 -1
  87. package/demos/pc/app/select/option-group-composition-api.vue +1 -1
  88. package/demos/pc/app/select/option-group-disable-composition-api.vue +1 -1
  89. package/demos/pc/app/select/option-group-disable.vue +1 -1
  90. package/demos/pc/app/select/option-group.vue +1 -1
  91. package/demos/pc/app/select/popup-style-position-composition-api.vue +1 -1
  92. package/demos/pc/app/select/popup-style-position.vue +1 -1
  93. package/demos/pc/app/select/remote-method-composition-api.vue +2 -2
  94. package/demos/pc/app/select/remote-method.vue +1 -1
  95. package/demos/pc/app/select/remote-search-allow-copy-composition-api.vue +10 -3
  96. package/demos/pc/app/select/remote-search-allow-copy.vue +12 -4
  97. package/demos/pc/app/select/search-allow-copy-composition-api.vue +10 -3
  98. package/demos/pc/app/select/search-allow-copy.vue +12 -4
  99. package/demos/pc/app/select/searchable-composition-api.vue +10 -3
  100. package/demos/pc/app/select/searchable.vue +10 -3
  101. package/demos/pc/app/select/set-input-value-composition-api.vue +2 -2
  102. package/demos/pc/app/select/set-input-value.vue +1 -1
  103. package/demos/pc/app/select/show-alloption-composition-api.vue +1 -1
  104. package/demos/pc/app/select/show-alloption.vue +1 -1
  105. package/demos/pc/app/select/show-tip-composition-api.vue +1 -1
  106. package/demos/pc/app/select/show-tip.vue +1 -1
  107. package/demos/pc/app/select/size-medium-composition-api.vue +1 -1
  108. package/demos/pc/app/select/size-medium.vue +1 -1
  109. package/demos/pc/app/select/size-mini-composition-api.vue +1 -1
  110. package/demos/pc/app/select/size-small-composition-api.vue +1 -1
  111. package/demos/pc/app/select/slot-default-composition-api.vue +1 -1
  112. package/demos/pc/app/select/slot-default.vue +1 -1
  113. package/demos/pc/app/select/slot-empty-composition-api.vue +1 -1
  114. package/demos/pc/app/select/slot-empty.vue +1 -1
  115. package/demos/pc/app/select/slot-footer-composition-api.vue +1 -1
  116. package/demos/pc/app/select/tag-copy-all-composition-api.vue +10 -3
  117. package/demos/pc/app/select/tag-copy-all.vue +12 -4
  118. package/demos/pc/app/select/tag-select-composition-api.vue +10 -3
  119. package/demos/pc/app/select/tag-select.vue +12 -4
  120. package/demos/pc/app/select/tag-type-composition-api.vue +1 -1
  121. package/demos/pc/app/select/tag-type.vue +1 -1
  122. package/demos/pc/app/select/webdoc/select.js +1 -1
  123. package/package.json +6 -6
  124. package/demos/pc/app/grid/align/footer-align/center-footer-align-composition-api.vue +0 -101
  125. package/demos/pc/app/grid/align/footer-align/center-footer-align.spec.js +0 -7
  126. package/demos/pc/app/grid/align/footer-align/center-footer-align.vue +0 -111
  127. package/demos/pc/app/grid/align/footer-align/right-footer-align-composition-api.vue +0 -101
  128. package/demos/pc/app/grid/align/footer-align/right-footer-align.spec.js +0 -7
  129. package/demos/pc/app/grid/align/footer-align/right-footer-align.vue +0 -111
  130. package/demos/pc/app/grid/align/grid-align/center-grid-align-composition-api.vue +0 -74
  131. package/demos/pc/app/grid/align/grid-align/center-grid-align.spec.js +0 -7
  132. package/demos/pc/app/grid/align/grid-align/center-grid-align.vue +0 -83
  133. package/demos/pc/app/grid/align/grid-align/right-grid-align-composition-api.vue +0 -74
  134. package/demos/pc/app/grid/align/grid-align/right-grid-align.spec.js +0 -7
  135. package/demos/pc/app/grid/align/header-align/center-header-align-composition-api.vue +0 -73
  136. package/demos/pc/app/grid/align/header-align/center-header-align.spec.js +0 -7
  137. package/demos/pc/app/grid/align/header-align/center-header-align.vue +0 -82
  138. package/demos/pc/app/grid/align/header-align/left-header-align.vue +0 -82
  139. package/demos/pc/app/grid/align/header-align/right-header-align-composition-api.vue +0 -73
  140. package/demos/pc/app/grid/align/header-align/right-header-align.spec.js +0 -7
  141. package/demos/pc/app/grid/align/header-align/right-header-align.vue +0 -82
  142. /package/demos/pc/app/grid/align/footer-align/{left-footer-align.spec.js → footer-align.spec.js} +0 -0
  143. /package/demos/pc/app/grid/align/grid-align/{left-grid-align.spec.js → grid-align.spec.js} +0 -0
  144. /package/demos/pc/app/grid/align/header-align/{left-header-align.spec.js → header-align.spec.js} +0 -0
@@ -16,7 +16,7 @@
16
16
  </div>
17
17
  </template>
18
18
 
19
- <script lang="jsx">
19
+ <script>
20
20
  import { Select } from '@opentiny/vue'
21
21
 
22
22
  export default {
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script setup lang="jsx">
15
+ <script setup>
16
16
  import { ref } from 'vue'
17
17
  import { Select as TinySelect } from '@opentiny/vue'
18
18
 
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script lang="jsx">
15
+ <script>
16
16
  import { Select } from '@opentiny/vue'
17
17
 
18
18
  export default {
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script setup lang="jsx">
15
+ <script setup>
16
16
  import { ref } from 'vue'
17
17
  import { Select as TinySelect } from '@opentiny/vue'
18
18
 
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script lang="jsx">
15
+ <script>
16
16
  import { Select } from '@opentiny/vue'
17
17
 
18
18
  export default {
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  </template>
16
16
 
17
- <script setup lang="jsx">
17
+ <script setup>
18
18
  import { ref } from 'vue'
19
19
  import { Select as TinySelect } from '@opentiny/vue'
20
20
 
@@ -58,7 +58,7 @@ const treeOp = ref({
58
58
  ]
59
59
  })
60
60
 
61
- function filter(value, data) {
61
+ const filter = (value, data) => {
62
62
  if (!value) return true
63
63
 
64
64
  return data.label.includes(value)
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  </template>
16
16
 
17
- <script lang="jsx">
17
+ <script>
18
18
  import { Select } from '@opentiny/vue'
19
19
 
20
20
  export default {
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
  </template>
37
37
 
38
- <script setup lang="jsx">
38
+ <script setup>
39
39
  import { ref } from 'vue'
40
40
  import { Select as TinySelect } from '@opentiny/vue'
41
41
 
@@ -68,7 +68,7 @@ allData.value = Array.from({ length: 10000 }, (a, i) => {
68
68
  }
69
69
  })
70
70
 
71
- function remoteMethod(value) {
71
+ const remoteMethod = (value) => {
72
72
  let allData = Array.from({ length: 1000 }, (a, i) => {
73
73
  return {
74
74
  id: '00' + i,
@@ -89,7 +89,7 @@ function remoteMethod(value) {
89
89
  })
90
90
  }
91
91
 
92
- function filter(value) {
92
+ const filter = (value) => {
93
93
  return allData.value.filter((item) => {
94
94
  return !item.city.includes(value)
95
95
  })
@@ -99,6 +99,7 @@ function filter(value) {
99
99
  <style scoped>
100
100
  .demo-select .tiny-select {
101
101
  width: 270px;
102
- margin-right: 30px;
102
+ display: block;
103
+ margin: 8px;
103
104
  }
104
105
  </style>
@@ -35,7 +35,7 @@
35
35
  </div>
36
36
  </template>
37
37
 
38
- <script lang="jsx">
38
+ <script>
39
39
  import { Select } from '@opentiny/vue'
40
40
 
41
41
  export default {
@@ -108,6 +108,7 @@ export default {
108
108
  <style scoped>
109
109
  .demo-select .tiny-select {
110
110
  width: 270px;
111
- margin-right: 30px;
111
+ display: block;
112
+ margin: 8px;
112
113
  }
113
114
  </style>
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script setup lang="jsx">
15
+ <script setup>
16
16
  import { ref } from 'vue'
17
17
  import { Select as TinySelect } from '@opentiny/vue'
18
18
 
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </template>
15
15
 
16
- <script setup lang="jsx">
16
+ <script setup>
17
17
  import { ref, onMounted } from 'vue'
18
18
  import { Select as TinySelect } from '@opentiny/vue'
19
19
 
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </template>
15
15
 
16
- <script lang="jsx">
16
+ <script>
17
17
  import { Select } from '@opentiny/vue'
18
18
 
19
19
  export default {
@@ -12,7 +12,7 @@
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script lang="jsx">
15
+ <script>
16
16
  import { Select } from '@opentiny/vue'
17
17
 
18
18
  export default {
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  </template>
13
13
 
14
- <script setup lang="jsx">
14
+ <script setup>
15
15
  import { ref } from 'vue'
16
16
  import { Select as TinySelect } from '@opentiny/vue'
17
17
 
@@ -11,7 +11,7 @@
11
11
  </div>
12
12
  </template>
13
13
 
14
- <script lang="jsx">
14
+ <script>
15
15
  import { Select } from '@opentiny/vue'
16
16
 
17
17
  export default {
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
  </template>
35
35
 
36
- <script setup lang="jsx">
36
+ <script setup>
37
37
  import { ref } from 'vue'
38
38
  import { Select as TinySelect } from '@opentiny/vue'
39
39
 
@@ -201,7 +201,7 @@ const gridOpRadio = ref({
201
201
  })
202
202
  let loading
203
203
 
204
- function remoteMethod(query) {
204
+ const remoteMethod = (query) => {
205
205
  if (query !== undefined) {
206
206
  loading = true
207
207
 
@@ -225,6 +225,8 @@ function remoteMethod(query) {
225
225
  <style scoped>
226
226
  .demo-select .tiny-select {
227
227
  width: 270px;
228
- margin-right: 30px;
228
+ display: block;
229
+ margin: 8px;
230
+
229
231
  }
230
232
  </style>
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
  </template>
35
35
 
36
- <script lang="jsx">
36
+ <script>
37
37
  import { Select } from '@opentiny/vue'
38
38
 
39
39
  export default {
@@ -233,6 +233,8 @@ export default {
233
233
  <style scoped>
234
234
  .demo-select .tiny-select {
235
235
  width: 270px;
236
- margin-right: 30px;
236
+ display: block;
237
+ margin: 8px;
238
+
237
239
  }
238
240
  </style>
@@ -1,21 +1,29 @@
1
1
  <template>
2
2
  <div>
3
- <p>默认不显示空数据图片</p>
3
+ <p class="font-style">默认不显示空数据图片</p>
4
4
  <tiny-select v-model="value" placeholder="请选择" no-data-text="None">
5
5
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
6
6
  </tiny-select>
7
7
 
8
- <p>显示空数据图片</p>
8
+ <p class="font-style">显示空数据图片</p>
9
9
  <tiny-select v-model="value" placeholder="请选择" no-data-text="暂无数据" :show-empty-image="true">
10
10
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
11
11
  </tiny-select>
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script setup lang="jsx">
15
+ <script setup>
16
16
  import { ref } from 'vue'
17
17
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
18
18
 
19
19
  const options = ref([])
20
20
  const value = ref('')
21
21
  </script>
22
+
23
+ <style scoped>
24
+ .font-style {
25
+ font-size: 14px;
26
+ margin: 8px;
27
+ }
28
+ </style>
29
+
@@ -1,18 +1,18 @@
1
1
  <template>
2
2
  <div>
3
- <p>默认不显示空数据图片</p>
3
+ <p class="font-style">默认不显示空数据图片</p>
4
4
  <tiny-select v-model="value" placeholder="请选择" no-data-text="None">
5
5
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
6
6
  </tiny-select>
7
7
 
8
- <p>显示空数据图片</p>
8
+ <p class="font-style">显示空数据图片</p>
9
9
  <tiny-select v-model="value" placeholder="请选择" no-data-text="暂无数据" :show-empty-image="true">
10
10
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
11
11
  </tiny-select>
12
12
  </div>
13
13
  </template>
14
14
 
15
- <script lang="jsx">
15
+ <script>
16
16
  import { Select, Option } from '@opentiny/vue'
17
17
 
18
18
  export default {
@@ -28,3 +28,10 @@ export default {
28
28
  }
29
29
  }
30
30
  </script>
31
+
32
+ <style scoped>
33
+ .font-style {
34
+ font-size: 14px;
35
+ margin: 8px;
36
+ }
37
+ </style>
@@ -4,7 +4,7 @@
4
4
  </tiny-select>
5
5
  </template>
6
6
 
7
- <script setup lang="jsx">
7
+ <script setup>
8
8
  import { ref } from 'vue'
9
9
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
10
10
 
@@ -4,7 +4,7 @@
4
4
  </tiny-select>
5
5
  </template>
6
6
 
7
- <script lang="jsx">
7
+ <script>
8
8
  import { Select, Option } from '@opentiny/vue'
9
9
 
10
10
  export default {
@@ -17,7 +17,7 @@
17
17
  </tiny-form>
18
18
  </template>
19
19
 
20
- <script setup lang="jsx">
20
+ <script setup>
21
21
  import { ref } from 'vue'
22
22
  import { Form as TinyForm, FormItem as TinyFormItem, Select as TinySelect, Modal } from '@opentiny/vue'
23
23
 
@@ -28,7 +28,7 @@ const value1 = ref('')
28
28
  const value2 = ref('')
29
29
  const options = ref(buildOptions())
30
30
 
31
- function onChange(value) {
31
+ const onChange = (value) => {
32
32
  Modal.message(JSON.stringify(value))
33
33
  }
34
34
  </script>
@@ -17,7 +17,7 @@
17
17
  </tiny-form>
18
18
  </template>
19
19
 
20
- <script lang="jsx">
20
+ <script>
21
21
  import { Form, FormItem, Select, Modal } from '@opentiny/vue'
22
22
 
23
23
  const buildOptions = () =>
@@ -11,7 +11,7 @@
11
11
  </tiny-select>
12
12
  </template>
13
13
 
14
- <script setup lang="jsx">
14
+ <script setup>
15
15
  import { ref } from 'vue'
16
16
  import { Select as TinySelect, Option as TinyOption, OptionGroup as TinyOptionGroup } from '@opentiny/vue'
17
17
 
@@ -11,7 +11,7 @@
11
11
  </tiny-select>
12
12
  </template>
13
13
 
14
- <script setup lang="jsx">
14
+ <script setup>
15
15
  import { ref } from 'vue'
16
16
  import { Select as TinySelect, Option as TinyOption, OptionGroup as TinyOptionGroup } from '@opentiny/vue'
17
17
 
@@ -11,7 +11,7 @@
11
11
  </tiny-select>
12
12
  </template>
13
13
 
14
- <script lang="jsx">
14
+ <script>
15
15
  import { Select, Option, OptionGroup } from '@opentiny/vue'
16
16
 
17
17
  export default {
@@ -11,7 +11,7 @@
11
11
  </tiny-select>
12
12
  </template>
13
13
 
14
- <script lang="jsx">
14
+ <script>
15
15
  import { Select, Option, OptionGroup } from '@opentiny/vue'
16
16
 
17
17
  export default {
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </template>
15
15
 
16
- <script setup lang="jsx">
16
+ <script setup>
17
17
  import { ref } from 'vue'
18
18
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
19
19
 
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  </template>
15
15
 
16
- <script lang="jsx">
16
+ <script>
17
17
  import { Select, Option } from '@opentiny/vue'
18
18
 
19
19
  export default {
@@ -14,7 +14,7 @@
14
14
  </tiny-select>
15
15
  </template>
16
16
 
17
- <script setup lang="jsx">
17
+ <script setup>
18
18
  import { ref, onMounted } from 'vue'
19
19
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
20
20
 
@@ -81,7 +81,7 @@ onMounted(() => {
81
81
  })
82
82
  })
83
83
 
84
- function remoteMethod(query) {
84
+ const remoteMethod = (query) => {
85
85
  if (query !== undefined) {
86
86
  loading.value = true
87
87
  setTimeout(() => {
@@ -14,7 +14,7 @@
14
14
  </tiny-select>
15
15
  </template>
16
16
 
17
- <script lang="jsx">
17
+ <script>
18
18
  import { Select, Option } from '@opentiny/vue'
19
19
 
20
20
  export default {
@@ -12,11 +12,11 @@
12
12
  >
13
13
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
14
14
  </tiny-select>
15
- <p>复制到此处:</p>
15
+ <p class="font-style">复制到此处:</p>
16
16
  <input class="custom" type="text" />
17
17
  </template>
18
18
 
19
- <script setup lang="jsx">
19
+ <script setup>
20
20
  import { ref, onMounted } from 'vue'
21
21
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
22
22
 
@@ -83,7 +83,7 @@ onMounted(() => {
83
83
  })
84
84
  })
85
85
 
86
- function remoteMethod(query) {
86
+ const remoteMethod = (query) => {
87
87
  if (query !== undefined) {
88
88
  loading.value = true
89
89
  setTimeout(() => {
@@ -97,3 +97,10 @@ function remoteMethod(query) {
97
97
  }
98
98
  }
99
99
  </script>
100
+
101
+ <style scoped>
102
+ .font-style {
103
+ font-size: 14px;
104
+ margin: 8px;
105
+ }
106
+ </style>
@@ -12,17 +12,18 @@
12
12
  >
13
13
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
14
14
  </tiny-select>
15
- <p>复制到此处:</p>
16
- <input class="custom" type="text" />
15
+ <p class="font-style">复制到此处:</p>
16
+ <tiny-input class="custom" type="text" />
17
17
  </template>
18
18
 
19
19
  <script lang="jsx">
20
- import { Select, Option } from '@opentiny/vue'
20
+ import { Select, Option, Input } from '@opentiny/vue'
21
21
 
22
22
  export default {
23
23
  components: {
24
24
  TinySelect: Select,
25
- TinyOption: Option
25
+ TinyOption: Option,
26
+ TinyInput: Input
26
27
  },
27
28
  data() {
28
29
  return {
@@ -106,3 +107,10 @@ export default {
106
107
  }
107
108
  }
108
109
  </script>
110
+
111
+ <style scoped>
112
+ .font-style {
113
+ font-size: 14px;
114
+ margin: 8px;
115
+ }
116
+ </style>
@@ -19,12 +19,12 @@
19
19
  </tiny-option>
20
20
  </tiny-select>
21
21
 
22
- <p>复制到此处:</p>
22
+ <p class="font-style">复制到此处:</p>
23
23
  <input class="custom" type="text" />
24
24
  </div>
25
25
  </template>
26
26
 
27
- <script setup lang="jsx">
27
+ <script setup>
28
28
  import { ref } from 'vue'
29
29
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
30
30
 
@@ -38,7 +38,7 @@ const options = ref([
38
38
  const value = ref('')
39
39
  const selectRef = ref()
40
40
 
41
- function filter(value) {
41
+ const filter = (value) => {
42
42
  const select = selectRef.value
43
43
 
44
44
  if (value) {
@@ -52,3 +52,10 @@ function filter(value) {
52
52
  }
53
53
  }
54
54
  </script>
55
+
56
+ <style scoped>
57
+ .font-style {
58
+ font-size: 14px;
59
+ margin: 8px;
60
+ }
61
+ </style>
@@ -19,18 +19,19 @@
19
19
  </tiny-option>
20
20
  </tiny-select>
21
21
 
22
- <p>复制到此处:</p>
23
- <input class="custom" type="text" />
22
+ <p class="font-style">复制到此处:</p>
23
+ <tiny-input class="custom" type="text" />
24
24
  </div>
25
25
  </template>
26
26
 
27
27
  <script lang="jsx">
28
- import { Select, Option } from '@opentiny/vue'
28
+ import { Select, Option, Input } from '@opentiny/vue'
29
29
 
30
30
  export default {
31
31
  components: {
32
32
  TinySelect: Select,
33
- TinyOption: Option
33
+ TinyOption: Option,
34
+ TinyInput: Input
34
35
  },
35
36
  data() {
36
37
  return {
@@ -61,3 +62,10 @@ export default {
61
62
  }
62
63
  }
63
64
  </script>
65
+
66
+ <style scoped>
67
+ .font-style {
68
+ font-size: 14px;
69
+ margin: 8px;
70
+ }
71
+ </style>
@@ -1,17 +1,17 @@
1
1
  <template>
2
2
  <div>
3
- <p>多选</p>
3
+ <p class="font-style">多选</p>
4
4
  <tiny-select v-model="multivalue" placeholder="请选择" :searchable="true" multiple :show-empty-image="true">
5
5
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
6
6
  </tiny-select>
7
- <p>单选</p>
7
+ <p class="font-style">单选</p>
8
8
  <tiny-select v-model="value" placeholder="请选择" :searchable="true" :show-empty-image="true">
9
9
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
10
10
  </tiny-select>
11
11
  </div>
12
12
  </template>
13
13
 
14
- <script setup lang="jsx">
14
+ <script setup>
15
15
  import { ref } from 'vue'
16
16
  import { Select as TinySelect, Option as TinyOption } from '@opentiny/vue'
17
17
 
@@ -25,3 +25,10 @@ const options = ref([
25
25
  const value = ref('')
26
26
  const multivalue = ref([])
27
27
  </script>
28
+
29
+ <style scoped>
30
+ .font-style {
31
+ font-size: 14px;
32
+ margin: 8px;
33
+ }
34
+ </style>
@@ -1,17 +1,17 @@
1
1
  <template>
2
2
  <div>
3
- <p>多选</p>
3
+ <p class="font-style">多选</p>
4
4
  <tiny-select v-model="multivalue" placeholder="请选择" :searchable="true" multiple :show-empty-image="true">
5
5
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
6
6
  </tiny-select>
7
- <p>单选</p>
7
+ <p class="font-style">单选</p>
8
8
  <tiny-select v-model="value" placeholder="请选择" :searchable="true" :show-empty-image="true">
9
9
  <tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
10
10
  </tiny-select>
11
11
  </div>
12
12
  </template>
13
13
 
14
- <script lang="jsx">
14
+ <script>
15
15
  import { Select, Option } from '@opentiny/vue'
16
16
 
17
17
  export default {
@@ -34,3 +34,10 @@ export default {
34
34
  }
35
35
  }
36
36
  </script>
37
+
38
+ <style scoped>
39
+ .font-style {
40
+ font-size: 14px;
41
+ margin: 8px;
42
+ }
43
+ </style>