1.0.14 • Published 4 years ago

atg-vue-common-form v1.0.14

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Update

Version: 1.0.13

Optimization: add showTextareaVariable props

Version: 1.0.12

Optimization: add multi-language-textarea component

Version: 1.0.4

Fix bugs: fix the button loading

Optimization: add el-scrollbar to multi-language-input component

Version: 1.0.1 Publish components

Install

npm install atg-vue-common-form

Quick Start

import Vue from 'vue'
import commonForm from 'atg-vue-common-form'

import i18nPackage from 'atg-vue-common-form/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(commonForm, {
  i18n: (key, value) => i18n.t(key, value)
})