After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 671 B |
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 710 B |
@ -0,0 +1,7 @@
|
||||
/* 改变主题色变量 */
|
||||
$--color-primary: #FF512B;
|
||||
|
||||
/* 改变 icon 字体路径变量,必需 */
|
||||
$--font-path: '~element-ui/lib/theme-chalk/fonts';
|
||||
|
||||
@import "~element-ui/packages/theme-chalk/src/index";
|
@ -0,0 +1,83 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
width="16%"
|
||||
center
|
||||
:visible.sync="dialogVisible"
|
||||
:show-close="false"
|
||||
class="bs-order-ensure"
|
||||
>
|
||||
<div class="dialog-content flex flex-middle">
|
||||
<img src="~/assets/img/common/icon-warning.png" />
|
||||
<span>{{ title }}</span>
|
||||
</div>
|
||||
<div class="dialog-footer flex flex-between">
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
<el-button class="dialog-footer__btn--ensure" @click="onConfirm"
|
||||
>确认</el-button
|
||||
>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
import UiButton from "./UiButton.vue";
|
||||
export default {
|
||||
components: { UiButton },
|
||||
props: {
|
||||
visible: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
dialogVisible: {
|
||||
get() {
|
||||
return this.visible;
|
||||
},
|
||||
set(val) {
|
||||
this.$emit("update:visible", val);
|
||||
},
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
onConfirm() {
|
||||
this.$emit("confirm");
|
||||
this.visible = false;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
/deep/.el-dialog {
|
||||
.el-dialog__header {
|
||||
display: none;
|
||||
}
|
||||
.el-dialog__body {
|
||||
padding: 41px 60px;
|
||||
.dialog-content {
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
font-size: 16px;
|
||||
padding: 0 2px 42px 2px;
|
||||
img {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: 17px;
|
||||
}
|
||||
}
|
||||
.dialog-footer {
|
||||
.el-button {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.dialog-footer__btn--ensure {
|
||||
background: #ff875b;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -1,5 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import Element from 'element-ui'
|
||||
import locale from 'element-ui/lib/locale/lang/zh-CN'
|
||||
import '@/assets/scss/element-variables.scss'
|
||||
|
||||
Vue.use(Element, { locale })
|
||||
|