cy-element-ui 1.1.6 → 1.1.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/README.md +54 -0
- package/lib/index.js +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/subTitle.css +0 -0
- package/lib/theme-chalk/tabDialog.css +0 -0
- package/lib/theme-chalk/treeSelect.css +0 -1
- package/lib/theme-cy/base.css +1 -0
- package/lib/theme-cy/element.css +1 -0
- package/lib/theme-cy/index.css +1 -0
- package/lib/theme-cy/subTitle.css +1 -0
- package/lib/theme-cy/tabDialog.css +1 -0
- package/lib/theme-cy/treeSelect.css +1 -0
- package/package.json +2 -2
- package/packages/subTitle/index.js +7 -0
- package/packages/subTitle/src/main.vue +36 -0
- package/packages/tabDialog/index.js +23 -0
- package/packages/tabDialog/src/dialog/drag.js +63 -0
- package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
- package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
- package/packages/tabDialog/src/main.vue +277 -0
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/subTitle.scss +0 -0
- package/packages/theme-chalk/src/tabDialog.scss +0 -0
- package/packages/theme-chalk/src/treeSelect.scss +0 -98
- package/packages/theme-cy/gulpfile.js +19 -0
- package/packages/theme-cy/lib/base.css +1 -0
- package/packages/theme-cy/lib/element.css +1 -0
- package/packages/theme-cy/lib/index.css +1 -0
- package/packages/theme-cy/lib/subTitle.css +1 -0
- package/packages/theme-cy/lib/tabDialog.css +1 -0
- package/packages/theme-cy/lib/treeSelect.css +1 -0
- package/packages/theme-cy/package.json +9 -0
- package/packages/theme-cy/src/base.scss +3 -0
- package/packages/theme-cy/src/element.scss +12 -0
- package/packages/theme-cy/src/index.scss +4 -0
- package/packages/theme-cy/src/subTitle.scss +26 -0
- package/packages/theme-cy/src/tabDialog.scss +43 -0
- package/packages/theme-cy/src/treeSelect.scss +131 -0
- package/src/index.js +15 -4
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
@import "./base.scss";
|
|
2
|
-
|
|
3
|
-
.cy-tree-select {
|
|
4
|
-
.el-popover__reference-wrapper {
|
|
5
|
-
display: flex;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.cy-tree-select-select {
|
|
10
|
-
width: 217px;
|
|
11
|
-
height: 36px;
|
|
12
|
-
line-height: 34px;
|
|
13
|
-
border: 1px solid #DCDFE6;
|
|
14
|
-
border-radius: 4px;
|
|
15
|
-
padding: 0 29px 0 15px;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
position: relative;
|
|
19
|
-
transition: all .3s;
|
|
20
|
-
|
|
21
|
-
.cy-tree-select-select-v {
|
|
22
|
-
width: 100%;
|
|
23
|
-
color: #606266;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
white-space: nowrap;
|
|
26
|
-
overflow: auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.cy-tree-select-select-v-placeholder {
|
|
30
|
-
color: #c0c4cc;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.cy-tree-select-select-v-icon {
|
|
34
|
-
color: #C0C4CC;
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: 50%;
|
|
37
|
-
transform: translateY(-50%);
|
|
38
|
-
right: 9px;
|
|
39
|
-
|
|
40
|
-
.cy-tree-select-select-v-arrow {
|
|
41
|
-
transform: rotateZ(0deg);
|
|
42
|
-
transition: all .3s;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.cy-tree-select-select-v-arrow-show {
|
|
46
|
-
transform: rotateZ(-180deg);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.cy-tree-select-select.small {
|
|
52
|
-
height: 32px;
|
|
53
|
-
line-height: 30px;
|
|
54
|
-
|
|
55
|
-
.cy-tree-select-select-v {
|
|
56
|
-
font-size: 13px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.cy-tree-select-select.mini {
|
|
61
|
-
height: 28px;
|
|
62
|
-
line-height: 26px;
|
|
63
|
-
|
|
64
|
-
.cy-tree-select-select-v {
|
|
65
|
-
font-size: 12px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.cy-tree-select-select:hover {
|
|
70
|
-
border-color: #C0C4CC;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.cy-tree-select-select-con-s {
|
|
74
|
-
padding-bottom: 8px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.cy-tree-select-select-con-t {
|
|
78
|
-
padding-bottom: 5px;
|
|
79
|
-
margin-bottom: 5px;
|
|
80
|
-
border-bottom: 1px solid #DCDFE6;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.cy-tree-select-select-con-c {
|
|
84
|
-
max-height: 300px;
|
|
85
|
-
overflow: auto;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.el-form-item--medium .el-form-item--content .cy-tree-select {
|
|
89
|
-
width: 100%;
|
|
90
|
-
height: 36px;
|
|
91
|
-
display: flex;
|
|
92
|
-
align-items: center;
|
|
93
|
-
|
|
94
|
-
> span {
|
|
95
|
-
display: inline-block;
|
|
96
|
-
width: 100%;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { series, src, dest } = require('gulp');
|
|
4
|
+
const sass = require('gulp-sass')(require('sass'));
|
|
5
|
+
const autoprefixer = require('gulp-autoprefixer');
|
|
6
|
+
const cssmin = require('gulp-cssmin');
|
|
7
|
+
|
|
8
|
+
function compile() {
|
|
9
|
+
return src('./src/*.scss')
|
|
10
|
+
.pipe(sass())
|
|
11
|
+
.pipe(autoprefixer({
|
|
12
|
+
browsers: ['ie > 9', 'last 2 versions'],
|
|
13
|
+
cascade: false
|
|
14
|
+
}))
|
|
15
|
+
.pipe(cssmin())
|
|
16
|
+
.pipe(dest('./lib'));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.build = series(compile);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";.el-checkbox__input.is-disabled+span.el-checkbox__label,.el-input.is-disabled .el-input__inner,.el-radio__input.is-disabled+span.el-radio__label,.el-range-editor.is-disabled input,.el-textarea.is-disabled .el-textarea__inner{color:#888}.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after,.el-radio__input.is-disabled.is-checked .el-radio__inner::after{border-color:#888}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cy-tree-select .el-popover__reference-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.cy-tree-select-select{width:100%;height:40px;line-height:38px;border:1px solid #DCDFE6;border-radius:4px;padding:0 25px 0 15px;cursor:pointer;overflow:hidden;position:relative;-webkit-transition:all .3s;transition:all .3s;-webkit-box-sizing:border-box;box-sizing:border-box}.cy-tree-select-select .cy-tree-select-select-v{width:100%;color:#606266;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cy-tree-select-select .cy-tree-select-select-v-placeholder{color:#c0c4cc}.cy-tree-select-select .cy-tree-select-select-v-icon{color:#C0C4CC;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:10px}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow{-webkit-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition:all .3s;transition:all .3s}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow-show{-webkit-transform:rotateZ(-180deg);transform:rotateZ(-180deg)}.cy-tree-select-select.small{height:32px;line-height:30px;padding:0 25px 0 10px}.cy-tree-select-select.small .cy-tree-select-select-v{font-size:13px}.cy-tree-select-select.mini{height:28px;line-height:26px;padding:0 25px 0 10px}.cy-tree-select-select.mini .cy-tree-select-select-v{font-size:12px}.cy-tree-select-select:hover{border-color:#C0C4CC}.cy-tree-select-select:focus{outline:0;border-color:#409EFF}.cy-tree-select-select-con-s{padding-bottom:8px}.cy-tree-select-select-con-t{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #DCDFE6}.cy-tree-select-select-con-c{max-height:300px;overflow:auto}.el-form-item--medium .el-form-item__content .cy-tree-select{width:100%;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--medium .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--small .el-form-item__content .cy-tree-select{width:100%;height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--small .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--mini .el-form-item__content .cy-tree-select{width:100%;height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--mini .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.cy-tab-dialog{line-height:0}.cy-tab-dialog-modal{position:absolute;top:0;bottom:0;left:0;right:0;opacity:.5;background:#000}.cy-tab-dialog .el-dialog__wrapper{position:absolute!important;line-height:18px}.cy-tab-dialog .el-dialog__wrapper .el-dialog{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__header{-ms-flex-negative:0;flex-shrink:0}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__body{height:100%}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper{position:fixed!important}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper .el-dialog{left:0!important;top:0}*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-sub-title{width:100%;font-size:17px;border-left:5px solid #1890ff;text-indent:10px;margin-bottom:15px;font-weight:700;color:#303133;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cy-sub-title .left{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cy-sub-title .right{-ms-flex-negative:0;flex-shrink:0;margin-left:20px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-sub-title{width:100%;font-size:17px;border-left:5px solid #1890ff;text-indent:10px;margin-bottom:15px;font-weight:700;color:#303133;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cy-sub-title .left{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cy-sub-title .right{-ms-flex-negative:0;flex-shrink:0;margin-left:20px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-tab-dialog{line-height:0}.cy-tab-dialog-modal{position:absolute;top:0;bottom:0;left:0;right:0;opacity:.5;background:#000}.cy-tab-dialog .el-dialog__wrapper{position:absolute!important;line-height:18px}.cy-tab-dialog .el-dialog__wrapper .el-dialog{-webkit-box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.4);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__header{-ms-flex-negative:0;flex-shrink:0}.cy-tab-dialog .el-dialog__wrapper .el-dialog .el-dialog__body{height:100%}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper{position:fixed!important}.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper .el-dialog{left:0!important;top:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,::after,::before{-webkit-box-sizing:border-box;box-sizing:border-box}.cy-tree-select .el-popover__reference-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.cy-tree-select-select{width:100%;height:40px;line-height:38px;border:1px solid #DCDFE6;border-radius:4px;padding:0 25px 0 15px;cursor:pointer;overflow:hidden;position:relative;-webkit-transition:all .3s;transition:all .3s;-webkit-box-sizing:border-box;box-sizing:border-box}.cy-tree-select-select .cy-tree-select-select-v{width:100%;color:#606266;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cy-tree-select-select .cy-tree-select-select-v-placeholder{color:#c0c4cc}.cy-tree-select-select .cy-tree-select-select-v-icon{color:#C0C4CC;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:10px}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow{-webkit-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition:all .3s;transition:all .3s}.cy-tree-select-select .cy-tree-select-select-v-icon .cy-tree-select-select-v-arrow-show{-webkit-transform:rotateZ(-180deg);transform:rotateZ(-180deg)}.cy-tree-select-select.small{height:32px;line-height:30px;padding:0 25px 0 10px}.cy-tree-select-select.small .cy-tree-select-select-v{font-size:13px}.cy-tree-select-select.mini{height:28px;line-height:26px;padding:0 25px 0 10px}.cy-tree-select-select.mini .cy-tree-select-select-v{font-size:12px}.cy-tree-select-select:hover{border-color:#C0C4CC}.cy-tree-select-select:focus{outline:0;border-color:#409EFF}.cy-tree-select-select-con-s{padding-bottom:8px}.cy-tree-select-select-con-t{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #DCDFE6}.cy-tree-select-select-con-c{max-height:300px;overflow:auto}.el-form-item--medium .el-form-item__content .cy-tree-select{width:100%;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--medium .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--small .el-form-item__content .cy-tree-select{width:100%;height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--small .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}.el-form-item--mini .el-form-item__content .cy-tree-select{width:100%;height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.el-form-item--mini .el-form-item__content .cy-tree-select>span{display:inline-block;width:100%}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* 把表单中disabled时的组件文字加深一些,以前的太淡了,看不清 */
|
|
2
|
+
.el-input.is-disabled .el-input__inner,
|
|
3
|
+
.el-radio__input.is-disabled + span.el-radio__label,
|
|
4
|
+
.el-checkbox__input.is-disabled + span.el-checkbox__label,
|
|
5
|
+
.el-range-editor.is-disabled input,
|
|
6
|
+
.el-textarea.is-disabled .el-textarea__inner {
|
|
7
|
+
color: #888888;
|
|
8
|
+
}
|
|
9
|
+
.el-radio__input.is-disabled.is-checked .el-radio__inner::after,
|
|
10
|
+
.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
|
|
11
|
+
border-color: #888888;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@import "./base.scss";
|
|
2
|
+
|
|
3
|
+
.cy-sub-title {
|
|
4
|
+
width: 100%;
|
|
5
|
+
font-size: 17px;
|
|
6
|
+
border-left: 5px solid #1890ff;
|
|
7
|
+
text-indent: 10px;
|
|
8
|
+
margin-bottom: 15px;
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
color: #303133;
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
.left {
|
|
16
|
+
width: 100%;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
text-overflow: ellipsis;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.right {
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
margin-left: 20px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import "./base.scss";
|
|
2
|
+
|
|
3
|
+
.cy-tab-dialog {
|
|
4
|
+
line-height: 0;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cy-tab-dialog-modal {
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: 0;
|
|
10
|
+
bottom: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
opacity: 0.5;
|
|
14
|
+
background: #000000;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cy-tab-dialog .el-dialog__wrapper{
|
|
18
|
+
position: absolute !important;
|
|
19
|
+
line-height: 18px;
|
|
20
|
+
|
|
21
|
+
.el-dialog {
|
|
22
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .4);
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
|
|
26
|
+
.el-dialog__header {
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.el-dialog__body {
|
|
31
|
+
height: 100%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.cy-tab-dialog.cy-tab-dialog-fullscreen .el-dialog__wrapper{
|
|
37
|
+
position: fixed !important;
|
|
38
|
+
|
|
39
|
+
.el-dialog {
|
|
40
|
+
left: 0 !important;
|
|
41
|
+
top: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
@import "./base.scss";
|
|
2
|
+
|
|
3
|
+
.cy-tree-select {
|
|
4
|
+
.el-popover__reference-wrapper {
|
|
5
|
+
display: flex;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cy-tree-select-select {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 40px;
|
|
12
|
+
line-height: 38px;
|
|
13
|
+
border: 1px solid #DCDFE6;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
padding: 0 25px 0 15px;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
position: relative;
|
|
19
|
+
transition: all .3s;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
|
|
22
|
+
.cy-tree-select-select-v {
|
|
23
|
+
width: 100%;
|
|
24
|
+
color: #606266;
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
overflow: hidden;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.cy-tree-select-select-v-placeholder {
|
|
32
|
+
color: #c0c4cc;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cy-tree-select-select-v-icon {
|
|
36
|
+
color: #C0C4CC;
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 50%;
|
|
39
|
+
transform: translateY(-50%);
|
|
40
|
+
right: 10px;
|
|
41
|
+
|
|
42
|
+
.cy-tree-select-select-v-arrow {
|
|
43
|
+
transform: rotateZ(0deg);
|
|
44
|
+
transition: all .3s;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cy-tree-select-select-v-arrow-show {
|
|
48
|
+
transform: rotateZ(-180deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cy-tree-select-select.small {
|
|
54
|
+
height: 32px;
|
|
55
|
+
line-height: 30px;
|
|
56
|
+
padding: 0 25px 0 10px;
|
|
57
|
+
|
|
58
|
+
.cy-tree-select-select-v {
|
|
59
|
+
font-size: 13px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.cy-tree-select-select.mini {
|
|
64
|
+
height: 28px;
|
|
65
|
+
line-height: 26px;
|
|
66
|
+
padding: 0 25px 0 10px;
|
|
67
|
+
|
|
68
|
+
.cy-tree-select-select-v {
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.cy-tree-select-select:hover {
|
|
74
|
+
border-color: #C0C4CC;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.cy-tree-select-select:focus {
|
|
78
|
+
outline: none;
|
|
79
|
+
border-color: #409EFF;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cy-tree-select-select-con-s {
|
|
83
|
+
padding-bottom: 8px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cy-tree-select-select-con-t {
|
|
87
|
+
padding-bottom: 5px;
|
|
88
|
+
margin-bottom: 5px;
|
|
89
|
+
border-bottom: 1px solid #DCDFE6;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.cy-tree-select-select-con-c {
|
|
93
|
+
max-height: 300px;
|
|
94
|
+
overflow: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.el-form-item--medium .el-form-item__content .cy-tree-select {
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 40px;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
|
|
103
|
+
> span {
|
|
104
|
+
display: inline-block;
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.el-form-item--small .el-form-item__content .cy-tree-select {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 32px;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
|
|
115
|
+
> span {
|
|
116
|
+
display: inline-block;
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.el-form-item--mini .el-form-item__content .cy-tree-select {
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 28px;
|
|
124
|
+
display: flex;
|
|
125
|
+
align-items: center;
|
|
126
|
+
|
|
127
|
+
> span {
|
|
128
|
+
display: inline-block;
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
}
|
package/src/index.js
CHANGED
|
@@ -89,9 +89,13 @@ import Empty from '../packages/empty/index.js';
|
|
|
89
89
|
import Descriptions from '../packages/descriptions/index.js';
|
|
90
90
|
import DescriptionsItem from '../packages/descriptions-item/index.js';
|
|
91
91
|
import Result from '../packages/result/index.js';
|
|
92
|
-
import TreeSelect from '../packages/treeSelect/index.js';
|
|
92
|
+
import TreeSelect from '../packages/treeSelect/index.js';
|
|
93
|
+
import TabDialog from '../packages/tabDialog/index.js';
|
|
94
|
+
import SubTitle from '../packages/subTitle/index.js';
|
|
93
95
|
import locale from 'element-ui/src/locale';
|
|
94
96
|
import CollapseTransition from 'element-ui/src/transitions/collapse-transition';
|
|
97
|
+
import dragDirective from '../packages/tabDialog/src/dialog/drag';
|
|
98
|
+
import dragHeightDirective from '../packages/tabDialog/src/dialog/dragHeight';
|
|
95
99
|
|
|
96
100
|
const components = [
|
|
97
101
|
Pagination,
|
|
@@ -178,7 +182,9 @@ const components = [
|
|
|
178
182
|
Descriptions,
|
|
179
183
|
DescriptionsItem,
|
|
180
184
|
Result,
|
|
181
|
-
TreeSelect,
|
|
185
|
+
TreeSelect,
|
|
186
|
+
TabDialog,
|
|
187
|
+
SubTitle,
|
|
182
188
|
CollapseTransition
|
|
183
189
|
];
|
|
184
190
|
|
|
@@ -192,6 +198,9 @@ const install = function(Vue, opts = {}) {
|
|
|
192
198
|
|
|
193
199
|
Vue.use(InfiniteScroll);
|
|
194
200
|
Vue.use(Loading.directive);
|
|
201
|
+
Vue.directive('dialog-drag', dragDirective);
|
|
202
|
+
Vue.directive('dialog-drag-width', dragDirective);
|
|
203
|
+
Vue.directive('dialog-drag-height', dragHeightDirective);
|
|
195
204
|
|
|
196
205
|
Vue.prototype.$ELEMENT = {
|
|
197
206
|
size: opts.size || '',
|
|
@@ -214,7 +223,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
214
223
|
}
|
|
215
224
|
|
|
216
225
|
export default {
|
|
217
|
-
version: '1.1.
|
|
226
|
+
version: '1.1.8',
|
|
218
227
|
locale: locale.use,
|
|
219
228
|
i18n: locale.i18n,
|
|
220
229
|
install,
|
|
@@ -308,5 +317,7 @@ export default {
|
|
|
308
317
|
Descriptions,
|
|
309
318
|
DescriptionsItem,
|
|
310
319
|
Result,
|
|
311
|
-
TreeSelect
|
|
320
|
+
TreeSelect,
|
|
321
|
+
TabDialog,
|
|
322
|
+
SubTitle
|
|
312
323
|
};
|