chore: rename alert & refactor tag install

This commit is contained in:
07akioni 2020-07-14 00:51:08 +08:00
parent b698a60c82
commit b5b8c1a225
7 changed files with 15 additions and 15 deletions

View File

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

8
src/alert/index.js Normal file
View File

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

View File

@ -79,7 +79,7 @@ import mdClose from '../../_icons/md-close'
import FadeInHeightExpandTransition from '../../_transition/FadeInHeightExpandTransition'
export default {
name: 'NAlert',
name: 'Alert',
components: {
NIcon,
mdCheckmarkCircle,

View File

@ -18,7 +18,7 @@ import Pagination from './Pagination'
import Progress from './progress'
import Tooltip from './Tooltip'
import Popup from './Popover'
import Alert from './Alert'
import Alert from './alert'
import DatePicker from './DatePicker'
import InputNumberStyle from './input-number'
import Radio from './Radio'

View File

@ -2,9 +2,9 @@
import Tag from './src/Tag.vue'
import DynamicTags from './src/DynamicTags.vue'
Tag.install = function (Vue) {
Vue.component(Tag.name, Tag)
Vue.component(DynamicTags.name, DynamicTags)
Tag.install = function (Vue, naive) {
Vue.component(naive.componentPrefix + Tag.name, Tag)
Vue.component(naive.componentPrefix + DynamicTags.name, DynamicTags)
}
export default Tag

View File

@ -51,7 +51,7 @@ import NIcon from '../../Icon'
import addOutline from '../../_icons/add-outline'
export default {
name: 'NDynamicTags',
name: 'DynamicTags',
components: {
NTag,
NIcon,

View File

@ -34,7 +34,7 @@ import commonProps from './common-props'
import styles from './styles'
export default {
name: 'NTag',
name: 'Tag',
components: {
CloseIcon
},