atg-vue-common-table-independence
v1.0.11
Published
Version: 1.0.7
Downloads
6
Readme
Update
Version: 1.0.7
Optimization:
add date type format
Version: 1.0.6
Optimization:
remove showTotalNumberAlone props
Version: 1.0.5
Optimization:
Add showCreateBtn props
Version: 1.0.3
Optimization:
Add isAutoLoadData props
Version: 1.0.1
Publish components
Install
npm install atg-vue-common-table-independence
Quick Start
import Vue from 'vue'
import CommonTable from 'atg-vue-common-table-independence'
import i18nPackage from 'atg-vue-common-table-independence/dist/lang.js'
const messages = {
en: {
...i18nPackage.messages.en
},
'zh-CN': {
...i18nPackage.messages['zh-CN']
},
'zh-HK': {
...i18nPackage.messages['zh-HK']
}
}
// Create VueI18n instance with options
const i18n = new VueI18n({
locale: 'zh', // set locale
messages, // set locale messages
})
Vue.use(CommonTable, {
i18n: (key, value) => i18n.t(key, value)
})