bri-components 1.2.50 → 1.2.51
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 +1 -1
- package/src/components/controls/BriControlInput.vue +9 -6
- package/src/components/controls/base/DshDate/DshDate.vue +1 -1
- package/src/components/controls/base/DshDate/DshDaterange.vue +55 -99
- package/src/components/controls/base/DshEditor.vue +1 -1
- package/src/components/controls/base/DshInput/DshInput.vue +1 -3
- package/src/components/controls/base/DshNumber/DshNumber.vue +2 -43
- package/src/components/controls/base/DshNumber/DshNumberange.vue +9 -9
- package/src/components/controls/base/DshSelect/selectMixin.js +1 -3
- package/src/components/controls/base/DshSwitch/DshSwitch.vue +0 -5
- package/src/components/controls/base/DshSwitch/switchMixin.js +4 -4
- package/src/components/controls/controlMixin.js +6 -2
- package/src/components/controls/special/DshBack.vue +1 -1
- package/src/components/controls/special/DshUndeveloped.vue +1 -1
- package/src/components/form/DshDefaultSearch.vue +43 -81
- package/src/components/unit/DshFormUnit.vue +11 -10
- package/src/styles/components/controls/base/DshInput.less +0 -16
- package/src/styles/index.less +5 -3
- package/src/styles/reset-iview-controls.less +104 -0
- package/src/styles/{reset-iview.less → reset-iview-variables.less} +1 -47
- package/src/abolish/BriTransfer.less +0 -65
- package/src/abolish/BriTransfer.vue +0 -71
- package/src/abolish/BriTree.less +0 -57
- package/src/abolish/DshCascaders.less +0 -11
- package/src/abolish/DshCascaders.vue +0 -151
- package/src/abolish/DshCrumbs.less +0 -0
- package/src/abolish/DshCrumbs.vue +0 -62
- package/src/abolish/DshCrumbsItem.vue +0 -109
- package/src/abolish/DshEditPanel.less +0 -70
- package/src/abolish/DshEditPanel.vue +0 -152
- package/src/abolish/DshFileShow.less +0 -61
- package/src/abolish/DshFileShow.vue +0 -0
- package/src/abolish/DshFlatTable.less +0 -93
- package/src/abolish/DshFlatTable.vue +0 -605
- package/src/abolish/DshMenu.less +0 -37
- package/src/abolish/DshMenu.vue +0 -133
- package/src/abolish/DshTexts.less +0 -13
- package/src/abolish/DshTexts.vue +0 -89
- /package/src/{abolish/DshCrumbItem.less → styles/reset-iview-other.less} +0 -0
package/src/abolish/DshMenu.vue
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: your name
|
|
3
|
-
* @Date: 2021-03-15 13:11:32
|
|
4
|
-
* @LastEditTime: 2021-03-19 10:33:27
|
|
5
|
-
* @LastEditors: Please set LastEditors
|
|
6
|
-
* @Description: In User Settings Edit
|
|
7
|
-
* @FilePath: \model\src\components\other\menu\DshMenu.vue
|
|
8
|
-
-->
|
|
9
|
-
<template>
|
|
10
|
-
<div class="DshMenu">
|
|
11
|
-
<template v-for="subMenu in menuList">
|
|
12
|
-
<template v-if="!subMenu.children">
|
|
13
|
-
<MenuItem
|
|
14
|
-
class="DshMenu-item"
|
|
15
|
-
:key="subMenu._id"
|
|
16
|
-
:name="subMenu._id"
|
|
17
|
-
>
|
|
18
|
-
<Badge
|
|
19
|
-
class="DshMenu-item-badge"
|
|
20
|
-
:key="subMenu._id + 'badge'"
|
|
21
|
-
:count="getBadgeCount(subMenu)"
|
|
22
|
-
:offset="[10, -16]"
|
|
23
|
-
>
|
|
24
|
-
<Icon
|
|
25
|
-
v-if="loopIndex === 1"
|
|
26
|
-
class="DshMenu-item-icon"
|
|
27
|
-
:custom="`bico-font ${subMenu.icon || `bico-${$appData.customIcons[subMenu.menuType]}`}`"
|
|
28
|
-
/>
|
|
29
|
-
<span>{{ subMenu.name }}</span>
|
|
30
|
-
</Badge>
|
|
31
|
-
</MenuItem>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<!-- 组 -->
|
|
35
|
-
<template v-else>
|
|
36
|
-
<!-- 特殊的组 -->
|
|
37
|
-
<div
|
|
38
|
-
v-if="subMenu.isSpecial"
|
|
39
|
-
:key="subMenu._id"
|
|
40
|
-
:style="{
|
|
41
|
-
'padding-left': loopIndex === 1 ? undefined : `${(loopIndex - 2) * 24 + 43}px`
|
|
42
|
-
}"
|
|
43
|
-
:class="{
|
|
44
|
-
'DshMenu-item': true,
|
|
45
|
-
'ivu-menu-item': true,
|
|
46
|
-
'ivu-menu-item-active': curSubMenu && curSubMenu._id === subMenu._id,
|
|
47
|
-
'ivu-menu-item-selected': curSubMenu && curSubMenu._id === subMenu._id
|
|
48
|
-
}"
|
|
49
|
-
@click.stop="clickSpecialSubMenu(subMenu)"
|
|
50
|
-
>
|
|
51
|
-
<Icon
|
|
52
|
-
v-if="loopIndex === 1"
|
|
53
|
-
:custom="`bico-font ${subMenu.icon || 'bico-file'}`"
|
|
54
|
-
/>
|
|
55
|
-
{{ subMenu.name }}
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<!-- 正常的组 -->
|
|
59
|
-
<Submenu
|
|
60
|
-
v-else
|
|
61
|
-
:key="subMenu._id"
|
|
62
|
-
class="DshMenu-submenu"
|
|
63
|
-
:name="subMenu._id"
|
|
64
|
-
>
|
|
65
|
-
<!-- 组的title -->
|
|
66
|
-
<template slot="title">
|
|
67
|
-
<Icon
|
|
68
|
-
v-if="loopIndex === 1"
|
|
69
|
-
class="DshMenu-submenu-title-icon"
|
|
70
|
-
:custom="`bico-font ${subMenu.icon || 'bico-file'}`"
|
|
71
|
-
/>
|
|
72
|
-
<span>{{ subMenu.name }}</span>
|
|
73
|
-
</template>
|
|
74
|
-
|
|
75
|
-
<!-- 次级菜单 循环-->
|
|
76
|
-
<dsh-menu
|
|
77
|
-
:menuList="subMenu.children"
|
|
78
|
-
:curSubMenu="curSubMenu"
|
|
79
|
-
:loopIndex="loopIndex + 1"
|
|
80
|
-
@changeSpecialSubMenu="changeSpecialSubMenuCb"
|
|
81
|
-
></dsh-menu>
|
|
82
|
-
</Submenu>
|
|
83
|
-
</template>
|
|
84
|
-
</template>
|
|
85
|
-
</div>
|
|
86
|
-
</template>
|
|
87
|
-
|
|
88
|
-
<script>
|
|
89
|
-
export default {
|
|
90
|
-
name: "DshMenu",
|
|
91
|
-
props: {
|
|
92
|
-
menuList: {
|
|
93
|
-
type: Array,
|
|
94
|
-
default () {
|
|
95
|
-
return [];
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
curSubMenu: Object,
|
|
100
|
-
loopIndex: {
|
|
101
|
-
type: Number,
|
|
102
|
-
default: 1
|
|
103
|
-
},
|
|
104
|
-
showBadgeList: {
|
|
105
|
-
type: Array,
|
|
106
|
-
default: () => []
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
data () {
|
|
110
|
-
return {};
|
|
111
|
-
},
|
|
112
|
-
computed: {},
|
|
113
|
-
created () {},
|
|
114
|
-
methods: {
|
|
115
|
-
clickSpecialSubMenu (subMenu) {
|
|
116
|
-
if (!this.curSubMenu || subMenu._id !== this.curSubMenu._id) {
|
|
117
|
-
this.$emit("changeSpecialSubMenu", subMenu._id, subMenu);
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
changeSpecialSubMenuCb (...params) {
|
|
121
|
-
this.$emit("changeSpecialSubMenu", ...params);
|
|
122
|
-
},
|
|
123
|
-
getBadgeCount (menuItem) {
|
|
124
|
-
const badgeObj = this.showBadgeList.find(item => item.showBadgeKey === menuItem.menuKey);
|
|
125
|
-
return this.showBadgeList.length
|
|
126
|
-
? badgeObj
|
|
127
|
-
? badgeObj.count
|
|
128
|
-
: 0
|
|
129
|
-
: 0;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
</script>
|
package/src/abolish/DshTexts.vue
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="DshTexts">
|
|
3
|
-
<Input
|
|
4
|
-
class="DshTexts-control"
|
|
5
|
-
v-model="text"
|
|
6
|
-
:placeholder="selfPropsObj._placeholder"
|
|
7
|
-
:type="'text'"
|
|
8
|
-
:disabled="!finalCanEdit"
|
|
9
|
-
:clearable="true"
|
|
10
|
-
:size="propsObj._size"
|
|
11
|
-
/>
|
|
12
|
-
<dsh-buttons
|
|
13
|
-
class="DshTexts-create"
|
|
14
|
-
:list="$getOperationList(['createTag'])"
|
|
15
|
-
@click="$dispatchEvent($event)"
|
|
16
|
-
></dsh-buttons>
|
|
17
|
-
|
|
18
|
-
<!-- 标签列表 -->
|
|
19
|
-
<dsh-tags
|
|
20
|
-
class="dsh-margin-top5"
|
|
21
|
-
:list="value[propsObj._key]"
|
|
22
|
-
:propsObj="{
|
|
23
|
-
closable: true
|
|
24
|
-
}"
|
|
25
|
-
@delete="$dispatchEvent(operationMap.deleteTag, arguments)"
|
|
26
|
-
></dsh-tags>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
import controlMixin from "../../controlMixin.js";
|
|
32
|
-
|
|
33
|
-
export default {
|
|
34
|
-
name: "DshTexts",
|
|
35
|
-
mixins: [
|
|
36
|
-
controlMixin
|
|
37
|
-
],
|
|
38
|
-
props: {},
|
|
39
|
-
data () {
|
|
40
|
-
return {
|
|
41
|
-
text: "",
|
|
42
|
-
|
|
43
|
-
operationMap: {
|
|
44
|
-
createTag: {
|
|
45
|
-
name: "添加",
|
|
46
|
-
type: "createTag",
|
|
47
|
-
size: "default",
|
|
48
|
-
event: "createTag"
|
|
49
|
-
},
|
|
50
|
-
deleteTag: {
|
|
51
|
-
name: "删除",
|
|
52
|
-
type: "deleteTag",
|
|
53
|
-
event: "deleteTag"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
},
|
|
58
|
-
computed: {
|
|
59
|
-
selfPropsObj () {
|
|
60
|
-
return {
|
|
61
|
-
...this.propsObj,
|
|
62
|
-
...this.commonDealPropsObj
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
created () {},
|
|
67
|
-
methods: {
|
|
68
|
-
createTag () {
|
|
69
|
-
if (this.text && this.text.trim()) {
|
|
70
|
-
if (this.value[this.propsObj._key].some(item => item === this.text.trim())) {
|
|
71
|
-
this.$Message.error({
|
|
72
|
-
content: `搜索文字 "${this.text.trim()}" 已存在!`,
|
|
73
|
-
duration: 5
|
|
74
|
-
});
|
|
75
|
-
} else {
|
|
76
|
-
this.value[this.propsObj._key].push(this.text.trim());
|
|
77
|
-
this.change();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
this.text = "";
|
|
82
|
-
},
|
|
83
|
-
// 删除
|
|
84
|
-
deleteTag (operationItem, params) {
|
|
85
|
-
this.change();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
</script>
|
|
File without changes
|