bri-components 1.2.50 → 1.2.52

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.
Files changed (80) hide show
  1. package/package.json +1 -1
  2. package/src/components/controls/BriControlInput.vue +9 -6
  3. package/src/components/controls/base/BriUpload/BriUpload.vue +170 -0
  4. package/src/components/controls/base/BriUpload/BriUploadImage.vue +90 -0
  5. package/src/components/controls/base/BriUpload/uploadList.vue +166 -0
  6. package/src/components/controls/base/DshCascader/DshCascader.vue +51 -0
  7. package/src/components/controls/base/DshCascader/InfoCascader.vue +63 -1
  8. package/src/components/controls/base/DshCoordinates.vue +64 -4
  9. package/src/components/controls/base/DshDate/DshDate.vue +1 -1
  10. package/src/components/controls/base/DshDate/DshDaterange.vue +55 -99
  11. package/src/components/controls/base/DshDivider.vue +163 -36
  12. package/src/components/controls/base/DshEditor.vue +1 -1
  13. package/src/components/controls/base/DshInput/BriInputs.vue +59 -1
  14. package/src/components/controls/base/DshInput/DshInput.vue +17 -3
  15. package/src/components/controls/base/DshNumber/DshNumber.vue +1 -42
  16. package/src/components/controls/base/DshNumber/DshNumberange.vue +9 -9
  17. package/src/components/controls/base/DshSelect/selectMixin.js +1 -3
  18. package/src/components/controls/base/DshSwitch/DshSwitch.vue +0 -5
  19. package/src/components/controls/base/DshSwitch/switchMixin.js +4 -4
  20. package/src/components/controls/controlMap.js +13 -4
  21. package/src/components/controls/controlMixin.js +6 -2
  22. package/src/components/controls/extra/themeColor.vue +115 -0
  23. package/src/components/controls/extra/themeIcon.vue +124 -0
  24. package/src/components/controls/senior/BriLabels.vue +63 -4
  25. package/src/components/controls/senior/DshPackage.vue +30 -32
  26. package/src/components/controls/senior/cascaderTable.vue +25 -4
  27. package/src/components/controls/senior/flatTable.vue +34 -12
  28. package/src/components/controls/senior/selectDepartments.vue +78 -4
  29. package/src/components/controls/senior/selectUsers/DepartmentMenu.vue +120 -29
  30. package/src/components/controls/senior/selectUsers/selectUsers.vue +179 -5
  31. package/src/components/controls/special/DshBack.vue +1 -1
  32. package/src/components/controls/special/DshUndeveloped.vue +1 -1
  33. package/src/components/form/DshDefaultSearch.vue +43 -81
  34. package/src/components/form/DshForm.vue +1 -1
  35. package/src/components/unit/DshFormUnit.vue +11 -10
  36. package/src/index.js +6 -4
  37. package/src/styles/components/index.less +0 -14
  38. package/src/styles/index.less +5 -3
  39. package/src/styles/reset-iview-controls.less +123 -0
  40. package/src/styles/{reset-iview.less → reset-iview-variables.less} +1 -47
  41. package/src/abolish/BriTransfer.less +0 -65
  42. package/src/abolish/BriTransfer.vue +0 -71
  43. package/src/abolish/BriTree.less +0 -57
  44. package/src/abolish/DshCascaders.less +0 -11
  45. package/src/abolish/DshCascaders.vue +0 -151
  46. package/src/abolish/DshCrumbs.less +0 -0
  47. package/src/abolish/DshCrumbs.vue +0 -62
  48. package/src/abolish/DshCrumbsItem.vue +0 -109
  49. package/src/abolish/DshEditPanel.less +0 -70
  50. package/src/abolish/DshEditPanel.vue +0 -152
  51. package/src/abolish/DshFileShow.less +0 -61
  52. package/src/abolish/DshFileShow.vue +0 -0
  53. package/src/abolish/DshFlatTable.less +0 -93
  54. package/src/abolish/DshFlatTable.vue +0 -605
  55. package/src/abolish/DshMenu.less +0 -37
  56. package/src/abolish/DshMenu.vue +0 -133
  57. package/src/abolish/DshTexts.less +0 -13
  58. package/src/abolish/DshTexts.vue +0 -89
  59. package/src/styles/components/controls/.DS_Store +0 -0
  60. package/src/styles/components/controls/base/BriInputs.less +0 -55
  61. package/src/styles/components/controls/base/BriUpload/BriUpload.less +0 -167
  62. package/src/styles/components/controls/base/BriUpload/BriUploadImage.less +0 -87
  63. package/src/styles/components/controls/base/BriUpload/index.less +0 -3
  64. package/src/styles/components/controls/base/BriUpload/uploadList.less +0 -164
  65. package/src/styles/components/controls/base/DshCascader/DshCascader.less +0 -67
  66. package/src/styles/components/controls/base/DshCascader/InfoCascader.less +0 -59
  67. package/src/styles/components/controls/base/DshCascader/index.less +0 -2
  68. package/src/styles/components/controls/base/DshCoordinates.less +0 -67
  69. package/src/styles/components/controls/base/DshDivider.less +0 -115
  70. package/src/styles/components/controls/base/DshInput.less +0 -29
  71. package/src/styles/components/controls/senior/.DS_Store +0 -0
  72. package/src/styles/components/controls/senior/BriLabels.less +0 -66
  73. package/src/styles/components/controls/senior/DshPackage.less +0 -25
  74. package/src/styles/components/controls/senior/cascaderTable.less +0 -19
  75. package/src/styles/components/controls/senior/flatTable.less +0 -20
  76. package/src/styles/components/controls/senior/selectDepartments.less +0 -73
  77. package/src/styles/components/controls/senior/selectUsers/DepartmentMenu.less +0 -37
  78. package/src/styles/components/controls/senior/selectUsers/index.less +0 -2
  79. package/src/styles/components/controls/senior/selectUsers/selectUsers.less +0 -180
  80. /package/src/{abolish/DshCrumbItem.less → styles/reset-iview-other.less} +0 -0
@@ -1,37 +0,0 @@
1
- .DshMenu {
2
- &-item {
3
- &-badge {
4
-
5
- }
6
-
7
- &-icon {
8
- margin-right: 8px;
9
- }
10
- }
11
-
12
- &-submenu {
13
- &-title {
14
- &-icon {
15
-
16
- }
17
- }
18
-
19
- .DshMenu {}
20
- }
21
-
22
- .ivu-menu {
23
- &-item {
24
- padding: 10px 16px;
25
- }
26
-
27
- &-submenu-title {
28
- padding: 10px 16px;
29
-
30
- // 组标题行 右侧下拉图标
31
- &-icon {
32
- margin-right: 0px!important;
33
- right: 16px;
34
- }
35
- }
36
- }
37
- }
@@ -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>
@@ -1,13 +0,0 @@
1
- .DshTexts {
2
- width: 100%;
3
-
4
- &-control {
5
- display: inline-block;
6
- width: calc(100% - 65px);
7
- }
8
-
9
- &-create {
10
- display: inline-block;
11
- width: 60px;
12
- }
13
- }
@@ -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>
@@ -1,55 +0,0 @@
1
- .BriInputs {
2
- width: 100%;
3
-
4
- i {
5
- font-size: 16px;
6
- cursor: pointer;
7
- }
8
-
9
- &-show {
10
- display: flex;
11
- align-items: center;
12
- border: 1px solid #e5e5e5;
13
- border-radius: 4px;
14
- color: #515a6e;
15
- padding-left: 5px;
16
- height: 34px;
17
-
18
- &-content {
19
- display: flex;
20
- width: calc(100% - 30px);
21
- overflow: hidden;
22
-
23
- &-item {
24
- display: flex;
25
- margin: 2px 4px 2px 0;
26
- padding-left: 8px;
27
- border: 1px solid #e8eaec;
28
- border-radius: 3px;
29
- background: #f7f7f7;
30
- font-size: 14px;
31
- max-width: 50%;
32
- cursor: pointer;
33
-
34
- &-content {
35
- vertical-align: middle;
36
- display: inline-block;
37
- width: calc(100% - 20px);
38
- .dsh-ellipsis();
39
- }
40
-
41
- &-del {
42
- display: inline-block;
43
- width: 20px;
44
- vertical-align: middle;
45
- }
46
- }
47
- }
48
-
49
- &-add {
50
- flex: 1;
51
- height: 34px;
52
- line-height: 34px;
53
- }
54
- }
55
- }
@@ -1,167 +0,0 @@
1
- .BriUpload {
2
- width: 100%;
3
- height: 100%;
4
- position: relative;
5
- overflow: hidden;
6
- border: 1px solid @borderColor;
7
- border-radius: @borderRadius;
8
- background-color: @white;
9
-
10
- // 外围
11
- &-old {
12
- overflow: hidden;
13
- display: flex;
14
-
15
- &-wrapper {
16
- min-width: 120px;
17
- height: 100%;
18
- margin: 16px 0px 16px 16px;
19
- border-radius: 0px;
20
- border: none;
21
- &:hover {
22
- border: none
23
- }
24
- }
25
-
26
- &-imageadd {
27
- .dsh-flex-col-center-center();
28
- width: 120px;
29
- height: 120px;
30
- position: relative;
31
- border: 1px @borderColor dashed;
32
- color: @themeColor;
33
- border-radius: @borderRadius;
34
- cursor: pointer;
35
- &:hover {
36
- border-color: @themeColor;
37
- background-color: @theme-focus;
38
- }
39
- }
40
-
41
- &-circle {
42
- position: absolute;
43
- top: 50%;
44
- left: 50%;
45
- width: 50px !important;
46
- height: 50px !important;
47
- margin-top: -25px;
48
- margin-left: -25px;
49
- border-radius: 50%;
50
- background-color: @inputBg-readonly;
51
-
52
- i {
53
- color: @scuess-color;
54
- font-size: 40px;
55
- }
56
- }
57
- }
58
-
59
- &-new,
60
- &-inline {
61
- display: flex;
62
-
63
- &-wrapper {
64
- min-width: 30px;
65
- background-color: @border-readonly;
66
- height: 30px;
67
- line-height: 30px;
68
- border: none;
69
- border-radius: 0px !important;
70
- &:hover {
71
- border: none
72
- }
73
- }
74
-
75
- &-imageadd {
76
- .dsh-flex-row-center-center();
77
- height: 30px;
78
- background-color: @btn-hover;
79
- color: @textColor;
80
- border: none;
81
- border-radius: 0px;
82
- &:hover {
83
- color: @themeColor;
84
- background-color: @theme-focus;
85
- }
86
- }
87
-
88
- &-circle {
89
- position: absolute;
90
- top: 50%;
91
- left: 50%;
92
- width: 24px !important;
93
- height: 24px !important;
94
- margin-top: -12px;
95
- margin-left: -12px;
96
- background-color: #f4f5fa;
97
- border-radius: 50%;
98
- i {
99
- color: @scuess-color;
100
- font-size: 24px;
101
- }
102
- }
103
- }
104
-
105
- &-readonly {
106
- border: none;
107
- border-radius: 0px;
108
- background-color: transparent;
109
-
110
- .uploadList {
111
- &-old {
112
- margin: 0px;
113
- }
114
-
115
- &-list {
116
- .item {
117
- flex: 0 0 80px;
118
- height: 80px;
119
- }
120
- }
121
-
122
- &-inline {
123
- .bri-scrollbar6();
124
- height: 48px;
125
- line-height: 48px;
126
-
127
- .item {
128
- flex: 0 0 48px
129
- }
130
- }
131
- }
132
- }
133
-
134
- &-disabled {
135
- .bri-control-disabled();
136
-
137
- .uploadList {
138
- &-old {
139
- margin: 0px;
140
- }
141
-
142
- &-list {
143
- .item {
144
- flex: 0 0 80px;
145
- height: 80px;
146
- }
147
- }
148
-
149
- &-nodata {
150
- color: @placeholder-disabled-color;
151
- text-indent: 7px;
152
- text-align: left;
153
- }
154
- &-inline-nodata {
155
- color: @placeholder-disabled-color;
156
- }
157
- }
158
- }
159
-
160
- &-unit {
161
- .uploadList {
162
- &-inline-nodata {
163
- .bri-control-nodata();
164
- }
165
- }
166
- }
167
- }
@@ -1,87 +0,0 @@
1
- .BriUploadImage {
2
- position: relative;
3
-
4
- &-set {
5
- width: 100%;
6
-
7
- &-img {
8
- width: 100px;
9
- height: 100px;
10
- float: left;
11
- background-repeat: no-repeat;
12
- background-position: center;
13
- background-size: contain;
14
- background-color: #fff;
15
- border: 1px solid @borderColor;
16
- border-radius: 0px;
17
- position: relative;
18
- overflow: hidden;
19
-
20
- &-action {
21
- color: @themeColor;
22
- cursor: pointer;
23
- }
24
-
25
- &-circle {
26
- position: absolute;
27
- top: 0px;
28
- bottom: 0px;
29
- left: 0px;
30
- right: 0px;
31
- background-color: #f4f5fa;
32
- display: flex;
33
- align-items: center;
34
- justify-content: center;
35
-
36
- .circle {
37
- width: 50px !important;
38
- height: 50px !important;
39
- }
40
-
41
- i {
42
- color: #5cb85c;
43
- font-size: 40px;
44
- }
45
- }
46
- }
47
-
48
- &-avatar {
49
- background-size: cover;
50
- }
51
-
52
- .wrap {
53
- width: 100px;
54
- height: 32px;
55
- position: relative;
56
- overflow: hidden;
57
- display: inline-block;
58
- line-height: 18px;
59
- text-align: center;
60
- vertical-align: middle;
61
- cursor: pointer;
62
-
63
- button {
64
- position: absolute;
65
- bottom: 0;
66
- left: 0;
67
- }
68
-
69
- .file {
70
- position: absolute;
71
- bottom: 0;
72
- left: 0;
73
- margin: 0;
74
- border: solid transparent;
75
- opacity: 0;
76
- filter: alpha(opacity=0);
77
- cursor: pointer;
78
- }
79
- }
80
- }
81
-
82
- &-cropper {
83
- width: 400px;
84
- height: 400px;
85
- margin: 0 auto;
86
- }
87
- }
@@ -1,3 +0,0 @@
1
- @import "./BriUpload.less";
2
- @import "./BriUploadImage.less";
3
- @import "./uploadList.less";