bri-components 1.1.4 → 1.1.5
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/bri-components.min.js +5 -5
- package/package.json +1 -1
- package/src/components/controls/base/DshCascader/DshCascader.vue +199 -160
- package/src/components/controls/base/DshCascader/InfoCascader.vue +11 -9
- package/src/components/controls/base/DshCoordinates.vue +118 -115
- package/src/components/controls/controlMixin.js +26 -6
- package/src/components/list/BriTable.vue +0 -1
- package/src/components/other/BriSvg.vue +28 -0
- package/src/components/other/DshEditPanel.vue +33 -11
- package/src/components/other/ZLoading.vue +24 -12
- package/src/index.js +6 -5
- package/src/styles/components/controls/DshCascader.less +66 -50
- package/src/styles/components/index.less +0 -1
- package/src/styles/components/other/ZLoading.less +5 -7
- package/src/styles/components/small/DshDropdown.less +1 -7
- package/src/components/small/DshControlDefine.vue +0 -115
- package/src/styles/components/small/DshControlDefine.less +0 -40
|
@@ -1,79 +1,95 @@
|
|
|
1
1
|
.DshCascader {
|
|
2
2
|
width: 100%;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
padding: 0 10px;
|
|
7
|
-
height: 32px;
|
|
8
|
-
line-height: 32px;
|
|
9
|
-
border: 1px solid @borderColor;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
|
|
13
|
-
&-val {
|
|
4
|
+
#input-content () {
|
|
5
|
+
.hasdata {
|
|
14
6
|
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
|
+
padding: 2px 8px;
|
|
15
9
|
display: flex;
|
|
16
10
|
justify-content: space-between;
|
|
17
11
|
align-items: center;
|
|
12
|
+
.bri-scrollbar3();
|
|
13
|
+
overflow-y: hidden;
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
&-disabled {
|
|
23
|
-
color: @borderColor;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-clear {
|
|
28
|
-
margin-left: 5px;
|
|
15
|
+
.DshTags {
|
|
16
|
+
display: flex;
|
|
17
|
+
white-space: nowrap;
|
|
29
18
|
}
|
|
30
19
|
}
|
|
31
20
|
|
|
32
|
-
&-
|
|
21
|
+
&-nodata {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
padding: 2px 8px;
|
|
33
24
|
color: @placeholderColor;
|
|
34
|
-
padding: 0 7px;
|
|
35
25
|
}
|
|
36
26
|
}
|
|
37
27
|
|
|
38
|
-
&-
|
|
39
|
-
|
|
40
|
-
&-wrap {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
.dsh-flex-col-start-start();
|
|
28
|
+
&-multiple {
|
|
29
|
+
width: 100%;
|
|
44
30
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
overflow: auto;
|
|
31
|
+
&-input {
|
|
32
|
+
#input-content();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
50
35
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
36
|
+
&-custom {
|
|
37
|
+
&-input {
|
|
38
|
+
#input-content();
|
|
39
|
+
|
|
40
|
+
.hasdata {
|
|
41
|
+
&-text {
|
|
42
|
+
.dsh-ellipsis();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-clear {
|
|
46
|
+
margin-left: 5px;
|
|
56
47
|
}
|
|
57
48
|
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-single {
|
|
53
|
+
width: 100%;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-show {
|
|
57
|
+
#input-content();
|
|
58
|
+
|
|
59
|
+
.hasdata {
|
|
60
|
+
&-multiple {}
|
|
61
|
+
|
|
62
|
+
&-single {
|
|
63
|
+
.dsh-ellipsis();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
58
67
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
padding: 10px;
|
|
68
|
+
&-multiplerow {
|
|
69
|
+
height: 70px;
|
|
62
70
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
.hasdata {
|
|
72
|
+
overflow-y: auto;
|
|
73
|
+
|
|
74
|
+
.DshTags {
|
|
75
|
+
flex-wrap: wrap;
|
|
66
76
|
}
|
|
67
77
|
}
|
|
68
78
|
}
|
|
69
79
|
}
|
|
70
80
|
|
|
71
|
-
.ivu-cascader
|
|
72
|
-
|
|
81
|
+
.ivu-cascader {
|
|
82
|
+
&-label {
|
|
83
|
+
padding-right: 24px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&-transfer {
|
|
87
|
+
max-height: 400px !important;
|
|
73
88
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
89
|
+
.ivu-cascader-menu {
|
|
90
|
+
max-height: 400px;
|
|
91
|
+
height: auto;
|
|
92
|
+
max-width: 300px;
|
|
93
|
+
}
|
|
78
94
|
}
|
|
79
95
|
}
|
|
@@ -27,13 +27,7 @@
|
|
|
27
27
|
.ZLoading-main {
|
|
28
28
|
width: 100%;
|
|
29
29
|
height: 100%;
|
|
30
|
-
.dsh-flex();
|
|
31
|
-
|
|
32
|
-
&-content {
|
|
33
|
-
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
align-items: center;
|
|
36
|
-
}
|
|
30
|
+
.dsh-flex-col();
|
|
37
31
|
|
|
38
32
|
&-loading {
|
|
39
33
|
border-radius: 50%;
|
|
@@ -47,6 +41,10 @@
|
|
|
47
41
|
margin-top: 8px;
|
|
48
42
|
color: @themeColor;
|
|
49
43
|
}
|
|
44
|
+
&-noText {
|
|
45
|
+
color: @textColor;
|
|
46
|
+
margin-top: 16px;
|
|
47
|
+
}
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
}
|
|
@@ -42,12 +42,6 @@
|
|
|
42
42
|
|
|
43
43
|
.ivu-dropdown-item-divided:before {
|
|
44
44
|
margin: 0px;
|
|
45
|
-
// content: '';
|
|
46
|
-
// height: 5px;
|
|
47
|
-
// display: block;
|
|
48
|
-
// background-color: #fff;
|
|
49
|
-
// position: relative;
|
|
50
|
-
// top: -7px;
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
47
|
|
|
@@ -58,7 +52,7 @@
|
|
|
58
52
|
}
|
|
59
53
|
}
|
|
60
54
|
.ivu-select-dropdown {
|
|
61
|
-
border: 0.5px solid
|
|
55
|
+
border: 0.5px solid #e5e5e5;
|
|
62
56
|
box-shadow: 0 3px 14px 2px rgba(0,0,0,0.05), 0 8px 10px 1px rgba(0,0,0,0.06), 0 5px 5px -3px rgba(0,0,0,0.1);
|
|
63
57
|
padding: 8px;
|
|
64
58
|
max-height: 500px
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="{
|
|
4
|
-
'dsh-control-define': true,
|
|
5
|
-
'dsh-control-define-multiplerow': selfPropsObj._multiplerow,
|
|
6
|
-
'dsh-control-define-disabled': !finalCanEdit,
|
|
7
|
-
'dsh-control-define-show': !canEdit
|
|
8
|
-
}"
|
|
9
|
-
@click="clickInput"
|
|
10
|
-
>
|
|
11
|
-
<!-- 有值 -->
|
|
12
|
-
<template v-if="Array.isArray(val) ? !!val.length : !!val">
|
|
13
|
-
<div
|
|
14
|
-
v-if="Array.isArray(val)"
|
|
15
|
-
class="dsh-control-define-text"
|
|
16
|
-
>
|
|
17
|
-
<dsh-tags
|
|
18
|
-
:list="val"
|
|
19
|
-
@delete="deleteTag"
|
|
20
|
-
:propsObj="{
|
|
21
|
-
closable: canEdit && propsObj.canEdit,
|
|
22
|
-
size: selfPropsObj._multiplerow ? 'medium' : 'default'
|
|
23
|
-
}"
|
|
24
|
-
></dsh-tags>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div
|
|
28
|
-
v-else
|
|
29
|
-
class="dsh-control-define-text"
|
|
30
|
-
>
|
|
31
|
-
<span class="dsh-ellipsis">{{ val }}</span>
|
|
32
|
-
<Icon
|
|
33
|
-
v-if="canEdit"
|
|
34
|
-
type="md-close"
|
|
35
|
-
@click.stop="clickClear"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<!-- 无值 -->
|
|
41
|
-
<span
|
|
42
|
-
v-else
|
|
43
|
-
class="dsh-control-define-nodata"
|
|
44
|
-
>{{ selfPropsObj._placeholder }}</span>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
export default {
|
|
50
|
-
name: "DshControlDefine",
|
|
51
|
-
props: {
|
|
52
|
-
canEdit: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: true
|
|
55
|
-
},
|
|
56
|
-
finalCanEdit: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: true
|
|
59
|
-
},
|
|
60
|
-
value: {
|
|
61
|
-
type: [String, Array],
|
|
62
|
-
default () {
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
propsObj: {
|
|
67
|
-
type: Object,
|
|
68
|
-
default () {
|
|
69
|
-
return {};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
data () {
|
|
74
|
-
return {};
|
|
75
|
-
},
|
|
76
|
-
computed: {
|
|
77
|
-
val: {
|
|
78
|
-
get () {
|
|
79
|
-
return this.value;
|
|
80
|
-
},
|
|
81
|
-
set (val) {
|
|
82
|
-
this.$emit("input", val);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
selfPropsObj () {
|
|
87
|
-
return {
|
|
88
|
-
_multiplerow: true,
|
|
89
|
-
...this.propsObj
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
created () {},
|
|
94
|
-
methods: {
|
|
95
|
-
clickInput (e) {
|
|
96
|
-
if (!this.canEdit) {
|
|
97
|
-
e.stopPropagation();
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
// 删除
|
|
102
|
-
deleteTag (item, index, ...params) {
|
|
103
|
-
this.val = [...this.val];
|
|
104
|
-
|
|
105
|
-
this.$emit("delete", item, index, ...params);
|
|
106
|
-
},
|
|
107
|
-
// 清除文字
|
|
108
|
-
clickClear () {
|
|
109
|
-
this.val = "";
|
|
110
|
-
|
|
111
|
-
this.$emit("delete");
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
</script>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
.dsh-control-define {
|
|
2
|
-
.control-edit();
|
|
3
|
-
|
|
4
|
-
&-multiplerow {
|
|
5
|
-
height: 70px;
|
|
6
|
-
.dsh-control-define-text {
|
|
7
|
-
overflow-y: auto;
|
|
8
|
-
.DshTags {
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-disabled {
|
|
15
|
-
.control-disabled();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-show {
|
|
19
|
-
.control-show();
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&-text {
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
display: flex;
|
|
26
|
-
padding: 2px 8px;
|
|
27
|
-
.bri-scrollbar3();
|
|
28
|
-
overflow-y: hidden;
|
|
29
|
-
|
|
30
|
-
.DshTags {
|
|
31
|
-
display: flex;
|
|
32
|
-
white-space: nowrap;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&-nodata {
|
|
37
|
-
.control-notext();
|
|
38
|
-
padding: 0 7px;
|
|
39
|
-
}
|
|
40
|
-
}
|