bri-components 1.2.48 → 1.2.50

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 (66) 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/2.bri-components.min.js +1 -1
  4. package/lib/3.bri-components.min.js +1 -1
  5. package/lib/4.bri-components.min.js +1 -1
  6. package/lib/5.bri-components.min.js +1 -1
  7. package/lib/6.bri-components.min.js +1 -1
  8. package/lib/bri-components.min.js +16 -16
  9. package/package.json +2 -2
  10. package/src/components/controls/BriControlInput.vue +4 -3
  11. package/src/components/controls/base/DshCascader/DshCascader.vue +40 -23
  12. package/src/components/controls/base/DshCascader/InfoCascader.vue +7 -15
  13. package/src/components/controls/base/DshDate/DshDate.vue +146 -0
  14. package/src/components/controls/base/{DshDaterange.vue → DshDate/DshDaterange.vue} +55 -1
  15. package/src/components/controls/base/DshEditor.vue +79 -1
  16. package/src/components/controls/base/{BriInputs.vue → DshInput/BriInputs.vue} +1 -1
  17. package/src/components/controls/base/{DshInput.vue → DshInput/DshInput.vue} +24 -5
  18. package/src/components/controls/base/DshNumber/DshNumber.vue +74 -2
  19. package/src/components/controls/base/{DshNumberange.vue → DshNumber/DshNumberange.vue} +37 -2
  20. package/src/components/controls/base/DshSelect/DshCheckbox.vue +280 -0
  21. package/src/components/controls/base/DshSelect/DshSelect.vue +319 -0
  22. package/src/components/controls/base/DshSelect/selectMixin.js +241 -0
  23. package/src/components/controls/base/DshSwitch/DshSwitch.vue +84 -0
  24. package/src/components/controls/base/DshSwitch/switchMixin.js +73 -0
  25. package/src/components/controls/controlMap.js +8 -11
  26. package/src/components/controls/controlMixin.js +41 -14
  27. package/src/components/controls/senior/BriLabels.vue +2 -2
  28. package/src/components/controls/senior/selectDepartments.vue +9 -13
  29. package/src/components/controls/senior/selectUsers/selectUsers.vue +23 -21
  30. package/src/components/controls/special/DshBack.vue +6 -0
  31. package/src/components/controls/special/DshUndeveloped.vue +6 -0
  32. package/src/components/form/DshAdvSearch.vue +155 -3
  33. package/src/components/form/DshDefaultSearch.vue +94 -12
  34. package/src/components/form/DshForm.vue +24 -0
  35. package/src/components/form/searchMixin.js +5 -18
  36. package/src/components/other/BriGantt.vue +2 -2
  37. package/src/components/unit/DshFormUnit.vue +108 -0
  38. package/src/components/unit/DshListUnit.vue +6 -0
  39. package/src/index.js +10 -10
  40. package/src/styles/components/index.less +0 -19
  41. package/src/styles/components/other/BriGantt.less +1 -12
  42. package/src/styles/{control.less → global/control.less} +3 -2
  43. package/src/styles/global/global.less +2 -0
  44. package/src/styles/index.less +0 -1
  45. package/src/styles/reset-iview.less +47 -1
  46. package/src/utils/table.js +1 -0
  47. package/src/components/controls/base/DshCheckbox.vue +0 -213
  48. package/src/components/controls/base/DshDate.vue +0 -122
  49. package/src/components/controls/base/DshSelect.vue +0 -242
  50. package/src/components/controls/base/DshSwitch.vue +0 -60
  51. package/src/components/controls/base/selectMixin.js +0 -110
  52. package/src/styles/components/controls/base/DshCheckbox.less +0 -115
  53. package/src/styles/components/controls/base/DshDate.less +0 -15
  54. package/src/styles/components/controls/base/DshDaterange.less +0 -49
  55. package/src/styles/components/controls/base/DshEditor.less +0 -75
  56. package/src/styles/components/controls/base/DshNumber.less +0 -55
  57. package/src/styles/components/controls/base/DshNumberange.less +0 -29
  58. package/src/styles/components/controls/base/DshSelect.less +0 -190
  59. package/src/styles/components/controls/base/DshSwitch.less +0 -7
  60. package/src/styles/components/controls/special/DshBack.less +0 -3
  61. package/src/styles/components/controls/special/DshUndeveloped.less +0 -3
  62. package/src/styles/components/form/DshAdvSearch.less +0 -149
  63. package/src/styles/components/form/DshDefaultSearch.less +0 -82
  64. package/src/styles/components/form/DshForm.less +0 -18
  65. package/src/styles/components/unit/DshFormUnit.less +0 -105
  66. package/src/styles/components/unit/DshListUnit.less +0 -3
@@ -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
- }