bri-components 1.4.42 → 1.4.44

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 (61) hide show
  1. package/lib/0.bri-components.min.js +1 -1
  2. package/lib/1.bri-components.min.js +1 -1
  3. package/lib/10.bri-components.min.js +1 -1
  4. package/lib/2.bri-components.min.js +1 -1
  5. package/lib/3.bri-components.min.js +1 -1
  6. package/lib/4.bri-components.min.js +1 -1
  7. package/lib/5.bri-components.min.js +1 -1
  8. package/lib/6.bri-components.min.js +1 -1
  9. package/lib/7.bri-components.min.js +1 -1
  10. package/lib/8.bri-components.min.js +1 -1
  11. package/lib/9.bri-components.min.js +1 -1
  12. package/lib/bri-components.min.js +4 -76
  13. package/package.json +1 -1
  14. package/src/components/controls/base/BriUpload/BriUpload.vue +6 -5
  15. package/src/components/controls/base/DshDate/DshDaterange.vue +57 -25
  16. package/src/components/controls/base/DshNumber/DshNumber.vue +4 -6
  17. package/src/components/controls/mixins/userAndDepartMixin.js +3 -3
  18. package/src/components/controls/senior/selectDepartments.vue +23 -19
  19. package/src/components/controls/senior/selectUsers/selectUsers.vue +8 -8
  20. package/src/components/list/BriCard.vue +43 -0
  21. package/src/components/list/BriTree.vue +59 -1
  22. package/src/components/list/BriTreeItem.vue +53 -0
  23. package/src/components/list/DshPage.vue +95 -0
  24. package/src/components/list/mixins/tableBaseMixin.js +1 -4
  25. package/src/components/other/BriAvatar.vue +77 -12
  26. package/src/components/other/BriCode.vue +9 -2
  27. package/src/components/other/BriCollapseTree.vue +95 -2
  28. package/src/components/other/BriGantt.vue +319 -6
  29. package/src/components/other/BriIframe.vue +20 -0
  30. package/src/components/other/BriLoading.vue +61 -2
  31. package/src/components/other/DshColorPanel.vue +43 -0
  32. package/src/components/other/DshMenuNav.vue +84 -0
  33. package/src/components/small/BriDrawer.vue +43 -8
  34. package/src/components/small/BriTooltip.vue +1 -1
  35. package/src/components/small/DshBtnModal.vue +6 -0
  36. package/src/components/small/DshButtons.vue +34 -0
  37. package/src/components/small/DshIcons.vue +10 -0
  38. package/src/components/small/DshSteps.vue +61 -0
  39. package/src/components/small/DshTitle.vue +14 -0
  40. package/src/styles/components/index.less +3 -29
  41. package/src/styles/components/list/BriCard.less +0 -40
  42. package/src/styles/components/list/BriTree.less +0 -56
  43. package/src/styles/components/list/BriTreeItem.less +0 -50
  44. package/src/styles/components/list/DshPage.less +0 -92
  45. package/src/styles/components/other/BriAvatar.less +0 -64
  46. package/src/styles/components/other/BriCode.less +0 -5
  47. package/src/styles/components/other/BriCollapseTree.less +0 -91
  48. package/src/styles/components/other/BriGantt.less +0 -313
  49. package/src/styles/components/other/BriIframe.less +0 -17
  50. package/src/styles/components/other/BriLoading.less +0 -57
  51. package/src/styles/components/other/DshColorPanel.less +0 -40
  52. package/src/styles/components/other/DshMenuNav.less +0 -82
  53. package/src/styles/components/small/BriDrawer.less +0 -34
  54. package/src/styles/components/small/DshBtnModal.less +0 -3
  55. package/src/styles/components/small/DshButtons.less +0 -31
  56. package/src/styles/components/small/DshIcons.less +0 -7
  57. package/src/styles/components/small/DshSteps.less +0 -58
  58. package/src/styles/components/small/DshTitle.less +0 -15
  59. /package/src/styles/components/{small/BriButton.less → BriButton.less} +0 -0
  60. /package/src/styles/components/{list/BriTable.less → BriTable.less} +0 -0
  61. /package/src/styles/components/{small/DshModal.less → DshModal.less} +0 -0
@@ -94,3 +94,23 @@
94
94
  }
95
95
  };
96
96
  </script>
97
+
98
+ <style lang="less" scoped>
99
+ .BriIframe {
100
+ display: flex;
101
+ width: 100%;
102
+ height: 100%;
103
+ position: relative;
104
+
105
+ &-iframe {
106
+ flex: 1;
107
+ overflow: auto;
108
+ }
109
+
110
+ &-nodata {
111
+ .dsh-flex-row-center-center();
112
+ width: 100%;
113
+ height: 100%;
114
+ }
115
+ }
116
+ </style>
@@ -106,7 +106,66 @@
106
106
  }
107
107
  },
108
108
  created () {},
109
- methods: {
110
- }
109
+ methods: {}
111
110
  };
112
111
  </script>
112
+
113
+ <style lang="less" scoped>
114
+ .BriLoading {
115
+ &-fix {
116
+ position: absolute;
117
+ top: 0;
118
+ left: 0;
119
+ z-index: 8;
120
+ width: 100%;
121
+ height: 100%;
122
+
123
+ .BriLoading-main {
124
+ position: absolute;
125
+ top: 50%;
126
+ left: 50%;
127
+ transform: translate(-50%, -50%);
128
+ }
129
+ }
130
+
131
+ &-center {
132
+ width: 100%;
133
+ height: 100%;
134
+
135
+ @keyframes spin {
136
+ from {
137
+ transform: rotate(0deg);
138
+ }
139
+
140
+ to {
141
+ transform: rotate(360deg);
142
+ }
143
+ }
144
+
145
+ .BriLoading-main {
146
+ width: 100%;
147
+ height: 100%;
148
+ .dsh-flex-col();
149
+
150
+ &-loading {
151
+ border-radius: 50%;
152
+ background: conic-gradient(@themeColor 50%, white);
153
+ --mask: radial-gradient(closest-side, transparent 70%, black 71%);
154
+ -webkit-mask-image: var(--mask);
155
+ mask-image: var(--mask);
156
+ animation: spin 1s linear infinite;
157
+ }
158
+
159
+ &-loadingText {
160
+ margin-top: 8px;
161
+ color: @themeColor;
162
+ }
163
+
164
+ &-noText {
165
+ color: @textColor;
166
+ margin-top: 16px;
167
+ }
168
+ }
169
+ }
170
+ }
171
+ </style>
@@ -83,3 +83,46 @@
83
83
  }
84
84
  };
85
85
  </script>
86
+
87
+ <style lang="less">
88
+ .DshColorPanel {
89
+ &-rel {
90
+ cursor: pointer;
91
+ }
92
+
93
+ &-list {
94
+ font-size: 15px;
95
+ display: flex;
96
+ width: 293px;
97
+ height: 72px;
98
+ flex-wrap: wrap;
99
+ justify-content: space-around;
100
+ align-items: center;
101
+
102
+ &-item {
103
+ padding: 6px;
104
+
105
+ &-big {
106
+ width: 15px;
107
+ height: 15px;
108
+ display: inline-block;
109
+ border-radius: 50%;
110
+ }
111
+
112
+ &-small {
113
+ width: 12px;
114
+ height: 12px;
115
+ position: absolute;
116
+ display: inline-block;
117
+ transform: translate(1.5px,1.5px);
118
+ border-radius: 50%;
119
+
120
+ &:hover + span {
121
+ border-width: 1px;
122
+ border-style: solid;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ </style>
@@ -102,3 +102,87 @@
102
102
  methods: {}
103
103
  };
104
104
  </script>
105
+
106
+ <style lang="less">
107
+ .DshMenuNav {
108
+ width: 100%;
109
+ height: 100%;
110
+ border-radius: 8px;
111
+ overflow: hidden;
112
+ display: flex;
113
+ flex-direction: row;
114
+
115
+ &-nav {
116
+ width: 121px;
117
+ height: 100%;
118
+ background-color: #ffffff;
119
+ display: flex;
120
+ flex-direction: column;
121
+ position: relative;
122
+ box-shadow: 5px 0px 9px rgba(0, 0, 0, 0.1);
123
+
124
+ &-left {
125
+ }
126
+ &-right {
127
+ border-left: 1px solid @borderColor;
128
+ }
129
+
130
+ &-title {
131
+ padding: 10px 20px;
132
+ height: 80px;
133
+ line-height: 60px;
134
+ font-weight: 600;
135
+ font-size: 16px;
136
+ }
137
+
138
+ .list {
139
+ flex: 1;
140
+ min-height: 0px;
141
+ overflow: auto;
142
+
143
+ &-item {
144
+ padding: 10px 30px;
145
+ background-color: #ffffff;
146
+ line-height: 20px;
147
+ font-size: @smallTitleSize;
148
+ cursor: pointer;
149
+
150
+ &:hover {
151
+ color: @themeColor;
152
+ }
153
+ &-active {
154
+ color: @themeColor;
155
+ background-color: #F7FCFC;
156
+ }
157
+
158
+ &-bottom {
159
+ width: 100%;
160
+ border-top: 1px solid @borderColor;
161
+ position: absolute;
162
+ left: 0px;
163
+ bottom: 0px;
164
+ }
165
+ &-beforeText {
166
+ display: block;
167
+ color: @textColor;
168
+ padding: 15px 5px 5px 15px;
169
+ margin: -10px -30px 10px -30px;
170
+ font-size: 14px;
171
+ background: #fff;
172
+ }
173
+ &-iconClass {
174
+ color: @themeColor;
175
+ padding-right: 5px;
176
+ font-size: 18px;
177
+ }
178
+ }
179
+ }
180
+ }
181
+
182
+ &-view {
183
+ flex: 1;
184
+ min-width: 0px;
185
+ height: 100%;
186
+ }
187
+ }
188
+ </style>
@@ -84,10 +84,6 @@
84
84
  }
85
85
  }
86
86
  },
87
- model: {
88
- prop: "value",
89
- event: "input"
90
- },
91
87
  data () {
92
88
  return {};
93
89
  },
@@ -97,7 +93,7 @@
97
93
  return this.value;
98
94
  },
99
95
  set (bool) {
100
- this.input(bool);
96
+ this.$emit("input", bool);
101
97
  }
102
98
  },
103
99
  selfPropsObj () {
@@ -114,9 +110,6 @@
114
110
  },
115
111
  created () {},
116
112
  methods: {
117
- input (bool) {
118
- this.$emit("input", bool);
119
- },
120
113
  clickClose () {
121
114
  this.showModal = false;
122
115
  },
@@ -132,3 +125,45 @@
132
125
  }
133
126
  };
134
127
  </script>
128
+
129
+ <style lang="less">
130
+ .BriDrawer {
131
+ &-header {
132
+ color: @textColor;
133
+ font-weight: 500;
134
+ font-size: @smallTitleSize;
135
+ line-height: @smallTitleHeight;
136
+ }
137
+
138
+ &-close {
139
+ color: @contentColor;
140
+ }
141
+
142
+ &-main {
143
+ height: 100%;
144
+ display: flex;
145
+ flex-direction: column;
146
+ }
147
+
148
+ &-body {
149
+ flex: 1;
150
+ overflow: auto;
151
+ }
152
+
153
+ &-footer {
154
+ border-top: 1px solid @borderColor;
155
+ padding: 11px 16px 12px;
156
+ }
157
+
158
+ .ivu-drawer-header {
159
+ padding: 16px 16px 15px;
160
+ }
161
+ .ivu-drawer-body {
162
+ padding: 0px;
163
+ }
164
+ .ivu-drawer-close {
165
+ top: 18px;
166
+ right: 18px
167
+ }
168
+ }
169
+ </style>
@@ -20,7 +20,7 @@
20
20
  export default {
21
21
  name: "BriTooltip",
22
22
  props: {
23
- content: String,
23
+ content: [String, Number],
24
24
  placement: {
25
25
  type: String,
26
26
  default: "bottom"
@@ -60,3 +60,9 @@
60
60
  }
61
61
  };
62
62
  </script>
63
+
64
+ <style lang="less" scoped>
65
+ .DshBtnModal {
66
+
67
+ }
68
+ </style>
@@ -174,3 +174,37 @@
174
174
  }
175
175
  };
176
176
  </script>
177
+
178
+ <style lang="less" scoped>
179
+ .DshButtons {
180
+ &-flex {
181
+ width: 100%;
182
+ height: 100%;
183
+ .dsh-flex-row-between-center();
184
+
185
+ // 更多
186
+ .DshButtons-dropdown {
187
+ margin: 0 15px 0 0;
188
+ font-size: 16px;
189
+ font-weight: 400;
190
+ color: @themeColor;
191
+
192
+ &-more {
193
+ display: flex;
194
+ flex-direction: row;
195
+ justify-content: center;
196
+ align-items: center;
197
+
198
+ &-name {}
199
+ }
200
+ }
201
+ }
202
+
203
+ &-item {
204
+ > span {
205
+ width: 100%;
206
+ .dsh-ellipsis();
207
+ }
208
+ }
209
+ }
210
+ </style>
@@ -47,3 +47,13 @@
47
47
  }
48
48
  };
49
49
  </script>
50
+
51
+ <style lang="less" scoped>
52
+ .DshIcons {
53
+ display: inline-block;
54
+
55
+ &-item {
56
+ cursor: pointer;
57
+ }
58
+ }
59
+ </style>
@@ -66,3 +66,64 @@
66
66
  }
67
67
  };
68
68
  </script>
69
+
70
+ <style lang="less" scoped>
71
+ .DshSteps {
72
+ &-item {
73
+ cursor: pointer;
74
+ }
75
+ }
76
+ </style>
77
+ <style lang="less">
78
+ .DshSteps {
79
+ .ivu-steps-vertical {
80
+ .ivu-steps-item {
81
+ padding-bottom: 30px;
82
+ &:last-child {
83
+ margin-bottom: 0px;
84
+ }
85
+
86
+ .ivu-steps-tail {
87
+ position: absolute;
88
+ left: 13px;
89
+ top: 0;
90
+ height: 100%;
91
+ width: 1px;
92
+ padding: 35px 0 5px 0;
93
+ & > i {
94
+ background-color: #e8eaec;
95
+ }
96
+ }
97
+
98
+ &.ivu-steps-status-process,
99
+ &.ivu-steps-status-finish {
100
+ .ivu-steps-head-inner {
101
+ background-color: @themeColor;
102
+ border-color: @themeColor;
103
+ span,
104
+ & > .ivu-steps-icon {
105
+ color: #ffffff;
106
+ }
107
+ }
108
+ }
109
+
110
+ &.ivu-steps-status-finish {
111
+ .ivu-steps-head-inner {
112
+ background-color: #ffffff;
113
+ border-color: @themeColor;
114
+ span,
115
+ & > .ivu-steps-icon {
116
+ color: @themeColor;
117
+ }
118
+ }
119
+
120
+ .ivu-steps-tail {
121
+ & > i:after {
122
+ background: @themeColor;
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ </style>
@@ -34,3 +34,17 @@
34
34
  methods: {}
35
35
  };
36
36
  </script>
37
+
38
+ <style lang="less" scoped>
39
+ .DshTitle {
40
+ height: 100%;
41
+ display: flex;
42
+ align-items: center;
43
+ cursor: pointer;
44
+
45
+ &-name {
46
+ margin-left: 8px;
47
+ font-size: @smallTitleSize;
48
+ }
49
+ }
50
+ </style>
@@ -1,29 +1,3 @@
1
- // list
2
- @import "./list/BriTable.less";
3
- @import "./list/DshPage.less";
4
-
5
- @import "./list/BriCard.less";
6
- @import "./list/BriTree.less";
7
- @import "./list/BriTreeItem.less";
8
-
9
- // other
10
- @import "./other/BriAvatar.less";
11
- @import "./other/BriIframe.less";
12
- @import "./other/BriLoading.less";
13
-
14
- @import "./other/DshColorPanel.less";
15
- @import "./other/DshMenuNav.less";
16
- @import "./other/BriCode.less";
17
- @import "./other/BriCollapseTree.less";
18
- @import "./other/BriGantt.less";
19
-
20
- // small
21
- @import "./small/BriButton.less";
22
- @import "./small/BriDrawer.less";
23
- @import "./small/DshButtons.less";
24
- @import "./small/DshIcons.less";
25
- @import "./small/DshModal.less";
26
- @import "./small/DshSteps.less";
27
- @import "./small/DshTitle.less";
28
-
29
- @import "./small/DshBtnModal.less";
1
+ @import "./BriTable.less";
2
+ @import "./BriButton.less";
3
+ @import "./DshModal.less";
@@ -1,40 +0,0 @@
1
- .BriCard {
2
- .item {
3
- height: 50px;
4
- margin-bottom: 10px;
5
- float: left;
6
- width: 33.3%;
7
- padding: 0 10px;
8
- min-width: 160px;
9
-
10
- &-normal {
11
- width: 100%;
12
- height: 100%;
13
- border: 1px solid #eaeaea;
14
- position: relative;
15
- border-radius: 5px;
16
- cursor: pointer;
17
-
18
- .label {
19
- .dsh-ellipsis();
20
- display: block;
21
- width: 160px;
22
- height: 100%;
23
- position: absolute;
24
- left: 50%;
25
- margin-left: -80px;
26
- line-height: 50px;
27
- text-align: center;
28
- }
29
- }
30
-
31
- &-active {
32
- background-color: @themeColor;
33
- color: #fff;
34
- }
35
- }
36
-
37
- &-nodata {
38
- #dsh-nodata();
39
- }
40
- }
@@ -1,56 +0,0 @@
1
- .BriTree {
2
- max-width: 1200px;
3
- min-width: 720px;
4
- height: 100%;
5
- margin: 0px auto;
6
- background: #fff;
7
- display: flex;
8
- flex-direction: column;
9
-
10
- &-action {
11
- padding: 10px;
12
- display: flex;
13
- justify-content: flex-end;
14
-
15
- &-create {
16
- display: flex;
17
- flex-direction: row;
18
- align-items: center;
19
-
20
- .ivu-icon {
21
- font-size: 20px;
22
- font-weight: bold;
23
- margin-right: -10px;
24
- vertical-align: middle;
25
- transform: translate(0, -1px);
26
- }
27
- }
28
- }
29
-
30
- &-tree {
31
- width: 100%;
32
- flex: 1;
33
- min-height: 0px;
34
- overflow: auto;
35
-
36
- .ivu-tree-title {
37
- width: calc(100% - 18px);
38
- }
39
- .ivu-tree-arrow {
40
- margin-top: 5px;
41
- }
42
- }
43
-
44
- &-modal {
45
- &-content {
46
- &-btns {
47
- .dsh-padding20();
48
- text-align: right;
49
- }
50
- }
51
- }
52
-
53
- &-dropdown-menu.DshColorPanel-list {
54
- width: 242px!important;
55
- }
56
- }
@@ -1,50 +0,0 @@
1
- .BriTreeItem {
2
- padding-left: 16px;
3
-
4
- &-content {
5
- line-height: 36px;
6
- cursor: pointer;
7
- display: flex;
8
-
9
- &:hover {
10
- background-color: @btn-hover;
11
- }
12
-
13
- &-expand {
14
- width: 28px;
15
- text-align: center;
16
- }
17
-
18
- &-select {
19
- width: 100%;
20
- color: rgba(36, 36, 63, 0.9);
21
-
22
- .ivu-checkbox-inner {
23
- border-color: rgba(36, 36, 63, 0.3)
24
- }
25
- .ivu-checkbox {
26
- margin-right: 2px;
27
- }
28
-
29
- &-radio {
30
- .ivu-checkbox-inner {
31
- border-radius: 50%;
32
- }
33
- }
34
- }
35
-
36
- &-text {
37
-
38
- }
39
- }
40
-
41
- .default-enter,
42
- .default-leave-to {
43
- opacity: 0;
44
- max-height: 0;
45
- }
46
-
47
- &-children {
48
-
49
- }
50
- }