bri-components 1.1.4 → 1.1.6
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/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 +5 -5
- package/package.json +1 -1
- package/src/components/controls/base/DshCascader/DshCascader.vue +202 -160
- package/src/components/controls/base/DshCascader/InfoCascader.vue +11 -9
- package/src/components/controls/base/DshCoordinates.vue +118 -115
- package/src/components/controls/base/DshSelect.vue +8 -6
- package/src/components/controls/base/DshSwitch.vue +45 -87
- package/src/components/controls/controlMixin.js +26 -6
- package/src/components/form/DshDefaultSearch.vue +1 -1
- package/src/components/form/DshForm.vue +4 -0
- 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/components/small/BriButton.vue +2 -2
- package/src/components/small/DshButtons.vue +28 -2
- package/src/components/small/DshIcons.vue +1 -1
- package/src/components/unit/DshFormItem.vue +2 -2
- package/src/index.js +6 -5
- package/src/styles/common/control.less +11 -7
- package/src/styles/components/controls/base/DshCascader.less +110 -0
- package/src/styles/components/controls/base/DshSwitch.less +37 -0
- package/src/styles/components/form/DshDefaultSearch.less +41 -9
- package/src/styles/components/index.less +19 -19
- package/src/styles/components/other/ZLoading.less +5 -7
- package/src/styles/components/small/BriButton.less +34 -2
- package/src/styles/components/small/DshDropdown.less +1 -7
- package/src/styles/components/unit/DshFormItem.less +1 -2
- package/src/components/small/DshControlDefine.vue +0 -115
- package/src/styles/components/controls/DshCascader.less +0 -79
- package/src/styles/components/small/DshControlDefine.less +0 -40
- /package/src/styles/components/controls/{BriInputs.less → base/BriInputs.less} +0 -0
- /package/src/styles/components/controls/{BriUpload.less → base/BriUpload.less} +0 -0
- /package/src/styles/components/controls/{DshCheckbox.less → base/DshCheckbox.less} +0 -0
- /package/src/styles/components/controls/{DshCoordinates.less → base/DshCoordinates.less} +0 -0
- /package/src/styles/components/controls/{DshDate.less → base/DshDate.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/{DshEditor.less → base/DshEditor.less} +0 -0
- /package/src/styles/components/controls/{DshInput.less → base/DshInput.less} +0 -0
- /package/src/styles/components/controls/{DshNumber.less → base/DshNumber.less} +0 -0
- /package/src/styles/components/controls/{DshNumberange.less → base/DshNumberange.less} +0 -0
- /package/src/styles/components/controls/{DshSelect.less → base/DshSelect.less} +0 -0
- /package/src/styles/components/controls/{InfoCascader.less → base/InfoCascader.less} +0 -0
- /package/src/styles/components/controls/{BriLabels.less → senior/BriLabels.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
|
@@ -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,79 +0,0 @@
|
|
|
1
|
-
.DshCascader {
|
|
2
|
-
width: 100%;
|
|
3
|
-
|
|
4
|
-
&-single {
|
|
5
|
-
text-align: left;
|
|
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 {
|
|
14
|
-
width: 100%;
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
align-items: center;
|
|
18
|
-
|
|
19
|
-
&-text {
|
|
20
|
-
.dsh-ellipsis();
|
|
21
|
-
|
|
22
|
-
&-disabled {
|
|
23
|
-
color: @borderColor;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&-clear {
|
|
28
|
-
margin-left: 5px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&-placeholder {
|
|
33
|
-
color: @placeholderColor;
|
|
34
|
-
padding: 0 7px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&-modal {
|
|
39
|
-
|
|
40
|
-
&-wrap {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
.dsh-flex-col-start-start();
|
|
44
|
-
|
|
45
|
-
&-content {
|
|
46
|
-
width: 100%;
|
|
47
|
-
flex: 1;
|
|
48
|
-
min-height: 0px;
|
|
49
|
-
overflow: auto;
|
|
50
|
-
|
|
51
|
-
.content {
|
|
52
|
-
&-cascader {
|
|
53
|
-
width: 90%;
|
|
54
|
-
margin: 10px auto;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-footer {
|
|
60
|
-
width: 100%;
|
|
61
|
-
padding: 10px;
|
|
62
|
-
|
|
63
|
-
.btn {
|
|
64
|
-
text-align: right;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.ivu-cascader-transfer {
|
|
72
|
-
max-height: 400px !important;
|
|
73
|
-
|
|
74
|
-
.ivu-cascader-menu {
|
|
75
|
-
max-height: 400px;
|
|
76
|
-
height: auto;
|
|
77
|
-
max-width: 300px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
@@ -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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|