support i18n

support i18n
This commit is contained in:
梁灏 2017-01-11 18:04:29 +08:00
parent 86b4da54d4
commit d33b51432d
10 changed files with 151 additions and 15 deletions

View file

@ -35,6 +35,7 @@
import Dropdown from './dropdown.vue';
import clickoutside from '../../directives/clickoutside';
import { oneOf, MutationObserver } from '../../utils/assist';
import { t } from '../../locale';
const prefixCls = 'ivu-select';
@ -60,7 +61,9 @@
},
placeholder: {
type: String,
default: '请选择'
default () {
return t('i.select.placeholder');
}
},
filterable: {
type: Boolean,
@ -80,7 +83,9 @@
},
notFoundText: {
type: String,
default: '无匹配数据'
default () {
return t('i.select.noMatch');
}
}
},
data () {