bkui-vue 1.0.3-beta.40 → 1.0.3-beta.42

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.
@@ -1,37 +1,16 @@
1
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper {
1
+ .bk-info-wrapper .bk-modal-wrapper {
2
2
  width: 440px;
3
3
  }
4
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.normal {
5
- width: 440px;
6
- }
7
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper.small {
8
- width: 400px;
9
- }
10
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-body {
11
- border-radius: 2px;
12
- }
13
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
4
+ .bk-info-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
14
5
  margin-top: 16px;
15
6
  }
16
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content {
17
- height: initial;
18
- max-height: initial;
19
- min-height: initial;
20
- word-break: break-all;
7
+ .bk-info-wrapper .bk-dialog-footer button {
8
+ min-width: 88px;
21
9
  }
22
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-content .bk-info-sub-title {
10
+ .bk-info-sub-title {
23
11
  text-align: center;
24
12
  word-break: break-all;
25
13
  }
26
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer {
27
- height: initial;
28
- margin-top: 24px;
29
- background-color: #fff;
30
- border-top: none;
31
- }
32
- .bk-modal-ctx.bk-info-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-footer button {
33
- min-width: 88px;
34
- }
35
14
  .bk-modal-ctx {
36
15
  top: 0px;
37
16
  left: 0px;
@@ -42,10 +21,13 @@
42
21
  .bk-modal-ctx.--show {
43
22
  position: fixed;
44
23
  }
24
+ .bk-modal-ctx.--show .bk-modal-ctx-mask {
25
+ display: block;
26
+ }
45
27
  .bk-modal-ctx.--hide {
46
28
  display: none;
47
29
  }
48
- .bk-modal-ctx .bk-modal-ctx-mask {
30
+ .bk-modal-ctx-mask {
49
31
  top: 0;
50
32
  left: 0;
51
33
  display: none;
@@ -53,47 +35,65 @@
53
35
  height: 100%;
54
36
  background-color: rgba(0, 0, 0, 0.6);
55
37
  }
56
- .bk-modal-ctx .bk-modal-ctx-mask.--show {
57
- position: fixed;
58
- display: inherit;
59
- }
60
38
  .bk-modal-wrapper {
61
39
  position: absolute;
62
40
  top: 50%;
63
41
  left: 50%;
64
- width: 480px;
65
42
  border-radius: 2px;
66
43
  transform: translate(-50%, -50%);
67
44
  }
68
- .bk-modal-wrapper .bk-modal-outside {
45
+ .bk-modal-outside {
69
46
  position: fixed;
70
47
  top: 0;
71
48
  right: 0;
72
49
  bottom: 0;
73
50
  left: 0;
74
51
  }
75
- .bk-modal-wrapper.normal {
76
- width: 480px;
77
- height: 240px;
78
- }
79
- .bk-modal-wrapper.small {
80
- width: 400px;
81
- height: 200px;
82
- }
83
- .bk-modal-wrapper.medium {
84
- width: 640px;
85
- height: 400px;
86
- }
87
- .bk-modal-wrapper.large {
88
- width: 960px;
89
- height: 720px;
90
- }
91
- .bk-modal-wrapper .bk-modal-body {
52
+ .bk-modal-body {
92
53
  height: 100%;
93
54
  overflow: hidden;
94
55
  background: #fff;
56
+ border-radius: 2px;
95
57
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
96
58
  }
59
+ .bk-modal-body {
60
+ overflow: auto;
61
+ }
62
+ .bk-modal-close {
63
+ position: absolute;
64
+ top: 6px;
65
+ right: 6px;
66
+ display: flex;
67
+ width: 32px;
68
+ height: 32px;
69
+ font-size: 18px;
70
+ color: #979ba5;
71
+ cursor: pointer;
72
+ align-items: center;
73
+ justify-content: center;
74
+ border-radius: 50%;
75
+ transition: 0.15s;
76
+ }
77
+ .bk-modal-close:hover {
78
+ background: #f0f1f5;
79
+ }
80
+ .bk-dialog {
81
+ font-size: 14px;
82
+ }
83
+ .bk-dialog.is-fullscreen {
84
+ top: 0;
85
+ right: 0 ;
86
+ bottom: 0;
87
+ left: 0;
88
+ transform: translate(0, 0);
89
+ }
90
+ .bk-dialog.is-fullscreen .bk-modal-wrapper {
91
+ top: 0;
92
+ right: 0;
93
+ bottom: 0;
94
+ left: 0;
95
+ transform: translate(0, 0);
96
+ }
97
97
  .bk-dialog-wrapper .bk-modal-wrapper {
98
98
  position: relative;
99
99
  }
@@ -107,41 +107,37 @@
107
107
  .bk-dialog-wrapper .bk-modal-wrapper.multi-instance {
108
108
  position: absolute;
109
109
  }
110
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-tool {
111
- position: absolute;
112
- top: 0;
113
- right: 0;
114
- left: 0;
115
- height: 18px;
110
+ .bk-dialog-wrapper .bk-modal-wrapper.fullscreen .bk-modal-content {
111
+ max-height: calc(100vh - 137px);
116
112
  }
117
- .bk-dialog-wrapper .bk-modal-wrapper .move {
118
- cursor: move;
113
+ .bk-dialog-wrapper .bk-modal-wrapper.fullscreen.no-footer {
114
+ max-height: calc(100vh - 79px);
119
115
  }
120
- .bk-dialog-wrapper .bk-modal-wrapper .content-dragging {
121
- user-select: none;
116
+ .bk-dialog-wrapper .bk-modal-wrapper.no-footer .bk-modal-body {
117
+ padding-bottom: 0;
122
118
  }
123
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header {
119
+ .bk-dialog-header {
124
120
  padding: 16px 24px 0;
125
121
  font-size: 20px;
126
122
  line-height: 1;
127
123
  }
128
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon {
124
+ .bk-dialog-header-icon {
129
125
  display: flex;
130
126
  justify-content: center;
131
127
  }
132
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon {
128
+ .bk-dialog-header-icon .bk-info-icon {
133
129
  font-size: 48px;
134
130
  }
135
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon.success {
131
+ .bk-dialog-header-icon .bk-info-icon.success {
136
132
  color: #2dcb56;
137
133
  }
138
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon.warning {
134
+ .bk-dialog-header-icon .bk-info-icon.warning {
139
135
  color: #ff9c01;
140
136
  }
141
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-header-icon .bk-info-icon.danger {
137
+ .bk-dialog-header-icon .bk-info-icon.danger {
142
138
  color: #ea3636;
143
139
  }
144
- .bk-dialog-wrapper .bk-modal-wrapper .bk-dialog-header .bk-dialog-title {
140
+ .bk-dialog-title {
145
141
  display: inline-block;
146
142
  width: 100%;
147
143
  overflow: hidden;
@@ -149,58 +145,38 @@
149
145
  text-overflow: ellipsis;
150
146
  white-space: nowrap;
151
147
  }
152
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-content {
153
- height: calc(100% - 79px);
148
+ .bk-dialog-tool {
149
+ position: absolute;
150
+ top: 0;
151
+ right: 0;
152
+ left: 0;
153
+ height: 18px;
154
+ }
155
+ .bk-dialog-tool.move {
156
+ cursor: move;
157
+ }
158
+ .bk-dialog-tool.content-dragging {
159
+ user-select: none;
160
+ }
161
+ .bk-dialog-content {
154
162
  max-height: calc(100vh - 300px);
155
- min-height: 141px;
156
163
  padding: 0 24px;
157
164
  margin-top: 16px;
158
165
  margin-bottom: 24px;
159
- font-size: 14px;
160
- line-height: 1.5;
161
166
  color: #63656e;
162
167
  }
163
- .bk-dialog-wrapper .bk-modal-wrapper.fullscreen .bk-modal-content {
164
- max-height: calc(100vh - 137px);
165
- }
166
- .bk-dialog-wrapper .bk-modal-wrapper.fullscreen.no-footer {
167
- max-height: calc(100vh - 79px);
168
- }
169
- .bk-dialog-wrapper .bk-modal-wrapper.no-footer .bk-modal-body {
170
- padding-bottom: 0;
171
- }
172
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer {
173
- padding: 0 24px;
174
- margin: 24px 0 ;
168
+ .bk-dialog-footer {
169
+ padding: 8px 24px;
175
170
  background-color: #fafbfd;
176
171
  border-top: 1px solid #dcdee5;
177
- border-radius: 2px;
178
172
  }
179
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-perv {
173
+ .bk-dialog-footer .bk-dialog-perv {
180
174
  float: left;
181
175
  margin-right: 8px;
182
176
  }
183
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-next {
177
+ .bk-dialog-footer .bk-dialog-next {
184
178
  float: left;
185
179
  }
186
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-footer .bk-dialog-cancel {
180
+ .bk-dialog-footer .bk-dialog-cancel {
187
181
  margin-left: 8px;
188
182
  }
189
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-close {
190
- position: absolute;
191
- top: 6px;
192
- right: 6px;
193
- display: flex;
194
- width: 32px;
195
- height: 32px;
196
- font-size: 18px;
197
- color: #979ba5;
198
- cursor: pointer;
199
- align-items: center;
200
- justify-content: center;
201
- border-radius: 50%;
202
- transition: 0.15s;
203
- }
204
- .bk-dialog-wrapper .bk-modal-wrapper .bk-modal-close:hover {
205
- background: #f0f1f5;
206
- }
@@ -1,10 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- width: import("vue-types").VueTypeDef<string | number> & {
3
- default: string | number;
4
- };
5
- height: import("vue-types").VueTypeDef<string | number> & {
6
- default: string | number;
7
- };
8
2
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
9
3
  default: string;
10
4
  };
@@ -50,6 +44,12 @@ declare const _default: import("vue").DefineComponent<{
50
44
  } & {
51
45
  default: boolean;
52
46
  };
47
+ width: import("vue-types").VueTypeDef<string | number> & {
48
+ default: string | number;
49
+ };
50
+ height: import("vue-types").VueTypeDef<string | number> & {
51
+ default: string | number;
52
+ };
53
53
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
54
54
  default: string;
55
55
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -100,6 +100,8 @@ declare const _default: import("vue").DefineComponent<{
100
100
  };
101
101
  direction: import("vue-types").VueTypeValidableDef<string> & {
102
102
  default: string;
103
+ } & {
104
+ default: string;
103
105
  };
104
106
  animateType: import("vue-types").VueTypeValidableDef<string> & {
105
107
  default: string;
@@ -142,7 +144,6 @@ declare const _default: import("vue").DefineComponent<{
142
144
  moveHandler: (e: any) => boolean;
143
145
  handlePrevStep: () => void;
144
146
  handleNextStep: () => void;
145
- hasFooter: import("vue").ComputedRef<boolean>;
146
147
  isModalShow: import("vue").Ref<boolean>;
147
148
  localConfirmText: import("vue").ComputedRef<string>;
148
149
  localCancelText: import("vue").ComputedRef<string>;
@@ -150,12 +151,6 @@ declare const _default: import("vue").DefineComponent<{
150
151
  localNextText: import("vue").ComputedRef<string>;
151
152
  resolveClassName: (cls: string) => string;
152
153
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change")[], "prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
153
- width: import("vue-types").VueTypeDef<string | number> & {
154
- default: string | number;
155
- };
156
- height: import("vue-types").VueTypeDef<string | number> & {
157
- default: string | number;
158
- };
159
154
  confirmText: import("vue-types").VueTypeValidableDef<string> & {
160
155
  default: string;
161
156
  };
@@ -201,6 +196,12 @@ declare const _default: import("vue").DefineComponent<{
201
196
  } & {
202
197
  default: boolean;
203
198
  };
199
+ width: import("vue-types").VueTypeDef<string | number> & {
200
+ default: string | number;
201
+ };
202
+ height: import("vue-types").VueTypeDef<string | number> & {
203
+ default: string | number;
204
+ };
204
205
  extCls: (import("vue-types").VueTypeValidableDef<string> & {
205
206
  default: string;
206
207
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -251,6 +252,8 @@ declare const _default: import("vue").DefineComponent<{
251
252
  };
252
253
  direction: import("vue-types").VueTypeValidableDef<string> & {
253
254
  default: string;
255
+ } & {
256
+ default: string;
254
257
  };
255
258
  animateType: import("vue-types").VueTypeValidableDef<string> & {
256
259
  default: string;
@@ -299,12 +302,12 @@ declare const _default: import("vue").DefineComponent<{
299
302
  transfer: string | boolean | HTMLElement;
300
303
  direction: string;
301
304
  renderDirective: "show" | "if";
302
- quickClose: boolean;
303
305
  scrollable: boolean;
304
306
  showMask: boolean;
305
307
  closeIcon: boolean;
306
308
  escClose: boolean;
307
309
  fullscreen: boolean;
310
+ quickClose: boolean;
308
311
  animateType: string;
309
312
  multiInstance: boolean;
310
313
  bodyClass: string | unknown[];
@@ -1,6 +1,25 @@
1
1
  @import '../styles/themes/themes.less';
2
2
  @import '../modal/modal.less';
3
3
 
4
+ .@{bk-prefix}-dialog {
5
+ font-size: 14px;
6
+
7
+ &.is-fullscreen {
8
+ top: 0;
9
+ right: 0 ;
10
+ bottom: 0;
11
+ left: 0;
12
+ transform: translate(0 , 0);
13
+
14
+ .bk-modal-wrapper {
15
+ top: 0;
16
+ right: 0;
17
+ bottom: 0;
18
+ left: 0;
19
+ transform: translate(0 , 0);
20
+ }
21
+ }
22
+ }
4
23
  .@{bk-prefix}-dialog-wrapper {
5
24
  .@{bk-prefix}-modal-wrapper {
6
25
  position: relative;
@@ -20,70 +39,6 @@
20
39
  position: absolute;
21
40
  }
22
41
 
23
- .@{bk-prefix}-dialog-tool {
24
- position: absolute;
25
- top: 0;
26
- right: 0;
27
- left: 0;
28
- height: 18px;
29
- }
30
-
31
- .move {
32
- cursor: move;
33
- }
34
-
35
- .content-dragging {
36
- user-select: none;
37
- }
38
-
39
- .@{bk-prefix}-dialog-header {
40
- padding: 16px 24px 0;
41
- font-size: 20px;
42
- line-height: 1;
43
-
44
- .@{bk-prefix}-header-icon {
45
- display: flex;
46
- justify-content: center;
47
-
48
- .@{bk-prefix}-info-icon {
49
- font-size: 48px;
50
-
51
- &.success {
52
- color: @success-color;
53
- }
54
-
55
- &.warning {
56
- color: @warning-color;
57
- }
58
-
59
- &.danger {
60
- color: @danger-color;
61
- }
62
- }
63
- }
64
-
65
- .@{bk-prefix}-dialog-title {
66
- display: inline-block;
67
- width: 100%;
68
- overflow: hidden;
69
- color: @table-head-font-color;
70
- text-overflow: ellipsis;
71
- white-space: nowrap;
72
- }
73
- }
74
-
75
- .@{bk-prefix}-modal-content {
76
- height: calc(100% - 79px);
77
- max-height: calc(100vh - 300px);
78
- min-height: 141px;
79
- padding: 0 24px;
80
- margin-top: 16px;
81
- margin-bottom: 24px;
82
- font-size: 14px;
83
- line-height: 1.5;
84
- color: @default-color;
85
- }
86
-
87
42
  &.fullscreen {
88
43
  .@{bk-prefix}-modal-content {
89
44
  max-height: calc(100vh - 137px);
@@ -99,46 +54,84 @@
99
54
  padding-bottom: 0;
100
55
  }
101
56
  }
57
+ }
58
+ }
102
59
 
103
- .@{bk-prefix}-modal-footer {
104
- padding: 0 24px;
105
- margin: 24px 0 ;
106
- background-color: @whitesmoke-color;
107
- border-top: 1px solid @table-border-color;
108
- border-radius: 2px;
60
+ .@{bk-prefix}-dialog-header {
61
+ padding: 16px 24px 0;
62
+ font-size: 20px;
63
+ line-height: 1;
64
+ }
109
65
 
110
- .@{bk-prefix}-dialog-perv {
111
- float: left;
112
- margin-right: 8px;
113
- }
66
+ .@{bk-prefix}-dialog-header-icon {
67
+ display: flex;
68
+ justify-content: center;
114
69
 
115
- .@{bk-prefix}-dialog-next {
116
- float: left;
117
- }
70
+ .@{bk-prefix}-info-icon {
71
+ font-size: 48px;
118
72
 
119
- .@{bk-prefix}-dialog-cancel {
120
- margin-left: 8px;
121
- }
73
+ &.success {
74
+ color: @success-color;
122
75
  }
123
76
 
124
- .@{bk-prefix}-modal-close {
125
- position: absolute;
126
- top: 6px;
127
- right: 6px;
128
- display: flex;
129
- width: 32px;
130
- height: 32px;
131
- font-size: 18px;
132
- color: #979ba5;
133
- cursor: pointer;
134
- align-items: center;
135
- justify-content: center;
136
- border-radius: 50%;
137
- transition: .15s;
138
-
139
- &:hover {
140
- background: #f0f1f5;
141
- }
77
+ &.warning {
78
+ color: @warning-color;
79
+ }
80
+
81
+ &.danger {
82
+ color: @danger-color;
142
83
  }
143
84
  }
144
85
  }
86
+
87
+ .@{bk-prefix}-dialog-title {
88
+ display: inline-block;
89
+ width: 100%;
90
+ overflow: hidden;
91
+ color: @table-head-font-color;
92
+ text-overflow: ellipsis;
93
+ white-space: nowrap;
94
+ }
95
+
96
+ .@{bk-prefix}-dialog-tool {
97
+ position: absolute;
98
+ top: 0;
99
+ right: 0;
100
+ left: 0;
101
+ height: 18px;
102
+
103
+ &.move {
104
+ cursor: move;
105
+ }
106
+
107
+ &.content-dragging {
108
+ user-select: none;
109
+ }
110
+ }
111
+
112
+ .@{bk-prefix}-dialog-content {
113
+ max-height: calc(100vh - 300px);
114
+ padding: 0 24px;
115
+ margin-top: 16px;
116
+ margin-bottom: 24px;
117
+ color: @default-color;
118
+ }
119
+
120
+ .@{bk-prefix}-dialog-footer {
121
+ padding: 8px 24px;
122
+ background-color: @whitesmoke-color;
123
+ border-top: 1px solid @table-border-color;
124
+
125
+ .@{bk-prefix}-dialog-perv {
126
+ float: left;
127
+ margin-right: 8px;
128
+ }
129
+
130
+ .@{bk-prefix}-dialog-next {
131
+ float: left;
132
+ }
133
+
134
+ .@{bk-prefix}-dialog-cancel {
135
+ margin-left: 8px;
136
+ }
137
+ }