chore: some name change

This commit is contained in:
07akioni 2019-10-25 15:50:09 +08:00
parent 89498541b7
commit d2fb399500
10 changed files with 18 additions and 14 deletions

View File

@ -23,7 +23,7 @@ import switchDemo from './documentation/components/switch'
import input from './documentation/components/input'
import select from './documentation/components/select'
import cascader from './documentation/components/cascader'
import inputPairs from './documentation/components/inputPairs'
import customInput from './documentation/components/customInput'
import modal from './documentation/components/modal'
import nimbusFormCardDemo from './documentation/components/nimbusFormCardDemo'
import message from './documentation/components/message'
@ -139,7 +139,7 @@ const routes = [
{ path: '/n-input', component: input },
{ path: '/n-select', component: select },
{ path: '/n-cascader', component: cascader },
{ path: '/n-custom-input', component: inputPairs },
{ path: '/n-custom-input', component: customInput },
{ path: '/n-modal', component: modal },
{ path: '/n-nimbus-form-card', component: nimbusFormCardDemo },
{ path: '/n-message', component: message },

View File

@ -13,7 +13,7 @@ import RoundButton from './packages/common/Button'
import Switch from './packages/common/Switch'
import Select from './packages/common/Select'
import Cascader from './packages/common/Cascader'
import InputKeyValuePairs from './packages/common/InputKeyValuePairs'
import CustomInput from './packages/common/CustomInput'
import Modal from './packages/common/Modal'
import Input from './packages/common/Input'
import Message from './packages/common/Message'
@ -95,7 +95,7 @@ function install (Vue) {
NimbusIcon.install(Vue)
Radio.install(Vue)
Cascader.install(Vue)
InputKeyValuePairs.install(Vue)
CustomInput.install(Vue)
Form.install(Vue)
Tabs.install(Vue)
TimePicker.install(Vue)

View File

@ -0,0 +1,9 @@
/* istanbul ignore file */
import CustomInput from './src/main.vue'
CustomInput.install = function (Vue) {
Vue.component(CustomInput.name, CustomInput)
Vue.component('NCustomInput', CustomInput)
}
export default CustomInput

View File

@ -83,9 +83,13 @@ export default {
return [{
key: '',
value: ''
} ]
}]
}
},
preset: {
type: String,
default: null
},
title: {
type: String,
default: ''

View File

@ -1,9 +0,0 @@
/* istanbul ignore file */
import InputKeyValuePairs from './src/main.vue'
InputKeyValuePairs.install = function (Vue) {
Vue.component(InputKeyValuePairs.name, InputKeyValuePairs)
Vue.component('NInputKeyValuePairs', InputKeyValuePairs)
}
export default InputKeyValuePairs