mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
chore: rename alert & refactor tag install
This commit is contained in:
parent
b698a60c82
commit
b5b8c1a225
@ -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
8
src/alert/index.js
Normal 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
|
@ -79,7 +79,7 @@ import mdClose from '../../_icons/md-close'
|
|||||||
import FadeInHeightExpandTransition from '../../_transition/FadeInHeightExpandTransition'
|
import FadeInHeightExpandTransition from '../../_transition/FadeInHeightExpandTransition'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NAlert',
|
name: 'Alert',
|
||||||
components: {
|
components: {
|
||||||
NIcon,
|
NIcon,
|
||||||
mdCheckmarkCircle,
|
mdCheckmarkCircle,
|
@ -18,7 +18,7 @@ import Pagination from './Pagination'
|
|||||||
import Progress from './progress'
|
import Progress from './progress'
|
||||||
import Tooltip from './Tooltip'
|
import Tooltip from './Tooltip'
|
||||||
import Popup from './Popover'
|
import Popup from './Popover'
|
||||||
import Alert from './Alert'
|
import Alert from './alert'
|
||||||
import DatePicker from './DatePicker'
|
import DatePicker from './DatePicker'
|
||||||
import InputNumberStyle from './input-number'
|
import InputNumberStyle from './input-number'
|
||||||
import Radio from './Radio'
|
import Radio from './Radio'
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import Tag from './src/Tag.vue'
|
import Tag from './src/Tag.vue'
|
||||||
import DynamicTags from './src/DynamicTags.vue'
|
import DynamicTags from './src/DynamicTags.vue'
|
||||||
|
|
||||||
Tag.install = function (Vue) {
|
Tag.install = function (Vue, naive) {
|
||||||
Vue.component(Tag.name, Tag)
|
Vue.component(naive.componentPrefix + Tag.name, Tag)
|
||||||
Vue.component(DynamicTags.name, DynamicTags)
|
Vue.component(naive.componentPrefix + DynamicTags.name, DynamicTags)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Tag
|
export default Tag
|
||||||
|
@ -51,7 +51,7 @@ import NIcon from '../../Icon'
|
|||||||
import addOutline from '../../_icons/add-outline'
|
import addOutline from '../../_icons/add-outline'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NDynamicTags',
|
name: 'DynamicTags',
|
||||||
components: {
|
components: {
|
||||||
NTag,
|
NTag,
|
||||||
NIcon,
|
NIcon,
|
||||||
|
@ -34,7 +34,7 @@ import commonProps from './common-props'
|
|||||||
import styles from './styles'
|
import styles from './styles'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'NTag',
|
name: 'Tag',
|
||||||
components: {
|
components: {
|
||||||
CloseIcon
|
CloseIcon
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user