bkui-vue 1.0.3-beta.9 → 2.0.1-beta.2
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 +71 -73
- package/dist/index.esm.js +21328 -19060
- package/dist/index.umd.js +71 -73
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +4 -4
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +9 -1
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/components.d.ts +2 -0
- package/lib/components.js +3 -1
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +4 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/base/month-table.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +70 -32
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +4 -0
- package/lib/dialog/dialog.css +176 -150
- package/lib/dialog/dialog.d.ts +40 -109
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +179 -150
- package/lib/dialog/index.d.ts +99 -263
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +10 -35
- package/lib/directives/index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +3 -1
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +5 -2
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +18 -16
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.js +7 -1
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +41 -309
- package/lib/modal/index.js +285 -671
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +155 -76
- package/lib/modal/modal.d.ts +18 -116
- package/lib/modal/modal.less +107 -55
- package/lib/modal/modal.variable.css +158 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/index.js +46 -52
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +45 -26
- package/lib/pop-confirm/index.js +8 -5
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +45 -26
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/preset.d.ts +2 -0
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +39 -21
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18763 -0
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/scrollbar/scrollbar.variable.css +204 -0
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +701 -366
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +116 -6
- package/lib/search-select/utils.d.ts +19 -6
- package/lib/select/index.d.ts +124 -6
- package/lib/select/index.js +1336 -72
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +55 -12
- package/lib/select/select.d.ts +50 -2
- package/lib/select/select.less +69 -19
- package/lib/select/select.variable.css +58 -12
- package/lib/select/selectTagInput.d.ts +7 -0
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +70 -50
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +5 -0
- package/lib/sideslider/index.d.ts +55 -185
- package/lib/sideslider/index.js +81 -55
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +25 -87
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +45 -5
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +7 -17
- package/lib/table/const.d.ts +4 -4
- package/lib/table/index.d.ts +29 -64
- package/lib/table/index.js +18068 -613
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +11 -0
- package/lib/table/props.d.ts +17 -7
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +11 -0
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +6 -43
- package/lib/table/use-column.d.ts +9 -10
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +1 -1
- package/lib/table-column/index.d.ts +92 -266
- package/lib/table-column/index.js +24 -98
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +54 -65
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/constant.d.ts +3 -1
- package/lib/tree/index.d.ts +44 -0
- package/lib/tree/index.js +17548 -25
- package/lib/tree/props.d.ts +18 -0
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +28 -2
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +1 -1
- package/lib/shared/mask.d.ts +0 -11
package/lib/slider/index.d.ts
CHANGED
@@ -98,6 +98,10 @@ declare const Slider: {
|
|
98
98
|
type: FunctionConstructor;
|
99
99
|
default: (value: number) => number;
|
100
100
|
};
|
101
|
+
labelClick: {
|
102
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
103
|
+
default: boolean;
|
104
|
+
};
|
101
105
|
}>> & {
|
102
106
|
onChange?: (...args: any[]) => any;
|
103
107
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -177,6 +181,10 @@ declare const Slider: {
|
|
177
181
|
type: FunctionConstructor;
|
178
182
|
default: (value: number) => number;
|
179
183
|
};
|
184
|
+
labelClick: {
|
185
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
186
|
+
default: boolean;
|
187
|
+
};
|
180
188
|
}>> & {
|
181
189
|
onChange?: (...args: any[]) => any;
|
182
190
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -199,6 +207,7 @@ declare const Slider: {
|
|
199
207
|
formatterLabel: Function;
|
200
208
|
formatterButtonLabel: Function;
|
201
209
|
formatterTipLabel: Function;
|
210
|
+
labelClick: boolean | Function;
|
202
211
|
}, true, {}, {}, {
|
203
212
|
P: {};
|
204
213
|
B: {};
|
@@ -280,6 +289,10 @@ declare const Slider: {
|
|
280
289
|
type: FunctionConstructor;
|
281
290
|
default: (value: number) => number;
|
282
291
|
};
|
292
|
+
labelClick: {
|
293
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
294
|
+
default: boolean;
|
295
|
+
};
|
283
296
|
}>> & {
|
284
297
|
onChange?: (...args: any[]) => any;
|
285
298
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -304,6 +317,7 @@ declare const Slider: {
|
|
304
317
|
formatterLabel: Function;
|
305
318
|
formatterButtonLabel: Function;
|
306
319
|
formatterTipLabel: Function;
|
320
|
+
labelClick: boolean | Function;
|
307
321
|
}>;
|
308
322
|
__isFragment?: never;
|
309
323
|
__isTeleport?: never;
|
@@ -382,6 +396,10 @@ declare const Slider: {
|
|
382
396
|
type: FunctionConstructor;
|
383
397
|
default: (value: number) => number;
|
384
398
|
};
|
399
|
+
labelClick: {
|
400
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
401
|
+
default: boolean;
|
402
|
+
};
|
385
403
|
}>> & {
|
386
404
|
onChange?: (...args: any[]) => any;
|
387
405
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -406,5 +424,6 @@ declare const Slider: {
|
|
406
424
|
formatterLabel: Function;
|
407
425
|
formatterButtonLabel: Function;
|
408
426
|
formatterTipLabel: Function;
|
427
|
+
labelClick: boolean | Function;
|
409
428
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
410
429
|
export default Slider;
|
package/lib/slider/index.js
CHANGED
@@ -817,7 +817,11 @@ var off = function off(element, event, handler) {
|
|
817
817
|
"default": function _default(value) {
|
818
818
|
return value;
|
819
819
|
}
|
820
|
-
}
|
820
|
+
},
|
821
|
+
labelClick: {
|
822
|
+
type: [Boolean, Function],
|
823
|
+
"default": false
|
824
|
+
}
|
821
825
|
},
|
822
826
|
emits: ['update:modelValue', 'change'],
|
823
827
|
setup: function setup(props, _ref) {
|
@@ -1155,6 +1159,30 @@ var off = function off(element, event, handler) {
|
|
1155
1159
|
};
|
1156
1160
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
1157
1161
|
resolveClassName = _usePrefix.resolveClassName;
|
1162
|
+
var handleStepLabelClick = function handleStepLabelClick(e, step) {
|
1163
|
+
var _ref3, _step$stepWidth;
|
1164
|
+
var percent = (_ref3 = (_step$stepWidth = step.stepWidth) !== null && _step$stepWidth !== void 0 ? _step$stepWidth : step.percent) !== null && _ref3 !== void 0 ? _ref3 : step;
|
1165
|
+
if (props.labelClick) {
|
1166
|
+
e.stopPropagation();
|
1167
|
+
e.stopImmediatePropagation();
|
1168
|
+
e.preventDefault();
|
1169
|
+
var fnResult;
|
1170
|
+
if (typeof props.labelClick === 'function') {
|
1171
|
+
var args = {
|
1172
|
+
percent: percent,
|
1173
|
+
step: step
|
1174
|
+
};
|
1175
|
+
fnResult = props.labelClick(e, args);
|
1176
|
+
if (fnResult === false) {
|
1177
|
+
return;
|
1178
|
+
}
|
1179
|
+
}
|
1180
|
+
percent = typeof fnResult === 'number' ? fnResult : percent;
|
1181
|
+
console.log('handleStepLabelClick', percent);
|
1182
|
+
setPosition(percent);
|
1183
|
+
return;
|
1184
|
+
}
|
1185
|
+
};
|
1158
1186
|
var renderDom = function renderDom() {
|
1159
1187
|
var _slots$start, _slots$end;
|
1160
1188
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -1178,7 +1206,10 @@ var off = function off(element, event, handler) {
|
|
1178
1206
|
"class": ["".concat(resolveClassName('slider-interval')), {
|
1179
1207
|
vertical: props.vertical
|
1180
1208
|
}],
|
1181
|
-
"style": getIntervalStyle(interval)
|
1209
|
+
"style": getIntervalStyle(interval),
|
1210
|
+
"onClick": function onClick(e) {
|
1211
|
+
return handleStepLabelClick(e, interval);
|
1212
|
+
}
|
1182
1213
|
}, null);
|
1183
1214
|
}) : null, props.customContent ? customList.value.map(function (custom, index) {
|
1184
1215
|
if (index === 0 || index === customList.value.length - 1) {
|
@@ -1189,7 +1220,10 @@ var off = function off(element, event, handler) {
|
|
1189
1220
|
"class": ["".concat(resolveClassName('slider-interval')), {
|
1190
1221
|
vertical: props.vertical
|
1191
1222
|
}],
|
1192
|
-
"style": getIntervalStyle(custom.percent)
|
1223
|
+
"style": getIntervalStyle(custom.percent),
|
1224
|
+
"onClick": function onClick(e) {
|
1225
|
+
return handleStepLabelClick(e, custom);
|
1226
|
+
}
|
1193
1227
|
}, null);
|
1194
1228
|
}) : undefined, props.showBetweenLabel || props.showIntervalLabel || props.customContent ? (0,external_vue_namespaceObject.createVNode)("div", {
|
1195
1229
|
"class": ["".concat(resolveClassName('slider-labels')), props.vertical ? 'vertical' : 'horizontal']
|
@@ -1212,7 +1246,10 @@ var off = function off(element, event, handler) {
|
|
1212
1246
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1213
1247
|
"class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
|
1214
1248
|
"key": index,
|
1215
|
-
"style": getIntervalStyle(intervalLabel.stepWidth)
|
1249
|
+
"style": getIntervalStyle(intervalLabel.stepWidth),
|
1250
|
+
"onClick": function onClick(e) {
|
1251
|
+
return handleStepLabelClick(e, intervalLabel);
|
1252
|
+
}
|
1216
1253
|
}, [intervalLabel.stepLabel]);
|
1217
1254
|
});
|
1218
1255
|
}
|
@@ -1221,7 +1258,10 @@ var off = function off(element, event, handler) {
|
|
1221
1258
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1222
1259
|
"class": ["".concat(resolveClassName('slider-label')), props.vertical ? 'vertical' : 'horizontal'],
|
1223
1260
|
"key": index,
|
1224
|
-
"style": getIntervalStyle(item.percent)
|
1261
|
+
"style": getIntervalStyle(item.percent),
|
1262
|
+
"onClick": function onClick(e) {
|
1263
|
+
return handleStepLabelClick(e, item);
|
1264
|
+
}
|
1225
1265
|
}, [item.label]);
|
1226
1266
|
});
|
1227
1267
|
}
|
package/lib/slider/slider.css
CHANGED
@@ -76,6 +76,20 @@
|
|
76
76
|
border-radius: 100%;
|
77
77
|
transform: translateX(-50%);
|
78
78
|
}
|
79
|
+
.bk-slider .bk-slider-interval:hover {
|
80
|
+
cursor: pointer;
|
81
|
+
}
|
82
|
+
.bk-slider .bk-slider-interval:hover::after {
|
83
|
+
content: '';
|
84
|
+
position: absolute;
|
85
|
+
left: -5px;
|
86
|
+
top: -4px;
|
87
|
+
width: 10px;
|
88
|
+
height: 10px;
|
89
|
+
border-radius: 50%;
|
90
|
+
background-color: #fff;
|
91
|
+
border: solid 1px #3a84ff;
|
92
|
+
}
|
79
93
|
.bk-slider .bk-slider-interval.vertical {
|
80
94
|
left: 2px;
|
81
95
|
}
|
package/lib/slider/slider.d.ts
CHANGED
@@ -99,6 +99,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
99
99
|
type: FunctionConstructor;
|
100
100
|
default: (value: number) => number;
|
101
101
|
};
|
102
|
+
labelClick: {
|
103
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
104
|
+
default: boolean;
|
105
|
+
};
|
102
106
|
}, {
|
103
107
|
renderDom: () => JSX.Element;
|
104
108
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -175,6 +179,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
175
179
|
type: FunctionConstructor;
|
176
180
|
default: (value: number) => number;
|
177
181
|
};
|
182
|
+
labelClick: {
|
183
|
+
type: (BooleanConstructor | FunctionConstructor)[];
|
184
|
+
default: boolean;
|
185
|
+
};
|
178
186
|
}>> & {
|
179
187
|
onChange?: (...args: any[]) => any;
|
180
188
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
@@ -197,5 +205,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
197
205
|
formatterLabel: Function;
|
198
206
|
formatterButtonLabel: Function;
|
199
207
|
formatterTipLabel: Function;
|
208
|
+
labelClick: boolean | Function;
|
200
209
|
}, {}>;
|
201
210
|
export default _default;
|
package/lib/slider/slider.less
CHANGED
@@ -89,6 +89,21 @@
|
|
89
89
|
border-radius: 100%;
|
90
90
|
transform: translateX(-50%);
|
91
91
|
|
92
|
+
&:hover {
|
93
|
+
cursor: pointer;
|
94
|
+
&::after {
|
95
|
+
content: '';
|
96
|
+
position: absolute;
|
97
|
+
left: -5px;
|
98
|
+
top: -4px;
|
99
|
+
width: 10px;
|
100
|
+
height: 10px;
|
101
|
+
border-radius: 50%;
|
102
|
+
background-color: #fff;
|
103
|
+
border: solid 1px @primary-color;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
92
107
|
&.vertical {
|
93
108
|
left: 2px;
|
94
109
|
}
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-slider {
|
128
131
|
display: flex;
|
@@ -202,6 +205,20 @@
|
|
202
205
|
border-radius: 100%;
|
203
206
|
transform: translateX(-50%);
|
204
207
|
}
|
208
|
+
.bk-slider .bk-slider-interval:hover {
|
209
|
+
cursor: pointer;
|
210
|
+
}
|
211
|
+
.bk-slider .bk-slider-interval:hover::after {
|
212
|
+
content: '';
|
213
|
+
position: absolute;
|
214
|
+
left: -5px;
|
215
|
+
top: -4px;
|
216
|
+
width: 10px;
|
217
|
+
height: 10px;
|
218
|
+
border-radius: 50%;
|
219
|
+
background-color: #fff;
|
220
|
+
border: solid 1px var(--primary-color);
|
221
|
+
}
|
205
222
|
.bk-slider .bk-slider-interval.vertical {
|
206
223
|
left: 2px;
|
207
224
|
}
|
@@ -13,6 +13,7 @@
|
|
13
13
|
--whitesmoke-color: #fafbfd;
|
14
14
|
--disable-color: #dcdee5;
|
15
15
|
--disable-bg-color: #f9fafd;
|
16
|
+
--border-color: #dcdee5;
|
16
17
|
--font-size-base: 12px;
|
17
18
|
--font-size-medium: 14px;
|
18
19
|
--font-size-large: 16px;
|
@@ -124,6 +125,8 @@
|
|
124
125
|
--search-select-placeholder-color: var(--light-gray);
|
125
126
|
--search-select-message-color: var(--danger-color);
|
126
127
|
--search-select-menu-border-color: var(--disable-color);
|
128
|
+
--select-active-color: #e1ecff;
|
129
|
+
--select-hover-color: #f5f7fa;
|
127
130
|
}
|
128
131
|
* {
|
129
132
|
box-sizing: border-box;
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
@keyframes loading-scale-animate {
|
128
131
|
0% {
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-popper {
|
128
131
|
display: none;
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-F-scroll-x {
|
128
131
|
overflow-x: auto;
|
package/lib/styles/reset.css
CHANGED
package/lib/styles/reset.less
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
&::-webkit-scrollbar-thumb {
|
10
10
|
background: #ddd;
|
11
11
|
border-radius: 20px;
|
12
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
12
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
13
13
|
}
|
14
14
|
}
|
15
15
|
|
@@ -19,9 +19,7 @@ body {
|
|
19
19
|
margin: 0;
|
20
20
|
}
|
21
21
|
|
22
|
-
|
23
|
-
*::before,
|
24
|
-
*::after {
|
22
|
+
* {
|
25
23
|
box-sizing: border-box;
|
26
24
|
}
|
27
25
|
|
@@ -199,7 +197,6 @@ select {
|
|
199
197
|
* 3. Improve usability and consistency of cursor style between image-type `input` and others.
|
200
198
|
*/
|
201
199
|
button,
|
202
|
-
|
203
200
|
html input[type='button'],
|
204
201
|
input[type='reset'],
|
205
202
|
input[type='submit'] {
|
@@ -295,7 +292,7 @@ input[type='search']::-webkit-search-decoration {
|
|
295
292
|
* Define consistent border, margin, and padding.
|
296
293
|
*/
|
297
294
|
fieldset {
|
298
|
-
padding: .35em .625em .75em;
|
295
|
+
padding: 0.35em 0.625em 0.75em;
|
299
296
|
margin: 0 2px;
|
300
297
|
border: 1px solid #c0c0c0;
|
301
298
|
}
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.scroll-bar-style::-webkit-scrollbar {
|
128
131
|
width: 4px;
|
@@ -138,9 +141,7 @@ body {
|
|
138
141
|
padding: 0;
|
139
142
|
margin: 0;
|
140
143
|
}
|
141
|
-
|
142
|
-
*::before,
|
143
|
-
*::after {
|
144
|
+
* {
|
144
145
|
box-sizing: border-box;
|
145
146
|
}
|
146
147
|
/**
|
@@ -13,6 +13,7 @@
|
|
13
13
|
@whitesmoke-color: #fafbfd;
|
14
14
|
@disable-color: #dcdee5;
|
15
15
|
@disable-bg-color: #f9fafd;
|
16
|
+
@border-color: #dcdee5;
|
16
17
|
|
17
18
|
@font-size-base: 12px;
|
18
19
|
@font-size-medium: 14px;
|
@@ -167,3 +168,7 @@
|
|
167
168
|
@search-select-placeholder-color: @light-gray;
|
168
169
|
@search-select-message-color: @danger-color;
|
169
170
|
@search-select-menu-border-color: @disable-color;
|
171
|
+
|
172
|
+
// select theme
|
173
|
+
@select-active-color: #e1ecff;
|
174
|
+
@select-hover-color: #f5f7fa;
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-swiper-home {
|
128
131
|
position: relative;
|
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
@keyframes loading-scale-animate {
|
128
131
|
0% {
|
package/lib/tab/tab.variable.css
CHANGED
@@ -12,6 +12,7 @@
|
|
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;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-tab {
|
128
131
|
position: relative;
|
package/lib/table/cache.d.ts
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
+
type StackStorageFnType = {
|
2
|
+
[name: string]: {
|
3
|
+
timerId?: number;
|
4
|
+
fn?: () => void;
|
5
|
+
};
|
6
|
+
};
|
1
7
|
export default class BkTableCache {
|
2
|
-
storage:
|
8
|
+
storage: WeakMap<Object, StackStorageFnType>;
|
9
|
+
defKey: symbol;
|
3
10
|
constructor();
|
4
|
-
queueStack(methodName: any, fn?: () => void): void;
|
5
|
-
clearQueueStack(methodName: any): void;
|
11
|
+
queueStack(methodName: any, fn?: () => void, key?: Object): void;
|
12
|
+
clearQueueStack(methodName: any, key?: Object): void;
|
6
13
|
}
|
14
|
+
export {};
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import { Column } from '../props';
|
1
2
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
column: import("vue-types").VueTypeDef<
|
3
|
+
column: import("vue-types").VueTypeDef<Column>;
|
3
4
|
row: import("vue-types").VueTypeValidableDef<any> & {
|
4
5
|
default: any;
|
5
6
|
};
|
@@ -24,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
25
|
};
|
25
26
|
resizerWay: import("vue-types").VueTypeDef<"debounce" | "throttle">;
|
26
27
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
27
|
-
column: import("vue-types").VueTypeDef<
|
28
|
+
column: import("vue-types").VueTypeDef<Column>;
|
28
29
|
row: import("vue-types").VueTypeValidableDef<any> & {
|
29
30
|
default: any;
|
30
31
|
};
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
-
import { Column } from '../props';
|
3
2
|
declare const TableColumnProp: {
|
4
3
|
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
5
4
|
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
@@ -14,7 +13,7 @@ declare const TableColumnProp: {
|
|
14
13
|
default: string;
|
15
14
|
};
|
16
15
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
17
|
-
type: import("vue-types").VueTypeDef<"
|
16
|
+
type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
|
18
17
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
19
18
|
default: boolean;
|
20
19
|
} & {
|
@@ -65,7 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
64
|
default: string;
|
66
65
|
};
|
67
66
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
68
|
-
type: import("vue-types").VueTypeDef<"
|
67
|
+
type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
|
69
68
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
69
|
default: boolean;
|
71
70
|
} & {
|
@@ -101,10 +100,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
101
100
|
default: number;
|
102
101
|
};
|
103
102
|
}, {
|
104
|
-
initColumns: (_col: Column | Column[], _rm?: boolean) => void;
|
105
|
-
bkTableCache: {
|
106
|
-
queueStack: (_: any, fn: any) => any;
|
107
|
-
};
|
108
103
|
column: {
|
109
104
|
fixed?: boolean | "right" | "left";
|
110
105
|
resizable?: boolean;
|
@@ -160,14 +155,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
160
155
|
height?: number;
|
161
156
|
maxHeight?: number;
|
162
157
|
};
|
163
|
-
type?: "
|
158
|
+
type?: "index" | "selection" | "expand" | "__COL_TYPE_NONE";
|
164
159
|
label?: import("../props").LabelFunctionString;
|
165
160
|
width?: string | number;
|
166
161
|
className?: import("../props").RowClassFunctionString;
|
167
162
|
align?: "" | "right" | "left" | "center";
|
168
163
|
showOverflowTooltip?: boolean | {
|
169
|
-
content: string |
|
170
|
-
disabled?: (col: Column, row: any) => boolean;
|
164
|
+
content: string | ((col: import("../props").Column, row: any) => string);
|
165
|
+
disabled?: boolean | ((col: import("../props").Column, row: any) => boolean);
|
171
166
|
watchCellResize?: boolean;
|
172
167
|
mode?: "auto" | "static";
|
173
168
|
popoverOption?: any;
|
@@ -177,12 +172,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
177
172
|
field: import("../props").LabelFunctionString;
|
178
173
|
prop?: import("../props").LabelFunctionString;
|
179
174
|
};
|
180
|
-
}, unknown, {}, {
|
181
|
-
updateColumnDefine(unmounted?: boolean): void;
|
182
|
-
copyProps(props: ITableColumn): {};
|
183
|
-
updateColumnDefineByParent(): void;
|
184
|
-
unmountColumn(): void;
|
185
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
175
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
186
176
|
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
187
177
|
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
188
178
|
render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
|
@@ -196,7 +186,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
196
186
|
default: string;
|
197
187
|
};
|
198
188
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
199
|
-
type: import("vue-types").VueTypeDef<"
|
189
|
+
type: import("vue-types").VueTypeDef<"index" | "selection" | "expand" | "__COL_TYPE_NONE">;
|
200
190
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
201
191
|
default: boolean;
|
202
192
|
} & {
|
package/lib/table/const.d.ts
CHANGED
@@ -53,7 +53,7 @@ export declare const COLUMN_ATTRIBUTE: {
|
|
53
53
|
/**
|
54
54
|
* Y 轴滚动条宽度
|
55
55
|
*/
|
56
|
-
export declare const SCROLLY_WIDTH =
|
56
|
+
export declare const SCROLLY_WIDTH = 0;
|
57
57
|
/**
|
58
58
|
* 默认行高
|
59
59
|
*/
|
@@ -82,9 +82,9 @@ export declare const createDefaultSizeList: (t: ComputedRef<Language['table']>)
|
|
82
82
|
/**
|
83
83
|
* Provide key: init column when use <column { ...props }> template
|
84
84
|
*/
|
85
|
-
export declare const PROVIDE_KEY_INIT_COL
|
86
|
-
export declare const PROVIDE_KEY_TB_CACHE
|
87
|
-
export declare const BK_COLUMN_UPDATE_DEFINE
|
85
|
+
export declare const PROVIDE_KEY_INIT_COL: unique symbol;
|
86
|
+
export declare const PROVIDE_KEY_TB_CACHE: unique symbol;
|
87
|
+
export declare const BK_COLUMN_UPDATE_DEFINE: unique symbol;
|
88
88
|
/**
|
89
89
|
* 表格底部高度
|
90
90
|
* 分页组件
|