From bca13b1961dedbbf6d37fc3aeda6fb4d1e3e010b Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Fri, 4 Nov 2022 18:01:46 +0800 Subject: [PATCH] feat: xbutton --- .../src/components/XButton/index.ts | 3 ++ .../src/components/XButton/src/XButton.vue | 41 ++++++++++++++++ .../src/components/XModal/src/XModal.vue | 22 +-------- yudao-ui-admin-vue3/src/components/index.ts | 2 + .../src/hooks/web/useVxeCrudSchemas.ts | 1 + .../src/views/system/post/index.vue | 49 ++++++++++--------- 6 files changed, 75 insertions(+), 43 deletions(-) create mode 100644 yudao-ui-admin-vue3/src/components/XButton/index.ts create mode 100644 yudao-ui-admin-vue3/src/components/XButton/src/XButton.vue diff --git a/yudao-ui-admin-vue3/src/components/XButton/index.ts b/yudao-ui-admin-vue3/src/components/XButton/index.ts new file mode 100644 index 000000000..7b13b6072 --- /dev/null +++ b/yudao-ui-admin-vue3/src/components/XButton/index.ts @@ -0,0 +1,3 @@ +import XButton from './src/XButton.vue' + +export { XButton } diff --git a/yudao-ui-admin-vue3/src/components/XButton/src/XButton.vue b/yudao-ui-admin-vue3/src/components/XButton/src/XButton.vue new file mode 100644 index 000000000..6190aac26 --- /dev/null +++ b/yudao-ui-admin-vue3/src/components/XButton/src/XButton.vue @@ -0,0 +1,41 @@ + + + diff --git a/yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue b/yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue index 3058c5121..4ca44f9c9 100644 --- a/yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue +++ b/yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue @@ -18,34 +18,14 @@ const props = defineProps({ }) const getBindValue = computed(() => { - const delArr: string[] = ['title'] const attrs = useAttrs() const obj = { ...attrs, ...props } - for (const key in obj) { - if (delArr.indexOf(key) !== -1) { - delete obj[key] - } - } return obj })