bkui-vue 2.0.2-beta.59 → 2.0.2-beta.60
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 +19 -19
- package/dist/index.esm.js +118 -115
- package/dist/index.umd.js +2 -2
- package/lib/date-picker/index.js +11 -6
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/date-picker/index.js
CHANGED
@@ -6204,14 +6204,18 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
6204
6204
|
state.internalValue = state.internalValue.map(function () {
|
6205
6205
|
return null;
|
6206
6206
|
});
|
6207
|
-
emit('clear');
|
6208
|
-
emitChange(props.type);
|
6209
|
-
reset();
|
6210
6207
|
state.showClose = false;
|
6211
6208
|
state.shortcut = null;
|
6209
|
+
emit('clear');
|
6210
|
+
emitChange(props.type);
|
6212
6211
|
setTimeout(function () {
|
6213
6212
|
return onSelectionModeChange(props.type);
|
6214
6213
|
}, 500);
|
6214
|
+
// 处理选择快捷项后再选择时间清空后再次打开,currentView面板状态未重置
|
6215
|
+
(0,external_vue_.nextTick)(function () {
|
6216
|
+
var _pickerPanelRef$value4;
|
6217
|
+
pickerPanelRef === null || pickerPanelRef === void 0 || (_pickerPanelRef$value4 = pickerPanelRef.value) === null || _pickerPanelRef$value4 === void 0 || _pickerPanelRef$value4.resetView();
|
6218
|
+
});
|
6215
6219
|
};
|
6216
6220
|
var onPickSuccess = function onPickSuccess() {
|
6217
6221
|
var _inputRef$value5;
|
@@ -6220,9 +6224,10 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
6220
6224
|
// v-model 的值还是之前的值
|
6221
6225
|
(0,external_vue_.nextTick)(function () {
|
6222
6226
|
emit('pick-success');
|
6227
|
+
// 处理选择快捷项后再选择时间确认后再次打开,currentView面板状态未重置
|
6228
|
+
reset();
|
6223
6229
|
});
|
6224
6230
|
inputRef === null || inputRef === void 0 || (_inputRef$value5 = inputRef.value) === null || _inputRef$value5 === void 0 || _inputRef$value5.blur();
|
6225
|
-
reset();
|
6226
6231
|
};
|
6227
6232
|
var onPick = function onPick(_dates) {
|
6228
6233
|
var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
@@ -6275,8 +6280,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
6275
6280
|
};
|
6276
6281
|
var triggerRef = (0,external_vue_.ref)(null);
|
6277
6282
|
var handleToggleTime = function handleToggleTime() {
|
6278
|
-
var _pickerPanelRef$
|
6279
|
-
(_pickerPanelRef$
|
6283
|
+
var _pickerPanelRef$value5, _pickerPanelRef$value6;
|
6284
|
+
(_pickerPanelRef$value5 = (_pickerPanelRef$value6 = pickerPanelRef.value).handleToggleTime) === null || _pickerPanelRef$value5 === void 0 || _pickerPanelRef$value5.call(_pickerPanelRef$value6);
|
6280
6285
|
};
|
6281
6286
|
var onPickFirst = function onPickFirst(val, type) {
|
6282
6287
|
emit('pick-first', val, type);
|
package/lib/index.js
CHANGED