bri-components 1.2.49 → 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.
Files changed (72) hide show
  1. package/package.json +2 -2
  2. package/src/components/controls/BriControlInput.vue +13 -9
  3. package/src/components/controls/base/DshCascader/DshCascader.vue +40 -23
  4. package/src/components/controls/base/DshCascader/InfoCascader.vue +7 -15
  5. package/src/components/controls/base/DshDate/DshDate.vue +146 -0
  6. package/src/components/controls/base/{DshDaterange.vue → DshDate/DshDaterange.vue} +74 -64
  7. package/src/components/controls/base/DshEditor.vue +1 -1
  8. package/src/components/controls/base/{BriInputs.vue → DshInput/BriInputs.vue} +1 -1
  9. package/src/components/controls/base/{DshInput.vue → DshInput/DshInput.vue} +21 -4
  10. package/src/components/controls/base/DshNumber/DshNumber.vue +33 -2
  11. package/src/components/controls/base/{DshNumberange.vue → DshNumber/DshNumberange.vue} +37 -2
  12. package/src/components/controls/base/DshSelect/DshCheckbox.vue +280 -0
  13. package/src/components/controls/base/DshSelect/DshSelect.vue +319 -0
  14. package/src/components/controls/base/DshSelect/selectMixin.js +239 -0
  15. package/src/components/controls/base/DshSwitch/DshSwitch.vue +79 -0
  16. package/src/components/controls/base/DshSwitch/switchMixin.js +73 -0
  17. package/src/components/controls/controlMap.js +8 -11
  18. package/src/components/controls/controlMixin.js +38 -6
  19. package/src/components/controls/senior/BriLabels.vue +1 -1
  20. package/src/components/controls/senior/selectDepartments.vue +9 -13
  21. package/src/components/controls/senior/selectUsers/selectUsers.vue +23 -21
  22. package/src/components/controls/special/DshBack.vue +1 -1
  23. package/src/components/controls/special/DshUndeveloped.vue +1 -1
  24. package/src/components/form/DshAdvSearch.vue +155 -3
  25. package/src/components/form/DshDefaultSearch.vue +84 -40
  26. package/src/components/form/DshForm.vue +24 -0
  27. package/src/components/form/searchMixin.js +5 -18
  28. package/src/components/other/BriGantt.vue +2 -2
  29. package/src/components/unit/DshFormUnit.vue +111 -2
  30. package/src/components/unit/DshListUnit.vue +6 -0
  31. package/src/index.js +10 -10
  32. package/src/styles/components/controls/base/DshInput.less +0 -16
  33. package/src/styles/components/index.less +0 -14
  34. package/src/styles/components/other/BriGantt.less +1 -12
  35. package/src/styles/index.less +5 -3
  36. package/src/styles/reset-iview-controls.less +104 -0
  37. package/src/abolish/BriTransfer.less +0 -65
  38. package/src/abolish/BriTransfer.vue +0 -71
  39. package/src/abolish/BriTree.less +0 -57
  40. package/src/abolish/DshCascaders.less +0 -11
  41. package/src/abolish/DshCascaders.vue +0 -151
  42. package/src/abolish/DshCrumbs.less +0 -0
  43. package/src/abolish/DshCrumbs.vue +0 -62
  44. package/src/abolish/DshCrumbsItem.vue +0 -109
  45. package/src/abolish/DshEditPanel.less +0 -70
  46. package/src/abolish/DshEditPanel.vue +0 -152
  47. package/src/abolish/DshFileShow.less +0 -61
  48. package/src/abolish/DshFileShow.vue +0 -0
  49. package/src/abolish/DshFlatTable.less +0 -93
  50. package/src/abolish/DshFlatTable.vue +0 -605
  51. package/src/abolish/DshMenu.less +0 -37
  52. package/src/abolish/DshMenu.vue +0 -133
  53. package/src/abolish/DshTexts.less +0 -13
  54. package/src/abolish/DshTexts.vue +0 -89
  55. package/src/components/controls/base/DshCheckbox.vue +0 -213
  56. package/src/components/controls/base/DshDate.vue +0 -122
  57. package/src/components/controls/base/DshSelect.vue +0 -242
  58. package/src/components/controls/base/DshSwitch.vue +0 -70
  59. package/src/components/controls/base/selectMixin.js +0 -110
  60. package/src/styles/components/controls/base/DshCheckbox.less +0 -115
  61. package/src/styles/components/controls/base/DshDate.less +0 -15
  62. package/src/styles/components/controls/base/DshDaterange.less +0 -49
  63. package/src/styles/components/controls/base/DshNumber.less +0 -55
  64. package/src/styles/components/controls/base/DshNumberange.less +0 -29
  65. package/src/styles/components/controls/base/DshSelect.less +0 -190
  66. package/src/styles/components/form/DshAdvSearch.less +0 -149
  67. package/src/styles/components/form/DshDefaultSearch.less +0 -82
  68. package/src/styles/components/form/DshForm.less +0 -18
  69. package/src/styles/components/unit/DshFormUnit.less +0 -105
  70. package/src/styles/components/unit/DshListUnit.less +0 -3
  71. /package/src/{abolish/DshCrumbItem.less → styles/reset-iview-other.less} +0 -0
  72. /package/src/styles/{reset-iview.less → reset-iview-variables.less} +0 -0
@@ -1,190 +0,0 @@
1
- .DshSelect {
2
- width: 100%;
3
-
4
- &-radioGroup {
5
- width: 100%;
6
-
7
- &-useColor {
8
- .ivu-radio-border {
9
- height: 32px;
10
- line-height: 32px;
11
- border-radius: 4px;
12
- border: none;
13
- color: #FFF;
14
- margin-right: 16px;
15
- }
16
-
17
- .ivu-radio {
18
- .ivu-radio-inner {
19
- border: 2px solid @themeColor;
20
- background-color: transparent;
21
- width: 14px;
22
- height: 14px;
23
-
24
- &::after {
25
- width: 6px;
26
- height: 6px;
27
- left: 2px;
28
- top: 2px;
29
- background-color: transparent;
30
- opacity: 1;
31
- transform: scale(1);
32
- }
33
- }
34
-
35
- .ivu-radio-focus {
36
- box-shadow: 0 0 0 0;
37
- }
38
- }
39
-
40
- .ivu-radio-checked {
41
- .ivu-radio-inner {
42
- &::after {
43
- background-color: @themeColor;
44
- }
45
- }
46
- }
47
-
48
- each(@resourceColor, {
49
- .color-@{index} {
50
- .ivu-radio {
51
- .ivu-radio-inner {
52
- border-color: @value;
53
- }
54
- }
55
-
56
- .ivu-radio-checked {
57
- .ivu-radio-inner {
58
- &::after {
59
- background-color: @value;
60
- }
61
- }
62
- }
63
- }
64
- });
65
- }
66
-
67
- &-scroll {
68
- overflow-x: auto;
69
- overflow-y: hidden;
70
- white-space: nowrap;
71
-
72
- &::-webkit-scrollbar {
73
- height: 6px;
74
- }
75
-
76
- &:-webkit-scrollbar-thumb {
77
- border-radius: 3px;
78
- background: rgba(51, 51, 51, .1);
79
- background-clip: border-box;
80
- }
81
- }
82
- }
83
-
84
- &-modal {
85
- .ivu-modal-wrap {
86
- display: flex;
87
- align-items: center;
88
- justify-content: center;
89
- }
90
-
91
- .ivu-modal {
92
- width: 544px !important;
93
- position: static;
94
- }
95
-
96
- .ivu-modal-content {
97
- border-radius: 8px;
98
- }
99
-
100
- .ivu-modal-header {
101
- border-bottom: none;
102
- padding: 32px 32px 0;
103
-
104
- .ivu-modal-header-inner {
105
- font-size: 18px;
106
- font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
107
- font-weight: 600;
108
- color: #252F36;
109
- }
110
- }
111
-
112
-
113
- .DshModal-close {
114
- right: 30px !important;
115
- top: 30px !important;
116
- background: #F4F6F8;
117
- border-radius: 4px 4px 4px 4px;
118
- }
119
-
120
- .ivu-modal-body {
121
- padding: 24px 32px 32px;
122
- }
123
-
124
- &-footer {
125
- margin-top: 24px;
126
- text-align: right;
127
-
128
- .ivu-btn {
129
- font-size: 16px;
130
- font-family: Microsoft YaHei-Semibold, Microsoft YaHei;
131
- font-weight: 600;
132
- border-radius: 4px;
133
- }
134
- }
135
- }
136
-
137
- &-tip {
138
- cursor: pointer;
139
-
140
- .ivu-radio {
141
- display: none;
142
- }
143
- }
144
- }
145
-
146
- .ivu-select {
147
- .ivu-select-selection {
148
- // .bri-control-edit();
149
- }
150
-
151
- &-disabled {
152
- .ivu-select-selection {
153
- .bri-control-disabled();
154
-
155
- &:hover {
156
- border-color: @border-disabled;
157
- }
158
- }
159
-
160
- .ivu-select-input[disabled] {
161
- color: @textColor;
162
- -webkit-text-fill-color: @placeholder-disabled-color;
163
- }
164
- }
165
-
166
- &-item {
167
- margin: 4px 8px;
168
- border-radius: @borderRadius;
169
-
170
- &:hover {
171
- background: @bgColor;
172
- }
173
-
174
- &-selected {
175
- background-color: @theme-focus;
176
- color: @themeColor;
177
- }
178
-
179
- &-disabled {
180
- .ivu-select-selection {
181
- .bri-control-disabled();
182
- }
183
- }
184
-
185
- &-input[disabled] {
186
- color: @textColor-disabled;
187
- -webkit-text-fill-color: @textColor-disabled;
188
- }
189
- }
190
- }
@@ -1,149 +0,0 @@
1
- .DshAdvSearch {
2
- #title {
3
- font-weight: 400;
4
- color: #999999;
5
- font-size: 14px;
6
- }
7
-
8
- &-title {
9
- #title();
10
- }
11
-
12
- &-logic {
13
- margin: 5px 0px 10px;
14
- .dsh-flex-row-start-center();
15
-
16
- &-title {
17
- #title();
18
- }
19
- &-option {
20
- flex: 1;
21
- min-width: 100px;
22
- margin-left: 20px;
23
- }
24
- }
25
-
26
- &-conditions {
27
- &-delete {
28
- display: none;
29
- padding: 3px;
30
- position: absolute;
31
- top: 6px;
32
- right: 2px;
33
- color: red;
34
- }
35
-
36
- &-loop,
37
- &-item {
38
- position: relative;
39
-
40
- &:hover,
41
- &-active {
42
- .DshAdvSearch-conditions-delete {
43
- display: inline-block;
44
- }
45
- }
46
- }
47
-
48
- &-loop {
49
- padding: 10px;
50
- margin: 6px;
51
- border: 1px solid @placeholderColor;
52
- background-color: #F4F8FF;
53
- }
54
-
55
- &-item {
56
- padding: 0!important;
57
- margin-bottom: 10px!important;
58
- cursor: pointer;
59
-
60
- .DshFormUnit-label-right {
61
- flex: 6;
62
- }
63
-
64
- &-loading {
65
- margin: 5px 0px;
66
- text-align: center;
67
- font-size: 16px;
68
- color: @textColor;
69
- }
70
-
71
- &-control {
72
- .dsh-margin-bottom5();
73
- }
74
-
75
- &-blank {
76
- text-align: center;
77
- line-height: 30px;
78
- color: @placeholderColor;
79
- }
80
-
81
- &-extra {
82
- text-align: right;
83
- padding-right: 10px;
84
-
85
- .extra {
86
- &-dynamic {
87
- width: 90px;
88
- display: inline-block;
89
- }
90
-
91
- &-operator {
92
- .dsh-margin-right10();
93
-
94
- &-wrap {
95
- display: inline-block;
96
- padding: 5px;
97
- &:hover {
98
- background-color: #E8F3FD;
99
- }
100
- }
101
-
102
- &-name {
103
- display: inline-block;
104
- min-width: 36px;
105
- }
106
-
107
- &-icon {
108
- .dsh-margin-left5();
109
- }
110
- }
111
- }
112
- }
113
- }
114
- }
115
-
116
- &-btns {
117
- width: 100%;
118
- margin-top: 15px;
119
- .dsh-flex-row-start-center();
120
-
121
- &-field {
122
- flex: 3;
123
-
124
- &-list {
125
- width: 330px;
126
- }
127
-
128
- &-create {
129
- #btn-style();
130
- }
131
- }
132
-
133
- &-loop {
134
- flex: 1;
135
- margin-left: 12px;
136
-
137
- &-create {
138
- #btn-style();
139
- }
140
- }
141
- }
142
-
143
- &-nodata {
144
- margin: 20px 0px;
145
- text-align: center;
146
- font-size: 16px;
147
- color: #B8BECC;
148
- }
149
- }
@@ -1,82 +0,0 @@
1
- .DshDefaultSearch {
2
- position: relative;
3
- background: #fff;
4
-
5
- &-item {
6
- padding: 0 !important;
7
- padding-bottom: 6px !important;
8
- padding-top: 6px !important;
9
- margin-top: 0px !important;
10
- margin-bottom: 0px !important;
11
-
12
- &-name {}
13
- }
14
-
15
- &-form {
16
- position: relative;
17
- z-index: 2;
18
- }
19
-
20
- //展开图标
21
- &-fold {
22
- width: 100%;
23
- text-align: center;
24
- position: absolute;
25
- bottom: -24px;
26
- left: 0px;
27
-
28
- &-icon {
29
- width: 48px;
30
- height: 20px;
31
- text-align: center;
32
- line-height: 20px;
33
- background: #fff;
34
- box-shadow: 0 0 16px 0 rgba(51, 51, 51, 0.1);
35
- font-size: 14px;
36
- color: #999999;
37
- cursor: pointer;
38
-
39
- &.arrow-up {
40
- transform: rotate(180deg);
41
- }
42
- }
43
- }
44
-
45
- // 输入框/下拉框
46
- input,
47
- .ivu-select-selection,
48
- .ivu-cascader-size-default,
49
- .DshCascader-multiple-input,
50
- .DshDaterange-item {
51
- border-radius: 0;
52
-
53
- .ivu-select-input{
54
- top: 0px!important;
55
- }
56
- }
57
-
58
- .DshCascader-multiple-input {
59
- height: 32px;
60
- padding: 1px 6px;
61
- overflow: hidden!important;
62
- }
63
-
64
- .DshFormUnit-label {
65
- width: 80px;
66
- text-align: right;
67
- margin-right: 16px;
68
-
69
- .DshFormUnit-label-left {
70
- .DshFormUnit-label-name {
71
- font-family: "Microsoft YaHei";
72
- }
73
- }
74
-
75
- .DshFormUnit-label-right {
76
- text-align: left;
77
- }
78
- }
79
- .bri-control-edit {
80
- border-radius: 0px;
81
- }
82
- }
@@ -1,18 +0,0 @@
1
- .DshForm {
2
- padding-bottom: 5px;
3
-
4
- &-item-FormItem {
5
- margin-bottom: 0px!important;
6
- }
7
-
8
- .ivu-form-item-content {
9
- line-height: normal;
10
-
11
- .ivu-form-item-error-tip {
12
- top: calc(100% - 8px);
13
- left: 16px;
14
- padding-top: 0px;
15
- font-size: 12px;
16
- }
17
- }
18
- }
@@ -1,105 +0,0 @@
1
- .DshFormUnit {
2
- margin: 3px 6px;
3
- padding: 2px 10px 8px;
4
-
5
- &-required {
6
- .DshFormUnit-label-name:before {
7
- content: '*';
8
- display: inline-block;
9
- line-height: 1.5;
10
- font-family: SimSun;
11
- font-size: @smallTitleSize;
12
- font-weight: 500;
13
- color: #E94829;
14
- position: absolute;
15
- left: -10px;
16
- width: 6px;
17
- font-size: @textSize;
18
- }
19
- }
20
-
21
- &-label {
22
- min-width: 0px;
23
- padding: 5px 0px 5px;
24
- line-height: 20px;
25
- font-size: @smallSize;
26
- display: flex;
27
- align-items: center;
28
-
29
- &-left {
30
- flex: 2;
31
- min-width: 150px;
32
- position: relative;
33
- }
34
-
35
- &-right {
36
- flex: 1;
37
- min-width: 0px;
38
- text-align: right;
39
- }
40
-
41
- &-name {
42
- font-size: @textSize;
43
- .dsh-ellipsis();
44
-
45
- &-edit {
46
- color: @textColor;
47
- }
48
-
49
- &-show {
50
- color: @contentColor;
51
- }
52
-
53
- &-sign {
54
- #dsh-sign-change();
55
- }
56
- }
57
-
58
- &-description {
59
- color: #60c0ec;
60
- }
61
- }
62
-
63
- &-control {
64
- min-height: 32px;
65
- }
66
-
67
- &-line {
68
- display: flex;
69
- justify-content: space-between;
70
- align-items: center;
71
-
72
- .DshFormUnit-label {
73
- max-width: 280px;
74
- // min-width: 100px;
75
- font-size: @textSize;
76
- overflow: hidden;
77
- margin: 0px;
78
- margin-right: 8px;
79
-
80
- // fixedbug:line模式下显示必填
81
- margin-left: -10px;
82
- padding-left: 10px;
83
-
84
- &-left {
85
- flex: 1;
86
- min-width: 40px;
87
- }
88
-
89
- &-right {
90
- flex: none;
91
- max-width: 50%;
92
- min-width: 0px;
93
- text-align: right;
94
- }
95
- }
96
-
97
- .DshFormUnit-control {
98
- flex: 1;
99
- min-width: 50px;
100
- display: flex;
101
- justify-content: flex-end;
102
- align-items: center;
103
- }
104
- }
105
- }
@@ -1,3 +0,0 @@
1
- .DshListUnit {
2
-
3
- }