bri-components 1.1.6 → 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/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 -93
- 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 +2 -2
- package/src/components/controls/base/DshSwitch.vue +2 -2
- 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/DshForm.vue +4 -17
- 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/{Ctooltip.vue → BriTooltip.vue} +2 -2
- package/src/components/small/DshButtons.vue +2 -2
- package/src/components/small/DshCrumbs.vue +1 -0
- package/src/components/small/DshCrumbsItem.vue +5 -3
- package/src/components/small/DshIcons.vue +0 -14
- package/src/components/small/DshTags.vue +7 -2
- package/src/components/unit/DshFormItem.vue +4 -4
- package/src/components/unit/DshUnit.vue +0 -8
- package/src/index.js +93 -104
- package/src/styles/common/control.less +56 -51
- 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/base/DshCheckbox.less +3 -2
- package/src/styles/components/controls/base/DshDate.less +12 -0
- package/src/styles/components/controls/base/DshEditor.less +25 -47
- package/src/styles/components/controls/base/DshInput.less +9 -1
- package/src/styles/components/controls/base/DshNumber.less +43 -26
- package/src/styles/components/controls/base/DshSelect.less +11 -0
- package/src/styles/components/controls/senior/BriLabels.less +29 -12
- package/src/styles/components/controls/special/DshBack.less +3 -0
- 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 +1 -1
- package/src/styles/components/form/DshForm.less +13 -0
- package/src/styles/components/index.less +43 -36
- 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 +3 -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 +4 -4
- 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/base/BriUpload.less +0 -436
- package/src/styles/components/controls/base/DshCascader.less +0 -110
- 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/base/{InfoCascader.less → DshCascader/InfoCascader.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,40 @@
|
|
|
1
|
+
.DshColorPanel {
|
|
2
|
+
&-rel {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&-list {
|
|
7
|
+
font-size: 15px;
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 293px;
|
|
10
|
+
height: 72px;
|
|
11
|
+
flex-wrap: wrap;
|
|
12
|
+
justify-content: space-around;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
&-item {
|
|
16
|
+
padding: 6px;
|
|
17
|
+
|
|
18
|
+
&-big {
|
|
19
|
+
width: 15px;
|
|
20
|
+
height: 15px;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-small {
|
|
26
|
+
width: 12px;
|
|
27
|
+
height: 12px;
|
|
28
|
+
position: absolute;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
transform: translate(1.5px,1.5px);
|
|
31
|
+
border-radius: 50%;
|
|
32
|
+
|
|
33
|
+
&:hover + span {
|
|
34
|
+
border-width: 1px;
|
|
35
|
+
border-style: solid;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
width: 220px;
|
|
3
3
|
height: 240px;
|
|
4
4
|
text-align: left;
|
|
5
|
+
|
|
5
6
|
&-name {}
|
|
6
7
|
&-colors {
|
|
7
8
|
padding: 40px 0 0 0;
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
}
|
|
34
|
+
|
|
33
35
|
&-icons {
|
|
34
36
|
padding: 40px 0px 0px 0;
|
|
35
37
|
&-item {
|
|
@@ -59,9 +61,7 @@
|
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
}
|
|
63
64
|
|
|
64
|
-
.DshEditPanel {
|
|
65
65
|
&-form {
|
|
66
66
|
.ivu-form-item {
|
|
67
67
|
margin-bottom: 15px;
|
|
@@ -100,8 +100,7 @@
|
|
|
100
100
|
}
|
|
101
101
|
.ivu-btn-linkText {
|
|
102
102
|
color: @themeColor;
|
|
103
|
-
|
|
104
|
-
height: @textHeight;
|
|
103
|
+
border: none;
|
|
105
104
|
&:hover {
|
|
106
105
|
background-color: transparent;
|
|
107
106
|
color: @theme-hover;
|
|
@@ -112,8 +111,10 @@
|
|
|
112
111
|
}
|
|
113
112
|
&[disabled] {
|
|
114
113
|
color: @theme-disabled;
|
|
114
|
+
background-color: transparent;
|
|
115
115
|
&:hover, &:active {
|
|
116
116
|
color: @theme-disabled;
|
|
117
|
+
background-color: transparent;
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
}
|
|
File without changes
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
align-items: center;
|
|
25
25
|
border-radius: @borderRadius;
|
|
26
26
|
padding: 9px 8px;
|
|
27
|
+
margin: 0 8px;
|
|
28
|
+
line-height: 22px;
|
|
27
29
|
&:hover {
|
|
28
30
|
background-color: @theme-focus;
|
|
29
31
|
color: @themeColor;
|
|
@@ -51,9 +53,9 @@
|
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
}
|
|
56
|
+
|
|
54
57
|
.ivu-select-dropdown {
|
|
55
58
|
border: 0.5px solid #e5e5e5;
|
|
56
59
|
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);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
+
max-height: 500px;
|
|
61
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.DshTags {
|
|
2
|
+
.ivu-tag {
|
|
3
|
+
&-default {
|
|
4
|
+
border: none;
|
|
5
|
+
background-color: @borderColor;
|
|
6
|
+
color: @text-color;
|
|
7
|
+
}
|
|
8
|
+
&-size-medium {
|
|
9
|
+
height: 24px;
|
|
10
|
+
line-height: 26px;
|
|
11
|
+
padding: 0 8px;
|
|
12
|
+
}
|
|
13
|
+
&[disabled] {
|
|
14
|
+
background-color: @border-disabled;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
align-items: center;
|
|
29
29
|
|
|
30
30
|
&-left {
|
|
31
|
-
flex:
|
|
31
|
+
flex: 2;
|
|
32
32
|
min-width: 150px;
|
|
33
33
|
position: relative;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&-right {
|
|
37
|
-
flex:
|
|
37
|
+
flex: 1;
|
|
38
38
|
min-width: 0px;
|
|
39
39
|
text-align: right;
|
|
40
40
|
}
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
|
|
92
92
|
&-right {
|
|
93
93
|
flex: none;
|
|
94
|
+
max-width: 50%;
|
|
94
95
|
min-width: 0px;
|
|
95
96
|
text-align: right;
|
|
96
|
-
max-width: 50%;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
&>div {
|
|
113
113
|
width: 100%;
|
|
114
114
|
height: 100%;
|
|
115
|
-
.dsh-flex-row-start-center;
|
|
115
|
+
.dsh-flex-row-start-center();
|
|
116
116
|
flex-wrap: wrap;
|
|
117
117
|
}
|
|
118
118
|
}
|
package/src/utils/table.js
CHANGED
|
@@ -14,6 +14,14 @@ const transformToColumns = function (form) {
|
|
|
14
14
|
align: col._align || typeData.align,
|
|
15
15
|
width: col._width || typeData.width,
|
|
16
16
|
sortBy: headerFilter ? col._sortBy || typeData.sortBy : undefined,
|
|
17
|
+
renderHeaderCell: ({ row, column }, h) => {
|
|
18
|
+
return h("div", {
|
|
19
|
+
class: { "bri-table-ellipsis": column.sortBy != undefined || column.filter || column.filterCustom },
|
|
20
|
+
directives: [
|
|
21
|
+
{ name: "ellipsis" }
|
|
22
|
+
]
|
|
23
|
+
}, column.title);
|
|
24
|
+
},
|
|
17
25
|
|
|
18
26
|
...(
|
|
19
27
|
col._type
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="controlShow">
|
|
3
|
-
<Ctooltip
|
|
4
|
-
:content="showVal"
|
|
5
|
-
maxWidth="200"
|
|
6
|
-
:transfer="true"
|
|
7
|
-
>
|
|
8
|
-
<div
|
|
9
|
-
v-if="!$isEmptyData(showVal)"
|
|
10
|
-
class="controlShow-val"
|
|
11
|
-
>
|
|
12
|
-
{{ showVal }}
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<div
|
|
16
|
-
v-else
|
|
17
|
-
class="controlShow-nodata"
|
|
18
|
-
>
|
|
19
|
-
{{ emptyShowVal }}
|
|
20
|
-
</div>
|
|
21
|
-
</Ctooltip>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script>
|
|
26
|
-
export default {
|
|
27
|
-
name: "controlShow",
|
|
28
|
-
props: {
|
|
29
|
-
showVal: String,
|
|
30
|
-
emptyShowVal: {
|
|
31
|
-
type: String,
|
|
32
|
-
default () {
|
|
33
|
-
return "-";
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
data () {
|
|
38
|
-
return {};
|
|
39
|
-
},
|
|
40
|
-
computed: {},
|
|
41
|
-
created () {},
|
|
42
|
-
methods: {}
|
|
43
|
-
};
|
|
44
|
-
</script>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="YCompanyPermision">
|
|
3
|
-
<img :src="noPermissionSrc" alt="">
|
|
4
|
-
<p>{{ title }}</p>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
export default {
|
|
10
|
-
name: "YCompanyPermision",
|
|
11
|
-
props: {
|
|
12
|
-
title: String
|
|
13
|
-
},
|
|
14
|
-
data () {
|
|
15
|
-
return {
|
|
16
|
-
noPermissionSrc: this.$imageSrcMap.app.nodata
|
|
17
|
-
};
|
|
18
|
-
},
|
|
19
|
-
computed: {},
|
|
20
|
-
created () {},
|
|
21
|
-
methods: {}
|
|
22
|
-
};
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style lang="less" scoped>
|
|
26
|
-
.YCompanyPermision {
|
|
27
|
-
width: 100%;
|
|
28
|
-
height: 100%;
|
|
29
|
-
padding: 20px;
|
|
30
|
-
text-align: center;
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
align-items: center;
|
|
35
|
-
font-size: 16px;
|
|
36
|
-
p {
|
|
37
|
-
margin: 10px 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
</style>
|
|
41
|
-
<style lang="less">
|
|
42
|
-
.YCompanyPermision {
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Tree
|
|
3
|
-
class="BriTree"
|
|
4
|
-
:data="val"
|
|
5
|
-
:multiple="propsObj.multiple"
|
|
6
|
-
:showCheckbox="propsObj.showCheckbox"
|
|
7
|
-
:checkStrictly="propsObj.checkStrictly"
|
|
8
|
-
:checkDirectly="propsObj.checkDirectly"
|
|
9
|
-
:emptyText="propsObj.emptyText"
|
|
10
|
-
:childrenKey="propsObj.childrenKey"
|
|
11
|
-
:loadData="propsObj.loadData"
|
|
12
|
-
:render="propsObj.render"
|
|
13
|
-
:selectNode="propsObj.selectNode"
|
|
14
|
-
:expandNode="propsObj.expandNode"
|
|
15
|
-
></Tree>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script>
|
|
19
|
-
import controlMixin from "../controls/controlMixin.js";
|
|
20
|
-
export default {
|
|
21
|
-
name: "BriTree",
|
|
22
|
-
mixins: [controlMixin],
|
|
23
|
-
props: {
|
|
24
|
-
},
|
|
25
|
-
data () {
|
|
26
|
-
return {};
|
|
27
|
-
},
|
|
28
|
-
computed: {
|
|
29
|
-
selfPropsObj () {
|
|
30
|
-
return {
|
|
31
|
-
...this.propsObj
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
val () {
|
|
35
|
-
return this.value[this.propsObj._key];
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
created () {},
|
|
39
|
-
methods: {
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
</script>
|