@opentiny/vue-docs 3.19.2 → 3.19.4

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 (183) hide show
  1. package/demos/apis/dialog-box.js +1 -1
  2. package/demos/apis/drawer.js +1 -1
  3. package/demos/mobile/app/input/webdoc/input.js +1 -1
  4. package/demos/pc/app/action-menu/icon-composition-api.vue +1 -1
  5. package/demos/pc/app/action-menu/icon.vue +1 -1
  6. package/demos/pc/app/amount/size-composition-api.vue +6 -0
  7. package/demos/pc/app/amount/size.vue +6 -0
  8. package/demos/pc/app/area/custom-service-composition-api.vue +2 -2
  9. package/demos/pc/app/area/custom-service.spec.ts +1 -1
  10. package/demos/pc/app/area/custom-service.vue +2 -2
  11. package/demos/pc/app/company/basic-usage-composition-api.vue +4 -1
  12. package/demos/pc/app/company/basic-usage.vue +4 -1
  13. package/demos/pc/app/company/custom-service-composition-api.vue +19 -11
  14. package/demos/pc/app/company/custom-service.vue +19 -11
  15. package/demos/pc/app/company/custom-show-num-composition-api.vue +9 -1
  16. package/demos/pc/app/company/custom-show-num.vue +9 -1
  17. package/demos/pc/app/country/basic-usage-composition-api.vue +4 -1
  18. package/demos/pc/app/country/basic-usage.vue +4 -1
  19. package/demos/pc/app/country/custom-service-composition-api.vue +9 -1
  20. package/demos/pc/app/country/custom-service.vue +9 -1
  21. package/demos/pc/app/country/fields-composition-api.vue +9 -1
  22. package/demos/pc/app/country/fields.vue +9 -1
  23. package/demos/pc/app/currency/basic-usage-composition-api.vue +4 -1
  24. package/demos/pc/app/currency/basic-usage.vue +4 -1
  25. package/demos/pc/app/currency/custom-service-composition-api.vue +9 -1
  26. package/demos/pc/app/currency/custom-service.vue +9 -1
  27. package/demos/pc/app/currency/disable-currency-composition-api.vue +7 -1
  28. package/demos/pc/app/currency/disable-currency.vue +7 -1
  29. package/demos/pc/app/currency/fields-composition-api.vue +9 -1
  30. package/demos/pc/app/currency/fields.vue +9 -1
  31. package/demos/pc/app/currency/filter-composition-api.vue +12 -1
  32. package/demos/pc/app/currency/filter.vue +12 -1
  33. package/demos/pc/app/currency/set-default-composition-api.vue +9 -1
  34. package/demos/pc/app/currency/set-default-custom-service-composition-api.vue +16 -8
  35. package/demos/pc/app/currency/set-default-custom-service.vue +16 -8
  36. package/demos/pc/app/currency/set-default.vue +9 -1
  37. package/demos/pc/app/currency/size-composition-api.vue +10 -1
  38. package/demos/pc/app/currency/size.vue +10 -1
  39. package/demos/pc/app/dept/auto-select-composition-api.vue +9 -1
  40. package/demos/pc/app/dept/auto-select.vue +9 -1
  41. package/demos/pc/app/dept/basic-usage-composition-api.vue +9 -1
  42. package/demos/pc/app/dept/basic-usage.vue +9 -1
  43. package/demos/pc/app/dept/before-confirm-composition-api.vue +4 -6
  44. package/demos/pc/app/dept/before-confirm.vue +4 -6
  45. package/demos/pc/app/dept/custom-service-composition-api.vue +14 -6
  46. package/demos/pc/app/dept/custom-service.vue +14 -6
  47. package/demos/pc/app/dept/dept-cancel-composition-api.vue +4 -6
  48. package/demos/pc/app/dept/dept-cancel.vue +4 -6
  49. package/demos/pc/app/dept/dept-close-composition-api.vue +9 -1
  50. package/demos/pc/app/dept/dept-close.vue +9 -1
  51. package/demos/pc/app/dept/dept-confirm-composition-api.vue +4 -6
  52. package/demos/pc/app/dept/dept-confirm.vue +4 -6
  53. package/demos/pc/app/dept/dept-events-composition-api.vue +9 -1
  54. package/demos/pc/app/dept/dept-events.vue +9 -1
  55. package/demos/pc/app/dept/dept-selected-composition-api.vue +9 -1
  56. package/demos/pc/app/dept/dept-selected.vue +9 -1
  57. package/demos/pc/app/dept/dynamic-disable-composition-api.vue +9 -1
  58. package/demos/pc/app/dept/dynamic-disable.vue +9 -1
  59. package/demos/pc/app/dept/size-composition-api.vue +15 -1
  60. package/demos/pc/app/dept/size.vue +15 -1
  61. package/demos/pc/app/dept/slot-hrapprover-composition-api.vue +13 -5
  62. package/demos/pc/app/dept/slot-hrapprover.vue +13 -5
  63. package/demos/pc/app/dept/title-composition-api.vue +9 -1
  64. package/demos/pc/app/dept/title.vue +9 -1
  65. package/demos/pc/app/dialog-box/dialog-width-composition-api.vue +16 -4
  66. package/demos/pc/app/dialog-box/dialog-width.spec.ts +2 -1
  67. package/demos/pc/app/dialog-box/dialog-width.vue +19 -5
  68. package/demos/pc/app/dialog-box/webdoc/dialog-box.js +8 -6
  69. package/demos/pc/app/drawer/dragable-composition-api.vue +2 -7
  70. package/demos/pc/app/drawer/dragable.vue +2 -7
  71. package/demos/pc/app/drawer/placement-composition-api.vue +1 -0
  72. package/demos/pc/app/drawer/placement.vue +1 -0
  73. package/demos/pc/app/drop-roles/basic-usage-composition-api.vue +4 -1
  74. package/demos/pc/app/drop-roles/basic-usage.vue +4 -1
  75. package/demos/pc/app/drop-roles/change-role-event-composition-api.vue +9 -1
  76. package/demos/pc/app/drop-roles/change-role-event.vue +9 -1
  77. package/demos/pc/app/drop-roles/custom-service-composition-api.vue +16 -8
  78. package/demos/pc/app/drop-roles/custom-service.vue +16 -8
  79. package/demos/pc/app/drop-roles/size-composition-api.vue +10 -5
  80. package/demos/pc/app/drop-roles/size.vue +10 -5
  81. package/demos/pc/app/hrapprover/basic-usage-composition-api.vue +13 -1
  82. package/demos/pc/app/hrapprover/basic-usage.vue +13 -1
  83. package/demos/pc/app/hrapprover/category-type-composition-api.vue +14 -6
  84. package/demos/pc/app/hrapprover/category-type.vue +14 -6
  85. package/demos/pc/app/hrapprover/custom-service-composition-api.vue +15 -7
  86. package/demos/pc/app/hrapprover/custom-service.vue +15 -7
  87. package/demos/pc/app/hrapprover/disabled-composition-api.vue +7 -1
  88. package/demos/pc/app/hrapprover/disabled.vue +7 -1
  89. package/demos/pc/app/input/display-only-composition-api.vue +1 -1
  90. package/demos/pc/app/input/display-only.vue +1 -1
  91. package/demos/pc/app/input/native-composition-api.vue +6 -2
  92. package/demos/pc/app/input/native.vue +6 -2
  93. package/demos/pc/app/input/type-composition-api.vue +0 -30
  94. package/demos/pc/app/input/type.spec.ts +1 -15
  95. package/demos/pc/app/input/type.vue +1 -31
  96. package/demos/pc/app/input/webdoc/input.js +10 -3
  97. package/demos/pc/app/locales/custom-service-composition-api.vue +3 -3
  98. package/demos/pc/app/locales/custom-service.spec.ts +1 -1
  99. package/demos/pc/app/locales/custom-service.vue +3 -3
  100. package/demos/pc/app/select/size-composition-api.vue +4 -4
  101. package/demos/pc/app/select/size.spec.ts +3 -3
  102. package/demos/pc/app/select/size.vue +4 -4
  103. package/demos/pc/app/tree/basic-usage-composition-api.vue +0 -3
  104. package/demos/pc/app/tree/basic-usage.vue +0 -3
  105. package/demos/pc/app/tree/edit-composition-api.vue +1 -8
  106. package/demos/pc/app/tree/edit.vue +1 -8
  107. package/demos/pc/app/tree/other-composition-api.vue +1 -1
  108. package/demos/pc/app/tree/other.vue +1 -1
  109. package/demos/pc/app/tree/slot-composition-api.vue +3 -3
  110. package/demos/pc/app/tree/slot.vue +3 -3
  111. package/demos/pc/app/user/allow-copy-composition-api.vue +9 -1
  112. package/demos/pc/app/user/allow-copy.vue +9 -1
  113. package/demos/pc/app/user/basic-usage-composition-api.vue +9 -1
  114. package/demos/pc/app/user/basic-usage.vue +9 -1
  115. package/demos/pc/app/user/batch-composition-api.vue +26 -18
  116. package/demos/pc/app/user/batch.vue +7 -1
  117. package/demos/pc/app/user/cache-users-composition-api.vue +4 -1
  118. package/demos/pc/app/user/cache-users.vue +4 -1
  119. package/demos/pc/app/user/collapse-show-overflow-tooltip-composition-api.vue +16 -8
  120. package/demos/pc/app/user/collapse-show-overflow-tooltip.vue +16 -8
  121. package/demos/pc/app/user/collapse-tags -composition-api.vue +17 -9
  122. package/demos/pc/app/user/collapse-tags .vue +17 -9
  123. package/demos/pc/app/user/custom-placeholder-composition-api.vue +9 -1
  124. package/demos/pc/app/user/custom-placeholder.vue +9 -1
  125. package/demos/pc/app/user/custom-service-composition-api.vue +4 -1
  126. package/demos/pc/app/user/custom-service.vue +4 -1
  127. package/demos/pc/app/user/custom-sort-composition-api.vue +9 -1
  128. package/demos/pc/app/user/custom-sort.vue +4 -1
  129. package/demos/pc/app/user/delay-load-composition-api.vue +9 -1
  130. package/demos/pc/app/user/delay-load.vue +9 -1
  131. package/demos/pc/app/user/display-only-composition-api.vue +9 -1
  132. package/demos/pc/app/user/display-only.vue +9 -1
  133. package/demos/pc/app/user/dynamic-disable-composition-api.vue +9 -1
  134. package/demos/pc/app/user/dynamic-disable.vue +9 -1
  135. package/demos/pc/app/user/event-change-composition-api.vue +9 -1
  136. package/demos/pc/app/user/event-change.vue +9 -1
  137. package/demos/pc/app/user/event-error-composition-api.vue +9 -1
  138. package/demos/pc/app/user/event-error.vue +9 -1
  139. package/demos/pc/app/user/hidden-tips-disable-composition-api.vue +7 -1
  140. package/demos/pc/app/user/hidden-tips-disable.vue +7 -1
  141. package/demos/pc/app/user/hide-selected-composition-spi.vue +9 -1
  142. package/demos/pc/app/user/hide-selected.vue +9 -1
  143. package/demos/pc/app/user/load-after-input-the-length-composition-api.vue +9 -1
  144. package/demos/pc/app/user/load-after-input-the-length.vue +9 -1
  145. package/demos/pc/app/user/multiple-users-composition-api.vue +9 -1
  146. package/demos/pc/app/user/multiple-users-hover-expand-composition-api.vue +9 -1
  147. package/demos/pc/app/user/multiple-users-hover-expand.vue +9 -1
  148. package/demos/pc/app/user/multiple-users-tag-composition-api.vue +9 -1
  149. package/demos/pc/app/user/multiple-users-tag.vue +9 -1
  150. package/demos/pc/app/user/multiple-users.vue +9 -1
  151. package/demos/pc/app/user/nodata-text-composition-api.vue +9 -1
  152. package/demos/pc/app/user/nodata-text.vue +9 -1
  153. package/demos/pc/app/user/tag-copy-all-composition-api.vue +7 -1
  154. package/demos/pc/app/user/tag-copy-all.vue +7 -1
  155. package/demos/pc/app/user/tag-copy-composition-api.vue +7 -1
  156. package/demos/pc/app/user/tag-copy.vue +7 -1
  157. package/demos/pc/app/user/text-field-composition-api.vue +9 -1
  158. package/demos/pc/app/user/text-field.vue +9 -1
  159. package/demos/pc/app/user/user-options-composition-api.vue +16 -8
  160. package/demos/pc/app/user/user-options.vue +16 -8
  161. package/demos/pc/app/user/user-select-size-composition-api.vue +4 -1
  162. package/demos/pc/app/user/user-select-size.vue +4 -1
  163. package/demos/pc/app/user/value-field-composition-api.vue +4 -1
  164. package/demos/pc/app/user/value-field.vue +4 -1
  165. package/demos/pc/app/user/value-split-composition-api.vue +4 -1
  166. package/demos/pc/app/user/value-split.vue +4 -1
  167. package/demos/pc/app/virtual-tree/basic-usage-composition-api.vue +1 -1
  168. package/demos/pc/app/virtual-tree/basic-usage.vue +1 -1
  169. package/package.json +7 -7
  170. package/playground/App.vue +1 -1
  171. package/public/static/css/design-common.css +265 -0
  172. package/public/static/images/footer/cli.svg +17 -0
  173. package/public/static/images/footer/code-open.png +0 -0
  174. package/public/static/images/footer/footer-title-community.svg +13 -0
  175. package/public/static/images/footer/footer-title-help.svg +16 -0
  176. package/public/static/images/footer/footer-title-human.svg +15 -0
  177. package/public/static/images/footer/footer-title-resource.svg +16 -0
  178. package/public/static/images/footer/pro.svg +15 -0
  179. package/public/static/images/footer/theme.svg +16 -0
  180. package/public/static/js/design-common.js +110 -1
  181. package/src/views/components/components.vue +1 -1
  182. package/src/views/components/float-settings.vue +3 -13
  183. package/src/views/layout/layout.vue +0 -11
@@ -133,7 +133,7 @@ export default {
133
133
  'en-US': 'Achieve the maximum height of the window'
134
134
  },
135
135
  mode: ['pc'],
136
- pcDemo: 'form-in-dialog'
136
+ pcDemo: 'dialog-width'
137
137
  },
138
138
  {
139
139
  name: 'modal',
@@ -172,7 +172,7 @@ export default {
172
172
  {
173
173
  name: 'height',
174
174
  type: 'string',
175
- defaultValue: "'500px'",
175
+ defaultValue: "'100vh'",
176
176
  desc: {
177
177
  'zh-CN': '设置抽屉的高度',
178
178
  'en-US': 'Set the height of the drawer'
@@ -37,7 +37,7 @@ export default {
37
37
  },
38
38
  desc: {
39
39
  'zh-CN':
40
- '<p>通过对应的 <code>type</code> 属性,可以设置为对应的类型。默认为 text,可选值为 text,textarea 和其他 原生 input 的 type 值</p>',
40
+ '<p>通过对应的 <code>type</code> 属性,可以设置为对应的类型。默认为 text,可选值为 text,number 等其他 原生 input 的 type 值</p>',
41
41
  'en-US':
42
42
  '<p>You can set the corresponding type through the corresponding <code>type</code> attribute. The default value is text. The options are text, textarea, and other type values of the native input</p>'
43
43
  },
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <p>场景1:只显示图标</p>
3
+ <p>场景1:显示图标</p>
4
4
  <tiny-action-menu
5
5
  class="custom-icon"
6
6
  :options="options"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div>
3
- <p>场景1:只显示图标</p>
3
+ <p>场景1:显示图标</p>
4
4
  <tiny-action-menu
5
5
  class="custom-icon"
6
6
  :options="options"
@@ -1,5 +1,11 @@
1
1
  <template>
2
2
  <tiny-amount size="medium" v-model="value" :date="date"></tiny-amount>
3
+ <br />
4
+ <tiny-amount v-model="value" :date="date"></tiny-amount>
5
+ <br />
6
+ <tiny-amount size="small" v-model="value" :date="date"></tiny-amount>
7
+ <br />
8
+ <tiny-amount size="mini" v-model="value" :date="date"></tiny-amount>
3
9
  </template>
4
10
 
5
11
  <script setup lang="jsx">
@@ -1,5 +1,11 @@
1
1
  <template>
2
2
  <tiny-amount size="medium" v-model="value" :date="date"></tiny-amount>
3
+ <br />
4
+ <tiny-amount v-model="value" :date="date"></tiny-amount>
5
+ <br />
6
+ <tiny-amount size="small" v-model="value" :date="date"></tiny-amount>
7
+ <br />
8
+ <tiny-amount size="mini" v-model="value" :date="date"></tiny-amount>
3
9
  </template>
4
10
 
5
11
  <script lang="jsx">
@@ -23,7 +23,7 @@ function getJCR() {
23
23
  id: '3623',
24
24
  id_and_type: '3623JCR',
25
25
  parent_and_type: null,
26
- name: 'A公司 Marketing与销售服务部',
26
+ name: 'A公司销售服务部',
27
27
  date_from: '2005/06/21 00:00:00',
28
28
  name_en: 'Consumer BG Marketing and Sales Service Dept',
29
29
  parent_type: null,
@@ -36,7 +36,7 @@ function getJCR() {
36
36
  id: '650561',
37
37
  id_and_type: '650561JCR',
38
38
  parent_and_type: null,
39
- name: 'A公司 Marketing与销售服务部(东莞)',
39
+ name: 'A公司销售服务部(东莞)',
40
40
  date_from: '2012/09/27 00:00:00',
41
41
  name_en: 'Consumer BG Marketing and Sales Service Dept (Dongguan)',
42
42
  parent_type: null,
@@ -34,7 +34,7 @@ test('测试自定义服务', async ({ page }) => {
34
34
  await getSelectItem(areaRep).first().click()
35
35
  await areaInput.nth(3).click()
36
36
  await getSelectItem(areaOffice).first().click()
37
- await expect(areaInput.first()).toHaveValue('A公司 Marketing与销售服务部')
37
+ await expect(areaInput.first()).toHaveValue('A公司销售服务部')
38
38
  await expect(areaInput.nth(1)).toHaveValue('火星终端子公司')
39
39
  await expect(areaInput.nth(2)).toHaveValue('北京代表处')
40
40
  await expect(areaInput.nth(3)).toHaveValue('牙买加办事处')
@@ -30,7 +30,7 @@ export default {
30
30
  id: '3623',
31
31
  id_and_type: '3623JCR',
32
32
  parent_and_type: null,
33
- name: 'A公司 Marketing与销售服务部',
33
+ name: 'A公司销售服务部',
34
34
  date_from: '2005/06/21 00:00:00',
35
35
  name_en: 'Consumer BG Marketing and Sales Service Dept',
36
36
  parent_type: null,
@@ -43,7 +43,7 @@ export default {
43
43
  id: '650561',
44
44
  id_and_type: '650561JCR',
45
45
  parent_and_type: null,
46
- name: 'A公司 Marketing与销售服务部(东莞)',
46
+ name: 'A公司销售服务部(东莞)',
47
47
  date_from: '2012/09/27 00:00:00',
48
48
  name_en: 'Consumer BG Marketing and Sales Service Dept (Dongguan)',
49
49
  parent_type: null,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-company-class">
3
3
  <tiny-company
4
4
  v-model="value"
5
5
  placeholder="请选择"
@@ -32,6 +32,9 @@ function change(value) {
32
32
  </script>
33
33
 
34
34
  <style scoped>
35
+ .demo-company-class {
36
+ width: 280px;
37
+ }
35
38
  p {
36
39
  font-size: 14px;
37
40
  line-height: 1.5;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-company-class">
3
3
  <tiny-company
4
4
  v-model="value"
5
5
  placeholder="请选择"
@@ -39,6 +39,9 @@ export default {
39
39
  </script>
40
40
 
41
41
  <style scoped>
42
+ .demo-company-class {
43
+ width: 280px;
44
+ }
42
45
  p {
43
46
  font-size: 14px;
44
47
  line-height: 1.5;
@@ -1,15 +1,17 @@
1
1
  <template>
2
- <tiny-company
3
- v-model="value"
4
- placeholder="请输入"
5
- :fetch-company="getCompanyData"
6
- :fields="fields"
7
- :max="2"
8
- @change="change"
9
- @clear="clear"
10
- is-drop-inherit-width
11
- clearable
12
- ></tiny-company>
2
+ <div class="demo-company-class">
3
+ <tiny-company
4
+ v-model="value"
5
+ placeholder="请输入"
6
+ :fetch-company="getCompanyData"
7
+ :fields="fields"
8
+ :max="2"
9
+ @change="change"
10
+ @clear="clear"
11
+ is-drop-inherit-width
12
+ clearable
13
+ ></tiny-company>
14
+ </div>
13
15
  </template>
14
16
 
15
17
  <script setup lang="jsx">
@@ -53,3 +55,9 @@ function change(value) {
53
55
  TinyModal.message({ message: `change:${value}`, status: 'info' })
54
56
  }
55
57
  </script>
58
+
59
+ <style scoped>
60
+ .demo-company-class {
61
+ width: 280px;
62
+ }
63
+ </style>
@@ -1,15 +1,17 @@
1
1
  <template>
2
- <tiny-company
3
- v-model="value"
4
- placeholder="请输入"
5
- :fetch-company="getCompanyData"
6
- :fields="fields"
7
- :max="2"
8
- @change="change"
9
- @clear="clear"
10
- is-drop-inherit-width
11
- clearable
12
- ></tiny-company>
2
+ <div class="demo-company-class">
3
+ <tiny-company
4
+ v-model="value"
5
+ placeholder="请输入"
6
+ :fetch-company="getCompanyData"
7
+ :fields="fields"
8
+ :max="2"
9
+ @change="change"
10
+ @clear="clear"
11
+ is-drop-inherit-width
12
+ clearable
13
+ ></tiny-company>
14
+ </div>
13
15
  </template>
14
16
 
15
17
  <script lang="jsx">
@@ -60,3 +62,9 @@ export default {
60
62
  }
61
63
  }
62
64
  </script>
65
+
66
+ <style scoped>
67
+ .demo-company-class {
68
+ width: 280px;
69
+ }
70
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-company v-model="value" clearable :max="2" :disabled="false"></tiny-company>
2
+ <div class="demo-company-class">
3
+ <tiny-company v-model="value" clearable :max="2" :disabled="false"></tiny-company>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script setup lang="jsx">
@@ -8,3 +10,9 @@ import { TinyCompany } from '@opentiny/vue'
8
10
 
9
11
  const value = ref('')
10
12
  </script>
13
+
14
+ <style scoped>
15
+ .demo-company-class {
16
+ width: 280px;
17
+ }
18
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-company v-model="value" clearable :max="2" :disabled="false"></tiny-company>
2
+ <div class="demo-company-class">
3
+ <tiny-company v-model="value" clearable :max="2" :disabled="false"></tiny-company>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script lang="jsx">
@@ -16,3 +18,9 @@ export default {
16
18
  }
17
19
  }
18
20
  </script>
21
+
22
+ <style scoped>
23
+ .demo-company-class {
24
+ width: 280px;
25
+ }
26
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-country-class">
3
3
  <tiny-country v-model="value" @change="change"></tiny-country>
4
4
  <p>当前选中值:{{ value }}</p>
5
5
  </div>
@@ -17,6 +17,9 @@ function change(value) {
17
17
  </script>
18
18
 
19
19
  <style scoped>
20
+ .demo-country-class {
21
+ width: 280px;
22
+ }
20
23
  p {
21
24
  font-size: 14px;
22
25
  line-height: 1.5;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-country-class">
3
3
  <tiny-country v-model="value" @change="change"></tiny-country>
4
4
  <p>当前选中值:{{ value }}</p>
5
5
  </div>
@@ -26,6 +26,9 @@ export default {
26
26
  </script>
27
27
 
28
28
  <style scoped>
29
+ .demo-country-class {
30
+ width: 280px;
31
+ }
29
32
  p {
30
33
  font-size: 14px;
31
34
  line-height: 1.5;
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-country v-model="value" clearable placeholder="请选择" :fetch-country="getCountryData"></tiny-country>
2
+ <div class="demo-country-class">
3
+ <tiny-country v-model="value" clearable placeholder="请选择" :fetch-country="getCountryData"></tiny-country>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script setup lang="jsx">
@@ -39,3 +41,9 @@ function getCountryData() {
39
41
  })
40
42
  }
41
43
  </script>
44
+
45
+ <style scoped>
46
+ .demo-country-class {
47
+ width: 280px;
48
+ }
49
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-country v-model="value" clearable placeholder="请选择" :fetch-country="getCountryData"></tiny-country>
2
+ <div class="demo-country-class">
3
+ <tiny-country v-model="value" clearable placeholder="请选择" :fetch-country="getCountryData"></tiny-country>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script lang="jsx">
@@ -48,3 +50,9 @@ export default {
48
50
  }
49
51
  }
50
52
  </script>
53
+
54
+ <style scoped>
55
+ .demo-country-class {
56
+ width: 280px;
57
+ }
58
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-country v-model="value" :fetch-country="getCountryData" :fields="fields" :disabled="false"></tiny-country>
2
+ <div class="demo-country-class">
3
+ <tiny-country v-model="value" :fetch-country="getCountryData" :fields="fields" :disabled="false"></tiny-country>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script setup lang="jsx">
@@ -39,3 +41,9 @@ function getCountryData() {
39
41
  })
40
42
  }
41
43
  </script>
44
+
45
+ <style scoped>
46
+ .demo-country-class {
47
+ width: 280px;
48
+ }
49
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-country v-model="value" :fetch-country="getCountryData" :fields="fields" :disabled="false"></tiny-country>
2
+ <div class="demo-country-class">
3
+ <tiny-country v-model="value" :fetch-country="getCountryData" :fields="fields" :disabled="false"></tiny-country>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script lang="jsx">
@@ -48,3 +50,9 @@ export default {
48
50
  }
49
51
  }
50
52
  </script>
53
+
54
+ <style scoped>
55
+ .demo-country-class {
56
+ width: 280px;
57
+ }
58
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-currency-class">
3
3
  <tiny-currency v-model="value" placeholder="请选择" @change="change"></tiny-currency>
4
4
  <p>当前选中值:{{ value }}</p>
5
5
  </div>
@@ -17,6 +17,9 @@ function change(value) {
17
17
  </script>
18
18
 
19
19
  <style scoped>
20
+ .demo-currency-class {
21
+ width: 280px;
22
+ }
20
23
  p {
21
24
  font-size: 14px;
22
25
  line-height: 1.5;
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-currency-class">
3
3
  <tiny-currency v-model="value" placeholder="请选择" @change="change"></tiny-currency>
4
4
  <p>当前选中值:{{ value }}</p>
5
5
  </div>
@@ -26,6 +26,9 @@ export default {
26
26
  </script>
27
27
 
28
28
  <style scoped>
29
+ .demo-currency-class {
30
+ width: 280px;
31
+ }
29
32
  p {
30
33
  font-size: 14px;
31
34
  line-height: 1.5;
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-currency v-model="value" :fetch-currency="getCurrencyData" clearable></tiny-currency>
2
+ <div class="demo-currency-class">
3
+ <tiny-currency v-model="value" :fetch-currency="getCurrencyData" clearable></tiny-currency>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script setup lang="jsx">
@@ -65,3 +67,9 @@ function getCurrencyData() {
65
67
  })
66
68
  }
67
69
  </script>
70
+
71
+ <style scoped>
72
+ .demo-currency-class {
73
+ width: 280px;
74
+ }
75
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-currency v-model="value" :fetch-currency="getCurrencyData" clearable></tiny-currency>
2
+ <div class="demo-currency-class">
3
+ <tiny-currency v-model="value" :fetch-currency="getCurrencyData" clearable></tiny-currency>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script lang="jsx">
@@ -74,3 +76,9 @@ export default {
74
76
  }
75
77
  }
76
78
  </script>
79
+
80
+ <style scoped>
81
+ .demo-currency-class {
82
+ width: 280px;
83
+ }
84
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-currency-class">
3
3
  <tiny-button @click="Switchover" style="margin-bottom: 10px">启用/禁用</tiny-button>
4
4
  <br />
5
5
  <tiny-currency v-model="value" placeholder="请选择" @change="change" :disabled="disabled"></tiny-currency>
@@ -21,3 +21,9 @@ function Switchover() {
21
21
  disabled.value = !disabled.value
22
22
  }
23
23
  </script>
24
+
25
+ <style scoped>
26
+ .demo-currency-class {
27
+ width: 280px;
28
+ }
29
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-currency-class">
3
3
  <tiny-button @click="Switchover" style="margin-bottom: 10px">启用/禁用</tiny-button>
4
4
  <br />
5
5
  <tiny-currency v-model="value" placeholder="请选择" @change="change" :disabled="disabled"></tiny-currency>
@@ -30,3 +30,9 @@ export default {
30
30
  }
31
31
  }
32
32
  </script>
33
+
34
+ <style scoped>
35
+ .demo-currency-class {
36
+ width: 280px;
37
+ }
38
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-currency v-model="value" :fetch-currency="getCurrencyData" :fields="fields"></tiny-currency>
2
+ <div class="demo-currency-class">
3
+ <tiny-currency v-model="value" :fetch-currency="getCurrencyData" :fields="fields"></tiny-currency>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script setup lang="jsx">
@@ -32,3 +34,9 @@ function getCurrencyData() {
32
34
  })
33
35
  }
34
36
  </script>
37
+
38
+ <style scoped>
39
+ .demo-currency-class {
40
+ width: 280px;
41
+ }
42
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-currency v-model="value" :fetch-currency="getCurrencyData" :fields="fields"></tiny-currency>
2
+ <div class="demo-currency-class">
3
+ <tiny-currency v-model="value" :fetch-currency="getCurrencyData" :fields="fields"></tiny-currency>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script lang="jsx">
@@ -41,3 +43,9 @@ export default {
41
43
  }
42
44
  }
43
45
  </script>
46
+
47
+ <style scoped>
48
+ .demo-currency-class {
49
+ width: 280px;
50
+ }
51
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-currency-class">
3
3
  <tiny-currency
4
4
  v-model="value"
5
5
  :drop-style="{ width: '200px', 'min-width': '200px' }"
@@ -22,3 +22,14 @@ const change = (value) => {
22
22
  TinyModal.message({ message: `当前值为 ${value}`, status: 'info' })
23
23
  }
24
24
  </script>
25
+
26
+ <style scoped>
27
+ .demo-currency-class {
28
+ width: 280px;
29
+ }
30
+ p {
31
+ font-size: 14px;
32
+ line-height: 1.5;
33
+ padding: 16px 0;
34
+ }
35
+ </style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div>
2
+ <div class="demo-currency-class">
3
3
  <tiny-currency
4
4
  v-model="value"
5
5
  :drop-style="{ width: '200px', 'min-width': '200px' }"
@@ -31,3 +31,14 @@ export default {
31
31
  }
32
32
  }
33
33
  </script>
34
+
35
+ <style scoped>
36
+ .demo-currency-class {
37
+ width: 280px;
38
+ }
39
+ p {
40
+ font-size: 14px;
41
+ line-height: 1.5;
42
+ padding: 16px 0;
43
+ }
44
+ </style>
@@ -1,5 +1,7 @@
1
1
  <template>
2
- <tiny-currency v-model="value" placeholder="请选择" set-default></tiny-currency>
2
+ <div class="demo-currency-class">
3
+ <tiny-currency v-model="value" placeholder="请选择" set-default></tiny-currency>
4
+ </div>
3
5
  </template>
4
6
 
5
7
  <script setup>
@@ -8,3 +10,9 @@ import { TinyCurrency } from '@opentiny/vue'
8
10
 
9
11
  const value = ref('CNY')
10
12
  </script>
13
+
14
+ <style scoped>
15
+ .demo-currency-class {
16
+ width: 280px;
17
+ }
18
+ </style>
@@ -1,12 +1,14 @@
1
1
  <template>
2
- <tiny-currency
3
- v-model="value"
4
- placeholder="请选择"
5
- set-default
6
- :fetch-default-currency="fetchDefaultCurrency"
7
- :set-default-currency="setDefaultCurrency"
8
- @change="change"
9
- ></tiny-currency>
2
+ <div class="demo-currency-class">
3
+ <tiny-currency
4
+ v-model="value"
5
+ placeholder="请选择"
6
+ set-default
7
+ :fetch-default-currency="fetchDefaultCurrency"
8
+ :set-default-currency="setDefaultCurrency"
9
+ @change="change"
10
+ ></tiny-currency>
11
+ </div>
10
12
  </template>
11
13
 
12
14
  <script setup>
@@ -41,3 +43,9 @@ const instance = getCurrentInstance()
41
43
  const { $service } = instance.appContext.config.globalProperties
42
44
  console.log($service?.base.getEnvInfo())
43
45
  </script>
46
+
47
+ <style scoped>
48
+ .demo-currency-class {
49
+ width: 280px;
50
+ }
51
+ </style>