@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.
- package/demos/apis/dialog-box.js +1 -1
- package/demos/apis/drawer.js +1 -1
- package/demos/mobile/app/input/webdoc/input.js +1 -1
- package/demos/pc/app/action-menu/icon-composition-api.vue +1 -1
- package/demos/pc/app/action-menu/icon.vue +1 -1
- package/demos/pc/app/amount/size-composition-api.vue +6 -0
- package/demos/pc/app/amount/size.vue +6 -0
- package/demos/pc/app/area/custom-service-composition-api.vue +2 -2
- package/demos/pc/app/area/custom-service.spec.ts +1 -1
- package/demos/pc/app/area/custom-service.vue +2 -2
- package/demos/pc/app/company/basic-usage-composition-api.vue +4 -1
- package/demos/pc/app/company/basic-usage.vue +4 -1
- package/demos/pc/app/company/custom-service-composition-api.vue +19 -11
- package/demos/pc/app/company/custom-service.vue +19 -11
- package/demos/pc/app/company/custom-show-num-composition-api.vue +9 -1
- package/demos/pc/app/company/custom-show-num.vue +9 -1
- package/demos/pc/app/country/basic-usage-composition-api.vue +4 -1
- package/demos/pc/app/country/basic-usage.vue +4 -1
- package/demos/pc/app/country/custom-service-composition-api.vue +9 -1
- package/demos/pc/app/country/custom-service.vue +9 -1
- package/demos/pc/app/country/fields-composition-api.vue +9 -1
- package/demos/pc/app/country/fields.vue +9 -1
- package/demos/pc/app/currency/basic-usage-composition-api.vue +4 -1
- package/demos/pc/app/currency/basic-usage.vue +4 -1
- package/demos/pc/app/currency/custom-service-composition-api.vue +9 -1
- package/demos/pc/app/currency/custom-service.vue +9 -1
- package/demos/pc/app/currency/disable-currency-composition-api.vue +7 -1
- package/demos/pc/app/currency/disable-currency.vue +7 -1
- package/demos/pc/app/currency/fields-composition-api.vue +9 -1
- package/demos/pc/app/currency/fields.vue +9 -1
- package/demos/pc/app/currency/filter-composition-api.vue +12 -1
- package/demos/pc/app/currency/filter.vue +12 -1
- package/demos/pc/app/currency/set-default-composition-api.vue +9 -1
- package/demos/pc/app/currency/set-default-custom-service-composition-api.vue +16 -8
- package/demos/pc/app/currency/set-default-custom-service.vue +16 -8
- package/demos/pc/app/currency/set-default.vue +9 -1
- package/demos/pc/app/currency/size-composition-api.vue +10 -1
- package/demos/pc/app/currency/size.vue +10 -1
- package/demos/pc/app/dept/auto-select-composition-api.vue +9 -1
- package/demos/pc/app/dept/auto-select.vue +9 -1
- package/demos/pc/app/dept/basic-usage-composition-api.vue +9 -1
- package/demos/pc/app/dept/basic-usage.vue +9 -1
- package/demos/pc/app/dept/before-confirm-composition-api.vue +4 -6
- package/demos/pc/app/dept/before-confirm.vue +4 -6
- package/demos/pc/app/dept/custom-service-composition-api.vue +14 -6
- package/demos/pc/app/dept/custom-service.vue +14 -6
- package/demos/pc/app/dept/dept-cancel-composition-api.vue +4 -6
- package/demos/pc/app/dept/dept-cancel.vue +4 -6
- package/demos/pc/app/dept/dept-close-composition-api.vue +9 -1
- package/demos/pc/app/dept/dept-close.vue +9 -1
- package/demos/pc/app/dept/dept-confirm-composition-api.vue +4 -6
- package/demos/pc/app/dept/dept-confirm.vue +4 -6
- package/demos/pc/app/dept/dept-events-composition-api.vue +9 -1
- package/demos/pc/app/dept/dept-events.vue +9 -1
- package/demos/pc/app/dept/dept-selected-composition-api.vue +9 -1
- package/demos/pc/app/dept/dept-selected.vue +9 -1
- package/demos/pc/app/dept/dynamic-disable-composition-api.vue +9 -1
- package/demos/pc/app/dept/dynamic-disable.vue +9 -1
- package/demos/pc/app/dept/size-composition-api.vue +15 -1
- package/demos/pc/app/dept/size.vue +15 -1
- package/demos/pc/app/dept/slot-hrapprover-composition-api.vue +13 -5
- package/demos/pc/app/dept/slot-hrapprover.vue +13 -5
- package/demos/pc/app/dept/title-composition-api.vue +9 -1
- package/demos/pc/app/dept/title.vue +9 -1
- package/demos/pc/app/dialog-box/dialog-width-composition-api.vue +16 -4
- package/demos/pc/app/dialog-box/dialog-width.spec.ts +2 -1
- package/demos/pc/app/dialog-box/dialog-width.vue +19 -5
- package/demos/pc/app/dialog-box/webdoc/dialog-box.js +8 -6
- package/demos/pc/app/drawer/dragable-composition-api.vue +2 -7
- package/demos/pc/app/drawer/dragable.vue +2 -7
- package/demos/pc/app/drawer/placement-composition-api.vue +1 -0
- package/demos/pc/app/drawer/placement.vue +1 -0
- package/demos/pc/app/drop-roles/basic-usage-composition-api.vue +4 -1
- package/demos/pc/app/drop-roles/basic-usage.vue +4 -1
- package/demos/pc/app/drop-roles/change-role-event-composition-api.vue +9 -1
- package/demos/pc/app/drop-roles/change-role-event.vue +9 -1
- package/demos/pc/app/drop-roles/custom-service-composition-api.vue +16 -8
- package/demos/pc/app/drop-roles/custom-service.vue +16 -8
- package/demos/pc/app/drop-roles/size-composition-api.vue +10 -5
- package/demos/pc/app/drop-roles/size.vue +10 -5
- package/demos/pc/app/hrapprover/basic-usage-composition-api.vue +13 -1
- package/demos/pc/app/hrapprover/basic-usage.vue +13 -1
- package/demos/pc/app/hrapprover/category-type-composition-api.vue +14 -6
- package/demos/pc/app/hrapprover/category-type.vue +14 -6
- package/demos/pc/app/hrapprover/custom-service-composition-api.vue +15 -7
- package/demos/pc/app/hrapprover/custom-service.vue +15 -7
- package/demos/pc/app/hrapprover/disabled-composition-api.vue +7 -1
- package/demos/pc/app/hrapprover/disabled.vue +7 -1
- package/demos/pc/app/input/display-only-composition-api.vue +1 -1
- package/demos/pc/app/input/display-only.vue +1 -1
- package/demos/pc/app/input/native-composition-api.vue +6 -2
- package/demos/pc/app/input/native.vue +6 -2
- package/demos/pc/app/input/type-composition-api.vue +0 -30
- package/demos/pc/app/input/type.spec.ts +1 -15
- package/demos/pc/app/input/type.vue +1 -31
- package/demos/pc/app/input/webdoc/input.js +10 -3
- package/demos/pc/app/locales/custom-service-composition-api.vue +3 -3
- package/demos/pc/app/locales/custom-service.spec.ts +1 -1
- package/demos/pc/app/locales/custom-service.vue +3 -3
- package/demos/pc/app/select/size-composition-api.vue +4 -4
- package/demos/pc/app/select/size.spec.ts +3 -3
- package/demos/pc/app/select/size.vue +4 -4
- package/demos/pc/app/tree/basic-usage-composition-api.vue +0 -3
- package/demos/pc/app/tree/basic-usage.vue +0 -3
- package/demos/pc/app/tree/edit-composition-api.vue +1 -8
- package/demos/pc/app/tree/edit.vue +1 -8
- package/demos/pc/app/tree/other-composition-api.vue +1 -1
- package/demos/pc/app/tree/other.vue +1 -1
- package/demos/pc/app/tree/slot-composition-api.vue +3 -3
- package/demos/pc/app/tree/slot.vue +3 -3
- package/demos/pc/app/user/allow-copy-composition-api.vue +9 -1
- package/demos/pc/app/user/allow-copy.vue +9 -1
- package/demos/pc/app/user/basic-usage-composition-api.vue +9 -1
- package/demos/pc/app/user/basic-usage.vue +9 -1
- package/demos/pc/app/user/batch-composition-api.vue +26 -18
- package/demos/pc/app/user/batch.vue +7 -1
- package/demos/pc/app/user/cache-users-composition-api.vue +4 -1
- package/demos/pc/app/user/cache-users.vue +4 -1
- package/demos/pc/app/user/collapse-show-overflow-tooltip-composition-api.vue +16 -8
- package/demos/pc/app/user/collapse-show-overflow-tooltip.vue +16 -8
- package/demos/pc/app/user/collapse-tags -composition-api.vue +17 -9
- package/demos/pc/app/user/collapse-tags .vue +17 -9
- package/demos/pc/app/user/custom-placeholder-composition-api.vue +9 -1
- package/demos/pc/app/user/custom-placeholder.vue +9 -1
- package/demos/pc/app/user/custom-service-composition-api.vue +4 -1
- package/demos/pc/app/user/custom-service.vue +4 -1
- package/demos/pc/app/user/custom-sort-composition-api.vue +9 -1
- package/demos/pc/app/user/custom-sort.vue +4 -1
- package/demos/pc/app/user/delay-load-composition-api.vue +9 -1
- package/demos/pc/app/user/delay-load.vue +9 -1
- package/demos/pc/app/user/display-only-composition-api.vue +9 -1
- package/demos/pc/app/user/display-only.vue +9 -1
- package/demos/pc/app/user/dynamic-disable-composition-api.vue +9 -1
- package/demos/pc/app/user/dynamic-disable.vue +9 -1
- package/demos/pc/app/user/event-change-composition-api.vue +9 -1
- package/demos/pc/app/user/event-change.vue +9 -1
- package/demos/pc/app/user/event-error-composition-api.vue +9 -1
- package/demos/pc/app/user/event-error.vue +9 -1
- package/demos/pc/app/user/hidden-tips-disable-composition-api.vue +7 -1
- package/demos/pc/app/user/hidden-tips-disable.vue +7 -1
- package/demos/pc/app/user/hide-selected-composition-spi.vue +9 -1
- package/demos/pc/app/user/hide-selected.vue +9 -1
- package/demos/pc/app/user/load-after-input-the-length-composition-api.vue +9 -1
- package/demos/pc/app/user/load-after-input-the-length.vue +9 -1
- package/demos/pc/app/user/multiple-users-composition-api.vue +9 -1
- package/demos/pc/app/user/multiple-users-hover-expand-composition-api.vue +9 -1
- package/demos/pc/app/user/multiple-users-hover-expand.vue +9 -1
- package/demos/pc/app/user/multiple-users-tag-composition-api.vue +9 -1
- package/demos/pc/app/user/multiple-users-tag.vue +9 -1
- package/demos/pc/app/user/multiple-users.vue +9 -1
- package/demos/pc/app/user/nodata-text-composition-api.vue +9 -1
- package/demos/pc/app/user/nodata-text.vue +9 -1
- package/demos/pc/app/user/tag-copy-all-composition-api.vue +7 -1
- package/demos/pc/app/user/tag-copy-all.vue +7 -1
- package/demos/pc/app/user/tag-copy-composition-api.vue +7 -1
- package/demos/pc/app/user/tag-copy.vue +7 -1
- package/demos/pc/app/user/text-field-composition-api.vue +9 -1
- package/demos/pc/app/user/text-field.vue +9 -1
- package/demos/pc/app/user/user-options-composition-api.vue +16 -8
- package/demos/pc/app/user/user-options.vue +16 -8
- package/demos/pc/app/user/user-select-size-composition-api.vue +4 -1
- package/demos/pc/app/user/user-select-size.vue +4 -1
- package/demos/pc/app/user/value-field-composition-api.vue +4 -1
- package/demos/pc/app/user/value-field.vue +4 -1
- package/demos/pc/app/user/value-split-composition-api.vue +4 -1
- package/demos/pc/app/user/value-split.vue +4 -1
- package/demos/pc/app/virtual-tree/basic-usage-composition-api.vue +1 -1
- package/demos/pc/app/virtual-tree/basic-usage.vue +1 -1
- package/package.json +7 -7
- package/playground/App.vue +1 -1
- package/public/static/css/design-common.css +265 -0
- package/public/static/images/footer/cli.svg +17 -0
- package/public/static/images/footer/code-open.png +0 -0
- package/public/static/images/footer/footer-title-community.svg +13 -0
- package/public/static/images/footer/footer-title-help.svg +16 -0
- package/public/static/images/footer/footer-title-human.svg +15 -0
- package/public/static/images/footer/footer-title-resource.svg +16 -0
- package/public/static/images/footer/pro.svg +15 -0
- package/public/static/images/footer/theme.svg +16 -0
- package/public/static/js/design-common.js +110 -1
- package/src/views/components/components.vue +1 -1
- package/src/views/components/float-settings.vue +3 -13
- package/src/views/layout/layout.vue +0 -11
package/demos/apis/dialog-box.js
CHANGED
package/demos/apis/drawer.js
CHANGED
|
@@ -37,7 +37,7 @@ export default {
|
|
|
37
37
|
},
|
|
38
38
|
desc: {
|
|
39
39
|
'zh-CN':
|
|
40
|
-
'<p>通过对应的 <code>type</code> 属性,可以设置为对应的类型。默认为 text,可选值为 text,
|
|
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,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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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>
|