@opentiny/vue-renderless 3.12.0 → 3.13.0-alpha.0
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/action-sheet/index.js +20 -13
- package/action-sheet/vue.js +8 -7
- package/alert/index.js +50 -1
- package/alert/vue.js +36 -9
- package/amount/index.js +100 -25
- package/amount/vue.js +102 -26
- package/anchor/index.js +1 -0
- package/area/index.js +8 -8
- package/area/vue.js +5 -5
- package/async-flowchart/index.js +16 -3
- package/autocomplete/index.js +58 -14
- package/autocomplete/vue.js +40 -12
- package/badge/index.js +12 -0
- package/badge/vue.js +6 -4
- package/breadcrumb/vue.js +3 -1
- package/breadcrumb-item/vue.js +6 -2
- package/button/index.js +5 -1
- package/calendar/index.js +2 -86
- package/calendar-bar/index.js +20 -6
- package/calendar-view/index.js +10 -12
- package/calendar-view/vue.js +17 -4
- package/cascader/index.js +80 -34
- package/cascader/vue.js +49 -19
- package/cascader-menu/index.js +7 -7
- package/cascader-menu/vue.js +2 -3
- package/cascader-mobile/index.js +37 -24
- package/cascader-mobile/vue.js +7 -1
- package/cascader-node/index.js +13 -1
- package/cascader-node/vue.js +15 -4
- package/cascader-panel/index.js +1 -1
- package/cascader-select/column-index.js +150 -0
- package/cascader-select/column.js +120 -0
- package/cascader-select/index.js +29 -165
- package/cascader-select/usePicker.js +251 -0
- package/cascader-select/useTouch.js +65 -0
- package/cascader-select/vue.js +35 -47
- package/cascader-view/index.js +1 -1
- package/cell/vue.js +2 -1
- package/chart-bar/index.js +2 -3
- package/chart-core/deps/constants.js +43 -43
- package/chart-core/index.js +1 -1
- package/chart-gauge/index.js +2 -2
- package/chart-heatmap/index.js +17 -10
- package/chart-line/index.js +8 -9
- package/chart-tree/index.js +2 -2
- package/chart-waterfall/index.js +4 -6
- package/checkbox/index.js +17 -0
- package/checkbox/vue.js +16 -7
- package/checkbox-group/vue.js +2 -0
- package/col/index.js +7 -2
- package/col/vue.js +1 -1
- package/collapse/index.js +3 -3
- package/color-select-panel/vue.js +0 -7
- package/column-list-item/index.js +17 -1
- package/column-list-item/vue.js +8 -3
- package/common/date.js +2 -0
- package/common/deps/dom.js +19 -4
- package/common/deps/popper.js +48 -5
- package/common/deps/touch-emulator.js +4 -1
- package/common/deps/tree-model/node.js +1 -1
- package/common/deps/tree-model/tree-store.js +2 -13
- package/common/deps/useRect.js +25 -0
- package/common/deps/vue-popper.js +22 -10
- package/common/index.js +1 -1
- package/common/runtime.js +1 -1
- package/common/type.js +2 -1
- package/common/validate/rules/enum.js +1 -1
- package/common/validate/rules/pattern.js +2 -2
- package/common/validate/rules/range.js +8 -5
- package/common/validate/rules/required.js +1 -1
- package/common/validate/rules/type.js +5 -5
- package/common/validate/rules/whitespace.js +1 -1
- package/common/validate/util.js +15 -16
- package/common/validate/validations/integer.js +1 -1
- package/common/validate/validations/method.js +1 -1
- package/container/index.js +17 -1
- package/container/vue.js +12 -3
- package/currency/index.js +74 -7
- package/currency/vue.js +21 -5
- package/date-panel/index.js +16 -0
- package/date-panel/vue.js +8 -2
- package/date-picker-mobile/index.js +12 -0
- package/date-picker-mobile/vue.js +7 -1
- package/date-range/vue.js +12 -5
- package/date-table/index.js +5 -0
- package/date-table/vue.js +3 -1
- package/dialog-box/index.js +17 -6
- package/dialog-select/index.js +6 -3
- package/dialog-select/vue.js +8 -4
- package/drawer/index.js +26 -5
- package/drawer/vue.js +13 -7
- package/dropdown/index.js +7 -7
- package/dropdown/vue.js +6 -2
- package/dropdown-item/index.js +9 -1
- package/dropdown-item/mf.js +6 -10
- package/dropdown-item/vue.js +21 -8
- package/dropdown-menu/index.js +20 -7
- package/dropdown-menu/vue.js +4 -3
- package/exception/index.js +2 -7
- package/exception/vue.js +7 -10
- package/fall-menu/index.js +5 -1
- package/fall-menu/vue.js +13 -2
- package/file-upload/index.js +47 -12
- package/file-upload/vue.js +38 -8
- package/filter-box/index.js +1 -0
- package/floating-button/index.js +62 -16
- package/floating-button/vue.js +27 -9
- package/flowchart/index.js +134 -25
- package/flowchart/node.js +13 -4
- package/flowchart/vue.js +16 -4
- package/form/vue.js +3 -1
- package/form-item/index.js +4 -4
- package/form-item/vue.js +3 -1
- package/fullscreen/index.js +5 -5
- package/fullscreen/vue.js +3 -3
- package/grid/utils/common.js +10 -5
- package/grid/utils/dom.js +7 -1
- package/image/index.js +6 -0
- package/image/vue.js +6 -3
- package/image-viewer/index.js +62 -51
- package/image-viewer/vue.js +17 -5
- package/input/index.js +89 -22
- package/input/vue.js +52 -21
- package/ip-address/index.js +61 -19
- package/ip-address/vue.js +22 -4
- package/label/index.js +56 -0
- package/label/vue.js +26 -0
- package/link/vue.js +3 -1
- package/loading/vue.js +8 -2
- package/logout/index.js +1 -1
- package/mask/index.js +13 -0
- package/mask/vue.js +18 -0
- package/mind-map/index.js +47 -0
- package/mind-map/vue.js +53 -0
- package/multi-select/index.js +150 -10
- package/multi-select/vue.js +46 -11
- package/multi-select-item/index.js +17 -0
- package/multi-select-item/vue.js +31 -0
- package/numeric/index.js +51 -9
- package/numeric/vue.js +44 -14
- package/option/index.js +12 -5
- package/option/vue.js +15 -7
- package/option-group/index.js +3 -3
- package/package.json +1 -1
- package/pager/index.js +372 -0
- package/pager/vue.js +125 -2
- package/picker/index.js +253 -48
- package/picker/mb.js +42 -0
- package/picker/vue.js +70 -17
- package/picker-column/index.js +1 -1
- package/pop-upload/index.js +0 -2
- package/pop-upload/vue.js +3 -4
- package/popconfirm/index.js +3 -6
- package/popconfirm/vue.js +1 -1
- package/popeditor/index.js +55 -24
- package/popeditor/vue.js +15 -11
- package/popover/index.js +4 -4
- package/popover/vue.js +6 -6
- package/popup/index.js +3 -3
- package/popup/vue.js +5 -5
- package/pull-refresh/index.js +57 -65
- package/pull-refresh/vue.js +23 -7
- package/radio/index.js +0 -17
- package/radio/vue.js +4 -10
- package/rate/index.js +1 -1
- package/rate/vue.js +0 -2
- package/record/index.js +4 -1
- package/{rich-text-edtior → rich-text-editor}/index.js +2 -2
- package/{rich-text-edtior → rich-text-editor}/vue.js +2 -5
- package/scrollbar/index.js +11 -11
- package/scrollbar/vue-bar.js +3 -3
- package/scrollbar/vue.js +5 -5
- package/search/index.js +1 -1
- package/search/vue.js +3 -1
- package/select/index.js +185 -113
- package/select/vue.js +105 -20
- package/select-dropdown/index.js +62 -4
- package/select-dropdown/vue.js +85 -8
- package/select-view/index.js +3 -1
- package/signature/index.js +241 -0
- package/signature/vue.js +88 -0
- package/skeleton/index.js +14 -0
- package/skeleton/vue.js +15 -0
- package/skeleton-item/vue.js +15 -0
- package/slider/index.js +27 -7
- package/slider/vue.js +26 -7
- package/split/index.js +1 -1
- package/split/vue.js +4 -6
- package/standard-list-item/index.js +15 -1
- package/standard-list-item/vue.js +6 -5
- package/steps/index.js +25 -2
- package/steps/slide-bar.js +8 -1
- package/steps/vue.js +15 -3
- package/tab-item-mf/vue.js +14 -8
- package/tab-nav/index.js +9 -4
- package/tab-nav/vue.js +6 -2
- package/tabbar/vue.js +9 -3
- package/tabbar-item/vue.js +3 -2
- package/tabs/index.js +1 -1
- package/tabs/vue.js +1 -0
- package/tabs-mf/index.js +20 -6
- package/tabs-mf/vue-nav.js +26 -11
- package/tabs-mf/vue.js +7 -7
- package/tag/index.js +1 -1
- package/tag/vue.js +5 -1
- package/tag-group/index.js +2 -1
- package/tall-storage/index.js +4 -5
- package/time/index.js +4 -1
- package/time/vue.js +1 -1
- package/time-line/vue.js +1 -1
- package/time-picker-mobile/index.js +24 -5
- package/time-picker-mobile/vue.js +17 -7
- package/time-range/index.js +2 -0
- package/time-spinner/index.js +0 -3
- package/time-spinner/vue.js +2 -3
- package/timeline-item/vue.js +1 -1
- package/tooltip/index.js +1 -2
- package/tooltip/vue.js +3 -3
- package/transfer/index.js +20 -22
- package/transfer/vue.js +1 -6
- package/transfer-panel/vue.js +3 -5
- package/tree/index.js +21 -4
- package/tree/vue.js +10 -8
- package/tree-menu/index.js +27 -3
- package/tree-menu/vue.js +27 -14
- package/tree-node/index.js +12 -10
- package/tree-node/vue.js +6 -5
- package/types/action-menu.type.d.ts +5 -0
- package/types/action-sheet.type.d.ts +118 -1
- package/types/alert.type.d.ts +16 -1
- package/types/amount.type.d.ts +168 -1
- package/types/area.type.d.ts +134 -1
- package/types/async-flowchart.type.d.ts +72 -0
- package/types/autocomplete.type.d.ts +199 -1
- package/types/badge.type.d.ts +3 -1
- package/types/breadcrumb-item.type.d.ts +2 -0
- package/types/breadcrumb.type.d.ts +2 -0
- package/types/button.type.d.ts +5 -0
- package/types/cascader-menu.type.d.ts +3 -4
- package/types/cascader-node.type.d.ts +5 -2
- package/types/cascader-panel.type-2bd03be3.d.ts +241 -0
- package/types/cascader-panel.type.d.ts +3 -241
- package/types/cascader.type.d.ts +327 -1
- package/types/checkbox.type.d.ts +9 -0
- package/types/collapse.type.d.ts +19 -2
- package/types/date-picker.type.d.ts +33 -0
- package/types/dialog-box.type.d.ts +5 -1
- package/types/drawer.type.d.ts +132 -1
- package/types/{dropdown-item.type-bf83e929.d.ts → dropdown-item.type-8475a549.d.ts} +8 -14
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/dropdown.type.d.ts +2 -5
- package/types/fall-menu.type.d.ts +94 -1
- package/types/file-upload.type.d.ts +1 -1
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-d0fd42f3.d.ts → form.type-d88482e4.d.ts} +3 -0
- package/types/form.type.d.ts +1 -1
- package/types/input.type.d.ts +23 -9
- package/types/ip-address.type.d.ts +160 -1
- package/types/label.type.d.ts +81 -0
- package/types/link.type.d.ts +6 -3
- package/types/mind-map.type.d.ts +20 -0
- package/types/modal.type.d.ts +4 -2
- package/types/numeric.type.d.ts +36 -9
- package/types/pager.type.d.ts +171 -1
- package/types/picker.type.d.ts +14 -0
- package/types/popconfirm.type.d.ts +85 -1
- package/types/popeditor.type.d.ts +4 -0
- package/types/popover.type.d.ts +3 -3
- package/types/radio.type.d.ts +0 -4
- package/types/rate.type.d.ts +236 -1
- package/types/search.type.d.ts +88 -1
- package/types/shared.type.d.ts +1 -1
- package/types/skeleton-item.type.d.ts +38 -0
- package/types/skeleton.type.d.ts +45 -0
- package/types/slider.type.d.ts +8 -1
- package/types/steps.type.d.ts +14 -3
- package/types/tab-item.type.d.ts +0 -1
- package/types/tab-nav.type.d.ts +6 -1
- package/types/tabs.type.d.ts +5 -0
- package/types/tag-group.type.d.ts +64 -1
- package/types/tag.type.d.ts +12 -0
- package/types/tooltip.type.d.ts +1 -1
- package/types/transfer.type.d.ts +183 -1
- package/types/tree-menu.type.d.ts +210 -1
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-343e8c11.d.ts → upload-list.type-1078fba2.d.ts} +27 -6
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/wizard.type.d.ts +1 -0
- package/upload/index.js +59 -29
- package/upload/vue.js +6 -4
- package/upload-list/index.js +14 -14
- package/upload-list/vue.js +5 -2
- package/user/index.js +5 -4
- package/user-head/index.js +1 -1
- package/wheel/index.js +3 -0
- package/wizard/vue.js +4 -2
package/popup/index.js
CHANGED
|
@@ -52,10 +52,10 @@ const close = ({ api, constants, emit, props, state }) => () => {
|
|
|
52
52
|
emit("update:modelValue", false);
|
|
53
53
|
emit("close");
|
|
54
54
|
};
|
|
55
|
-
const onTouchMove = ({
|
|
55
|
+
const onTouchMove = ({ vm, state }) => (event) => {
|
|
56
56
|
touchMove(event);
|
|
57
57
|
const direction = state.deltaY > 0 ? "10" : "01";
|
|
58
|
-
const el = getScroller()(event.target, refs.$el);
|
|
58
|
+
const el = getScroller()(event.target, vm.$refs.$el);
|
|
59
59
|
const { scrollHeight, offsetHeight, scrollTop } = el;
|
|
60
60
|
let status = "11";
|
|
61
61
|
if (scrollTop === 0) {
|
|
@@ -78,7 +78,7 @@ const renderOverlay = ({ api, nextTick, props, state }) => () => {
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
const updateZIndex = ({
|
|
81
|
+
const updateZIndex = ({ vm, state }) => (value = 0) => vm.$refs.popup.style.zIndex = ++state.context.zIndex + value;
|
|
82
82
|
const clickOverlay = ({ api, props, emit }) => () => {
|
|
83
83
|
if (props.closeOnClickOverlay) {
|
|
84
84
|
api.close();
|
package/popup/vue.js
CHANGED
|
@@ -38,25 +38,25 @@ const initState = ({ reactive, computed, props, api: api2 }) => {
|
|
|
38
38
|
});
|
|
39
39
|
return state;
|
|
40
40
|
};
|
|
41
|
-
const initApi = ({ api: api2, props, state,
|
|
41
|
+
const initApi = ({ api: api2, props, state, vm, emit, nextTick, constants }) => {
|
|
42
42
|
Object.assign(api2, {
|
|
43
43
|
state,
|
|
44
44
|
opened: opened(emit),
|
|
45
45
|
closed: closed(emit),
|
|
46
46
|
getStyle: getStyle(props),
|
|
47
47
|
watchValue: watchValue(api2),
|
|
48
|
-
updateZIndex: updateZIndex({
|
|
48
|
+
updateZIndex: updateZIndex({ vm, state }),
|
|
49
49
|
clickOverlay: clickOverlay({ api: api2, emit, props }),
|
|
50
50
|
renderOverlay: renderOverlay({ api: api2, nextTick, props, state }),
|
|
51
|
-
onTouchMove: onTouchMove({
|
|
51
|
+
onTouchMove: onTouchMove({ vm, state }),
|
|
52
52
|
open: open({ api: api2, constants, emit, props, state }),
|
|
53
53
|
close: close({ api: api2, constants, emit, props, state })
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
|
-
const renderless = (props, { computed, onMounted, reactive, watch, nextTick }, { constants,
|
|
56
|
+
const renderless = (props, { computed, onMounted, reactive, watch, nextTick }, { constants, vm, emit }) => {
|
|
57
57
|
const api2 = {};
|
|
58
58
|
const state = initState({ reactive, computed, props, api: api2 });
|
|
59
|
-
initApi({ api: api2, props, state,
|
|
59
|
+
initApi({ api: api2, props, state, vm, emit, nextTick, constants });
|
|
60
60
|
watch(() => props.modelValue, api2.watchValue, { immediate: true });
|
|
61
61
|
onMounted(() => {
|
|
62
62
|
props.modelValue && api2.open();
|
package/pull-refresh/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
__spreadValues
|
|
3
3
|
} from "../chunk-G2ADBYYC.js";
|
|
4
4
|
import { on, off } from "../common/deps/dom";
|
|
5
|
+
const PULL_UP_TIME_OUT = 300;
|
|
5
6
|
const initPullRefresh = ({ t, props, state }) => () => {
|
|
6
7
|
var _a, _b, _c;
|
|
7
8
|
const defaultOption = {
|
|
@@ -9,15 +10,10 @@ const initPullRefresh = ({ t, props, state }) => () => {
|
|
|
9
10
|
pullingDownText: t("ui.pullRefresh.pullingDown"),
|
|
10
11
|
pullUpDisabled: false,
|
|
11
12
|
pullDownDisabled: false,
|
|
12
|
-
headHeight:
|
|
13
|
-
footHeight: 50
|
|
13
|
+
headHeight: 48
|
|
14
14
|
};
|
|
15
15
|
state.pullUp = __spreadValues(__spreadValues({}, defaultOption), props.pullUp);
|
|
16
16
|
state.pullDown = __spreadValues(__spreadValues({}, defaultOption), props.pullDown);
|
|
17
|
-
state.refreshStyle = {
|
|
18
|
-
paddingTop: state.pullDown.headHeight + "px",
|
|
19
|
-
paddingBottom: state.pullUp.footHeight + "px"
|
|
20
|
-
};
|
|
21
17
|
state.loosingText = (_a = props.loosingText) != null ? _a : t("ui.pullRefresh.loosing");
|
|
22
18
|
state.successText = (_b = props.successText) != null ? _b : t("ui.pullRefresh.success");
|
|
23
19
|
state.failedText = (_c = props.failedText) != null ? _c : t("ui.pullRefresh.failed");
|
|
@@ -25,82 +21,73 @@ const initPullRefresh = ({ t, props, state }) => () => {
|
|
|
25
21
|
const onTouchstart = (state) => (event) => {
|
|
26
22
|
state.draggposition = event.touches[0].clientY;
|
|
27
23
|
};
|
|
28
|
-
const onTouchmove = ({
|
|
29
|
-
if (event.touches[0].clientY
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
state.pullUpReplaces = "";
|
|
42
|
-
}
|
|
24
|
+
const onTouchmove = ({ state, refs }) => (event) => {
|
|
25
|
+
if (event.touches[0].clientY > state.draggposition) {
|
|
26
|
+
pullDownTouchMove(state, refs, event);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const pullDownTouchMove = (state, refs, event) => {
|
|
30
|
+
if (state.disabledPullDown || state.pullDownLoading) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
if (refs.content.scrollTop <= 0) {
|
|
34
|
+
event.preventDefault();
|
|
35
|
+
state.translate3d = (event.touches[0].clientY - state.draggposition) / 2;
|
|
36
|
+
state.pullDownReplaces = Math.abs(state.translate3d) > state.pullDown.headHeight ? state.loosingText : state.pullDown.pullingDownText;
|
|
43
37
|
}
|
|
44
38
|
state.animationDuration = 0;
|
|
45
|
-
state.pullUpLoading = false;
|
|
46
|
-
state.pullDownLoading = false;
|
|
47
39
|
};
|
|
48
|
-
const onTouchend = ({ api, props, state }) => () => {
|
|
40
|
+
const onTouchend = ({ api, props, state, emit, refs }) => (event) => {
|
|
49
41
|
state.animationDuration = props.animationDuration;
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
state.translate3d = state.pullDown.headHeight;
|
|
53
|
-
const { handler } = state.pullDown;
|
|
54
|
-
const pullDownPromise = handler && handler();
|
|
55
|
-
state.pullDownLoading = true;
|
|
56
|
-
if (pullDownPromise == null ? void 0 : pullDownPromise.then) {
|
|
57
|
-
pullDownPromise.then(
|
|
58
|
-
() => {
|
|
59
|
-
api.handlerModelValue("down", "success");
|
|
60
|
-
},
|
|
61
|
-
(e) => {
|
|
62
|
-
api.handlerModelValue("down", "failed");
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
console.error(new Error("handler down is not promise"));
|
|
68
|
-
} else {
|
|
69
|
-
state.translate3d = -state.pullUp.footHeight;
|
|
70
|
-
const { handler } = state.pullUp;
|
|
71
|
-
const pullUpPromise = handler && handler();
|
|
72
|
-
state.pullUpLoading = true;
|
|
73
|
-
if (pullUpPromise == null ? void 0 : pullUpPromise.then) {
|
|
74
|
-
pullUpPromise.then(
|
|
75
|
-
() => {
|
|
76
|
-
api.handlerModelValue("up", "success");
|
|
77
|
-
},
|
|
78
|
-
(e) => {
|
|
79
|
-
api.handlerModelValue("up", "failed");
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
console.error(new Error("handler up is not promise"));
|
|
85
|
-
}
|
|
86
|
-
api.clearPullRefresh();
|
|
42
|
+
if (event.changedTouches[0].clientY < state.draggposition) {
|
|
43
|
+
pullUpTouchEnd(state, emit, refs);
|
|
87
44
|
} else {
|
|
88
|
-
state
|
|
45
|
+
pullDownTouchEnd(api, state, emit);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
const pullDownTouchEnd = (api, state, emit) => {
|
|
49
|
+
if (Math.abs(state.translate3d) < state.pullDown.headHeight) {
|
|
89
50
|
state.pullDownLoading = false;
|
|
90
51
|
api.clearPullRefresh();
|
|
52
|
+
return;
|
|
91
53
|
}
|
|
54
|
+
state.translate3d = state.pullDown.headHeight;
|
|
55
|
+
state.pullDownLoading = true;
|
|
56
|
+
emit("update:modelValue", true);
|
|
57
|
+
emit("pullDown");
|
|
58
|
+
};
|
|
59
|
+
const pullUpTouchEnd = (state, emit, refs) => {
|
|
60
|
+
clearTimeout(state.timer);
|
|
61
|
+
state.timer = setTimeout(() => {
|
|
62
|
+
const footNode = refs.foot;
|
|
63
|
+
if (!state.hasMore || !footNode) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
const contentNode = refs.content;
|
|
67
|
+
const bottomDis = footNode.offsetTop + footNode.clientHeight - contentNode.scrollTop - contentNode.clientHeight;
|
|
68
|
+
if (bottomDis <= state.pullUpDistance) {
|
|
69
|
+
state.pullUpLoading = true;
|
|
70
|
+
emit("update:modelValue", true);
|
|
71
|
+
emit("pullUp");
|
|
72
|
+
}
|
|
73
|
+
}, PULL_UP_TIME_OUT);
|
|
74
|
+
};
|
|
75
|
+
const onScroll = ({ state, emit, refs }) => () => {
|
|
76
|
+
pullUpTouchEnd(state, emit, refs);
|
|
92
77
|
};
|
|
93
78
|
const mountedHandler = ({ api, refs }) => () => {
|
|
94
79
|
const track = refs.track;
|
|
95
80
|
on(track, "touchstart", api.onTouchstart);
|
|
96
81
|
on(track, "touchmove", api.onTouchmove);
|
|
97
82
|
on(track, "touchend", api.onTouchend);
|
|
83
|
+
on(track, "scroll", api.onScroll);
|
|
98
84
|
};
|
|
99
85
|
const beforeUnmountHandler = ({ api, refs }) => () => {
|
|
100
86
|
const track = refs.track;
|
|
101
87
|
off(track, "touchstart", api.onTouchstart);
|
|
102
88
|
off(track, "touchmove", api.onTouchmove);
|
|
103
89
|
off(track, "touchend", api.onTouchend);
|
|
90
|
+
off(track, "scroll", api.onScroll);
|
|
104
91
|
};
|
|
105
92
|
const handlerModelValue = ({ api, state }) => (value, result) => {
|
|
106
93
|
state.pullUpLoading = false;
|
|
@@ -108,7 +95,7 @@ const handlerModelValue = ({ api, state }) => (value, result) => {
|
|
|
108
95
|
if (value === "down") {
|
|
109
96
|
state.pullDownReplaces = state[`${result}Text`];
|
|
110
97
|
} else {
|
|
111
|
-
state.
|
|
98
|
+
state.pullUpStateText = state[`${result}Text`];
|
|
112
99
|
}
|
|
113
100
|
setTimeout(() => {
|
|
114
101
|
api.clearPullRefresh();
|
|
@@ -116,8 +103,9 @@ const handlerModelValue = ({ api, state }) => (value, result) => {
|
|
|
116
103
|
};
|
|
117
104
|
const clearPullRefresh = (state) => () => {
|
|
118
105
|
state.translate3d = 0;
|
|
119
|
-
state.pullUpReplaces = "";
|
|
120
106
|
state.pullDownReplaces = "";
|
|
107
|
+
state.pullDownLoading = false;
|
|
108
|
+
state.pullUpLoading = false;
|
|
121
109
|
};
|
|
122
110
|
export {
|
|
123
111
|
beforeUnmountHandler,
|
|
@@ -125,7 +113,11 @@ export {
|
|
|
125
113
|
handlerModelValue,
|
|
126
114
|
initPullRefresh,
|
|
127
115
|
mountedHandler,
|
|
116
|
+
onScroll,
|
|
128
117
|
onTouchend,
|
|
129
118
|
onTouchmove,
|
|
130
|
-
onTouchstart
|
|
119
|
+
onTouchstart,
|
|
120
|
+
pullDownTouchEnd,
|
|
121
|
+
pullDownTouchMove,
|
|
122
|
+
pullUpTouchEnd
|
|
131
123
|
};
|
package/pull-refresh/vue.js
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
onTouchstart,
|
|
7
7
|
onTouchmove,
|
|
8
8
|
onTouchend,
|
|
9
|
+
onScroll,
|
|
9
10
|
initPullRefresh,
|
|
10
11
|
clearPullRefresh
|
|
11
12
|
} from "./index";
|
|
12
13
|
const api = ["state"];
|
|
13
|
-
const renderless = (props, { watch, onMounted, reactive, onBeforeUnmount }, { t, refs }) => {
|
|
14
|
+
const renderless = (props, { watch, onMounted, reactive, onBeforeUnmount }, { t, refs, emit, nextTick }) => {
|
|
14
15
|
const api2 = {};
|
|
15
16
|
const state = reactive({
|
|
16
|
-
pullUpReplaces: "",
|
|
17
17
|
pullDownReplaces: "",
|
|
18
18
|
refreshStyle: {},
|
|
19
19
|
translate3d: 0,
|
|
@@ -23,17 +23,25 @@ const renderless = (props, { watch, onMounted, reactive, onBeforeUnmount }, { t,
|
|
|
23
23
|
loosingText: "",
|
|
24
24
|
successText: "",
|
|
25
25
|
failedText: "",
|
|
26
|
-
noMoreText: "",
|
|
26
|
+
noMoreText: t("ui.pullRefresh.noMore"),
|
|
27
|
+
pullUpLoadingText: props.pullUpLoadingText,
|
|
28
|
+
pullDownLoadingText: props.pullDownLoadingText,
|
|
27
29
|
pullUp: null,
|
|
28
30
|
pullDown: null,
|
|
31
|
+
hasMore: true,
|
|
29
32
|
successDuration: props.successDuration,
|
|
30
|
-
animationDuration: props.animationDuration
|
|
33
|
+
animationDuration: props.animationDuration,
|
|
34
|
+
disabledPullDown: props.disabledPullDown,
|
|
35
|
+
disabledPullUp: props.disabledPullUp,
|
|
36
|
+
pullUpDistance: typeof props.pullUpDistance === "string" ? Number(props.pullUpDistance) : props.pullUpDistance,
|
|
37
|
+
timer: null
|
|
31
38
|
});
|
|
32
39
|
Object.assign(api2, {
|
|
33
40
|
state,
|
|
34
41
|
onTouchstart: onTouchstart(state),
|
|
35
|
-
onTouchmove: onTouchmove({
|
|
36
|
-
onTouchend: onTouchend({ api: api2, props, state }),
|
|
42
|
+
onTouchmove: onTouchmove({ state, refs }),
|
|
43
|
+
onTouchend: onTouchend({ api: api2, props, state, emit, refs }),
|
|
44
|
+
onScroll: onScroll({ state, emit, refs }),
|
|
37
45
|
mountedHandler: mountedHandler({ api: api2, refs }),
|
|
38
46
|
beforeUnmountHandler: beforeUnmountHandler({ api: api2, refs }),
|
|
39
47
|
handlerModelValue: handlerModelValue({ api: api2, state }),
|
|
@@ -44,7 +52,15 @@ const renderless = (props, { watch, onMounted, reactive, onBeforeUnmount }, { t,
|
|
|
44
52
|
() => props.hasMore,
|
|
45
53
|
(value) => {
|
|
46
54
|
if (!value) {
|
|
47
|
-
state.
|
|
55
|
+
state.hasMore = false;
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{ immediate: true }
|
|
59
|
+
);
|
|
60
|
+
watch(
|
|
61
|
+
() => props.modelValue,
|
|
62
|
+
(value) => {
|
|
63
|
+
if (!value) {
|
|
48
64
|
api2.clearPullRefresh();
|
|
49
65
|
}
|
|
50
66
|
}
|
package/radio/index.js
CHANGED
|
@@ -61,24 +61,7 @@ const toggleEvent = ({ props, vm, type }) => {
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
-
const dispatchDisplayedValue = ({ state, dispatch, api }) => () => {
|
|
65
|
-
if (state.isDisplayOnly) {
|
|
66
|
-
dispatch("FormItem", "displayed-value-changed", {
|
|
67
|
-
type: "radio",
|
|
68
|
-
val: api.getDisplayedValue()
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const getDisplayedValue = ({ vm, state, props }) => () => {
|
|
73
|
-
if (state.model === props.label) {
|
|
74
|
-
return vm.$refs.label && vm.$refs.label.innerText || props.text || props.label;
|
|
75
|
-
} else {
|
|
76
|
-
return "";
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
64
|
export {
|
|
80
|
-
dispatchDisplayedValue,
|
|
81
|
-
getDisplayedValue,
|
|
82
65
|
getModel,
|
|
83
66
|
handleChange,
|
|
84
67
|
isDisabled,
|
package/radio/vue.js
CHANGED
|
@@ -8,17 +8,15 @@ import {
|
|
|
8
8
|
tabIndex,
|
|
9
9
|
getModel,
|
|
10
10
|
setModel,
|
|
11
|
-
toggleEvent
|
|
12
|
-
dispatchDisplayedValue,
|
|
13
|
-
getDisplayedValue
|
|
11
|
+
toggleEvent
|
|
14
12
|
} from "./index";
|
|
15
13
|
const api = ["state", "handleChange"];
|
|
16
|
-
const renderless = (props, { onMounted, onBeforeUnmount, computed, reactive, inject
|
|
14
|
+
const renderless = (props, { onMounted, onBeforeUnmount, computed, reactive, inject }, { vm, parent, emit, constants, nextTick, dispatch }) => {
|
|
17
15
|
parent.tinyForm = parent.tinyForm || inject("form", null);
|
|
18
16
|
const api2 = {};
|
|
19
17
|
const state = reactive({
|
|
20
18
|
vertical: inject("radioVertical", false),
|
|
21
|
-
size: props.size || inject("size", null),
|
|
19
|
+
size: computed(() => props.size || inject("size", null) || (parent.tinyForm || {}).size),
|
|
22
20
|
focus: false,
|
|
23
21
|
radioGroup: null,
|
|
24
22
|
isGroup: computed(() => api2.isGroup()),
|
|
@@ -41,13 +39,9 @@ const renderless = (props, { onMounted, onBeforeUnmount, computed, reactive, inj
|
|
|
41
39
|
isDisabled: isDisabled({ props, state }),
|
|
42
40
|
isDisplayOnly: isDisplayOnly({ props }),
|
|
43
41
|
setModel: setModel({ constants, dispatch, emit, props, vm, state }),
|
|
44
|
-
handleChange: handleChange({ constants, dispatch, emit, state, nextTick })
|
|
45
|
-
dispatchDisplayedValue: dispatchDisplayedValue({ state, api: api2, dispatch }),
|
|
46
|
-
getDisplayedValue: getDisplayedValue({ vm, state, props })
|
|
42
|
+
handleChange: handleChange({ constants, dispatch, emit, state, nextTick })
|
|
47
43
|
});
|
|
48
|
-
watch(() => state.isDisplayOnly, api2.dispatchDisplayedValue);
|
|
49
44
|
onMounted(() => {
|
|
50
|
-
api2.dispatchDisplayedValue();
|
|
51
45
|
dispatch("Tooltip", "tooltip-update");
|
|
52
46
|
toggleEvent({ props, vm, type: "add" });
|
|
53
47
|
});
|
package/rate/index.js
CHANGED
|
@@ -136,7 +136,7 @@ const computedText = ({ props, state }) => {
|
|
|
136
136
|
currentValue = props.texts.length;
|
|
137
137
|
}
|
|
138
138
|
if (props.showScore) {
|
|
139
|
-
result = props.scoreTemplate.replace(/\{\s*value\s*\}/, currentValue);
|
|
139
|
+
result = props.scoreTemplate.replace(/\{\s*value\s*\}/, String(currentValue));
|
|
140
140
|
return result;
|
|
141
141
|
}
|
|
142
142
|
if (props.showText && currentValue > 0) {
|
package/rate/vue.js
CHANGED
|
@@ -30,7 +30,6 @@ const api = [
|
|
|
30
30
|
"resetCurrentValue"
|
|
31
31
|
];
|
|
32
32
|
const useChangeValue = ({
|
|
33
|
-
computed,
|
|
34
33
|
constants,
|
|
35
34
|
emit,
|
|
36
35
|
props,
|
|
@@ -85,7 +84,6 @@ const useChangeValue = ({
|
|
|
85
84
|
const renderless = (props, { computed, reactive, toRefs, watch, onMounted, onUnmounted, inject }, { constants, emit, parent }) => {
|
|
86
85
|
const api2 = {};
|
|
87
86
|
const changeValue = useChangeValue({
|
|
88
|
-
computed,
|
|
89
87
|
constants,
|
|
90
88
|
emit,
|
|
91
89
|
props,
|
package/record/index.js
CHANGED
|
@@ -148,7 +148,9 @@ const toogleRecord = ({ state, api, emit, constants, props }) => ($event) => {
|
|
|
148
148
|
};
|
|
149
149
|
const handleConfirm = ({ state, emit, props, constants, api }) => ($event) => {
|
|
150
150
|
if (props.isHwh5) {
|
|
151
|
-
api.triggerClick($event, constants.HWH5_STATUS.
|
|
151
|
+
api.triggerClick($event, constants.HWH5_STATUS.END, () => {
|
|
152
|
+
emit("update:modelValue", false);
|
|
153
|
+
});
|
|
152
154
|
} else {
|
|
153
155
|
state.isClickConfirm = true;
|
|
154
156
|
emit("update:modelValue", false);
|
|
@@ -195,6 +197,7 @@ const calcVoice = (analyser) => {
|
|
|
195
197
|
if (highValue <= val) {
|
|
196
198
|
return voiceNum = idx + 1 + (val === 0 ? lowValue / 1e3 : highValue / val);
|
|
197
199
|
}
|
|
200
|
+
return false;
|
|
198
201
|
});
|
|
199
202
|
!ismatch && (voiceNum = 6);
|
|
200
203
|
return voiceNum;
|
|
@@ -58,7 +58,7 @@ const tableMouseMove = (state, vm) => (e) => {
|
|
|
58
58
|
state.flagX = Math.ceil((e.x - x) / 30);
|
|
59
59
|
state.flagY = Math.ceil((e.y - y) / 30);
|
|
60
60
|
};
|
|
61
|
-
const tableChoose = (state
|
|
61
|
+
const tableChoose = (state) => () => {
|
|
62
62
|
if (state.flagX && state.flagY) {
|
|
63
63
|
state.editor.chain().focus().insertTable({ rows: state.flagY, cols: state.flagX, withHeaderRow: true }).run();
|
|
64
64
|
}
|
|
@@ -70,7 +70,7 @@ const toggleTablePanel = (state) => () => {
|
|
|
70
70
|
const closeTablePanel = (state) => () => {
|
|
71
71
|
state.isShowTable && (state.isShowTable = false);
|
|
72
72
|
};
|
|
73
|
-
const shouldShow = ({ editor
|
|
73
|
+
const shouldShow = ({ editor }) => {
|
|
74
74
|
return editor.isActive("table");
|
|
75
75
|
};
|
|
76
76
|
const eventMap = /* @__PURE__ */ new Map();
|
|
@@ -27,7 +27,7 @@ const api = [
|
|
|
27
27
|
"eventClick",
|
|
28
28
|
"Active"
|
|
29
29
|
];
|
|
30
|
-
const renderless = (props, { computed,
|
|
30
|
+
const renderless = (props, { computed, onBeforeUnmount, reactive }, { vm, emit }, {
|
|
31
31
|
Editor,
|
|
32
32
|
StarterKit,
|
|
33
33
|
Table,
|
|
@@ -235,10 +235,7 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref
|
|
|
235
235
|
emit("create", { editor });
|
|
236
236
|
},
|
|
237
237
|
onUpdate({ editor }) {
|
|
238
|
-
const json = editor.getJSON();
|
|
239
238
|
const html = editor.getHTML();
|
|
240
|
-
const text = editor.getText();
|
|
241
|
-
const lineText = editor.getText({ blockSeparator: "--" });
|
|
242
239
|
emit("update", { editor });
|
|
243
240
|
emit("update:modelValue", html);
|
|
244
241
|
},
|
|
@@ -260,7 +257,7 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref
|
|
|
260
257
|
}, props.options);
|
|
261
258
|
let options = Object.assign(defaultOptions, props.options);
|
|
262
259
|
const state = reactive({
|
|
263
|
-
editor:
|
|
260
|
+
editor: new Editor(options),
|
|
264
261
|
toolbar: computed(() => props.customToolBar.length ? props.customToolBar : defaultToolBar),
|
|
265
262
|
// table 变量
|
|
266
263
|
isShowTable: false,
|
package/scrollbar/index.js
CHANGED
|
@@ -37,10 +37,10 @@ const clickThumbHandler = ({ api, state }) => (event) => {
|
|
|
37
37
|
api.startDrag(event);
|
|
38
38
|
state[state.bar.axis] = event.currentTarget[state.bar.offset] - (event[state.bar.client] - event.currentTarget.getBoundingClientRect()[state.bar.direction]);
|
|
39
39
|
};
|
|
40
|
-
const clickTrackHandler = ({
|
|
40
|
+
const clickTrackHandler = ({ vm, state }) => (event) => {
|
|
41
41
|
const offset = Math.abs(event.target.getBoundingClientRect()[state.bar.direction] - event[state.bar.client]);
|
|
42
|
-
const thumbHalf = refs.thumb[state.bar.offset] / 2;
|
|
43
|
-
const thumbPositionPercentage = (offset - thumbHalf) * 100 / refs.bar[state.bar.offset];
|
|
42
|
+
const thumbHalf = vm.$refs.thumb[state.bar.offset] / 2;
|
|
43
|
+
const thumbPositionPercentage = (offset - thumbHalf) * 100 / vm.$refs.bar[state.bar.offset];
|
|
44
44
|
state.wrap[state.bar.scroll] = thumbPositionPercentage * state.wrap[state.bar.scrollSize] / 100;
|
|
45
45
|
};
|
|
46
46
|
const startDrag = ({ api, on, state }) => (event) => {
|
|
@@ -50,7 +50,7 @@ const startDrag = ({ api, on, state }) => (event) => {
|
|
|
50
50
|
on(document, "mouseup", api.mouseUpDocumentHandler);
|
|
51
51
|
document.onselectstart = () => false;
|
|
52
52
|
};
|
|
53
|
-
const mouseMoveDocumentHandler = ({
|
|
53
|
+
const mouseMoveDocumentHandler = ({ vm, state }) => (event) => {
|
|
54
54
|
if (state.cursorDown === false) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -58,9 +58,9 @@ const mouseMoveDocumentHandler = ({ refs, state }) => (event) => {
|
|
|
58
58
|
if (!prevPage) {
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
const offset = (refs.bar.getBoundingClientRect()[state.bar.direction] - event[state.bar.client]) * -1;
|
|
62
|
-
const thumbClickPosition = refs.thumb[state.bar.offset] - prevPage;
|
|
63
|
-
const thumbPositionPercentage = (offset - thumbClickPosition) * 100 / refs.bar[state.bar.offset];
|
|
61
|
+
const offset = (vm.$refs.bar.getBoundingClientRect()[state.bar.direction] - event[state.bar.client]) * -1;
|
|
62
|
+
const thumbClickPosition = vm.$refs.thumb[state.bar.offset] - prevPage;
|
|
63
|
+
const thumbPositionPercentage = (offset - thumbClickPosition) * 100 / vm.$refs.bar[state.bar.offset];
|
|
64
64
|
state.wrap[state.bar.scroll] = thumbPositionPercentage * state.wrap[state.bar.scrollSize] / 100;
|
|
65
65
|
};
|
|
66
66
|
const mouseUpDocumentHandler = ({ api, off, state }) => () => {
|
|
@@ -69,15 +69,15 @@ const mouseUpDocumentHandler = ({ api, off, state }) => () => {
|
|
|
69
69
|
off(document, "mousemove", api.mouseMoveDocumentHandler);
|
|
70
70
|
document.onselectstart = null;
|
|
71
71
|
};
|
|
72
|
-
const handleScroll = ({
|
|
73
|
-
const wrap = refs.wrap;
|
|
72
|
+
const handleScroll = ({ vm, state, emit }) => (event) => {
|
|
73
|
+
const wrap = vm.$refs.wrap;
|
|
74
74
|
state.moveY = wrap.scrollTop * 100 / wrap.clientHeight;
|
|
75
75
|
state.moveX = wrap.scrollLeft * 100 / wrap.clientWidth;
|
|
76
76
|
emit("scroll", event);
|
|
77
77
|
};
|
|
78
|
-
const update = ({
|
|
78
|
+
const update = ({ vm, state }) => () => {
|
|
79
79
|
let heightPercentage, widthPercentage;
|
|
80
|
-
const wrap = refs.wrap;
|
|
80
|
+
const wrap = vm.$refs.wrap;
|
|
81
81
|
if (!wrap) {
|
|
82
82
|
return;
|
|
83
83
|
}
|
package/scrollbar/vue-bar.js
CHANGED
|
@@ -18,7 +18,7 @@ const api = [
|
|
|
18
18
|
"mouseUpDocumentHandler",
|
|
19
19
|
"mouseMoveDocumentHandler"
|
|
20
20
|
];
|
|
21
|
-
const renderless = (props, { computed, onUnmounted, reactive }, {
|
|
21
|
+
const renderless = (props, { computed, onUnmounted, reactive }, { vm, parent }) => {
|
|
22
22
|
const state = reactive({
|
|
23
23
|
bar: computed(() => BAR_MAP[props.vertical ? "vertical" : "horizontal"]),
|
|
24
24
|
wrap: computed(() => parent.$refs.wrap)
|
|
@@ -26,8 +26,8 @@ const renderless = (props, { computed, onUnmounted, reactive }, { refs, parent }
|
|
|
26
26
|
const api2 = {
|
|
27
27
|
state,
|
|
28
28
|
renderThumbStyle,
|
|
29
|
-
clickTrackHandler: clickTrackHandler({
|
|
30
|
-
mouseMoveDocumentHandler: mouseMoveDocumentHandler({
|
|
29
|
+
clickTrackHandler: clickTrackHandler({ vm, state }),
|
|
30
|
+
mouseMoveDocumentHandler: mouseMoveDocumentHandler({ vm, state })
|
|
31
31
|
};
|
|
32
32
|
onUnmounted(() => off(document, "mouseup", api2.mouseUpDocumentHandler));
|
|
33
33
|
return Object.assign(api2, {
|
package/scrollbar/vue.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-G2ADBYYC.js";
|
|
|
2
2
|
import { handleScroll, update } from "./index";
|
|
3
3
|
import { addResizeListener, removeResizeListener } from "../common/deps/resize-event";
|
|
4
4
|
const api = ["state", "update", "handleScroll"];
|
|
5
|
-
const renderless = (props, { onBeforeUnmount, onMounted, reactive }, {
|
|
5
|
+
const renderless = (props, { onBeforeUnmount, onMounted, reactive }, { vm, nextTick, emit }) => {
|
|
6
6
|
const state = reactive({
|
|
7
7
|
sizeWidth: "0",
|
|
8
8
|
sizeHeight: "0",
|
|
@@ -11,21 +11,21 @@ const renderless = (props, { onBeforeUnmount, onMounted, reactive }, { refs, nex
|
|
|
11
11
|
});
|
|
12
12
|
const api2 = {
|
|
13
13
|
state,
|
|
14
|
-
update: update({
|
|
15
|
-
handleScroll: handleScroll({
|
|
14
|
+
update: update({ vm, state }),
|
|
15
|
+
handleScroll: handleScroll({ vm, state, emit })
|
|
16
16
|
};
|
|
17
17
|
onMounted(() => {
|
|
18
18
|
if (props.native) {
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
nextTick(api2.update);
|
|
22
|
-
!props.noresize && addResizeListener(refs.resize, api2.update);
|
|
22
|
+
!props.noresize && addResizeListener(vm.$refs.resize, api2.update);
|
|
23
23
|
});
|
|
24
24
|
onBeforeUnmount(() => {
|
|
25
25
|
if (props.native) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
!props.noresize && removeResizeListener(refs.resize, api2.update);
|
|
28
|
+
!props.noresize && removeResizeListener(vm.$refs.resize, api2.update);
|
|
29
29
|
});
|
|
30
30
|
return api2;
|
|
31
31
|
};
|
package/search/index.js
CHANGED
|
@@ -76,8 +76,8 @@ const clear = ({ api, emit, refs, state }) => (event) => {
|
|
|
76
76
|
state.currentValue = "";
|
|
77
77
|
refs.input.focus();
|
|
78
78
|
state.focus = true;
|
|
79
|
-
emit("change", [], "");
|
|
80
79
|
api.emitInput("", state.searchValue);
|
|
80
|
+
emit("change", [], "");
|
|
81
81
|
emit("clear");
|
|
82
82
|
};
|
|
83
83
|
export {
|
package/search/vue.js
CHANGED
|
@@ -66,7 +66,9 @@ const renderless = (props, { computed, onBeforeUnmount, onMounted, reactive, toR
|
|
|
66
66
|
collapse: props.mini,
|
|
67
67
|
currentValue: props.modelValue
|
|
68
68
|
}, formatSearchTypes2.state), {
|
|
69
|
-
showClear: computed(() => props.clearable && (state.focus || state.hovering) && state.currentValue)
|
|
69
|
+
showClear: computed(() => props.clearable && (state.focus || state.hovering) && state.currentValue),
|
|
70
|
+
formItemSize: computed(() => (parent.formItem || {}).formItemSize),
|
|
71
|
+
searchSize: computed(() => props.size || state.formItemSize)
|
|
70
72
|
}));
|
|
71
73
|
const api2 = __spreadValues({
|
|
72
74
|
state,
|