bri-components 1.1.5 → 1.2.0
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/0.bri-components.min.js +1 -1
- package/lib/1.bri-components.min.js +1 -1
- package/lib/2.bri-components.min.js +1 -1
- package/lib/3.bri-components.min.js +1 -1
- package/lib/4.bri-components.min.js +1 -1
- package/lib/5.bri-components.min.js +1 -1
- package/lib/6.bri-components.min.js +1 -1
- package/lib/7.bri-components.min.js +1 -1
- package/lib/bri-components.min.js +6 -6
- package/lib/styles/bri-components.css +1 -1
- package/package.json +1 -1
- package/src/abolish/DshFileShow.less +61 -0
- package/src/{components/small → abolish}/DshFileShow.vue +30 -105
- package/src/components/controls/base/BriUpload/{index.vue → BriUpload.vue} +3 -3
- package/src/components/controls/base/BriUpload/{upload-list.vue → uploadList.vue} +17 -13
- package/src/components/controls/base/BriUpload/uploadMixin.js +1 -5
- package/src/components/controls/base/DshCascader/DshCascader.vue +91 -90
- package/src/components/controls/base/DshCheckbox.vue +3 -3
- package/src/components/controls/base/DshCoordinates.vue +2 -2
- package/src/components/controls/base/DshDate.vue +21 -10
- package/src/components/controls/base/DshEditor.vue +33 -48
- package/src/components/controls/base/DshInput.vue +21 -19
- package/src/components/controls/base/DshNumber/DshNumber.vue +23 -22
- package/src/components/controls/base/DshSelect.vue +10 -8
- package/src/components/controls/base/DshSwitch.vue +45 -87
- package/src/components/controls/controlMap.js +1 -1
- package/src/components/controls/controlMixin.js +5 -8
- package/src/components/controls/senior/BriLabels.vue +72 -54
- package/src/components/controls/special/DshUndeveloped.vue +0 -6
- package/src/components/form/DshDefaultSearch.vue +1 -1
- package/src/components/form/DshForm.vue +4 -13
- package/src/components/list/BriTable.vue +1 -1
- package/src/components/list/{ZTree.vue → BriTree.vue} +9 -8
- package/src/components/list/DshBox/DshCard.vue +4 -4
- package/src/components/list/DshBox/DshCrossTable.vue +4 -4
- package/src/components/list/DshBox/DshList.vue +2 -2
- package/src/components/list/DshBox/DshPanel.vue +5 -5
- package/src/components/list/DshBox/DshTable.vue +21 -80
- package/src/components/list/DshCascaderTable.vue +2 -2
- package/src/components/other/{ZCode.vue → BriCode.vue} +2 -9
- package/src/components/other/{ZCollapseTree.vue → BriCollapseTree.vue} +37 -16
- package/src/components/other/{ZIframe.vue → BriIframe.vue} +7 -23
- package/src/components/other/{ZLoading.vue → BriLoading.vue} +25 -11
- package/src/components/other/BriSvg.vue +2 -2
- package/src/components/other/DshAvatar.vue +21 -69
- package/src/components/other/DshColorPanel.vue +0 -43
- package/src/components/small/BriButton.vue +2 -2
- package/src/components/small/{Ctooltip.vue → BriTooltip.vue} +2 -2
- package/src/components/small/DshButtons.vue +28 -2
- package/src/components/small/DshCrumbs.vue +1 -0
- package/src/components/small/DshCrumbsItem.vue +5 -3
- package/src/components/small/DshIcons.vue +1 -15
- package/src/components/small/DshTags.vue +7 -2
- package/src/components/unit/DshFormItem.vue +6 -6
- package/src/components/unit/DshUnit.vue +0 -8
- package/src/index.js +93 -104
- package/src/styles/common/control.less +62 -53
- package/src/styles/components/controls/base/BriUpload/BriUpload.less +159 -0
- package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +81 -0
- package/src/styles/components/controls/base/BriUpload/index.less +3 -0
- package/src/styles/components/controls/base/BriUpload/uploadList.less +164 -0
- package/src/styles/components/controls/base/DshCascader/DshCascader.less +124 -0
- package/src/styles/components/controls/base/DshCascader/index.less +2 -0
- package/src/styles/components/controls/{DshCheckbox.less → base/DshCheckbox.less} +3 -2
- package/src/styles/components/controls/base/DshDate.less +15 -0
- package/src/styles/components/controls/{DshEditor.less → base/DshEditor.less} +25 -47
- package/src/styles/components/controls/{DshInput.less → base/DshInput.less} +9 -1
- package/src/styles/components/controls/base/DshNumber.less +68 -0
- package/src/styles/components/controls/{DshSelect.less → base/DshSelect.less} +11 -0
- package/src/styles/components/controls/base/DshSwitch.less +37 -0
- package/src/styles/components/controls/{BriLabels.less → senior/BriLabels.less} +29 -12
- package/src/styles/components/controls/{DshDate.less → special/DshBack.less} +1 -1
- package/src/styles/components/controls/special/DshUndeveloped.less +3 -0
- package/src/styles/components/form/DshAdvSearchForm.less +0 -1
- package/src/styles/components/form/DshDefaultSearch.less +41 -9
- package/src/styles/components/form/DshForm.less +13 -0
- package/src/styles/components/index.less +51 -43
- package/src/styles/components/list/BriTable.less +9 -9
- package/src/styles/components/list/{ZTree.less → BriTree.less} +11 -7
- package/src/styles/components/list/DshBox/DshTable.less +11 -0
- package/src/styles/components/other/BriCode.less +5 -0
- package/src/styles/components/other/{ZCollapseTree.less → BriCollapseTree.less} +2 -2
- package/src/styles/components/other/BriIframe.less +16 -0
- package/src/styles/components/other/{ZLoading.less → BriLoading.less} +3 -3
- package/src/styles/components/other/DshAvatar.less +64 -0
- package/src/styles/components/other/DshBtnModal.less +3 -0
- package/src/styles/components/other/DshColorPanel.less +40 -0
- package/src/styles/components/other/DshEditPanel.less +2 -2
- package/src/styles/components/small/BriButton.less +35 -2
- package/src/styles/components/small/{Ctooltip.less → BriTooltip.less} +2 -1
- package/src/styles/components/small/DshCrumbs.less +0 -0
- package/src/styles/components/small/DshDropdown.less +5 -3
- package/src/styles/components/small/DshIcons.less +7 -0
- package/src/styles/components/small/DshTags.less +17 -0
- package/src/styles/components/unit/DshFormItem.less +5 -6
- package/src/styles/components/unit/DshUnit.less +5 -0
- package/src/utils/table.js +8 -0
- package/src/components/controls/controlShow.vue +0 -44
- package/src/components/other/YNoPermission.vue +0 -45
- package/src/components/small/BriTree.vue +0 -42
- package/src/styles/components/controls/BriUpload.less +0 -436
- package/src/styles/components/controls/DshCascader.less +0 -95
- package/src/styles/components/controls/DshNumber.less +0 -51
- package/src/styles/components/controls/controlShow.less +0 -12
- package/src/styles/components/other/ZCode.less +0 -1
- /package/src/{styles/components/other → abolish}/BriTransfer.less +0 -0
- /package/src/{components/other → abolish}/BriTransfer.vue +0 -0
- /package/src/{styles/components/small → abolish}/BriTree.less +0 -0
- /package/src/components/{small → list}/DshPage.vue +0 -0
- /package/src/components/other/{ZGantt.vue → BriGantt.vue} +0 -0
- /package/src/components/other/{menu/DshMenu.vue → DshMenu.vue} +0 -0
- /package/src/components/other/{menu/DshMenuNav.vue → DshMenuNav.vue} +0 -0
- /package/src/styles/components/controls/{BriInputs.less → base/BriInputs.less} +0 -0
- /package/src/styles/components/controls/{InfoCascader.less → base/DshCascader/InfoCascader.less} +0 -0
- /package/src/styles/components/controls/{DshCoordinates.less → base/DshCoordinates.less} +0 -0
- /package/src/styles/components/controls/{DshDaterange.less → base/DshDaterange.less} +0 -0
- /package/src/styles/components/controls/{DshDivider.less → base/DshDivider.less} +0 -0
- /package/src/styles/components/controls/{DshNumberange.less → base/DshNumberange.less} +0 -0
- /package/src/styles/components/controls/{DshPackage.less → senior/DshPackage.less} +0 -0
- /package/src/styles/components/controls/{cascaderTable.less → senior/cascaderTable.less} +0 -0
- /package/src/styles/components/controls/{flatTable.less → senior/flatTable.less} +0 -0
- /package/src/styles/components/{small → list}/DshPage.less +0 -0
- /package/src/styles/components/other/{ZGantt.less → BriGantt.less} +0 -0
- /package/src/{components/controls/base/BriUpload/upload-listItem.vue → styles/components/small/DshCrumbItem.less} +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// 列表样式
|
|
2
|
+
.uploadList {
|
|
3
|
+
width: 100%;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
|
|
6
|
+
// 普通文件
|
|
7
|
+
&-old {
|
|
8
|
+
margin: 16px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-nodata {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
text-align: center;
|
|
15
|
+
line-height: 120px;
|
|
16
|
+
color: @placeholderColor;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
|
|
19
|
+
span {
|
|
20
|
+
margin-left: 5px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-list {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: nowrap;
|
|
27
|
+
|
|
28
|
+
.item {
|
|
29
|
+
flex: 0 0 120px;
|
|
30
|
+
height: 120px;
|
|
31
|
+
margin-right: 10px;
|
|
32
|
+
border-radius: @borderRadius;
|
|
33
|
+
background: #f4f5fa;
|
|
34
|
+
text-align: center;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
position: relative;
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
.item-action {
|
|
43
|
+
display: flex !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-show {
|
|
48
|
+
display: flex;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
flex: 2;
|
|
53
|
+
min-height: 50px;
|
|
54
|
+
|
|
55
|
+
img {
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
max-height: 100%;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-name {
|
|
62
|
+
flex: 1;
|
|
63
|
+
display: flex;
|
|
64
|
+
max-height: 32px;
|
|
65
|
+
|
|
66
|
+
&-title {
|
|
67
|
+
padding: 0 8px;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
color: @themeColor;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-action {
|
|
76
|
+
background-color: @placeholderColor;
|
|
77
|
+
display: none !important;
|
|
78
|
+
position: absolute;
|
|
79
|
+
right: 0px;
|
|
80
|
+
top: 0px;
|
|
81
|
+
left: 0px;
|
|
82
|
+
bottom: 0px;
|
|
83
|
+
align-items: center;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
|
|
86
|
+
&-icon {
|
|
87
|
+
width: 22px;
|
|
88
|
+
height: 22px;
|
|
89
|
+
line-height: 22px;
|
|
90
|
+
color: #fff;
|
|
91
|
+
margin-left: 2px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 内部表格inline模式
|
|
98
|
+
&-inline {
|
|
99
|
+
height: 30px;
|
|
100
|
+
line-height: 30px;
|
|
101
|
+
|
|
102
|
+
&-list {
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-wrap: nowrap;
|
|
107
|
+
overflow-x: auto;
|
|
108
|
+
overflow-y: hidden;
|
|
109
|
+
padding-left: 3px;
|
|
110
|
+
|
|
111
|
+
.item {
|
|
112
|
+
flex: 0 0 48px;
|
|
113
|
+
background: #f4f5fa;
|
|
114
|
+
margin-right: 3px;
|
|
115
|
+
position: relative;
|
|
116
|
+
border-radius: @borderRadius;
|
|
117
|
+
|
|
118
|
+
&:hover {
|
|
119
|
+
.item-action {
|
|
120
|
+
display: flex !important;
|
|
121
|
+
animation: toTop 0.1s;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
img {
|
|
126
|
+
max-width: 100%;
|
|
127
|
+
max-height: 100%;
|
|
128
|
+
margin: auto;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&-action {
|
|
132
|
+
display: none !important;
|
|
133
|
+
position: absolute;
|
|
134
|
+
left: 0;
|
|
135
|
+
right: 0;
|
|
136
|
+
top: 0;
|
|
137
|
+
bottom: 0;
|
|
138
|
+
background-color: @placeholderColor;
|
|
139
|
+
color: #fff;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
i {
|
|
143
|
+
margin: 0px;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@keyframes toTop {
|
|
148
|
+
from {
|
|
149
|
+
top: 100%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
to {
|
|
153
|
+
top: 0;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&-nodata {
|
|
160
|
+
padding-left: 7px;
|
|
161
|
+
color: @placeholderColor;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
.DshCascader {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
#multiple-content () {
|
|
5
|
+
.hasdata {
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
padding: 0px 7px;
|
|
9
|
+
.bri-scrollbar3();
|
|
10
|
+
overflow-y: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.nodata {
|
|
14
|
+
padding: 0px 7px;
|
|
15
|
+
line-height: 28px;
|
|
16
|
+
color: @placeholderColor;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// 多选类型 且独自一行时
|
|
20
|
+
&-row {
|
|
21
|
+
height: 68px;
|
|
22
|
+
|
|
23
|
+
.hasdata {
|
|
24
|
+
overflow-y: auto;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// 多选
|
|
32
|
+
&-multiple {
|
|
33
|
+
width: 100%;
|
|
34
|
+
|
|
35
|
+
&-input {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 32px;
|
|
38
|
+
#multiple-content();
|
|
39
|
+
|
|
40
|
+
.hasdata {
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
.nodata {
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// 多选类型 且独自一行时
|
|
48
|
+
&-row {
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// 单选 -新模式
|
|
55
|
+
&-custom {
|
|
56
|
+
width: 100%;
|
|
57
|
+
|
|
58
|
+
&-input {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 32px;
|
|
61
|
+
padding: 0px 7px;
|
|
62
|
+
.dsh-flex-row-between-center();
|
|
63
|
+
|
|
64
|
+
.text {
|
|
65
|
+
.dsh-ellipsis();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.clear {
|
|
69
|
+
margin-left: 5px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// 单选 -默认模式
|
|
75
|
+
&-single {
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// 查看
|
|
80
|
+
&-show {
|
|
81
|
+
&-multiple {
|
|
82
|
+
#multiple-content();
|
|
83
|
+
|
|
84
|
+
.hasdata {
|
|
85
|
+
&-unit {
|
|
86
|
+
.dsh-ellipsis();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.nodata {
|
|
90
|
+
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// 多选类型 且独自一行时
|
|
94
|
+
&-row {
|
|
95
|
+
height: auto;
|
|
96
|
+
min-height: 32px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&-single {
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ivu-cascader {
|
|
107
|
+
&-rel {
|
|
108
|
+
display: block;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-label {
|
|
112
|
+
padding-right: 24px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&-transfer {
|
|
116
|
+
max-height: 400px !important;
|
|
117
|
+
|
|
118
|
+
.ivu-cascader-menu {
|
|
119
|
+
max-height: 400px;
|
|
120
|
+
height: auto;
|
|
121
|
+
max-width: 300px;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -145,15 +145,16 @@
|
|
|
145
145
|
line-height: 20px;
|
|
146
146
|
padding: 2px 8px;
|
|
147
147
|
border-radius: 4px;
|
|
148
|
-
margin-right:
|
|
148
|
+
margin-right: 8px;
|
|
149
|
+
display: inline-flex;
|
|
149
150
|
|
|
150
151
|
&:last-of-type {
|
|
151
152
|
margin-right: 0px;
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
&-wrapper {
|
|
155
|
-
display: flex;
|
|
156
156
|
min-height: 32px;
|
|
157
157
|
padding: 4px 0;
|
|
158
|
+
.dsh-ellipsis();
|
|
158
159
|
}
|
|
159
160
|
}
|
|
@@ -1,19 +1,31 @@
|
|
|
1
|
-
.DshEditor {
|
|
2
|
-
|
|
1
|
+
.DshEditor {
|
|
2
|
+
width: 100%;
|
|
3
|
+
#show {
|
|
4
|
+
p {
|
|
5
|
+
font-size: 14px !important;
|
|
6
|
+
}
|
|
3
7
|
|
|
4
|
-
|
|
8
|
+
li {
|
|
9
|
+
margin-left: 20px;
|
|
10
|
+
}
|
|
5
11
|
|
|
12
|
+
ul li {
|
|
13
|
+
list-style: disc;
|
|
14
|
+
}
|
|
6
15
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
|
|
11
|
-
&:hover {
|
|
12
|
-
border-color: @theme-hover;
|
|
16
|
+
ol li {
|
|
17
|
+
list-style: auto;
|
|
13
18
|
}
|
|
19
|
+
}
|
|
14
20
|
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
&-edit {
|
|
22
|
+
#show();
|
|
23
|
+
height: 100%;
|
|
24
|
+
min-height: 32px;
|
|
25
|
+
padding: 4px 7px;
|
|
26
|
+
border-radius: @borderRadius;
|
|
27
|
+
&.control-notext {
|
|
28
|
+
line-height: 24px;
|
|
17
29
|
}
|
|
18
30
|
}
|
|
19
31
|
|
|
@@ -42,46 +54,12 @@
|
|
|
42
54
|
padding: 10px;
|
|
43
55
|
}
|
|
44
56
|
}
|
|
45
|
-
|
|
57
|
+
|
|
46
58
|
&-unit {
|
|
47
59
|
.unit-show();
|
|
48
|
-
display: inline-block;
|
|
49
|
-
|
|
50
|
-
&-nodata {
|
|
51
|
-
.control-notext();
|
|
52
|
-
}
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
&-show {
|
|
56
|
-
|
|
57
|
-
min-height: 32px;
|
|
58
|
-
padding: 4px 10px;
|
|
59
|
-
border-radius: @borderRadius;
|
|
60
|
-
|
|
61
|
-
&-disabled {
|
|
62
|
-
.control-disabled();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-nodata {
|
|
66
|
-
padding-left: 0px;
|
|
67
|
-
border: none;
|
|
68
|
-
color: @grey3;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
p {
|
|
72
|
-
font-size: 14px !important;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
li {
|
|
76
|
-
margin-left: 20px;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
ul li {
|
|
80
|
-
list-style: disc;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
ol li {
|
|
84
|
-
list-style: auto;
|
|
85
|
-
}
|
|
63
|
+
#show();
|
|
86
64
|
}
|
|
87
65
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
.DshInput {
|
|
2
|
-
|
|
2
|
+
&-edit {
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&-unit {}
|
|
3
7
|
|
|
4
8
|
&-show {
|
|
5
9
|
&-textarea {
|
|
@@ -21,5 +25,9 @@
|
|
|
21
25
|
&:hover {
|
|
22
26
|
border-color: @border-disabled;
|
|
23
27
|
}
|
|
28
|
+
&::-webkit-input-placeholder {
|
|
29
|
+
.control-disPlaceholder();
|
|
30
|
+
}
|
|
24
31
|
}
|
|
32
|
+
|
|
25
33
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.DshNumber {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
&-edit {
|
|
5
|
+
&-suffix {
|
|
6
|
+
min-width: 32px;
|
|
7
|
+
border-left: 1px solid @borderColor;
|
|
8
|
+
background-color: #F0F0F0;
|
|
9
|
+
text-align: center;
|
|
10
|
+
color: @textColor;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-unit {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-show {
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ivu-input-number {
|
|
24
|
+
width: 100%;
|
|
25
|
+
|
|
26
|
+
&-disabled {
|
|
27
|
+
.control-disabled();
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
border-color: @border-disabled;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.DshNumber-suffix {
|
|
34
|
+
color: @textColor-disabled;
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
border-color: transparent;
|
|
37
|
+
}
|
|
38
|
+
.ivu-input-number-input {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
background: @inputBg-disabled;
|
|
41
|
+
color: @textColor;
|
|
42
|
+
&::-webkit-input-placeholder {
|
|
43
|
+
.control-disPlaceholder();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-handler {
|
|
49
|
+
&-wrap {
|
|
50
|
+
// opacity: 1;
|
|
51
|
+
border-left: none;
|
|
52
|
+
}
|
|
53
|
+
&-down {
|
|
54
|
+
border: none;
|
|
55
|
+
}
|
|
56
|
+
&:hover {
|
|
57
|
+
background-color: @hoverBg;
|
|
58
|
+
|
|
59
|
+
.ivu-input-number-handler-down-inner,
|
|
60
|
+
.ivu-input-number-handler-up-inner {
|
|
61
|
+
color: @textColor;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&-down-inner, &-up-inner {
|
|
65
|
+
color: @contentColor;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -172,3 +172,14 @@
|
|
|
172
172
|
-webkit-text-fill-color: @textColor-disabled;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
+
|
|
176
|
+
.ivu-select-disabled .ivu-select-selection {
|
|
177
|
+
.control-disabled();
|
|
178
|
+
&:hover {
|
|
179
|
+
border-color: transparent;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
.ivu-select-input[disabled] {
|
|
183
|
+
color: @textColor;
|
|
184
|
+
-webkit-text-fill-color: @textColor-disabled;
|
|
185
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.DshSwitch {
|
|
2
|
+
width: 100%;
|
|
3
|
+
|
|
4
|
+
&-show {
|
|
5
|
+
height: 24px;
|
|
6
|
+
padding: 2px 8px;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
line-height: 20px;
|
|
9
|
+
flex-grow: 1;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: flex-start;
|
|
12
|
+
|
|
13
|
+
&-name {
|
|
14
|
+
.dsh-ellipsis();
|
|
15
|
+
display: flex;
|
|
16
|
+
min-height: 32px;
|
|
17
|
+
padding: 4px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.ivu-switch {
|
|
22
|
+
width: 50px;
|
|
23
|
+
}
|
|
24
|
+
.ivu-switch-checked:after {
|
|
25
|
+
left: 29px;
|
|
26
|
+
}
|
|
27
|
+
.ivu-switch-inner {
|
|
28
|
+
color: #fff;
|
|
29
|
+
font-size: 12px;
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: auto;
|
|
32
|
+
right: 4px;
|
|
33
|
+
}
|
|
34
|
+
.ivu-switch-checked .ivu-switch-inner {
|
|
35
|
+
left: 3px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
.BriLabels {
|
|
2
|
-
|
|
3
|
-
width: 100%;
|
|
2
|
+
.control-wrap();
|
|
4
3
|
|
|
5
4
|
&-dropdown {
|
|
6
5
|
width: 100%;
|
|
7
6
|
|
|
8
7
|
&-show {
|
|
8
|
+
.control-edit();
|
|
9
|
+
height: 32px;
|
|
9
10
|
display: flex;
|
|
10
11
|
justify-content: space-between;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
border: 1px solid @borderColor;
|
|
14
|
-
padding-left: 5px;
|
|
12
|
+
padding-left: 4px;
|
|
13
|
+
|
|
15
14
|
|
|
16
15
|
&-list {
|
|
17
16
|
display: flex;
|
|
18
17
|
align-items: center;
|
|
18
|
+
width: calc(100% - 14px);
|
|
19
|
+
|
|
20
|
+
&-show {
|
|
21
|
+
width: 100%;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
.bri-scrollbar3();
|
|
24
|
+
overflow-y: hidden;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-placeholder {
|
|
28
|
+
.control-placeholder();
|
|
29
|
+
}
|
|
19
30
|
}
|
|
20
31
|
|
|
21
32
|
&-active {
|
|
@@ -23,6 +34,17 @@
|
|
|
23
34
|
box-shadow: 0 0 0 2px rgba(61, 184, 197, 0.2);
|
|
24
35
|
}
|
|
25
36
|
|
|
37
|
+
&-disabled {
|
|
38
|
+
border: 1px solid @border-disabled;
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
background: @borderColor;
|
|
41
|
+
cursor: not-allowed;
|
|
42
|
+
color: @textColor-disabled !important;
|
|
43
|
+
.BriLabels-dropdown-show-list-placeholder {
|
|
44
|
+
.control-disPlaceholder();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
26
48
|
&-arrow {
|
|
27
49
|
display: flex;
|
|
28
50
|
align-items: center;
|
|
@@ -80,7 +102,7 @@
|
|
|
80
102
|
}
|
|
81
103
|
|
|
82
104
|
&-add {
|
|
83
|
-
width:
|
|
105
|
+
width: 100%;
|
|
84
106
|
margin-bottom: 8px;
|
|
85
107
|
}
|
|
86
108
|
}
|
|
@@ -115,7 +137,6 @@
|
|
|
115
137
|
&-item {
|
|
116
138
|
.unit-show();
|
|
117
139
|
.dsh-ellipsis();
|
|
118
|
-
display: inline-flex;
|
|
119
140
|
max-width: 100%;
|
|
120
141
|
height: fit-content;
|
|
121
142
|
padding: 0 8px;
|
|
@@ -127,9 +148,5 @@
|
|
|
127
148
|
border-radius: @borderRadius;
|
|
128
149
|
margin-right: 8px;
|
|
129
150
|
}
|
|
130
|
-
|
|
131
|
-
&-nodata {
|
|
132
|
-
color: @textColor;
|
|
133
|
-
}
|
|
134
151
|
}
|
|
135
152
|
}
|