Commit 79a172ed by Jaxon

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

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