Commit 79a172ed by Jaxon

refactor(components): 替换对话框中的 el-button 为 VenusButton

统一组件库使用,将 venusDialog 组件中的 Element UI 按钮替换为自定义 VenusButton 组件,以保持项目 UI 组件的一致性。
1 parent 6d6ffece
......@@ -43,17 +43,17 @@
<div v-if="showFooter" class="venus-dialog-footer-wrapper">
<slot name="footer">
<div class="venus-dialog-footer">
<el-button v-if="showCancel"
size="small"
@click="handleCancel">
<VenusButton v-if="showCancel"
size="small"
@click="handleCancel">
{{ cancelText }}
</el-button>
<el-button size="small"
type="primary"
:loading="confirmLoading"
@click="handleConfirm">
</VenusButton>
<VenusButton size="small"
type="primary"
:loading="confirmLoading"
@click="handleConfirm">
{{ confirmText }}
</el-button>
</VenusButton>
</div>
</slot>
</div>
......@@ -63,8 +63,13 @@
</template>
<script>
import VenusButton from "@/components/venusButton/index.vue";
export default {
name: "VenusDialog",
components: {
VenusButton,
},
inheritAttrs: false,
model: {
prop: "visible",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!