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 { computed, PropType, defineComponent } from 'vue';
import { createNamespace } from '../utils';
import { extend, createNamespace } from '../utils';
import { ACTION_BAR_KEY } from '../action-bar/ActionBar';
// Composables
@@ -15,15 +15,14 @@ const [name, bem] = createNamespace('action-bar-button');
export default defineComponent({
name,
props: {
...routeProps,
props: extend({}, routeProps, {
type: String as PropType<ButtonType>,
text: String,
icon: String,
color: String,
loading: Boolean,
disabled: Boolean,
},
}),
setup(props, { slots }) {
const route = useRoute();