bkui-vue 1.0.3-beta.26 → 1.0.3-beta.27
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.
- package/dist/index.cjs.js +46 -46
- package/dist/index.esm.js +6162 -6148
- package/dist/index.umd.js +46 -46
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/affix/index.js +13 -15
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +16 -17
- package/lib/alert/alert.variable.css +23 -23
- package/lib/alert/index.js +22 -24
- package/lib/animate-number/index.js +5 -6
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/backtop/index.js +20 -22
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/badge/index.js +19 -21
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/breadcrumb/index.js +24 -26
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +5 -3
- package/lib/button/button.variable.css +71 -71
- package/lib/button/index.js +28 -37
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/card/index.js +35 -43
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +11 -12
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/cascader/index.js +80 -100
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/checkbox/index.js +32 -34
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +4 -3
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/code-diff/index.js +12 -14
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +24 -25
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse/index.js +39 -41
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +48 -59
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/collapse-transition/index.js +8 -9
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +30 -36
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/color-picker/index.js +48 -50
- package/lib/components.js +505 -60
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/config-provider/index.js +8 -9
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/container/index.js +19 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.less +54 -55
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +69 -77
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/dialog/index.js +49 -63
- package/lib/directives/index.js +12 -13
- package/lib/dist.index.js +62 -5
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +8 -5
- package/lib/divider/divider.variable.css +10 -10
- package/lib/divider/index.js +13 -15
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/dropdown/index.js +24 -32
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/exception/index.js +11 -13
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +2 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/fixed-navbar/index.js +13 -15
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +16 -14
- package/lib/form/form.variable.css +65 -65
- package/lib/form/index.js +48 -50
- package/lib/hooks.js +48 -1
- package/lib/icon/index.js +0 -1
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +25 -24
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +8 -6
- package/lib/image/image.variable.css +31 -31
- package/lib/image/index.js +38 -39
- package/lib/index.js +72 -7
- package/lib/info-box/index.js +13 -21
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/index.js +59 -61
- package/lib/input/input.css +104 -102
- package/lib/input/input.less +33 -27
- package/lib/input/input.variable.css +106 -104
- package/lib/link/index.js +13 -15
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +3 -1
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/index.js +17 -19
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/locale/index.js +0 -1
- package/lib/menu/index.js +13 -15
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/index.js +38 -40
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +24 -25
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/index.js +41 -43
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +12 -8
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/index.js +14 -16
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/index.js +31 -33
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +6 -8
- package/lib/notify/notify.variable.css +19 -19
- package/lib/overflow-title/index.js +14 -22
- package/lib/pagination/index.js +50 -65
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +25 -24
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/plugin-popover/index.js +53 -54
- package/lib/plugins/index.js +0 -1
- package/lib/pop-confirm/index.js +28 -42
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +11 -14
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/index.js +52 -54
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +6 -5
- package/lib/popover/popover.variable.css +7 -7
- package/lib/popover2/index.js +3 -4
- package/lib/preset.js +64 -18
- package/lib/process/index.js +26 -27
- package/lib/process/process.css +33 -36
- package/lib/process/process.less +7 -8
- package/lib/process/process.variable.css +35 -38
- package/lib/progress/index.js +26 -28
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +5 -6
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/index.js +32 -34
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +20 -13
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/index.js +22 -24
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/index.js +25 -27
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +10 -17
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/index.js +49 -68
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/index.js +129 -168
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +22 -27
- package/lib/select/select.variable.css +89 -89
- package/lib/shared/index.js +4 -7
- package/lib/sideslider/index.js +14 -22
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +13 -9
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/index.js +22 -36
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/index.js +28 -30
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +48 -44
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +5 -4
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes.less +10 -3
- package/lib/swiper/index.js +14 -16
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/index.js +29 -31
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +22 -14
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/index.js +44 -46
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +39 -40
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +168 -207
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +3 -1
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +14 -10
- package/lib/table/table.variable.css +382 -382
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +57 -43
- package/lib/tag/index.js +19 -21
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/index.js +65 -80
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/index.d.ts +3 -0
- package/lib/time-picker/index.js +7 -9
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +44 -76
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/index.js +12 -13
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +12 -6
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/index.js +36 -51
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/index.js +72 -92
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +7 -6
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/index.js +48 -63
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +69 -68
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/index.js +33 -35
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
- package/lib/styles/themes/themes copy.less +0 -167
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,13 +127,13 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-navigation {
|
131
131
|
display: flex;
|
132
132
|
flex-direction: column;
|
133
133
|
width: 100%;
|
134
134
|
height: 100%;
|
135
135
|
}
|
136
|
-
|
136
|
+
.bk-navigation-title {
|
137
137
|
display: flex;
|
138
138
|
height: 100%;
|
139
139
|
padding: 0 16px;
|
@@ -143,7 +143,7 @@
|
|
143
143
|
justify-content: flex-start;
|
144
144
|
flex: 0 0 260px;
|
145
145
|
}
|
146
|
-
|
146
|
+
.bk-navigation-title .title-icon {
|
147
147
|
display: flex;
|
148
148
|
font-size: 28px;
|
149
149
|
color: #768197;
|
@@ -151,7 +151,7 @@
|
|
151
151
|
align-items: center;
|
152
152
|
justify-content: center;
|
153
153
|
}
|
154
|
-
|
154
|
+
.bk-navigation-title .title-desc {
|
155
155
|
display: inline-block;
|
156
156
|
margin-left: 16px;
|
157
157
|
overflow: hidden;
|
@@ -161,7 +161,7 @@
|
|
161
161
|
color: #96a2b9;
|
162
162
|
white-space: nowrap;
|
163
163
|
}
|
164
|
-
|
164
|
+
.bk-navigation-header {
|
165
165
|
flex: 0 0 52px;
|
166
166
|
display: flex;
|
167
167
|
align-items: center;
|
@@ -169,20 +169,20 @@
|
|
169
169
|
overflow: hidden;
|
170
170
|
background: var(--nav-header-bg-color);
|
171
171
|
}
|
172
|
-
|
172
|
+
.bk-navigation-header .header-right {
|
173
173
|
display: flex;
|
174
174
|
height: 100%;
|
175
175
|
flex: 1;
|
176
176
|
align-items: center;
|
177
177
|
}
|
178
|
-
|
178
|
+
.bk-navigation-wrapper {
|
179
179
|
position: relative;
|
180
180
|
display: flex;
|
181
181
|
flex-direction: row;
|
182
182
|
flex: 1;
|
183
183
|
min-height: 0;
|
184
184
|
}
|
185
|
-
|
185
|
+
.bk-navigation-wrapper .navigation-nav {
|
186
186
|
position: relative;
|
187
187
|
z-index: 101;
|
188
188
|
display: flex;
|
@@ -194,10 +194,10 @@
|
|
194
194
|
flex: 0 1 auto;
|
195
195
|
flex-direction: column;
|
196
196
|
}
|
197
|
-
|
197
|
+
.bk-navigation-wrapper .navigation-nav:hover {
|
198
198
|
cursor: pointer;
|
199
199
|
}
|
200
|
-
|
200
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider {
|
201
201
|
display: flex;
|
202
202
|
width: 60px;
|
203
203
|
height: 100%;
|
@@ -206,30 +206,30 @@
|
|
206
206
|
flex: 1;
|
207
207
|
flex-direction: column;
|
208
208
|
}
|
209
|
-
|
209
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-list {
|
210
210
|
max-height: calc(100vh - 100px);
|
211
211
|
padding: 12px 0 4px 0;
|
212
212
|
margin: 0;
|
213
213
|
overflow: auto;
|
214
214
|
flex: 1 1 auto;
|
215
215
|
}
|
216
|
-
|
216
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-list::-webkit-scrollbar {
|
217
217
|
display: none;
|
218
218
|
width: 6px;
|
219
219
|
height: 5px;
|
220
220
|
}
|
221
|
-
|
221
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-list::-webkit-scrollbar:hover {
|
222
222
|
transform: none;
|
223
223
|
transition: opacity 340ms ease-out;
|
224
224
|
}
|
225
|
-
|
225
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-footer {
|
226
226
|
display: flex;
|
227
227
|
padding-left: 14px;
|
228
228
|
flex: 0 0 56px;
|
229
229
|
align-items: center;
|
230
230
|
justify-content: flex-start;
|
231
231
|
}
|
232
|
-
|
232
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-footer .footer-icon {
|
233
233
|
display: flex;
|
234
234
|
width: 32px;
|
235
235
|
height: 32px;
|
@@ -240,7 +240,7 @@
|
|
240
240
|
justify-content: center;
|
241
241
|
transform-origin: center center;
|
242
242
|
}
|
243
|
-
|
243
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-footer .footer-icon-svg {
|
244
244
|
display: flex;
|
245
245
|
width: 16px;
|
246
246
|
height: 16px;
|
@@ -250,20 +250,20 @@
|
|
250
250
|
justify-content: center;
|
251
251
|
transform-origin: center center;
|
252
252
|
}
|
253
|
-
|
253
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-footer .footer-icon.is-left {
|
254
254
|
color: #96a2b9;
|
255
255
|
}
|
256
|
-
|
256
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-footer .footer-icon.is-left:hover {
|
257
257
|
color: #d3d9e4;
|
258
258
|
cursor: pointer;
|
259
259
|
background: linear-gradient(270deg, #253047 0%, #263247 100%);
|
260
260
|
}
|
261
|
-
|
261
|
+
.bk-navigation-wrapper .navigation-nav .nav-slider-footer .footer-icon:hover {
|
262
262
|
color: #3a3c42;
|
263
263
|
cursor: pointer;
|
264
264
|
background: linear-gradient(270deg, #dee0ea 0%, #eaecf2 100%);
|
265
265
|
}
|
266
|
-
|
266
|
+
.bk-navigation-wrapper .navigation-container {
|
267
267
|
position: relative;
|
268
268
|
display: flex;
|
269
269
|
max-width: calc(100vw - 60px);
|
@@ -272,7 +272,7 @@
|
|
272
272
|
flex: 1 1 1px;
|
273
273
|
flex-direction: column;
|
274
274
|
}
|
275
|
-
|
275
|
+
.bk-navigation-wrapper .navigation-container .container-header {
|
276
276
|
display: flex;
|
277
277
|
width: 100%;
|
278
278
|
height: 60px;
|
@@ -285,26 +285,26 @@
|
|
285
285
|
align-items: center;
|
286
286
|
justify-content: flex-end;
|
287
287
|
}
|
288
|
-
|
288
|
+
.bk-navigation-wrapper .navigation-container .container-header-title {
|
289
289
|
height: 21px;
|
290
290
|
font-size: 16px;
|
291
291
|
line-height: 21px;
|
292
292
|
color: #313238;
|
293
293
|
}
|
294
|
-
|
294
|
+
.bk-navigation-wrapper .navigation-container .container-header-sets {
|
295
295
|
display: flex;
|
296
296
|
flex: 1 1 auto;
|
297
297
|
align-items: center;
|
298
298
|
justify-content: flex-end;
|
299
299
|
}
|
300
|
-
|
300
|
+
.bk-navigation-wrapper .navigation-container .container-content {
|
301
301
|
max-height: calc(100vh - 60px);
|
302
302
|
padding: 20px 24px 0;
|
303
303
|
overflow: auto;
|
304
304
|
background: #f5f7fa;
|
305
305
|
flex: 1;
|
306
306
|
}
|
307
|
-
|
307
|
+
.bk-navigation-wrapper .navigation-container .container-footer {
|
308
308
|
display: flex;
|
309
309
|
flex: 0 0 auto;
|
310
310
|
flex-direction: row;
|
package/lib/notify/index.js
CHANGED
@@ -1,10 +1,8 @@
|
|
1
|
-
import "../styles/reset.css";
|
2
|
-
import "./notify.less";
|
3
1
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
4
|
-
import * as
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
5
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
6
|
-
import * as
|
7
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
8
6
|
/******/ // The require scope
|
9
7
|
/******/ var __webpack_require__ = {};
|
10
8
|
/******/
|
@@ -84,9 +82,9 @@ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
84
82
|
var y = x => () => x
|
85
83
|
const external_vue_namespaceObject = x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
86
84
|
;// CONCATENATED MODULE: external "../shared"
|
87
|
-
var
|
88
|
-
var
|
89
|
-
const
|
85
|
+
var external_shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
86
|
+
var external_shared_y = x => () => x
|
87
|
+
const external_shared_namespaceObject = external_shared_x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["bkZIndexManager"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.bkZIndexManager, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.isElement });
|
90
88
|
;// CONCATENATED MODULE: ../../packages/hooks/use-message.ts
|
91
89
|
|
92
90
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -177,7 +175,7 @@ var Message = function Message(constructor, options) {
|
|
177
175
|
(0,external_vue_namespaceObject.render)(vm, container);
|
178
176
|
instances[position].push(vm);
|
179
177
|
var target;
|
180
|
-
if (vm.props.getContainer && (0,
|
178
|
+
if (vm.props.getContainer && (0,external_shared_namespaceObject.isElement)(vm.props.getContainer)) {
|
181
179
|
target = vm.props.getContainer;
|
182
180
|
} else {
|
183
181
|
target = document.body;
|
@@ -208,13 +206,13 @@ var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); retur
|
|
208
206
|
var external_vue_types_y = x => () => x
|
209
207
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
210
208
|
;// CONCATENATED MODULE: external "../config-provider"
|
211
|
-
var
|
212
|
-
var
|
213
|
-
const
|
209
|
+
var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
210
|
+
var external_config_provider_y = x => () => x
|
211
|
+
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
214
212
|
;// CONCATENATED MODULE: external "../icon"
|
215
|
-
var
|
216
|
-
var
|
217
|
-
const
|
213
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
214
|
+
var external_icon_y = x => () => x
|
215
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error, ["Info"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Info, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
|
218
216
|
;// CONCATENATED MODULE: ../../packages/notify/src/notifyConstructor.tsx
|
219
217
|
|
220
218
|
|
@@ -256,18 +254,18 @@ var NotifyThemeEnum;
|
|
256
254
|
NotifyThemeEnum["ERROR"] = "error";
|
257
255
|
})(NotifyThemeEnum || (NotifyThemeEnum = {}));
|
258
256
|
var notifyProps = {
|
259
|
-
id:
|
260
|
-
title:
|
261
|
-
message:
|
257
|
+
id: external_shared_namespaceObject.PropTypes.string.def(''),
|
258
|
+
title: external_shared_namespaceObject.PropTypes.string.def(''),
|
259
|
+
message: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.func]).def(''),
|
262
260
|
theme: (0,external_vue_types_namespaceObject.toType)('notifyTheme', {}).def(NotifyThemeEnum.PRIMARY),
|
263
|
-
position:
|
264
|
-
delay:
|
265
|
-
dismissable:
|
266
|
-
offsetX:
|
267
|
-
offsetY:
|
268
|
-
spacing:
|
269
|
-
extCls:
|
270
|
-
onClose:
|
261
|
+
position: external_shared_namespaceObject.PropTypes.position().def('top-right'),
|
262
|
+
delay: external_shared_namespaceObject.PropTypes.number.def(5000),
|
263
|
+
dismissable: external_shared_namespaceObject.PropTypes.bool.def(true),
|
264
|
+
offsetX: external_shared_namespaceObject.PropTypes.number.def(100),
|
265
|
+
offsetY: external_shared_namespaceObject.PropTypes.number.def(30),
|
266
|
+
spacing: external_shared_namespaceObject.PropTypes.number.def(10),
|
267
|
+
extCls: external_shared_namespaceObject.PropTypes.string.def(''),
|
268
|
+
onClose: external_shared_namespaceObject.PropTypes.func
|
271
269
|
};
|
272
270
|
/* harmony default export */ const notifyConstructor = ((0,external_vue_namespaceObject.defineComponent)({
|
273
271
|
name: 'Notify',
|
@@ -275,7 +273,7 @@ var notifyProps = {
|
|
275
273
|
emits: ['destroy'],
|
276
274
|
setup: function setup(props, _ref) {
|
277
275
|
var emit = _ref.emit;
|
278
|
-
var zIndex =
|
276
|
+
var zIndex = external_shared_namespaceObject.bkZIndexManager.getMessageNextIndex();
|
279
277
|
var horizontalClass = (0,external_vue_namespaceObject.computed)(function () {
|
280
278
|
return props.position.indexOf('right') > 1 ? 'right' : 'left';
|
281
279
|
});
|
@@ -285,7 +283,7 @@ var notifyProps = {
|
|
285
283
|
var styles = (0,external_vue_namespaceObject.computed)(function () {
|
286
284
|
return _defineProperty(_defineProperty(_defineProperty({}, horizontalClass.value, "".concat(props.offsetX, "px")), verticalProperty.value, "".concat(props.offsetY, "px")), "zIndex", zIndex);
|
287
285
|
});
|
288
|
-
var _usePrefix = (0,
|
286
|
+
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
289
287
|
resolveClassName = _usePrefix.resolveClassName;
|
290
288
|
var classNames = (0,external_vue_namespaceObject.computed)(function () {
|
291
289
|
return [resolveClassName('notify'), resolveClassName("notify-".concat(props.theme)), horizontalClass.value];
|
@@ -331,10 +329,10 @@ var notifyProps = {
|
|
331
329
|
var _this = this;
|
332
330
|
var renderIcon = function renderIcon() {
|
333
331
|
var iconMap = {
|
334
|
-
primary: (0,external_vue_namespaceObject.createVNode)(
|
335
|
-
warning: (0,external_vue_namespaceObject.createVNode)(
|
336
|
-
success: (0,external_vue_namespaceObject.createVNode)(
|
337
|
-
error: (0,external_vue_namespaceObject.createVNode)(
|
332
|
+
primary: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Info, null, null),
|
333
|
+
warning: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Warn, null, null),
|
334
|
+
success: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Success, null, null),
|
335
|
+
error: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, null, null)
|
338
336
|
};
|
339
337
|
return iconMap[_this.theme];
|
340
338
|
};
|
@@ -353,7 +351,7 @@ var notifyProps = {
|
|
353
351
|
"class": "".concat(_this.resolveClassName('notify-content-header'))
|
354
352
|
}, [_this.title]) : '', (0,external_vue_namespaceObject.createVNode)("div", {
|
355
353
|
"class": "".concat(_this.resolveClassName('notify-content-text'))
|
356
|
-
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(
|
354
|
+
}, [_this.renderMessage])]), _this.dismissable && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
357
355
|
"class": "".concat(_this.resolveClassName('notify-icon'), " ").concat(_this.resolveClassName('notify-close')),
|
358
356
|
"onClick": _this.handleClose
|
359
357
|
}, null)]), [[external_vue_namespaceObject.vShow, _this.visible]])];
|
package/lib/notify/notify.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
.bk-notify {
|
2
2
|
position: fixed;
|
3
3
|
display: flex;
|
4
4
|
width: 360px;
|
@@ -11,23 +11,23 @@
|
|
11
11
|
border-radius: 2px;
|
12
12
|
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
|
13
13
|
}
|
14
|
-
|
14
|
+
.bk-notify .bk-notify-icon {
|
15
15
|
position: absolute;
|
16
16
|
top: 17px;
|
17
17
|
margin-right: 5px;
|
18
18
|
font-size: 18px;
|
19
19
|
color: #3a84ff;
|
20
20
|
}
|
21
|
-
|
21
|
+
.bk-notify.bk-notify-warning .bk-notify-icon {
|
22
22
|
color: #ff9c01;
|
23
23
|
}
|
24
|
-
|
24
|
+
.bk-notify.bk-notify-success .bk-notify-icon {
|
25
25
|
color: #2dcb56;
|
26
26
|
}
|
27
|
-
|
27
|
+
.bk-notify.bk-notify-error .bk-notify-icon {
|
28
28
|
color: #ea3636;
|
29
29
|
}
|
30
|
-
|
30
|
+
.bk-notify .bk-notify-icon.bk-notify-close {
|
31
31
|
top: 6px;
|
32
32
|
right: 6px;
|
33
33
|
margin-right: 0;
|
@@ -35,10 +35,10 @@
|
|
35
35
|
color: #c4c6cc;
|
36
36
|
cursor: pointer;
|
37
37
|
}
|
38
|
-
|
38
|
+
.bk-notify .bk-notify-icon.bk-notify-close:hover {
|
39
39
|
color: #979ba5;
|
40
40
|
}
|
41
|
-
|
41
|
+
.bk-notify .bk-notify-content-header {
|
42
42
|
display: inline-block;
|
43
43
|
padding-left: 25px;
|
44
44
|
margin-top: 0;
|
@@ -47,23 +47,23 @@
|
|
47
47
|
font-weight: 700;
|
48
48
|
color: #313238;
|
49
49
|
}
|
50
|
-
|
50
|
+
.bk-notify .bk-notify-content-text {
|
51
51
|
display: inline-block;
|
52
52
|
padding-left: 23px;
|
53
53
|
}
|
54
|
-
|
55
|
-
|
54
|
+
.bk-notify-fade-enter-active,
|
55
|
+
.bk-notify-fade-leave-active {
|
56
56
|
transition: transform 0.3s linear, opacity 0.2s linear;
|
57
57
|
}
|
58
|
-
|
59
|
-
|
58
|
+
.bk-notify-fade-enter-from,
|
59
|
+
.bk-notify-fade-leave-to {
|
60
60
|
opacity: 0;
|
61
61
|
}
|
62
|
-
|
63
|
-
|
62
|
+
.bk-notify-fade-enter-from.right,
|
63
|
+
.bk-notify-fade-leave-to.right {
|
64
64
|
transform: translateX(100%);
|
65
65
|
}
|
66
|
-
|
67
|
-
|
66
|
+
.bk-notify-fade-enter-from.left,
|
67
|
+
.bk-notify-fade-leave-to.left {
|
68
68
|
transform: translateX(-100%);
|
69
69
|
}
|
package/lib/notify/notify.less
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
-
|
3
|
+
.@{bk-prefix}-notify {
|
4
4
|
position: fixed;
|
5
5
|
display: flex;
|
6
6
|
width: 360px;
|
@@ -62,15 +62,13 @@
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
transition:
|
68
|
-
transform 0.3s linear,
|
69
|
-
opacity 0.2s linear;
|
65
|
+
.@{bk-prefix}-notify-fade-enter-active,
|
66
|
+
.@{bk-prefix}-notify-fade-leave-active {
|
67
|
+
transition: transform .3s linear, opacity .2s linear;
|
70
68
|
}
|
71
69
|
|
72
|
-
|
73
|
-
|
70
|
+
.@{bk-prefix}-notify-fade-enter-from,
|
71
|
+
.@{bk-prefix}-notify-fade-leave-to {
|
74
72
|
opacity: 0;
|
75
73
|
|
76
74
|
&.right {
|
@@ -12,13 +12,13 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
18
19
|
--line-height-base: 16px;
|
19
20
|
--line-height-medium: 16px;
|
20
21
|
--line-height-large: 18px;
|
21
|
-
--border-color: #dcdee5;
|
22
22
|
--component-size-small: 26px;
|
23
23
|
--component-size-base: 32px;
|
24
24
|
--component-size-large: 40px;
|
@@ -111,7 +111,7 @@
|
|
111
111
|
--table-border-color: #dcdee5;
|
112
112
|
--table-head-bg-color: #fafbfd;
|
113
113
|
--table-head-font-color: #313238;
|
114
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
115
115
|
--table-row-hover-bg-color: #f5f7fa;
|
116
116
|
--table-row-active-bg-color: #f0f1f5;
|
117
117
|
--cascader-panel-border-color: #dcdee5;
|
@@ -127,7 +127,7 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
|
130
|
+
.bk-notify {
|
131
131
|
position: fixed;
|
132
132
|
display: flex;
|
133
133
|
width: 360px;
|
@@ -140,23 +140,23 @@
|
|
140
140
|
border-radius: 2px;
|
141
141
|
box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.15);
|
142
142
|
}
|
143
|
-
|
143
|
+
.bk-notify .bk-notify-icon {
|
144
144
|
position: absolute;
|
145
145
|
top: 17px;
|
146
146
|
margin-right: 5px;
|
147
147
|
font-size: 18px;
|
148
148
|
color: var(--primary-color);
|
149
149
|
}
|
150
|
-
|
150
|
+
.bk-notify.bk-notify-warning .bk-notify-icon {
|
151
151
|
color: var(--warning-color);
|
152
152
|
}
|
153
|
-
|
153
|
+
.bk-notify.bk-notify-success .bk-notify-icon {
|
154
154
|
color: var(--success-color);
|
155
155
|
}
|
156
|
-
|
156
|
+
.bk-notify.bk-notify-error .bk-notify-icon {
|
157
157
|
color: var(--danger-color);
|
158
158
|
}
|
159
|
-
|
159
|
+
.bk-notify .bk-notify-icon.bk-notify-close {
|
160
160
|
top: 6px;
|
161
161
|
right: 6px;
|
162
162
|
margin-right: 0;
|
@@ -164,10 +164,10 @@
|
|
164
164
|
color: var(--light-gray);
|
165
165
|
cursor: pointer;
|
166
166
|
}
|
167
|
-
|
167
|
+
.bk-notify .bk-notify-icon.bk-notify-close:hover {
|
168
168
|
color: var(--gray-color);
|
169
169
|
}
|
170
|
-
|
170
|
+
.bk-notify .bk-notify-content-header {
|
171
171
|
display: inline-block;
|
172
172
|
padding-left: 25px;
|
173
173
|
margin-top: 0;
|
@@ -176,23 +176,23 @@
|
|
176
176
|
font-weight: 700;
|
177
177
|
color: #313238;
|
178
178
|
}
|
179
|
-
|
179
|
+
.bk-notify .bk-notify-content-text {
|
180
180
|
display: inline-block;
|
181
181
|
padding-left: 23px;
|
182
182
|
}
|
183
|
-
|
184
|
-
|
183
|
+
.bk-notify-fade-enter-active,
|
184
|
+
.bk-notify-fade-leave-active {
|
185
185
|
transition: transform 0.3s linear, opacity 0.2s linear;
|
186
186
|
}
|
187
|
-
|
188
|
-
|
187
|
+
.bk-notify-fade-enter-from,
|
188
|
+
.bk-notify-fade-leave-to {
|
189
189
|
opacity: 0;
|
190
190
|
}
|
191
|
-
|
192
|
-
|
191
|
+
.bk-notify-fade-enter-from.right,
|
192
|
+
.bk-notify-fade-leave-to.right {
|
193
193
|
transform: translateX(100%);
|
194
194
|
}
|
195
|
-
|
196
|
-
|
195
|
+
.bk-notify-fade-enter-from.left,
|
196
|
+
.bk-notify-fade-leave-to.left {
|
197
197
|
transform: translateX(-100%);
|
198
198
|
}
|
@@ -1,9 +1,6 @@
|
|
1
|
-
import "../
|
2
|
-
import "./overflow-title.less";
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
4
2
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as
|
6
|
-
import "../popover/popover.less";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
7
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
8
5
|
/******/ // The require scope
|
9
6
|
/******/ var __webpack_require__ = {};
|
@@ -41,19 +38,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
41
38
|
;// CONCATENATED MODULE: external "../shared"
|
42
39
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
43
40
|
var y = x => () => x
|
44
|
-
const
|
41
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.debounce, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
45
42
|
;// CONCATENATED MODULE: external "vue"
|
46
43
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
47
44
|
var external_vue_y = x => () => x
|
48
45
|
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef });
|
49
46
|
;// CONCATENATED MODULE: external "../popover"
|
50
|
-
var
|
51
|
-
var
|
52
|
-
const
|
53
|
-
;// CONCATENATED MODULE: external "../popover/popover.less"
|
54
|
-
var popover_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
55
|
-
var popover_less_y = x => () => x
|
56
|
-
const popover_less_namespaceObject = popover_less_x({ });
|
47
|
+
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
48
|
+
var external_popover_y = x => () => x
|
49
|
+
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
57
50
|
;// CONCATENATED MODULE: external "vue-types"
|
58
51
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
59
52
|
var external_vue_types_y = x => () => x
|
@@ -83,12 +76,12 @@ function placementType() {
|
|
83
76
|
return (0,external_vue_types_namespaceObject.string)().def(PlacementEnum.BOTTOM);
|
84
77
|
}
|
85
78
|
/* harmony default export */ const props = ({
|
86
|
-
content:
|
87
|
-
type:
|
88
|
-
calType:
|
89
|
-
boundary:
|
79
|
+
content: external_shared_namespaceObject.PropTypes.string,
|
80
|
+
type: external_shared_namespaceObject.PropTypes.oneOf(['tips', 'title']).def('title'),
|
81
|
+
calType: external_shared_namespaceObject.PropTypes.oneOf(['dom', 'canvas']).def('dom'),
|
82
|
+
boundary: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string.def('parent'), external_shared_namespaceObject.PropTypes.instanceOf(HTMLElement)]).def(document.body),
|
90
83
|
placement: placementType().def(PlacementEnum.TOP_START),
|
91
|
-
resizeable:
|
84
|
+
resizeable: external_shared_namespaceObject.PropTypes.bool,
|
92
85
|
popoverOptions: Object // popover属性
|
93
86
|
});
|
94
87
|
;// CONCATENATED MODULE: ../../packages/overflow-title/src/utils/getActualWidthByCanvas.ts
|
@@ -131,7 +124,6 @@ function getActualWidthByDom(text, options) {
|
|
131
124
|
|
132
125
|
|
133
126
|
|
134
|
-
|
135
127
|
/* harmony default export */ const overflow_title = ((0,external_vue_namespaceObject.defineComponent)({
|
136
128
|
name: 'OverflowTitle',
|
137
129
|
props: props,
|
@@ -150,7 +142,7 @@ function getActualWidthByDom(text, options) {
|
|
150
142
|
});
|
151
143
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
152
144
|
var clientWidth = boxRef.value.clientWidth;
|
153
|
-
var resizeHandler = (0,
|
145
|
+
var resizeHandler = (0,external_shared_namespaceObject.debounce)(500, function () {
|
154
146
|
isShowTips.value = false;
|
155
147
|
textProps.value = {};
|
156
148
|
var textWidth = 0;
|
@@ -199,7 +191,7 @@ function getActualWidthByDom(text, options) {
|
|
199
191
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
200
192
|
"ref": "boxRef",
|
201
193
|
"class": "position-relative"
|
202
|
-
}, [(0,external_vue_namespaceObject.createVNode)(
|
194
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
203
195
|
"placement": this.placement,
|
204
196
|
"boundary": this.boundary || document.body,
|
205
197
|
"popoverDelay": [200, 0]
|
@@ -282,7 +274,7 @@ var overflowTitle = {
|
|
282
274
|
|
283
275
|
|
284
276
|
|
285
|
-
var BkOverflowTitle = (0,
|
277
|
+
var BkOverflowTitle = (0,external_shared_namespaceObject.withInstall)(overflow_title);
|
286
278
|
|
287
279
|
/* harmony default export */ const src = (BkOverflowTitle);
|
288
280
|
var __webpack_exports__OverflowTitle = __webpack_exports__.OverflowTitle;
|