bkui-vue 1.0.3-beta.67.dialog.2 → 1.0.3-beta.67.dialog.4
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 +33 -33
- package/dist/index.esm.js +1938 -1913
- package/dist/index.umd.js +22 -22
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/info-box/index.js +27 -17
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/modal/index.js +35 -32
- 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 +14 -0
- package/package.json +1 -1
package/lib/info-box/index.js
CHANGED
@@ -432,7 +432,7 @@ const shared_namespaceObject = x({ ["withInstall"]: () => __WEBPACK_EXTERNAL_MOD
|
|
432
432
|
;// CONCATENATED MODULE: external "vue"
|
433
433
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
434
434
|
var external_vue_y = x => () => x
|
435
|
-
const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
435
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref });
|
436
436
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
437
437
|
function _typeof(o) {
|
438
438
|
"@babel/helpers - typeof";
|
@@ -589,6 +589,7 @@ var genDefaultState = function genDefaultState() {
|
|
589
589
|
title: undefined,
|
590
590
|
subTitle: undefined,
|
591
591
|
content: undefined,
|
592
|
+
footer: undefined,
|
592
593
|
headerAlign: 'center',
|
593
594
|
contentAlign: 'center',
|
594
595
|
footerAlign: 'center',
|
@@ -597,7 +598,7 @@ var genDefaultState = function genDefaultState() {
|
|
597
598
|
escClose: false,
|
598
599
|
closeIcon: true,
|
599
600
|
confirmText: '确定',
|
600
|
-
theme:
|
601
|
+
theme: undefined,
|
601
602
|
confirmButtonTheme: 'primary',
|
602
603
|
cancelText: '',
|
603
604
|
beforeClose: function beforeClose() {
|
@@ -749,6 +750,29 @@ var genDefaultState = function genDefaultState() {
|
|
749
750
|
}
|
750
751
|
return state.content;
|
751
752
|
};
|
753
|
+
var renderFooter = function renderFooter() {
|
754
|
+
if ((0,isFunction_namespaceObject["default"])(state.footer)) {
|
755
|
+
return state.footer();
|
756
|
+
}
|
757
|
+
if (state.footer) {
|
758
|
+
return state.footer;
|
759
|
+
}
|
760
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [state.confirmText && (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
761
|
+
"loading": isLoading.value,
|
762
|
+
"theme": state.confirmButtonTheme,
|
763
|
+
"onClick": handleConfirm
|
764
|
+
}, {
|
765
|
+
"default": function _default() {
|
766
|
+
return [state.confirmText];
|
767
|
+
}
|
768
|
+
}), state.cancelText && (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
769
|
+
"onClick": handleCancel
|
770
|
+
}, {
|
771
|
+
"default": function _default() {
|
772
|
+
return [state.cancelText];
|
773
|
+
}
|
774
|
+
})]);
|
775
|
+
};
|
752
776
|
return (0,external_vue_namespaceObject.createVNode)(modal_namespaceObject["default"], {
|
753
777
|
"class": [resolveClassName('infobox'), state["class"]],
|
754
778
|
"isShow": isShow.value,
|
@@ -779,21 +803,7 @@ var genDefaultState = function genDefaultState() {
|
|
779
803
|
footer: function footer() {
|
780
804
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
781
805
|
"class": _defineProperty(_defineProperty({}, resolveClassName('infobox-footer'), true), "is-position-".concat(state.footerAlign), state.footerAlign)
|
782
|
-
}, [
|
783
|
-
"loading": isLoading.value,
|
784
|
-
"theme": state.confirmButtonTheme,
|
785
|
-
"onClick": handleConfirm
|
786
|
-
}, {
|
787
|
-
"default": function _default() {
|
788
|
-
return [state.confirmText];
|
789
|
-
}
|
790
|
-
}), state.cancelText && (0,external_vue_namespaceObject.createVNode)(button_namespaceObject["default"], {
|
791
|
-
"onClick": handleCancel
|
792
|
-
}, {
|
793
|
-
"default": function _default() {
|
794
|
-
return [state.cancelText];
|
795
|
-
}
|
796
|
-
})]);
|
806
|
+
}, [renderFooter()]);
|
797
807
|
},
|
798
808
|
close: function close() {
|
799
809
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
@@ -9,6 +9,7 @@ export interface Props {
|
|
9
9
|
title?: string | (() => VNode | string) | VNode;
|
10
10
|
subTitle?: string | (() => VNode) | VNode;
|
11
11
|
content?: string | (() => VNode) | VNode;
|
12
|
+
footer?: string | (() => VNode) | VNode;
|
12
13
|
headerAlign?: 'left' | 'center' | 'right';
|
13
14
|
footerAlign?: 'left' | 'center' | 'right';
|
14
15
|
contentAlign?: 'left' | 'center' | 'right';
|
package/lib/modal/index.js
CHANGED
@@ -87,7 +87,7 @@ function _defineProperty(obj, key, value) {
|
|
87
87
|
;// CONCATENATED MODULE: external "vue"
|
88
88
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
89
89
|
var external_vue_y = x => () => x
|
90
|
-
const external_vue_namespaceObject = external_vue_x({ ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["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, ["useAttrs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
90
|
+
const external_vue_namespaceObject = external_vue_x({ ["Teleport"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Teleport, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["useAttrs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useAttrs, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
91
91
|
;// CONCATENATED MODULE: external "../config-provider"
|
92
92
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
93
93
|
var config_provider_y = x => () => x
|
@@ -130,41 +130,38 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
|
|
130
130
|
resolveClassName = _usePrefix.resolveClassName;
|
131
131
|
var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
|
132
132
|
var contentStyles = (0,external_vue_namespaceObject.ref)({});
|
133
|
-
var
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
}
|
155
|
-
}, 30);
|
156
|
-
observer = new ResizeObserver(function () {
|
157
|
-
calcContentScroll();
|
158
|
-
});
|
159
|
-
observer.observe(resizeTarget.value);
|
160
|
-
calcContentScroll();
|
161
|
-
};
|
133
|
+
var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
|
134
|
+
var _root$value$querySele = root.value.querySelector(".".concat(resolveClassName('modal-header'))).getBoundingClientRect(),
|
135
|
+
headerHeight = _root$value$querySele.height;
|
136
|
+
var _root$value$querySele2 = root.value.querySelector(".".concat(resolveClassName('modal-content'), " div")).getBoundingClientRect(),
|
137
|
+
contentHeight = _root$value$querySele2.height;
|
138
|
+
var _root$value$querySele3 = root.value.querySelector(".".concat(resolveClassName('modal-footer'))).getBoundingClientRect(),
|
139
|
+
footerHeight = _root$value$querySele3.height;
|
140
|
+
var windowInnerHeight = window.innerHeight;
|
141
|
+
isContentScroll.value = windowInnerHeight < headerHeight + contentHeight + footerHeight + 20;
|
142
|
+
if (isContentScroll.value || props.fullscreen) {
|
143
|
+
contentStyles.value = {
|
144
|
+
height: "".concat(windowInnerHeight - headerHeight - footerHeight, "px"),
|
145
|
+
overflow: 'auto',
|
146
|
+
'scrollbar-gutter': 'stable'
|
147
|
+
};
|
148
|
+
// fullscreen 时默认为 true
|
149
|
+
isContentScroll.value = true;
|
150
|
+
} else {
|
151
|
+
contentStyles.value = {};
|
152
|
+
}
|
153
|
+
}, 30);
|
162
154
|
(0,external_vue_namespaceObject.watch)(function () {
|
163
155
|
return props.isShow;
|
164
156
|
}, function () {
|
157
|
+
var observer;
|
165
158
|
if (props.isShow) {
|
166
|
-
|
167
|
-
|
159
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
160
|
+
observer = new ResizeObserver(function () {
|
161
|
+
calcContentScroll();
|
162
|
+
});
|
163
|
+
observer.observe(resizeTarget.value);
|
164
|
+
calcContentScroll();
|
168
165
|
});
|
169
166
|
} else {
|
170
167
|
if (observer) {
|
@@ -175,6 +172,12 @@ var useContentResize = function useContentResize(root, resizeTarget, props) {
|
|
175
172
|
}, {
|
176
173
|
immediate: true
|
177
174
|
});
|
175
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
176
|
+
window.addEventListener('resize', calcContentScroll);
|
177
|
+
});
|
178
|
+
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
179
|
+
window.removeEventListener('resize', calcContentScroll);
|
180
|
+
});
|
178
181
|
return {
|
179
182
|
contentStyles: contentStyles,
|
180
183
|
isContentScroll: isContentScroll
|
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
|
}
|
@@ -205,6 +205,20 @@
|
|
205
205
|
border-radius: 100%;
|
206
206
|
transform: translateX(-50%);
|
207
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
|
+
}
|
208
222
|
.bk-slider .bk-slider-interval.vertical {
|
209
223
|
left: 2px;
|
210
224
|
}
|