bri-components 1.2.47 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bri-components",
3
- "version": "1.2.47",
3
+ "version": "1.2.49",
4
4
  "author": "dengshanghui",
5
5
  "description": "a component lib for vue project",
6
6
  "main": "src/index.js",
@@ -37,7 +37,7 @@
37
37
  "jsonlint": "^1.6.3",
38
38
  "minio": "7.1.0",
39
39
  "stream": "^0.0.2",
40
- "view-design": "4.6.0",
40
+ "view-design": "4.7.0",
41
41
  "viewerjs": "^1.10.2",
42
42
  "vue-codemirror": "^4.0.6",
43
43
  "vue-cropperjs": "^4.1.0",
@@ -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>
@@ -58,3 +58,13 @@
58
58
  methods: {}
59
59
  };
60
60
  </script>
61
+
62
+ <style lang="less" scoped>
63
+ .DshSwitch {
64
+ width: 100%;
65
+
66
+ &-show {
67
+ .bri-unit-show();
68
+ }
69
+ }
70
+ </style>
@@ -65,7 +65,9 @@ export default {
65
65
  : "暂无内容";
66
66
  },
67
67
  showVal () {
68
- return this.$isEmptyData(this.curVal) ? this.emptyShowVal : 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 !!this.canEdit && this.isInTable;
130
+ return this.isInTable && !!this.canEdit;
132
131
  },
133
132
  isUnitShow () {
134
- return !this.canEdit && this.isInTable;
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;
@@ -171,7 +171,7 @@
171
171
  clickInput () {
172
172
  if (this.finalCanEdit) {
173
173
  if (!this.renderList) {
174
- if (this.isCore) {
174
+ if (this.controlKey === "_default") {
175
175
  this.listData = this.originLabels.map(item => {
176
176
  return {
177
177
  ...item,
@@ -34,3 +34,9 @@
34
34
  }
35
35
  };
36
36
  </script>
37
+
38
+ <style lang="less" scoped>
39
+ .DshBack {
40
+
41
+ }
42
+ </style>
@@ -33,3 +33,9 @@
33
33
  methods: {}
34
34
  };
35
35
  </script>
36
+
37
+ <style lang="less" scoped>
38
+ .DshUndeveloped {
39
+
40
+ }
41
+ </style>
@@ -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
- padding: 2px 8px;
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;
@@ -3,4 +3,6 @@
3
3
  @import "./box.less";
4
4
  @import "./text.less";
5
5
  @import "./flex.less";
6
+ @import "./control.less";
6
7
  @import "./base.less";
8
+
@@ -6,6 +6,5 @@
6
6
 
7
7
  // @import "./global/global.less"; // 全局公共css
8
8
  @import "./iconfont/iconfont.css"; // 字体图标样式
9
- @import "./control.less"; // 控件共用样式,不需混入方式使用,所以不用放global
10
9
 
11
10
  @import "./components/index.less"; // 组件样式
@@ -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
- }
@@ -1,7 +0,0 @@
1
- .DshSwitch {
2
- width: 100%;
3
-
4
- .DshSwitch-show {
5
- .bri-unit-show();
6
- }
7
- }
@@ -1,3 +0,0 @@
1
- .DshBack {
2
- width: 100%;
3
- }
@@ -1,3 +0,0 @@
1
- .DshUndeveloped {
2
- width: 100%;
3
- }