chore: remove object spead (#8514)

This commit is contained in:
neverland
2021-04-12 20:57:24 +08:00
committed by GitHub
parent 0b764b6347
commit 9deca34d1d
41 changed files with 204 additions and 241 deletions
+3 -4
View File
@@ -1,5 +1,5 @@
import { PropType, defineComponent } from 'vue';
import { createNamespace, UnknownProp } from '../utils';
import { createNamespace, extend, UnknownProp } from '../utils';
import { Popup } from '../popup';
import { popupSharedProps } from '../popup/shared';
@@ -10,8 +10,7 @@ export type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
export default defineComponent({
name,
props: {
...popupSharedProps,
props: extend({}, popupSharedProps, {
color: String,
message: [Number, String],
className: UnknownProp,
@@ -21,7 +20,7 @@ export default defineComponent({
type: String as PropType<NotifyType>,
default: 'danger',
},
},
}),
setup(props, { slots }) {
return () => {