Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:opentiny/tiny-vue into release
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcr committed Oct 23, 2023
2 parents 06ac1b5 + d7623d1 commit eb366ad
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 139 deletions.
94 changes: 47 additions & 47 deletions examples/sites/demos/pc/app/grid/webdoc/grid.js

Large diffs are not rendered by default.

25 changes: 22 additions & 3 deletions examples/sites/demos/pc/app/select/size-medium.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
<template>
<div class="fontStyle">medium</div>
<tiny-select v-model="value" placeholder="请选择" size="medium" multiple :options="options"></tiny-select>
<div class="fontStyle">small</div>
<tiny-select v-model="value1" placeholder="请选择" size="small" multiple>
<tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
</tiny-select>
<div class="fontStyle">mini</div>
<tiny-select v-model="value2" placeholder="请选择" size="mini" multiple>
<tiny-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </tiny-option>
</tiny-select>
</template>

<script lang="jsx">
import { Select } from '@opentiny/vue'
import { Option, Select } from '@opentiny/vue'
export default {
components: {
TinySelect: Select
TinySelect: Select,
TinyOption: Option
},
data() {
return {
Expand All @@ -18,8 +28,17 @@ export default {
{ value: '选项4', label: '龙须面' },
{ value: '选项5', label: '北京烤鸭' }
],
value: ''
value: '',
value1: '',
value2: ''
}
}
}
</script>

<style>
.fontStyle {
font-size: 14px;
margin: 8px;
}
</style>
8 changes: 0 additions & 8 deletions examples/sites/demos/pc/app/select/size-mini.spec.ts

This file was deleted.

28 changes: 0 additions & 28 deletions examples/sites/demos/pc/app/select/size-mini.vue

This file was deleted.

8 changes: 0 additions & 8 deletions examples/sites/demos/pc/app/select/size-small.spec.ts

This file was deleted.

28 changes: 0 additions & 28 deletions examples/sites/demos/pc/app/select/size-small.vue

This file was deleted.

18 changes: 1 addition & 17 deletions examples/sites/demos/pc/app/select/webdoc/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,30 +128,14 @@ export default {
},
{
'demoId': 'size-medium',
'name': { 'zh-CN': 'medium', 'en-US': 'small' },
'name': { 'zh-CN': 'select', 'en-US': 'small' },
'desc': {
'zh-CN':
'<p>通过 <code>size</code> 属性定义输入框尺寸,可选项有 medium、small、mini 。\n通过 <code>options</code> 配置 Select 数据项,使用后不需要再配置 tiny-option。</p>\n',
'en-US': 'For details, see the following example.'
},
'codeFiles': ['size-medium.vue']
},
{
'demoId': 'size-small',
'name': { 'zh-CN': 'small', 'en-US': 'mini' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['size-small.vue']
},
{
'demoId': 'size-mini',
'name': { 'zh-CN': 'mini', 'en-US': 'Group' },
'desc': {
'zh-CN': '详细用法参考如下示例',
'en-US':
'<p> uses <code>tiny-option-group</code> to group options. The <code>label</code> attribute is the group name. Use the <code>disabled</code> attribute to disable all options in the group. </p>\n'
},
'codeFiles': ['size-mini.vue']
},
{
'demoId': 'option-group',
'name': { 'zh-CN': '分组', 'en-US': 'Disable some options for grouping' },
Expand Down

0 comments on commit eb366ad

Please sign in to comment.