bri-components 1.2.48 → 1.2.49
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/bri-components.min.js +16 -16
- package/package.json +1 -1
- package/src/components/controls/base/DshEditor.vue +79 -1
- package/src/components/controls/base/DshSwitch.vue +10 -0
- package/src/components/controls/controlMixin.js +8 -9
- package/src/components/controls/senior/BriLabels.vue +1 -1
- package/src/components/controls/special/DshBack.vue +6 -0
- package/src/components/controls/special/DshUndeveloped.vue +6 -0
- package/src/styles/components/index.less +0 -5
- package/src/styles/{control.less → global/control.less} +3 -2
- package/src/styles/global/global.less +2 -0
- package/src/styles/index.less +0 -1
- package/src/utils/table.js +1 -0
- package/src/styles/components/controls/base/DshEditor.less +0 -75
- package/src/styles/components/controls/base/DshSwitch.less +0 -7
- package/src/styles/components/controls/special/DshBack.less +0 -3
- package/src/styles/components/controls/special/DshUndeveloped.less +0 -3
package/package.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
'DshEditor-unit': !$isEmptyData(curVal)
|
|
46
46
|
}"
|
|
47
47
|
>
|
|
48
|
-
{{ $isEmptyData(curVal) ? emptyShowVal : "
|
|
48
|
+
{{ $isEmptyData(curVal) ? emptyShowVal : "富文本达成纳斯达克了城市的女你说的 v 是对女生看到 v 你说的 v 说" }}
|
|
49
49
|
</div>
|
|
50
50
|
|
|
51
51
|
<!-- 查看页里 的查看 -->
|
|
@@ -187,3 +187,81 @@
|
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
</script>
|
|
190
|
+
|
|
191
|
+
<style lang="less" scoped>
|
|
192
|
+
.DshEditor {
|
|
193
|
+
width: 100%;
|
|
194
|
+
|
|
195
|
+
#show {
|
|
196
|
+
white-space: pre-wrap;
|
|
197
|
+
word-break: break-word;
|
|
198
|
+
|
|
199
|
+
p {
|
|
200
|
+
font-size: 14px !important;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
li {
|
|
204
|
+
margin-left: 20px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
ul li {
|
|
208
|
+
list-style: disc;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
ol li {
|
|
212
|
+
list-style: auto;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&-edit {
|
|
217
|
+
#show();
|
|
218
|
+
height: 100%;
|
|
219
|
+
min-height: 32px;
|
|
220
|
+
padding: 4px 7px;
|
|
221
|
+
border-radius: @borderRadius;
|
|
222
|
+
|
|
223
|
+
&.bri-control-nodata {
|
|
224
|
+
line-height: 24px;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&-wrap {
|
|
229
|
+
border: 1px solid @themeColor;
|
|
230
|
+
border-radius: 4px;
|
|
231
|
+
background: #fff;
|
|
232
|
+
|
|
233
|
+
&-toolbar {
|
|
234
|
+
margin-top: 5px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&-text {
|
|
238
|
+
min-height: 130px;
|
|
239
|
+
|
|
240
|
+
ul li {
|
|
241
|
+
list-style: disc;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
ol li {
|
|
245
|
+
list-style: auto;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&-btn {
|
|
250
|
+
text-align: right;
|
|
251
|
+
padding: 10px;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&-unit {
|
|
256
|
+
.bri-unit-show();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&-show {
|
|
260
|
+
#show();
|
|
261
|
+
|
|
262
|
+
&-nodata {
|
|
263
|
+
.bri-control-nodata();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
</style>
|
|
@@ -65,7 +65,9 @@ export default {
|
|
|
65
65
|
: "暂无内容";
|
|
66
66
|
},
|
|
67
67
|
showVal () {
|
|
68
|
-
return this.$isEmptyData(this.curVal)
|
|
68
|
+
return this.$isEmptyData(this.curVal)
|
|
69
|
+
? this.emptyShowVal
|
|
70
|
+
: this.curVal;
|
|
69
71
|
},
|
|
70
72
|
|
|
71
73
|
controlKey () {
|
|
@@ -121,21 +123,18 @@ export default {
|
|
|
121
123
|
// },
|
|
122
124
|
|
|
123
125
|
/* 部分条件下 才使用的属性 */
|
|
124
|
-
isCore () {
|
|
125
|
-
return !!this.propsObj.isCore;
|
|
126
|
-
},
|
|
127
126
|
isInTable () {
|
|
128
127
|
return !!this.propsObj.isInTable;
|
|
129
128
|
},
|
|
130
129
|
isUnitUpdate () {
|
|
131
|
-
return
|
|
130
|
+
return this.isInTable && !!this.canEdit;
|
|
132
131
|
},
|
|
133
132
|
isUnitShow () {
|
|
134
|
-
return
|
|
135
|
-
},
|
|
136
|
-
isShare () {
|
|
137
|
-
return !!this.propsObj.isShare;
|
|
133
|
+
return this.isInTable && !this.canEdit;
|
|
138
134
|
},
|
|
135
|
+
// isShare () {
|
|
136
|
+
// return !!this.propsObj.isShare;
|
|
137
|
+
// },
|
|
139
138
|
/* 部分控件下 才使用的属性 */
|
|
140
139
|
compKey () {
|
|
141
140
|
return this.propsObj.compKey;
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
@import "./controls/base/BriInputs.less";
|
|
28
28
|
@import "./controls/base/DshNumber.less";
|
|
29
29
|
@import "./controls/base/DshNumberange.less";
|
|
30
|
-
@import "./controls/base/DshSwitch.less";
|
|
31
30
|
@import "./controls/base/DshSelect.less";
|
|
32
31
|
@import "./controls/base/DshCheckbox.less";
|
|
33
32
|
@import "./controls/base/DshDate.less";
|
|
@@ -35,7 +34,6 @@
|
|
|
35
34
|
@import "./controls/base/DshCascader/index.less";
|
|
36
35
|
@import "./controls/base/BriUpload/index.less";
|
|
37
36
|
@import "./controls/base/DshCoordinates.less";
|
|
38
|
-
@import "./controls/base/DshEditor.less";
|
|
39
37
|
@import "./controls/base/DshDivider.less";
|
|
40
38
|
|
|
41
39
|
@import "./controls/senior/selectUsers/index.less";
|
|
@@ -45,9 +43,6 @@
|
|
|
45
43
|
@import "./controls/senior/BriLabels.less";
|
|
46
44
|
@import "./controls/senior/DshPackage.less";
|
|
47
45
|
|
|
48
|
-
@import "./controls/special/DshBack.less";
|
|
49
|
-
@import "./controls/special/DshUndeveloped.less";
|
|
50
|
-
|
|
51
46
|
// other
|
|
52
47
|
@import "./other/BriAvatar.less";
|
|
53
48
|
@import "./other/BriIframe.less";
|
|
@@ -54,8 +54,9 @@
|
|
|
54
54
|
|
|
55
55
|
// 单元格标签式展示 -非全部类型通用
|
|
56
56
|
.bri-unit-show () {
|
|
57
|
-
display: inline;
|
|
58
|
-
|
|
57
|
+
display: inline-block;
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
padding: 2px 6px 2px 8px;
|
|
59
60
|
border-radius: @borderRadius;
|
|
60
61
|
background-color: @theme-focus;
|
|
61
62
|
line-height: 24px;
|
package/src/styles/index.less
CHANGED
package/src/utils/table.js
CHANGED
|
@@ -13,6 +13,7 @@ const transformToColumns = function (form, {
|
|
|
13
13
|
field: col._key,
|
|
14
14
|
key: col._key,
|
|
15
15
|
align: col._align || typeData.align,
|
|
16
|
+
fixed: col._fixed,
|
|
16
17
|
width: col._width || typeData.width,
|
|
17
18
|
sortBy: headerFilter ? col._sortBy || typeData.sortBy : undefined,
|
|
18
19
|
renderHeaderCell: ({ row, column }, h) => {
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
.DshEditor {
|
|
2
|
-
width: 100%;
|
|
3
|
-
|
|
4
|
-
#show {
|
|
5
|
-
white-space: pre-wrap;
|
|
6
|
-
word-break: break-word;
|
|
7
|
-
|
|
8
|
-
p {
|
|
9
|
-
font-size: 14px !important;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
li {
|
|
13
|
-
margin-left: 20px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
ul li {
|
|
17
|
-
list-style: disc;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
ol li {
|
|
21
|
-
list-style: auto;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-edit {
|
|
26
|
-
#show();
|
|
27
|
-
height: 100%;
|
|
28
|
-
min-height: 32px;
|
|
29
|
-
padding: 4px 7px;
|
|
30
|
-
border-radius: @borderRadius;
|
|
31
|
-
|
|
32
|
-
&.bri-control-nodata {
|
|
33
|
-
line-height: 24px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-wrap {
|
|
38
|
-
border: 1px solid @themeColor;
|
|
39
|
-
border-radius: 4px;
|
|
40
|
-
background: #fff;
|
|
41
|
-
|
|
42
|
-
&-toolbar {
|
|
43
|
-
margin-top: 5px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&-text {
|
|
47
|
-
min-height: 130px;
|
|
48
|
-
|
|
49
|
-
ul li {
|
|
50
|
-
list-style: disc;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
ol li {
|
|
54
|
-
list-style: auto;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&-btn {
|
|
59
|
-
text-align: right;
|
|
60
|
-
padding: 10px;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&-unit {
|
|
65
|
-
.bri-unit-show();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&-show {
|
|
69
|
-
#show();
|
|
70
|
-
|
|
71
|
-
&-nodata {
|
|
72
|
-
.bri-control-nodata();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|