Skip to content

Commit 4098cdc

Browse files
committed
style(修改通知组件默认样式):
1 parent 5b29a3b commit 4098cdc

3 files changed

Lines changed: 33 additions & 3 deletions

File tree

src/assets/styles/realize/element-variables.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,3 +817,33 @@ $typeMap: (primary:#3963BC,
817817
}
818818
}
819819
}
820+
821+
/* message */
822+
@include b(message) {
823+
@include m(info) {
824+
background-color: #ECF1FF;
825+
border-color: #97B8FF;
826+
.el-message__content {
827+
color: #3963bc;
828+
}
829+
}
830+
& .el-icon-info {
831+
color: #3963BC;
832+
}
833+
}
834+
835+
/* notification */
836+
@include b(notification) {
837+
border: 1px solid #97B8FF;
838+
background-color: #ECF1FF;
839+
@include e(title) {
840+
color: #3963BC;
841+
}
842+
843+
@include e(content) {
844+
color: #3963BC;
845+
}
846+
.el-icon-info {
847+
color: #3963BC;
848+
}
849+
}

src/plugins/LinCmsUi/views/notice/Message.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ export default {
273273
const h = this.$createElement
274274
this.$message({
275275
message: h('p', null, [
276-
h('span', null, '内容可以是 '),
277-
h('i', { style: 'color: teal' }, 'VNode'),
276+
h('span', { style: 'color: #3963BC' }, '内容可以是 '),
277+
h('i', { style: 'color: #3963BC' }, 'VNode'),
278278
]),
279279
})
280280
},

src/plugins/LinCmsUi/views/notice/Notification.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export default {
370370
const h = this.$createElement
371371
this.$notify({
372372
title: '标题名称',
373-
message: h('i', { style: 'color: teal' }, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案'),
373+
message: h('i', { style: 'color: #3963BC' }, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案'),
374374
})
375375
},
376376

0 commit comments

Comments
 (0)