| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <template>
- <div class="default-alert">
- <div class="top">{{AlertTitle}}
- <i class="el-icon-close" @click="closeAlert()"></i>
- </div>
- <div class="content">
- <slot>
- </slot>
- </div>
- </div>
- </template>
- <script>
- export default {
- props: {
- AlertTitle: {
- type: String,
- default: '新增公司地址'
- }
- },
- methods: {
- closeAlert() {
- this.$emit('closeAlert')
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .default-alert {
- width: 618px;
- border-radius: 5px;
- box-shadow: 0 5px 5px #bcd2ff;
- overflow: hidden;
- position: fixed;
- left: 50%;
- top: 10%;
- transform: translate3d(-50%, 0%, 0);
- z-index: 999;
- .top {
- color: #fff;
- font-size: 14px;
- line-height: 30px;
- position: relative;
- text-indent: 12px;
- margin-bottom: 0px;
- background: #6093f6;
- i {
- position: absolute;
- color: #fff;
- font-size: 14px;
- right: 10px;
- top: 10px;
- cursor: pointer;
- }
- }
- .content {
- padding: 20px;
- background: #fff;
- }
- }
- </style>
|