xianniu-ui 0.9.6 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/demo.html +10 -0
- package/lib/static/fonts/element-icons.535877f5.woff +0 -0
- package/lib/static/fonts/element-icons.732389de.ttf +0 -0
- package/lib/style/amount.css +1 -0
- package/lib/style/basic.css +1 -0
- package/lib/style/card.css +1 -0
- package/lib/style/city.css +1 -0
- package/lib/style/date.css +1 -0
- package/lib/style/description.css +1 -0
- package/lib/style/ellipsis.css +1 -0
- package/lib/style/flex.css +1 -0
- package/lib/style/footer.css +1 -0
- package/lib/style/import.css +1 -0
- package/lib/style/theme/element-ui.scss +18 -0
- package/lib/style/theme/element-variables.scss +26 -0
- package/lib/style/theme/index.scss +6 -0
- package/lib/style/theme/mixin.scss +270 -0
- package/lib/style/theme/sidebar.scss +271 -0
- package/lib/style/theme/theme.scss +5 -0
- package/lib/style/theme/transition.scss +52 -0
- package/lib/style/theme/variables.scss +41 -0
- package/lib/xianniu-ui.common.js +77668 -0
- package/lib/xianniu-ui.css +1 -0
- package/lib/xianniu-ui.umd.js +77678 -0
- package/lib/xianniu-ui.umd.min.js +78 -0
- package/package.json +1 -1
- package/packages/amount/main.vue +35 -1
- package/packages/style/src/amount.scss +9 -0
package/lib/demo.html
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-amount,.xn-amount-prefix,.xn-amount-suffix{font-style:normal;font-size:inherit}.xn-amount{line-height:inherit;color:inherit;text-decoration:inherit}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.text-ell-1,.text-ell-2{overflow:hidden;text-overflow:ellipsis}:export{menuText:#4A4A53;menuActiveText:#FF745C;subMenuActiveText:#FF745C;menuBg:#fff;menuHover:#FFEDEA;subMenuBg:#fff;subMenuHover:#FFEDEA;sideBarWidth:200px}.text-primary{color:#ff745c!important}.text-success{color:#52c41a!important}.text-danger{color:#ff4d4f!important}.text-warning{color:#faad14!important}.text-blue{color:#5e9dff!important}.text-red{color:#ff4d4f!important}.text-yellow{color:#ffb500!important}.text-green{color:#52c41a!important}.text-grey{color:#c1c1c9!important}.text-orange{color:#ff8c00!important}.fw-1{font-weight:100!important}.fw-2{font-weight:200!important}.fw-3{font-weight:300!important}.fw-4{font-weight:400!important}.fw-5{font-weight:500!important}.fw-6{font-weight:600!important}.fw-7{font-weight:700!important}.m-0{margin:0!important}.mt-0{margin-top:0!important}.mb-0{margin-bottom:0!important}.ml-0{margin-left:0!important}.mr-0{margin-right:0!important}.p-0{padding:0!important}.pt-0{padding-top:0!important}.pb-0{padding-bottom:0!important}.pl-0{padding-left:0!important}.pr-0{padding-right:0!important}.fz-0{font-size:0!important}.m-1{margin:1px!important}.mt-1{margin-top:1px!important}.mb-1{margin-bottom:1px!important}.ml-1{margin-left:1px!important}.mr-1{margin-right:1px!important}.p-1{padding:1px!important}.pt-1{padding-top:1px!important}.pb-1{padding-bottom:1px!important}.pl-1{padding-left:1px!important}.pr-1{padding-right:1px!important}.fz-1{font-size:1px!important}.m-2{margin:2px!important}.mt-2{margin-top:2px!important}.mb-2{margin-bottom:2px!important}.ml-2{margin-left:2px!important}.mr-2{margin-right:2px!important}.p-2{padding:2px!important}.pt-2{padding-top:2px!important}.pb-2{padding-bottom:2px!important}.pl-2{padding-left:2px!important}.pr-2{padding-right:2px!important}.fz-2{font-size:2px!important}.m-3{margin:3px!important}.mt-3{margin-top:3px!important}.mb-3{margin-bottom:3px!important}.ml-3{margin-left:3px!important}.mr-3{margin-right:3px!important}.p-3{padding:3px!important}.pt-3{padding-top:3px!important}.pb-3{padding-bottom:3px!important}.pl-3{padding-left:3px!important}.pr-3{padding-right:3px!important}.fz-3{font-size:3px!important}.m-4{margin:4px!important}.mt-4{margin-top:4px!important}.mb-4{margin-bottom:4px!important}.ml-4{margin-left:4px!important}.mr-4{margin-right:4px!important}.p-4{padding:4px!important}.pt-4{padding-top:4px!important}.pb-4{padding-bottom:4px!important}.pl-4{padding-left:4px!important}.pr-4{padding-right:4px!important}.fz-4{font-size:4px!important}.m-5{margin:5px!important}.mt-5{margin-top:5px!important}.mb-5{margin-bottom:5px!important}.ml-5{margin-left:5px!important}.mr-5{margin-right:5px!important}.p-5{padding:5px!important}.pt-5{padding-top:5px!important}.pb-5{padding-bottom:5px!important}.pl-5{padding-left:5px!important}.pr-5{padding-right:5px!important}.fz-5{font-size:5px!important}.m-6{margin:6px!important}.mt-6{margin-top:6px!important}.mb-6{margin-bottom:6px!important}.ml-6{margin-left:6px!important}.mr-6{margin-right:6px!important}.p-6{padding:6px!important}.pt-6{padding-top:6px!important}.pb-6{padding-bottom:6px!important}.pl-6{padding-left:6px!important}.pr-6{padding-right:6px!important}.fz-6{font-size:6px!important}.m-7{margin:7px!important}.mt-7{margin-top:7px!important}.mb-7{margin-bottom:7px!important}.ml-7{margin-left:7px!important}.mr-7{margin-right:7px!important}.p-7{padding:7px!important}.pt-7{padding-top:7px!important}.pb-7{padding-bottom:7px!important}.pl-7{padding-left:7px!important}.pr-7{padding-right:7px!important}.fz-7{font-size:7px!important}.m-8{margin:8px!important}.mt-8{margin-top:8px!important}.mb-8{margin-bottom:8px!important}.ml-8{margin-left:8px!important}.mr-8{margin-right:8px!important}.p-8{padding:8px!important}.pt-8{padding-top:8px!important}.pb-8{padding-bottom:8px!important}.pl-8{padding-left:8px!important}.pr-8{padding-right:8px!important}.fz-8{font-size:8px!important}.m-9{margin:9px!important}.mt-9{margin-top:9px!important}.mb-9{margin-bottom:9px!important}.ml-9{margin-left:9px!important}.mr-9{margin-right:9px!important}.p-9{padding:9px!important}.pt-9{padding-top:9px!important}.pb-9{padding-bottom:9px!important}.pl-9{padding-left:9px!important}.pr-9{padding-right:9px!important}.fz-9{font-size:9px!important}.m-10{margin:10px!important}.mt-10{margin-top:10px!important}.mb-10{margin-bottom:10px!important}.ml-10{margin-left:10px!important}.mr-10{margin-right:10px!important}.p-10{padding:10px!important}.pt-10{padding-top:10px!important}.pb-10{padding-bottom:10px!important}.pl-10{padding-left:10px!important}.pr-10{padding-right:10px!important}.fz-10{font-size:10px!important}.m-11{margin:11px!important}.mt-11{margin-top:11px!important}.mb-11{margin-bottom:11px!important}.ml-11{margin-left:11px!important}.mr-11{margin-right:11px!important}.p-11{padding:11px!important}.pt-11{padding-top:11px!important}.pb-11{padding-bottom:11px!important}.pl-11{padding-left:11px!important}.pr-11{padding-right:11px!important}.fz-11{font-size:11px!important}.m-12{margin:12px!important}.mt-12{margin-top:12px!important}.mb-12{margin-bottom:12px!important}.ml-12{margin-left:12px!important}.mr-12{margin-right:12px!important}.p-12{padding:12px!important}.pt-12{padding-top:12px!important}.pb-12{padding-bottom:12px!important}.pl-12{padding-left:12px!important}.pr-12{padding-right:12px!important}.fz-12{font-size:12px!important}.m-13{margin:13px!important}.mt-13{margin-top:13px!important}.mb-13{margin-bottom:13px!important}.ml-13{margin-left:13px!important}.mr-13{margin-right:13px!important}.p-13{padding:13px!important}.pt-13{padding-top:13px!important}.pb-13{padding-bottom:13px!important}.pl-13{padding-left:13px!important}.pr-13{padding-right:13px!important}.fz-13{font-size:13px!important}.m-14{margin:14px!important}.mt-14{margin-top:14px!important}.mb-14{margin-bottom:14px!important}.ml-14{margin-left:14px!important}.mr-14{margin-right:14px!important}.p-14{padding:14px!important}.pt-14{padding-top:14px!important}.pb-14{padding-bottom:14px!important}.pl-14{padding-left:14px!important}.pr-14{padding-right:14px!important}.fz-14{font-size:14px!important}.m-15{margin:15px!important}.mt-15{margin-top:15px!important}.mb-15{margin-bottom:15px!important}.ml-15{margin-left:15px!important}.mr-15{margin-right:15px!important}.p-15{padding:15px!important}.pt-15{padding-top:15px!important}.pb-15{padding-bottom:15px!important}.pl-15{padding-left:15px!important}.pr-15{padding-right:15px!important}.fz-15{font-size:15px!important}.m-16{margin:16px!important}.mt-16{margin-top:16px!important}.mb-16{margin-bottom:16px!important}.ml-16{margin-left:16px!important}.mr-16{margin-right:16px!important}.p-16{padding:16px!important}.pt-16{padding-top:16px!important}.pb-16{padding-bottom:16px!important}.pl-16{padding-left:16px!important}.pr-16{padding-right:16px!important}.fz-16{font-size:16px!important}.m-17{margin:17px!important}.mt-17{margin-top:17px!important}.mb-17{margin-bottom:17px!important}.ml-17{margin-left:17px!important}.mr-17{margin-right:17px!important}.p-17{padding:17px!important}.pt-17{padding-top:17px!important}.pb-17{padding-bottom:17px!important}.pl-17{padding-left:17px!important}.pr-17{padding-right:17px!important}.fz-17{font-size:17px!important}.m-18{margin:18px!important}.mt-18{margin-top:18px!important}.mb-18{margin-bottom:18px!important}.ml-18{margin-left:18px!important}.mr-18{margin-right:18px!important}.p-18{padding:18px!important}.pt-18{padding-top:18px!important}.pb-18{padding-bottom:18px!important}.pl-18{padding-left:18px!important}.pr-18{padding-right:18px!important}.fz-18{font-size:18px!important}.m-19{margin:19px!important}.mt-19{margin-top:19px!important}.mb-19{margin-bottom:19px!important}.ml-19{margin-left:19px!important}.mr-19{margin-right:19px!important}.p-19{padding:19px!important}.pt-19{padding-top:19px!important}.pb-19{padding-bottom:19px!important}.pl-19{padding-left:19px!important}.pr-19{padding-right:19px!important}.fz-19{font-size:19px!important}.m-20{margin:20px!important}.mt-20{margin-top:20px!important}.mb-20{margin-bottom:20px!important}.ml-20{margin-left:20px!important}.mr-20{margin-right:20px!important}.p-20{padding:20px!important}.pt-20{padding-top:20px!important}.pb-20{padding-bottom:20px!important}.pl-20{padding-left:20px!important}.pr-20{padding-right:20px!important}.fz-20{font-size:20px!important}.m-21{margin:21px!important}.mt-21{margin-top:21px!important}.mb-21{margin-bottom:21px!important}.ml-21{margin-left:21px!important}.mr-21{margin-right:21px!important}.p-21{padding:21px!important}.pt-21{padding-top:21px!important}.pb-21{padding-bottom:21px!important}.pl-21{padding-left:21px!important}.pr-21{padding-right:21px!important}.fz-21{font-size:21px!important}.m-22{margin:22px!important}.mt-22{margin-top:22px!important}.mb-22{margin-bottom:22px!important}.ml-22{margin-left:22px!important}.mr-22{margin-right:22px!important}.p-22{padding:22px!important}.pt-22{padding-top:22px!important}.pb-22{padding-bottom:22px!important}.pl-22{padding-left:22px!important}.pr-22{padding-right:22px!important}.fz-22{font-size:22px!important}.m-23{margin:23px!important}.mt-23{margin-top:23px!important}.mb-23{margin-bottom:23px!important}.ml-23{margin-left:23px!important}.mr-23{margin-right:23px!important}.p-23{padding:23px!important}.pt-23{padding-top:23px!important}.pb-23{padding-bottom:23px!important}.pl-23{padding-left:23px!important}.pr-23{padding-right:23px!important}.fz-23{font-size:23px!important}.m-24{margin:24px!important}.mt-24{margin-top:24px!important}.mb-24{margin-bottom:24px!important}.ml-24{margin-left:24px!important}.mr-24{margin-right:24px!important}.p-24{padding:24px!important}.pt-24{padding-top:24px!important}.pb-24{padding-bottom:24px!important}.pl-24{padding-left:24px!important}.pr-24{padding-right:24px!important}.fz-24{font-size:24px!important}.m-25{margin:25px!important}.mt-25{margin-top:25px!important}.mb-25{margin-bottom:25px!important}.ml-25{margin-left:25px!important}.mr-25{margin-right:25px!important}.p-25{padding:25px!important}.pt-25{padding-top:25px!important}.pb-25{padding-bottom:25px!important}.pl-25{padding-left:25px!important}.pr-25{padding-right:25px!important}.fz-25{font-size:25px!important}.m-26{margin:26px!important}.mt-26{margin-top:26px!important}.mb-26{margin-bottom:26px!important}.ml-26{margin-left:26px!important}.mr-26{margin-right:26px!important}.p-26{padding:26px!important}.pt-26{padding-top:26px!important}.pb-26{padding-bottom:26px!important}.pl-26{padding-left:26px!important}.pr-26{padding-right:26px!important}.fz-26{font-size:26px!important}.m-27{margin:27px!important}.mt-27{margin-top:27px!important}.mb-27{margin-bottom:27px!important}.ml-27{margin-left:27px!important}.mr-27{margin-right:27px!important}.p-27{padding:27px!important}.pt-27{padding-top:27px!important}.pb-27{padding-bottom:27px!important}.pl-27{padding-left:27px!important}.pr-27{padding-right:27px!important}.fz-27{font-size:27px!important}.m-28{margin:28px!important}.mt-28{margin-top:28px!important}.mb-28{margin-bottom:28px!important}.ml-28{margin-left:28px!important}.mr-28{margin-right:28px!important}.p-28{padding:28px!important}.pt-28{padding-top:28px!important}.pb-28{padding-bottom:28px!important}.pl-28{padding-left:28px!important}.pr-28{padding-right:28px!important}.fz-28{font-size:28px!important}.m-29{margin:29px!important}.mt-29{margin-top:29px!important}.mb-29{margin-bottom:29px!important}.ml-29{margin-left:29px!important}.mr-29{margin-right:29px!important}.p-29{padding:29px!important}.pt-29{padding-top:29px!important}.pb-29{padding-bottom:29px!important}.pl-29{padding-left:29px!important}.pr-29{padding-right:29px!important}.fz-29{font-size:29px!important}.m-30{margin:30px!important}.mt-30{margin-top:30px!important}.mb-30{margin-bottom:30px!important}.ml-30{margin-left:30px!important}.mr-30{margin-right:30px!important}.p-30{padding:30px!important}.pt-30{padding-top:30px!important}.pb-30{padding-bottom:30px!important}.pl-30{padding-left:30px!important}.pr-30{padding-right:30px!important}.fz-30{font-size:30px!important}.text-ell-1{white-space:nowrap}.text-ell-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-left{text-align:left!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-card{background-color:#fff;padding:0 30px}.xn-card-header{padding:20px 0 13px;border-bottom:1px solid #f2f2f2}.xn-card-header h3{margin:0;padding:0;font-size:18px;font-weight:500;color:#202131;line-height:25px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-city{width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-date .el-range-editor.el-input__inner{padding:4px 10px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-desc{width:100%;background-color:#fff}.xn-desc+.xn-desc{margin-top:20px}.xn-desc-header{padding:10px 20px;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:1px solid #e8eaec}.xn-desc-border{border:1px solid #e6ebf5;border-radius:4px}.xn-desc-title{margin:0;color:#ff745c;font-weight:700;font-size:15px;line-height:1.5715}.xn-desc__row{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:2px;width:100%}.xn-desc__row>:not([class*=xn-desc-item]){width:100%}.xn-desc-item{margin:10px 0}.xn-desc-item__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:rgba(0,0,0,.65);font-size:14px;line-height:1.5;width:100%;height:100%}.xn-desc-item__content.small .xn-desc-item__label,.xn-desc-item__content.small .xn-desc-item__value{padding:10px 14px}.xn-desc-item__label{text-align:right;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;color:#909097;font-weight:400;font-size:14px;line-height:1.5;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin:0 10px 0 0}.xn-desc-item__label.has-colon::after{content:":";position:relative;top:-1.5px}.xn-desc-item__value{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;word-break:break-all;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;color:#202131}.xn-desc-item__value span{color:#aaa}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-ellipsis{white-space:pre-wrap;word-break:break-word;line-height:1.6;font-size:14px;color:inherit}.xn-ellipsis__action{color:#ff745c;cursor:pointer}.xn-ellipsis__tooltip{max-width:300px!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.flex{display:-webkit-box;display:-webkit-flexbox;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.flex-direction-default,.flex-direction-row{-webkit-box-orient:horizontal;-webkit-box-direction:inherit;-moz-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.flex-direction-col{-webkit-box-orient:vertical;-webkit-box-direction:inherit;-moz-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.flex-direction-row-reverse{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-moz-flex-direction:row-reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-direction-col-reverse{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-moz-flex-direction:column-reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.flex-wrap-no{-ms-flex-wrap:none;flex-wrap:nowrap}.flex-wrap-yes{-ms-flex-wrap:wrap;flex-wrap:wrap}.flex-basis-1{-ms-flex-preferred-size:1;flex-basis:1}.flex-grow-1{-webkit-box-flex:1;-moz-flex-grow:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-1{-ms-flex-negative:1;flex-shrink:1}.flex-order-1{-webkit-box-ordinal-group:2;-moz-order:1;-ms-flex-order:1;order:1}.justify-content-center{-webkit-box-pack:center;-ms-flex-pack:center;-moz-justify-content:center;justify-content:center}.justify-content-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-moz-justify-content:space-between;justify-content:space-between}.justify-content-end{-webkit-box-pack:end;-ms-flex-pack:end;-moz-justify-content:flex-end;justify-content:flex-end}.align-items-center{-webkit-box-align:center;-ms-flex-align:center;-moz-align-items:center;align-items:center}.align-self-center{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.align-content-center{-ms-flex-line-pack:center;align-content:center}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-footer{position:relative;height:60px}.xn-footer-main{position:fixed;bottom:0;right:0;height:60px;width:calc(100% - 200px);background-color:#fff;line-height:60px;padding:0 15px;z-index:1000}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xn-import .xn-import-upload .el-upload,.xn-import .xn-import-upload .el-upload .el-upload-dragger{width:100%}.xn-import .xn-import-upload .el-upload .el-upload-dragger .xn-import-trigger{width:100%;height:100%;border-radius:5px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex}.xn-import .xn-import-upload .el-upload .el-upload-dragger .xn-import-trigger.is-disabled{background-color:#e9e9eb;color:#bcbec2;cursor:not-allowed}.xn-import .xn-import-upload .el-upload .el-upload-dragger .xn-import-trigger__icon{margin-top:0;font-size:60px;color:#c0c4cc}.xn-import .xn-import-upload .el-upload .el-upload-dragger .xn-import-trigger__text{color:#606266;font-size:14px}.xn-import .xn-import-upload .el-upload .el-upload-dragger .xn-import-trigger__text em{color:#ff745c;font-style:normal}.xn-import .xn-import-upload-desc{color:#909399}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.el-descriptions {
|
|
2
|
+
.el-descriptions-item__label:not(.is-bordered-label) {
|
|
3
|
+
color: #909097;
|
|
4
|
+
}
|
|
5
|
+
&--small {
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
.el-table {
|
|
10
|
+
tr.cus-table-header {
|
|
11
|
+
th {
|
|
12
|
+
background-color: #fafafa;
|
|
13
|
+
padding: 5px 0;
|
|
14
|
+
font-weight: 400;
|
|
15
|
+
color: #202131;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
/* theme color */
|
|
3
|
+
@import './theme.scss';
|
|
4
|
+
|
|
5
|
+
$--button-font-weight: 400;
|
|
6
|
+
|
|
7
|
+
$--border-color-light: #dfe4ed;
|
|
8
|
+
$--border-color-lighter: #e6ebf5;
|
|
9
|
+
|
|
10
|
+
$--table-border: 1px solid #dfe6ec;
|
|
11
|
+
|
|
12
|
+
$--box-shadow-light: none;
|
|
13
|
+
$--fade-linear-transition:none;
|
|
14
|
+
$--fade-transition:none;
|
|
15
|
+
// $--table-border-color:#f00;
|
|
16
|
+
$--table-border:1px solid #f0f0f0;
|
|
17
|
+
// $--table-header-background-color: #fafafa;
|
|
18
|
+
|
|
19
|
+
$--font-path: "~element-ui/lib/theme-chalk/fonts";
|
|
20
|
+
|
|
21
|
+
@import "element-ui/packages/theme-chalk/src/index";
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
:export {
|
|
25
|
+
theme: $--color-primary;
|
|
26
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
@mixin clearfix {
|
|
2
|
+
&:after {
|
|
3
|
+
content: "";
|
|
4
|
+
display: table;
|
|
5
|
+
clear: both;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin scrollBar {
|
|
10
|
+
&::-webkit-scrollbar-track-piece {
|
|
11
|
+
background: #d3dce6;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar {
|
|
15
|
+
width: 6px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::-webkit-scrollbar-thumb {
|
|
19
|
+
background: #99a9bf;
|
|
20
|
+
border-radius: 20px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin relative {
|
|
25
|
+
position: relative;
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin pct($pct) {
|
|
31
|
+
width: #{$pct};
|
|
32
|
+
position: relative;
|
|
33
|
+
margin: 0 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@mixin triangle($width, $height, $color, $direction) {
|
|
37
|
+
$width: $width/2;
|
|
38
|
+
$color-border-style: $height solid $color;
|
|
39
|
+
$transparent-border-style: $width solid transparent;
|
|
40
|
+
height: 0;
|
|
41
|
+
width: 0;
|
|
42
|
+
|
|
43
|
+
@if $direction==up {
|
|
44
|
+
border-bottom: $color-border-style;
|
|
45
|
+
border-left: $transparent-border-style;
|
|
46
|
+
border-right: $transparent-border-style;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@else if $direction==right {
|
|
50
|
+
border-left: $color-border-style;
|
|
51
|
+
border-top: $transparent-border-style;
|
|
52
|
+
border-bottom: $transparent-border-style;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@else if $direction==down {
|
|
56
|
+
border-top: $color-border-style;
|
|
57
|
+
border-left: $transparent-border-style;
|
|
58
|
+
border-right: $transparent-border-style;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@else if $direction==left {
|
|
62
|
+
border-right: $color-border-style;
|
|
63
|
+
border-top: $transparent-border-style;
|
|
64
|
+
border-bottom: $transparent-border-style;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
// flex
|
|
71
|
+
// @ref http://w3.org/tr/css3-flexbox/#flex-containers
|
|
72
|
+
@mixin flex($display: block) {
|
|
73
|
+
@if ($display == block) {
|
|
74
|
+
display: -webkit-box;
|
|
75
|
+
display: -moz-box;
|
|
76
|
+
display: -webkit-flexbox;
|
|
77
|
+
display: -ms-flexbox;
|
|
78
|
+
display: -webkit-flex;
|
|
79
|
+
display: flex;
|
|
80
|
+
} @else {
|
|
81
|
+
display: -webkit-inline-flex;
|
|
82
|
+
display: inline-flex;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
//----------------------------------------------------------------------
|
|
87
|
+
|
|
88
|
+
// flex 方向
|
|
89
|
+
// 取值: row | row-reverse | column | column-reverse
|
|
90
|
+
// 默认:row
|
|
91
|
+
@mixin flex-direction($flex-direction: row) {
|
|
92
|
+
$box-orient: horizontal;
|
|
93
|
+
$box-direction: inherit;
|
|
94
|
+
|
|
95
|
+
@if ($flex-direction == column) {
|
|
96
|
+
$box-orient: vertical;
|
|
97
|
+
$box-direction: inherit;
|
|
98
|
+
} @else if ($flex-direction == column-reverse) {
|
|
99
|
+
$box-orient: vertical;
|
|
100
|
+
$box-direction: reverse;
|
|
101
|
+
} @else if ($flex-direction == row-reverse) {
|
|
102
|
+
$box-orient: horizontal;
|
|
103
|
+
$box-direction: reverse;
|
|
104
|
+
} @else {
|
|
105
|
+
$direction: row;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
-webkit-box-orient: $box-orient;
|
|
109
|
+
-moz-box-orient: $box-orient;
|
|
110
|
+
-webkit-box-direction: $box-direction;
|
|
111
|
+
-moz-box-direction: $box-direction;
|
|
112
|
+
-webkit-flex-direction: $flex-direction;
|
|
113
|
+
-moz-flex-direction: $flex-direction;
|
|
114
|
+
-ms-flex-direction: $flex-direction;
|
|
115
|
+
flex-direction: $flex-direction;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
//----------------------------------------------------------------------
|
|
119
|
+
|
|
120
|
+
// flex 换行
|
|
121
|
+
// 取值: nowrap | wrap | wrap-reverse
|
|
122
|
+
// 默认: nowrap
|
|
123
|
+
@mixin flex-wrap($value: nowrap) {
|
|
124
|
+
-webkit-flex-wrap: $value;
|
|
125
|
+
-moz-flex-wrap: $value;
|
|
126
|
+
|
|
127
|
+
@if ($value == nowrap) {
|
|
128
|
+
-ms-flex-wrap: none;
|
|
129
|
+
} @else {
|
|
130
|
+
-ms-flex-wrap: $value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
flex-wrap: $value;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
//----------------------------------------------------------------------
|
|
137
|
+
|
|
138
|
+
// 扩展收缩基准值
|
|
139
|
+
// 默认: auto,数值
|
|
140
|
+
@mixin flex-basis($value: auto) {
|
|
141
|
+
-webkit-flex-basis: $value;
|
|
142
|
+
-moz-flex-basis: $value;
|
|
143
|
+
-ms-flex-preferred-size: $value;
|
|
144
|
+
flex-basis: $value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
//----------------------------------------------------------------------
|
|
148
|
+
|
|
149
|
+
// flex 扩展值
|
|
150
|
+
// 默认: 0
|
|
151
|
+
@mixin flex-grow($int: 0) {
|
|
152
|
+
-webkit-box-flex: $int;
|
|
153
|
+
-webkit-flex-grow: $int;
|
|
154
|
+
-moz-flex-grow: $int;
|
|
155
|
+
-ms-flex-positive: $int;
|
|
156
|
+
flex-grow: $int;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
//----------------------------------------------------------------------
|
|
160
|
+
|
|
161
|
+
// flex 收缩值
|
|
162
|
+
// 默认: 1
|
|
163
|
+
@mixin flex-shrink($int: 1) {
|
|
164
|
+
-webkit-flex-shrink: $int;
|
|
165
|
+
-moz-flex-shrink: $int;
|
|
166
|
+
-ms-flex-negative: $int;
|
|
167
|
+
flex-shrink: $int;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
//----------------------------------------------------------------------
|
|
171
|
+
|
|
172
|
+
// flex 排序
|
|
173
|
+
// 默认: 0
|
|
174
|
+
@mixin order($int: 0) {
|
|
175
|
+
-webkit-box-ordinal-group: $int + 1;
|
|
176
|
+
-webkit-order: $int;
|
|
177
|
+
-moz-order: $int;
|
|
178
|
+
-ms-flex-order: $int;
|
|
179
|
+
order: $int;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
//----------------------------------------------------------------------
|
|
183
|
+
|
|
184
|
+
// flex 主轴对齐
|
|
185
|
+
// 取值: flex-start | flex-end | center | space-between | space-around
|
|
186
|
+
// 默认: flex-start
|
|
187
|
+
@mixin justify-content($value: flex-start) {
|
|
188
|
+
@if ($value == flex-start) {
|
|
189
|
+
-webkit-box-pack: start;
|
|
190
|
+
-ms-flex-pack: start;
|
|
191
|
+
} @else if ($value == flex-end) {
|
|
192
|
+
-webkit-box-pack: end;
|
|
193
|
+
-ms-flex-pack: end;
|
|
194
|
+
} @else if ($value == space-between) {
|
|
195
|
+
-webkit-box-pack: justify;
|
|
196
|
+
-ms-flex-pack: justify;
|
|
197
|
+
} @else if ($value == space-around) {
|
|
198
|
+
-ms-flex-pack: distribute;
|
|
199
|
+
} @else {
|
|
200
|
+
-webkit-box-pack: $value;
|
|
201
|
+
-ms-flex-pack: $value;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
-webkit-justify-content: $value;
|
|
205
|
+
-moz-justify-content: $value;
|
|
206
|
+
justify-content: $value;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
//----------------------------------------------------------------------
|
|
210
|
+
|
|
211
|
+
// flex 交叉轴对齐方式
|
|
212
|
+
// 取值:flex-start | flex-end | center | baseline | stretch
|
|
213
|
+
// 默认:stretch
|
|
214
|
+
@mixin align-items($value: stretch) {
|
|
215
|
+
@if ($value == flex-start) {
|
|
216
|
+
-webkit-box-align: start;
|
|
217
|
+
-ms-flex-align: start;
|
|
218
|
+
} @else if ($value == flex-end) {
|
|
219
|
+
-webkit-box-align: end;
|
|
220
|
+
-ms-flex-align: end;
|
|
221
|
+
} @else {
|
|
222
|
+
-webkit-box-align: $value;
|
|
223
|
+
-ms-flex-align: $value;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
-webkit-align-items: $value;
|
|
227
|
+
-moz-align-items: $value;
|
|
228
|
+
align-items: $value;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
//----------------------------------------------------------------------
|
|
232
|
+
|
|
233
|
+
// flex 自身在交叉轴对齐方式
|
|
234
|
+
//
|
|
235
|
+
// 取值:auto | flex-start | flex-end | center | baseline | stretch
|
|
236
|
+
// 默认:auto
|
|
237
|
+
@mixin align-self($value: auto) {
|
|
238
|
+
-webkit-align-self: $value;
|
|
239
|
+
-moz-align-self: $value;
|
|
240
|
+
|
|
241
|
+
@if ($value == flex-start) {
|
|
242
|
+
-ms-flex-item-align: start;
|
|
243
|
+
} @else if ($value == flex-end) {
|
|
244
|
+
-ms-flex-item-align: end;
|
|
245
|
+
} @else {
|
|
246
|
+
-ms-flex-item-align: $value;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
align-self: $value;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
//----------------------------------------------------------------------
|
|
253
|
+
|
|
254
|
+
// flex 内容在交叉轴上的对齐方式
|
|
255
|
+
// 取值:flex-start | flex-end | center | space-between | space-around | stretch
|
|
256
|
+
// 默认:stretch
|
|
257
|
+
@mixin align-content($value: stretch) {
|
|
258
|
+
-webkit-align-content: $value;
|
|
259
|
+
-moz-align-content: $value;
|
|
260
|
+
|
|
261
|
+
@if ($value == flex-start) {
|
|
262
|
+
-ms-flex-line-pack: start;
|
|
263
|
+
} @else if $value == (flex-end) {
|
|
264
|
+
-ms-flex-line-pack: end;
|
|
265
|
+
} @else {
|
|
266
|
+
-ms-flex-line-pack: $value;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
align-content: $value;
|
|
270
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
#app {
|
|
2
|
+
|
|
3
|
+
.main-container {
|
|
4
|
+
min-height: 100%;
|
|
5
|
+
transition: margin-left .28s;
|
|
6
|
+
margin-left: $sideBarWidth;
|
|
7
|
+
position: relative;
|
|
8
|
+
background-color: #f3f3f3;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sidebar-container {
|
|
12
|
+
transition: width 0.28s;
|
|
13
|
+
width: $sideBarWidth !important;
|
|
14
|
+
background-color: $menuBg;
|
|
15
|
+
height: 100%;
|
|
16
|
+
position: fixed;
|
|
17
|
+
font-size: 0px;
|
|
18
|
+
top: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
z-index: 1001;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
|
|
24
|
+
// reset element-ui css
|
|
25
|
+
.horizontal-collapse-transition {
|
|
26
|
+
transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.scrollbar-wrapper {
|
|
30
|
+
overflow-x: hidden !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.el-scrollbar__bar.is-vertical {
|
|
34
|
+
right: 0px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.el-scrollbar {
|
|
38
|
+
height: 100%
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.has-logo {
|
|
42
|
+
.el-scrollbar {
|
|
43
|
+
// height: calc(100% - 100px);
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.is-horizontal {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
a {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
width: 100%;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.svg-icon {
|
|
59
|
+
margin-right: 16px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sub-el-icon {
|
|
63
|
+
margin-right: 12px;
|
|
64
|
+
margin-left: -2px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.el-menu {
|
|
68
|
+
border: none;
|
|
69
|
+
height: 100%;
|
|
70
|
+
width: 100% !important;
|
|
71
|
+
&-item{
|
|
72
|
+
position: relative;
|
|
73
|
+
&::before{
|
|
74
|
+
content:"";
|
|
75
|
+
position: absolute;
|
|
76
|
+
left: 0;
|
|
77
|
+
height: 100%;
|
|
78
|
+
width: 3px;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
transition: all .3s ease-in-out;
|
|
81
|
+
}
|
|
82
|
+
&.is-active.submenu-title-noDropdown{
|
|
83
|
+
background-color: $subMenuActiveBg !important;
|
|
84
|
+
&::before{
|
|
85
|
+
background-color: $menuActiveText !important;
|
|
86
|
+
z-index: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// menu hover
|
|
93
|
+
.submenu-title-noDropdown,
|
|
94
|
+
.el-submenu__title {
|
|
95
|
+
&:hover {
|
|
96
|
+
background-color: $menuHover !important;
|
|
97
|
+
color: $menuActiveText !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.is-active>.el-submenu__title {
|
|
102
|
+
color: $subMenuActiveText !important;
|
|
103
|
+
background-color: $subMenuActiveBg !important;
|
|
104
|
+
}
|
|
105
|
+
.el-submenu{
|
|
106
|
+
// border-left: 3px solid transparent;
|
|
107
|
+
position: relative;
|
|
108
|
+
&::before{
|
|
109
|
+
content:"";
|
|
110
|
+
position: absolute;
|
|
111
|
+
left: 0;
|
|
112
|
+
height: 100%;
|
|
113
|
+
width: 3px;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
transition: all .3s ease-in-out;
|
|
116
|
+
}
|
|
117
|
+
&.is-active.is-opened{
|
|
118
|
+
// border-left-color: $menuActiveText;
|
|
119
|
+
&::before{
|
|
120
|
+
background-color: $menuActiveText !important;
|
|
121
|
+
z-index: 1;
|
|
122
|
+
}
|
|
123
|
+
// border-left: 3px solid $menuActiveText;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
& .nest-menu .el-submenu>.el-submenu__title,
|
|
127
|
+
& .el-submenu .el-menu-item {
|
|
128
|
+
min-width: $sideBarWidth !important;
|
|
129
|
+
background-color: $subMenuBg !important;
|
|
130
|
+
&:hover {
|
|
131
|
+
background-color: $subMenuHover !important;
|
|
132
|
+
color: $menuActiveText !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.hideSidebar {
|
|
139
|
+
.sidebar-container {
|
|
140
|
+
width: 54px !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.main-container {
|
|
144
|
+
margin-left: 54px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.submenu-title-noDropdown {
|
|
148
|
+
padding: 0 !important;
|
|
149
|
+
position: relative;
|
|
150
|
+
|
|
151
|
+
.el-tooltip {
|
|
152
|
+
padding: 0 !important;
|
|
153
|
+
|
|
154
|
+
.svg-icon {
|
|
155
|
+
margin-left: 20px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.sub-el-icon {
|
|
159
|
+
margin-left: 19px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.el-submenu {
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
|
|
167
|
+
&>.el-submenu__title {
|
|
168
|
+
padding: 0 !important;
|
|
169
|
+
|
|
170
|
+
.svg-icon {
|
|
171
|
+
margin-left: 20px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.sub-el-icon {
|
|
175
|
+
margin-left: 19px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.el-submenu__icon-arrow {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.el-menu--collapse {
|
|
185
|
+
.el-submenu {
|
|
186
|
+
&>.el-submenu__title {
|
|
187
|
+
&>span {
|
|
188
|
+
height: 0;
|
|
189
|
+
width: 0;
|
|
190
|
+
overflow: hidden;
|
|
191
|
+
visibility: hidden;
|
|
192
|
+
display: inline-block;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.el-menu--collapse .el-menu .el-submenu {
|
|
200
|
+
min-width: $sideBarWidth !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// mobile responsive
|
|
204
|
+
.mobile {
|
|
205
|
+
.main-container {
|
|
206
|
+
margin-left: 0px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.sidebar-container {
|
|
210
|
+
transition: transform .28s;
|
|
211
|
+
width: $sideBarWidth !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.hideSidebar {
|
|
215
|
+
.sidebar-container {
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
transition-duration: 0.3s;
|
|
218
|
+
transform: translate3d(-$sideBarWidth, 0, 0);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.withoutAnimation {
|
|
224
|
+
|
|
225
|
+
.main-container,
|
|
226
|
+
.sidebar-container {
|
|
227
|
+
transition: none;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// when menu collapsed
|
|
233
|
+
.el-menu--vertical {
|
|
234
|
+
&>.el-menu {
|
|
235
|
+
.svg-icon {
|
|
236
|
+
margin-right: 16px;
|
|
237
|
+
}
|
|
238
|
+
.sub-el-icon {
|
|
239
|
+
margin-right: 12px;
|
|
240
|
+
margin-left: -2px;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.nest-menu .el-submenu>.el-submenu__title,
|
|
245
|
+
.el-menu-item {
|
|
246
|
+
&:hover {
|
|
247
|
+
// you can use $subMenuHover
|
|
248
|
+
background-color: $menuHover !important;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// the scroll bar appears when the subMenu is too long
|
|
253
|
+
>.el-menu--popup {
|
|
254
|
+
max-height: 100vh;
|
|
255
|
+
overflow-y: auto;
|
|
256
|
+
|
|
257
|
+
&::-webkit-scrollbar-track-piece {
|
|
258
|
+
background: #d3dce6;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&::-webkit-scrollbar {
|
|
262
|
+
width: 6px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&::-webkit-scrollbar-thumb {
|
|
266
|
+
background: #99a9bf;
|
|
267
|
+
border-radius: 20px;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|