bkui-vue 2.0.1-beta.1 → 2.0.1-beta.3
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 +2 -2
- package/dist/index.esm.js +1792 -1796
- package/dist/index.umd.js +13 -13
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/radio/index.js +8 -13
- package/lib/select/select.css +1 -2
- package/lib/select/select.less +1 -2
- package/lib/select/select.variable.css +1 -2
- package/package.json +1 -1
package/lib/info-box/index.js
CHANGED
@@ -661,7 +661,7 @@ var genDefaultState = function genDefaultState() {
|
|
661
661
|
while (1) switch (_context2.prev = _context2.next) {
|
662
662
|
case 0:
|
663
663
|
_context2.next = 2;
|
664
|
-
return state.beforeClose('
|
664
|
+
return state.beforeClose('cancel');
|
665
665
|
case 2:
|
666
666
|
willClose = _context2.sent;
|
667
667
|
if (willClose) {
|
package/lib/radio/index.js
CHANGED
@@ -238,13 +238,14 @@ var useRadio = function useRadio() {
|
|
238
238
|
};
|
239
239
|
// 值更新
|
240
240
|
var handleChange = function handleChange(event) {
|
241
|
-
var
|
241
|
+
var _radioGroup$props$bef, _beforeChangeFn;
|
242
242
|
if (isDisabled.value || isPrechecking.value) {
|
243
243
|
return;
|
244
244
|
}
|
245
245
|
var $targetInput = event.target;
|
246
246
|
var newValue = $targetInput.checked;
|
247
|
-
var
|
247
|
+
var beforeChangeFn = (_radioGroup$props$bef = radioGroup === null || radioGroup === void 0 ? void 0 : radioGroup.props.beforeChange) !== null && _radioGroup$props$bef !== void 0 ? _radioGroup$props$bef : props.beforeChange;
|
248
|
+
var beforeChangeValue = (_beforeChangeFn = beforeChangeFn === null || beforeChangeFn === void 0 ? void 0 : beforeChangeFn(newValue, event, props)) !== null && _beforeChangeFn !== void 0 ? _beforeChangeFn : true;
|
248
249
|
Promise.resolve(beforeChangeValue).then(function (result) {
|
249
250
|
if (result) {
|
250
251
|
isChecked.value = $targetInput.checked;
|
@@ -565,20 +566,14 @@ var radioGroupProps = {
|
|
565
566
|
}
|
566
567
|
};
|
567
568
|
var handleChange = function handleChange(checkedRadioInstance) {
|
568
|
-
var _props$beforeChange, _props$beforeChange2;
|
569
569
|
var nextValue = checkedRadioInstance.label;
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
radioInstanceList.forEach(function (radioInstance) {
|
574
|
-
if (radioInstance !== checkedRadioInstance) {
|
575
|
-
radioInstance.setChecked(false);
|
576
|
-
}
|
577
|
-
});
|
578
|
-
context.emit('update:modelValue', nextValue);
|
579
|
-
context.emit('change', nextValue);
|
570
|
+
radioInstanceList.forEach(function (radioInstance) {
|
571
|
+
if (radioInstance !== checkedRadioInstance) {
|
572
|
+
radioInstance.setChecked(false);
|
580
573
|
}
|
581
574
|
});
|
575
|
+
context.emit('update:modelValue', nextValue);
|
576
|
+
context.emit('change', nextValue);
|
582
577
|
};
|
583
578
|
(0,external_vue_namespaceObject.provide)(radioGroupKey, {
|
584
579
|
props: props,
|
package/lib/select/select.css
CHANGED
@@ -330,9 +330,8 @@
|
|
330
330
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option {
|
331
331
|
position: relative;
|
332
332
|
display: flex;
|
333
|
-
height: 32px;
|
333
|
+
min-height: 32px;
|
334
334
|
padding: 0 12px;
|
335
|
-
line-height: 32px;
|
336
335
|
color: #63656e;
|
337
336
|
text-align: left;
|
338
337
|
cursor: pointer;
|
package/lib/select/select.less
CHANGED
@@ -459,9 +459,8 @@
|
|
459
459
|
.bk-popover.bk-pop2-content.bk-select-popover .bk-select-content-wrapper .bk-select-option {
|
460
460
|
position: relative;
|
461
461
|
display: flex;
|
462
|
-
height: 32px;
|
462
|
+
min-height: 32px;
|
463
463
|
padding: 0 12px;
|
464
|
-
line-height: 32px;
|
465
464
|
color: #63656e;
|
466
465
|
text-align: left;
|
467
466
|
cursor: pointer;
|