Skip to content

Commit 3e97002

Browse files
jonflowvanoneang
authored andcommitted
feat(linCmsUi): 增加linCmsUi tag 样式组件 (#163)
增加linCmsUi tag 样式组件
1 parent 3aa1d8c commit 3e97002

3 files changed

Lines changed: 416 additions & 1 deletion

File tree

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

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,3 +684,140 @@ $typeMap: (primary:#3963BC,
684684
}
685685
}
686686
}
687+
688+
/* tag */
689+
@include b(tag) {
690+
background-color: #3963BC;
691+
padding: 0 13px;
692+
height: 24px;;
693+
line-height: 22px;
694+
color:rgba(255,255,255,1);
695+
border-radius: 12px;
696+
border: 1px solid #3963BC;
697+
698+
.el-icon-close {
699+
border-radius: 50%;
700+
font-size: 12px;
701+
height: 12px;
702+
width: 12px;
703+
line-height: 12px;
704+
top: -1px;
705+
right: -5px;
706+
color:#FFFFFF;
707+
708+
&::before {
709+
display: block;
710+
}
711+
712+
&:hover {
713+
background-color: rgba(255,255,255,1);
714+
color: #3963BC;
715+
}
716+
}
717+
718+
@include m(info) {
719+
background-color: #716ACA;
720+
border-color: #716ACA;
721+
color: rgba(255,255,255,1);
722+
723+
@include when(hit) {
724+
border-color: #716ACA;
725+
}
726+
727+
.el-tag__close {
728+
color:rgba(255,255,255,1);
729+
}
730+
731+
.el-tag__close:hover {
732+
background-color:rgba(255,255,255,1);
733+
color: #716ACA;
734+
}
735+
}
736+
737+
@include m(success) {
738+
background-color: #34BFA3;
739+
border-color: #34BFA3;
740+
color: rgba(255,255,255,1);
741+
742+
@include when(hit) {
743+
border-color: #34BFA3;
744+
}
745+
746+
.el-tag__close {
747+
color: rgba(255,255,255,1);
748+
}
749+
750+
.el-tag__close:hover {
751+
background-color: rgba(255,255,255,1);
752+
color: #34BFA3;
753+
}
754+
}
755+
756+
@include m(warning) {
757+
background-color: #FFBE4D;
758+
border-color: #FFBE4D;
759+
color: rgba(255,255,255,1);
760+
761+
@include when(hit) {
762+
border-color: #FFBE4D;
763+
}
764+
765+
.el-tag__close {
766+
color: rgba(255,255,255,1);
767+
}
768+
769+
.el-tag__close:hover {
770+
background-color: rgba(255,255,255,1);
771+
color: #FFBE4D;
772+
}
773+
}
774+
775+
@include m(danger) {
776+
background-color: #F4516C;
777+
border-color: #F4516C;
778+
color: rgba(255,255,255,1);
779+
780+
@include when(hit) {
781+
border-color: #F4516C;
782+
}
783+
784+
.el-tag__close {
785+
color: rgba(255,255,255,1);
786+
}
787+
788+
.el-tag__close:hover {
789+
background-color: rgba(255,255,255,1);
790+
color: #F4516C;
791+
}
792+
}
793+
794+
@include m(medium) {
795+
height: 28px;
796+
line-height: 26px;
797+
798+
.el-icon-close {
799+
transform: scale(.8);
800+
}
801+
}
802+
803+
@include m(small) {
804+
height: 24px;
805+
padding: 0 8px;
806+
line-height: 22px;
807+
808+
.el-icon-close {
809+
transform: scale(.8);
810+
}
811+
}
812+
813+
@include m(mini) {
814+
height: 20px;
815+
padding: 0 5px;
816+
line-height: 19px;
817+
818+
.el-icon-close {
819+
margin-left: -3px;
820+
transform: scale(.7);
821+
}
822+
}
823+
}

src/plugins/LinCmsUi/stage-config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,17 @@ const LinCmsUiRouter = {
151151
inNav: true,
152152
icon: 'iconfont icon-jiemiansheji',
153153
right: null,
154-
}
154+
},
155+
{
156+
title: 'Tag 标签',
157+
type: 'view',
158+
name: null,
159+
route: '/lin-cms-ui/tag',
160+
filePath: 'plugins/LinCmsUi/views/tag/Tag.vue',
161+
inNav: true,
162+
icon: 'iconfont icon-jiemiansheji',
163+
right: null,
164+
},
155165
],
156166
}
157167

0 commit comments

Comments
 (0)