mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
chore: some name change
This commit is contained in:
parent
89498541b7
commit
d2fb399500
@ -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 },
|
||||
|
4
index.js
4
index.js
@ -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)
|
||||
|
9
packages/common/CustomInput/index.js
Normal file
9
packages/common/CustomInput/index.js
Normal 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
|
@ -83,9 +83,13 @@ export default {
|
||||
return [{
|
||||
key: '',
|
||||
value: ''
|
||||
} ]
|
||||
}]
|
||||
}
|
||||
},
|
||||
preset: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
@ -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
|
Loading…
Reference in New Issue
Block a user