Skip to content

Commit

Permalink
selector: add direction example #2638
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Apr 13, 2018
1 parent e68d7c3 commit 183dcd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/selector/metas.yml
Expand Up @@ -39,7 +39,7 @@ props:
zh-CN: 标题
direction:
en: align value
zh-CN: 选项对齐方式
zh-CN: 选项对齐方式,同原生 select 属性一致,可选值为 ltr(left-to-right,默认), rtl
options:
type: Array
en: "option list, `['one', 'two']` or `[{ key: KEY, value: VALUE }]`"
Expand Down
1 change: 1 addition & 0 deletions src/demos/Selector.vue
Expand Up @@ -3,6 +3,7 @@

<group :title="'no placeholder, the current value is : ' + defaultValue">
<selector ref="defaultValueRef" title="省份" :options="list" v-model="defaultValue"></selector>
<selector ref="defaultValueRef" title="省份" direction="rtl" :options="list" v-model="defaultValue"></selector>
</group>

<div style="padding:15px;">
Expand Down

0 comments on commit 183dcd2

Please sign in to comment.