Browse Source

优化全局提示框按钮样式

fixbug/user-0121
LiLongLong 7 months ago
parent
commit
401114a721
  1. 5
      components.d.ts
  2. 2
      src/pages/Index/components/Consumables/Warn/InitWarn.vue

5
components.d.ts

@ -8,11 +8,12 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCol: typeof import('element-plus/es')['ElCol']
ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElFooter: typeof import('element-plus/es')['ElFooter'] ElFooter: typeof import('element-plus/es')['ElFooter']
ElHeader: typeof import('element-plus/es')['ElHeader'] ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon'] ElIcon: typeof import('element-plus/es')['ElIcon']
ElRow: typeof import('element-plus/es')['ElRow']
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ErrorModal: typeof import('./src/components/dialogs/ErrorModal.vue')['default'] ErrorModal: typeof import('./src/components/dialogs/ErrorModal.vue')['default']

2
src/pages/Index/components/Consumables/Warn/InitWarn.vue

@ -14,7 +14,7 @@
</div> </div>
<div class="modal-buttons" style="float:right"> <div class="modal-buttons" style="float:right">
<el-button style="width:100px;" v-if="cancelText" @click="onCancel" class="cancel-btn">{{ cancelText }}</el-button> <el-button style="width:100px;" v-if="cancelText" @click="onCancel" class="cancel-btn">{{ cancelText }}</el-button>
<el-button style="width:100px;" type="primary" @click="onConfirm" class="confirm-btn">
<el-button style="width:auto;" type="primary" @click="onConfirm" class="confirm-btn">
{{ confirmText }} {{ confirmText }}
</el-button> </el-button>
</div> </div>

Loading…
Cancel
Save