@opentiny/vue-renderless 3.6.8 → 3.8.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/action-sheet/index.js +28 -1
- package/action-sheet/vue.js +10 -4
- package/alert/index.js +24 -2
- package/alert/vue.js +15 -11
- package/amount/index.js +4 -4
- package/anchor/index.js +1 -1
- package/autocomplete/vue.js +3 -3
- package/autonavi-map/index.js +1 -1
- package/badge/vue.js +6 -6
- package/baidu-map/index.js +1 -1
- package/bulletin-board/index.js +1 -1
- package/button-group/vue.js +5 -4
- package/calendar/index.js +2 -2
- package/calendar-bar/index.js +268 -0
- package/calendar-bar/vue.js +87 -0
- package/card/index.js +84 -0
- package/card/vue.js +70 -0
- package/card-group/index.js +16 -0
- package/card-group/vue.js +21 -0
- package/card-template/index.js +1 -1
- package/carousel/index.js +89 -2
- package/carousel/vue.js +14 -5
- package/carousel-item/index.js +8 -0
- package/carousel-item/vue.js +7 -3
- package/cascader/index.js +6 -6
- package/cascader/vue.js +3 -3
- package/cascader-menu/vue.js +2 -2
- package/cascader-panel/index.js +4 -4
- package/cascader-panel/node.js +4 -4
- package/cascader-panel/vue.js +2 -2
- package/cascader-select/index.js +179 -0
- package/cascader-select/vue.js +74 -0
- package/cell/vue.js +16 -0
- package/chart-bar/index.js +3 -3
- package/chart-boxplot/index.js +2 -2
- package/chart-candle/index.js +3 -3
- package/chart-core/deps/utils.js +7 -7
- package/chart-core/index.js +2 -2
- package/chart-funnel/index.js +3 -3
- package/chart-gauge/index.js +3 -3
- package/chart-graph/index.js +1 -1
- package/chart-heatmap/index.js +2 -2
- package/chart-line/index.js +3 -3
- package/chart-liquidfill/index.js +2 -2
- package/chart-map/index.js +3 -3
- package/chart-pie/index.js +3 -3
- package/chart-radar/index.js +3 -3
- package/chart-sankey/index.js +3 -3
- package/chart-scatter/index.js +4 -4
- package/chart-sunburst/index.js +1 -1
- package/chart-tree/index.js +2 -2
- package/chart-waterfall/index.js +3 -3
- package/chart-wordcloud/index.js +2 -2
- package/checkbox/index.js +21 -0
- package/checkbox/vue.js +16 -3
- package/checkbox-button/vue.js +1 -1
- package/collapse-item/vue.js +1 -1
- package/column-list-group/index.js +0 -0
- package/column-list-group/vue.js +14 -0
- package/column-list-item/index.js +50 -0
- package/column-list-item/vue.js +39 -0
- package/common/array.js +3 -3
- package/common/bigInt.js +5 -2
- package/common/dataset/index.js +3 -3
- package/common/date.js +2 -2
- package/common/deps/ResizeObserver.js +1 -1
- package/common/deps/clickoutside.js +1 -1
- package/common/deps/date-util.js +4 -4
- package/common/deps/date.js +2 -2
- package/common/deps/debounce.js +1 -1
- package/common/deps/dom.js +1 -1
- package/common/deps/fullscreen/apis.js +3 -3
- package/common/deps/fullscreen/screenfull.js +1 -1
- package/common/deps/infinite-scroll.js +176 -0
- package/common/deps/letter-only.js +1 -1
- package/common/deps/number-only.js +1 -1
- package/common/deps/observe-visibility.js +106 -0
- package/common/deps/popper.js +20 -22
- package/common/deps/popup-manager.js +2 -2
- package/common/deps/repeat-click.js +1 -1
- package/common/deps/resize-event.js +1 -1
- package/common/deps/tree-model/node.js +5 -5
- package/common/deps/tree-model/tree-store.js +3 -3
- package/common/deps/upload-ajax.js +2 -2
- package/common/deps/vue-popper.js +6 -6
- package/common/deps/vue-popup.js +4 -4
- package/common/index.js +2 -2
- package/common/object.js +1 -1
- package/common/runtime.js +24 -24
- package/common/string.js +23 -4
- package/common/validate/rules/range.js +2 -2
- package/common/validate/rules/required.js +1 -1
- package/common/validate/rules/type.js +3 -3
- package/common/validate/schema.js +1 -1
- package/common/validate/util.js +1 -1
- package/common/validate/validations/array.js +1 -1
- package/common/validate/validations/date.js +1 -1
- package/common/validate/validations/enum.js +1 -1
- package/common/validate/validations/float.js +1 -1
- package/common/validate/validations/integer.js +1 -1
- package/common/validate/validations/method.js +1 -1
- package/common/validate/validations/number.js +1 -1
- package/common/validate/validations/pattern.js +1 -1
- package/common/validate/validations/string.js +1 -1
- package/common/validate/validations/type.js +1 -1
- package/container/index.js +1 -1
- package/crop/index.js +2 -2
- package/currency/index.js +2 -2
- package/date-panel/index.js +7 -7
- package/date-panel/vue.js +3 -2
- package/date-picker-mobile/index.js +250 -0
- package/date-picker-mobile/vue.js +86 -0
- package/date-range/index.js +1 -1
- package/date-range/vue.js +1 -1
- package/date-table/index.js +3 -3
- package/date-table/vue.js +1 -1
- package/dialog-box/index.js +6 -4
- package/dialog-box/vue.js +1 -1
- package/dialog-select/index.js +345 -0
- package/dialog-select/vue.js +110 -0
- package/drawer/index.js +83 -0
- package/drawer/vue.js +51 -0
- package/drop-times/index.js +1 -1
- package/dropdown/index.js +2 -2
- package/dropdown/vue.js +4 -3
- package/dropdown-item/index.js +5 -1
- package/dropdown-item/mf.js +79 -0
- package/dropdown-item/vue.js +9 -6
- package/dropdown-menu/index.js +30 -1
- package/dropdown-menu/vue.js +17 -7
- package/dynamic-scroller/index.js +117 -0
- package/dynamic-scroller/vue.js +88 -0
- package/dynamic-scroller-item/index.js +147 -0
- package/dynamic-scroller-item/vue.js +92 -0
- package/espace/index.js +1 -1
- package/espace/vue.js +1 -1
- package/exception/vue.js +3 -1
- package/fall-menu/index.js +4 -4
- package/file-upload/index.js +872 -408
- package/file-upload/vue.js +87 -36
- package/filter/index.js +131 -0
- package/filter/tag-group.js +43 -0
- package/filter/vue.js +73 -0
- package/filter-bar/index.js +9 -0
- package/filter-bar/vue.js +16 -0
- package/filter-box/index.js +17 -0
- package/filter-box/vue.js +19 -0
- package/filter-panel/index.js +42 -0
- package/filter-panel/vue.js +33 -0
- package/floatbar/index.js +1 -1
- package/flowchart/index.js +721 -0
- package/flowchart/vue.js +81 -0
- package/form/index.js +15 -1
- package/form/vue.js +10 -4
- package/form-item/index.js +46 -6
- package/form-item/vue.js +27 -3
- package/fullscreen/index.js +1 -1
- package/fullscreen/vue.js +1 -1
- package/grid/plugins/export.js +2 -2
- package/grid/plugins/exportExcel.js +2 -2
- package/grid/plugins/resize.js +1 -1
- package/grid/static/base/helperEqualCompare.js +1 -1
- package/grid/static/base/isPlainObject.js +1 -1
- package/grid/utils/common.js +3 -3
- package/grid/utils/dom.js +3 -3
- package/grid/utils/event.js +2 -2
- package/guide/index.js +168 -0
- package/guide/vue.js +36 -0
- package/hrapprover/index.js +1 -1
- package/image/index.js +8 -4
- package/image/vue.js +12 -6
- package/image-viewer/index.js +3 -3
- package/image-viewer/vue.js +16 -6
- package/input/index.js +34 -1
- package/input/vue.js +22 -6
- package/ip-address/index.js +1 -1
- package/ip-address/vue.js +1 -1
- package/link-menu/index.js +2 -2
- package/link-menu/vue.js +2 -2
- package/loading/index.js +2 -2
- package/loading/vue.js +2 -1
- package/locales/index.js +1 -1
- package/logout/index.js +1 -1
- package/milestone/index.js +5 -1
- package/modal/index.js +68 -39
- package/modal/vue.js +15 -12
- package/month-range/index.js +1 -1
- package/month-range/vue.js +1 -1
- package/month-table/index.js +5 -5
- package/month-table/vue.js +1 -1
- package/multi-select/index.js +5 -2
- package/multi-select/vue.js +4 -5
- package/nav-menu/index.js +6 -6
- package/notify/index.js +3 -3
- package/numeric/index.js +15 -5
- package/numeric/vue.js +15 -6
- package/option/index.js +1 -1
- package/package.json +2 -1
- package/pager/vue.js +10 -0
- package/pager-item/index.js +1 -1
- package/panel/index.js +1 -1
- package/picker/index.js +7 -7
- package/picker/vue.js +1 -1
- package/picker-column/index.js +1 -1
- package/popconfirm/index.js +25 -0
- package/popconfirm/vue.js +22 -0
- package/popeditor/index.js +7 -7
- package/popeditor/vue.js +2 -2
- package/popover/index.js +11 -3
- package/popover/vue.js +33 -10
- package/popup/index.js +4 -4
- package/pull-refresh/index.js +8 -11
- package/pull-refresh/vue.js +7 -7
- package/radio/index.js +17 -0
- package/radio/vue.js +18 -3
- package/radio-button/index.js +8 -0
- package/radio-button/vue.js +19 -4
- package/radio-group/index.js +1 -1
- package/radio-group/vue.js +5 -2
- package/rate/index.js +4 -2
- package/rate/vue.js +1 -1
- package/record/index.js +190 -0
- package/record/vue.js +44 -0
- package/recycle-scroller/index.js +470 -0
- package/recycle-scroller/vue.js +135 -0
- package/river/index.js +371 -0
- package/river/river.js +352 -0
- package/river/vue.js +77 -0
- package/roles/index.js +1 -1
- package/scrollbar/vue-bar.js +1 -1
- package/scrollbar/vue.js +1 -1
- package/search/index.js +3 -3
- package/select/index.js +21 -14
- package/select/vue.js +38 -15
- package/select-dropdown/vue.js +1 -1
- package/select-mobile/index.js +111 -0
- package/select-mobile/vue.js +58 -0
- package/select-view/index.js +170 -0
- package/select-view/vue.js +82 -0
- package/selected-box/index.js +216 -0
- package/selected-box/vue.js +98 -0
- package/slide-bar/index.js +1 -1
- package/slider/index.js +49 -4
- package/slider/vue.js +15 -4
- package/split/vue.js +1 -1
- package/standard-list-item/index.js +18 -0
- package/standard-list-item/vue.js +22 -0
- package/steps/index.js +30 -0
- package/steps/slide-bar.js +122 -0
- package/steps/vue.js +15 -3
- package/switch/index.js +1 -1
- package/switch/vue.js +2 -1
- package/tab-bar/index.js +2 -2
- package/tab-item/index.js +3 -3
- package/tab-item/vue.js +4 -3
- package/tab-item-mf/index.js +0 -0
- package/tab-item-mf/vue.js +16 -0
- package/tab-nav/index.js +78 -4
- package/tab-nav/vue.js +11 -3
- package/tabbar-item/index.js +1 -1
- package/tabbar-item/vue.js +1 -1
- package/tabs/index.js +8 -9
- package/tabs/vue.js +1 -1
- package/tabs-mf/index.js +109 -0
- package/tabs-mf/vue-bar.js +49 -0
- package/tabs-mf/vue-nav-item.js +22 -0
- package/tabs-mf/vue-nav.js +13 -0
- package/tabs-mf/vue.js +45 -0
- package/tabs-mf/wheel.js +71 -0
- package/tag/index.js +8 -2
- package/tag/vue.js +13 -5
- package/tag-group/index.js +24 -0
- package/tag-group/vue.js +29 -0
- package/tall-storage/index.js +1 -1
- package/tall-storage/vue.js +1 -1
- package/time/index.js +1 -1
- package/time/vue.js +2 -2
- package/time-line/index.js +28 -7
- package/time-line/vue.js +9 -4
- package/time-panel/index.js +2 -2
- package/time-panel/vue.js +1 -1
- package/time-picker-mobile/index.js +30 -0
- package/time-picker-mobile/vue.js +30 -0
- package/time-range/index.js +1 -1
- package/time-range/vue.js +1 -1
- package/time-spinner/index.js +2 -2
- package/time-spinner/vue.js +1 -1
- package/toggle-menu/index.js +2 -2
- package/toggle-menu/vue.js +1 -1
- package/tooltip/index.js +30 -3
- package/tooltip/vue.js +34 -13
- package/top-box/index.js +3 -3
- package/transfer/index.js +1 -1
- package/transfer-panel/index.js +2 -2
- package/tree/index.js +6 -6
- package/tree/vue.js +1 -1
- package/tree-node/index.js +1 -1
- package/upload/index.js +1 -1
- package/upload/vue.js +2 -2
- package/upload-dragger/index.js +5 -1
- package/upload-dragger/vue.js +9 -3
- package/upload-list/index.js +158 -8
- package/upload-list/vue.js +77 -25
- package/user/index.js +86 -70
- package/user/vue.js +15 -5
- package/user-account/vue.js +1 -1
- package/user-contact/index.js +49 -3
- package/user-contact/vue.js +17 -8
- package/user-head-group/vue.js +17 -0
- package/user-link/index.js +10 -2
- package/user-link/vue.js +11 -6
- package/wheel/index.js +1 -1
- package/wizard/index.js +3 -3
- package/year-range/index.js +125 -0
- package/year-range/vue.js +88 -0
- package/year-table/index.js +175 -11
- package/year-table/vue.js +17 -5
package/flowchart/vue.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import "../chunk-PKUHTIDK.js";
|
|
2
|
+
import {
|
|
3
|
+
compute,
|
|
4
|
+
computeMf,
|
|
5
|
+
isMf,
|
|
6
|
+
drawArrow,
|
|
7
|
+
buildAfterNode,
|
|
8
|
+
buildAfterLink,
|
|
9
|
+
drawAfterLink,
|
|
10
|
+
refresh,
|
|
11
|
+
getAllItem,
|
|
12
|
+
initDropdowns,
|
|
13
|
+
getVars,
|
|
14
|
+
isLinkHover,
|
|
15
|
+
omitText,
|
|
16
|
+
buildHoverState,
|
|
17
|
+
addListeners,
|
|
18
|
+
removeListeners,
|
|
19
|
+
setListeners,
|
|
20
|
+
hitTest,
|
|
21
|
+
clearHoverAfterLink,
|
|
22
|
+
clickNode,
|
|
23
|
+
clearDropdown,
|
|
24
|
+
antialiasing
|
|
25
|
+
} from "./index";
|
|
26
|
+
const api = ["state", "clearHoverAfterLink", "clickNode", "getVars", "omitText", "refresh", "clearDropdown"];
|
|
27
|
+
const renderless = (props, { reactive, markRaw, onMounted, onBeforeUnmount }, { vm, nextTick, emit, mode }) => {
|
|
28
|
+
const state = reactive({
|
|
29
|
+
afterData: null,
|
|
30
|
+
refreshKey: 0,
|
|
31
|
+
wrapperStyle: "",
|
|
32
|
+
dropdowns: {}
|
|
33
|
+
});
|
|
34
|
+
const api2 = {
|
|
35
|
+
state,
|
|
36
|
+
omitText,
|
|
37
|
+
getVars: getVars(),
|
|
38
|
+
initDropdowns: initDropdowns(),
|
|
39
|
+
buildAfterNode: buildAfterNode(props),
|
|
40
|
+
buildAfterLink: buildAfterLink(),
|
|
41
|
+
isLinkHover: isLinkHover(state),
|
|
42
|
+
clearDropdown: clearDropdown(state),
|
|
43
|
+
getAllItem: getAllItem(props),
|
|
44
|
+
buildHoverState: buildHoverState(props),
|
|
45
|
+
removeListeners: removeListeners({ state, vm }),
|
|
46
|
+
isMf: isMf(mode),
|
|
47
|
+
drawArrow: drawArrow({ state, vm, props }),
|
|
48
|
+
antialiasing: antialiasing(vm)
|
|
49
|
+
};
|
|
50
|
+
Object.assign(api2, {
|
|
51
|
+
compute: compute({ api: api2, markRaw, props, state }),
|
|
52
|
+
computeMf: computeMf({ api: api2, markRaw, props, state }),
|
|
53
|
+
drawAfterLink: drawAfterLink({ api: api2, props, state, vm }),
|
|
54
|
+
refresh: refresh({ api: api2, nextTick, state }),
|
|
55
|
+
addListeners: addListeners({ api: api2, state, vm }),
|
|
56
|
+
setListeners: setListeners({ api: api2, emit, props, state, vm }),
|
|
57
|
+
hitTest: hitTest({ api: api2, state, vm }),
|
|
58
|
+
clearHoverAfterLink: clearHoverAfterLink({ api: api2, state, vm }),
|
|
59
|
+
clickNode: clickNode({ api: api2, emit })
|
|
60
|
+
});
|
|
61
|
+
if (api2.isMf()) {
|
|
62
|
+
api2.computeMf();
|
|
63
|
+
} else {
|
|
64
|
+
api2.compute();
|
|
65
|
+
}
|
|
66
|
+
onMounted(() => {
|
|
67
|
+
nextTick(() => {
|
|
68
|
+
api2.antialiasing();
|
|
69
|
+
api2.drawAfterLink();
|
|
70
|
+
api2.addListeners();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
onBeforeUnmount(() => {
|
|
74
|
+
api2.removeListeners();
|
|
75
|
+
});
|
|
76
|
+
return api2;
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
api,
|
|
80
|
+
renderless
|
|
81
|
+
};
|
package/form/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { merge } from "
|
|
2
|
+
import { merge } from "../common/object";
|
|
3
3
|
const watchRules = ({ api, props, state }) => (newRules = {}, oldRules = {}) => {
|
|
4
4
|
const newValidFields = Object.keys(newRules);
|
|
5
5
|
const oldValidFields = Object.keys(oldRules);
|
|
@@ -131,6 +131,18 @@ const bindDialogEvent = ({ api, dialog, state }) => {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
+
const showTooltip = ({ vm, state }) => (dom, val) => {
|
|
135
|
+
const tooltip = vm.$refs.tooltip;
|
|
136
|
+
tooltip.state.referenceElm = dom;
|
|
137
|
+
tooltip.state.popperElm && (tooltip.state.popperElm.style.display = "none");
|
|
138
|
+
tooltip.doDestroy();
|
|
139
|
+
state.tooltipVisible = true;
|
|
140
|
+
state.displayedValue = val;
|
|
141
|
+
setTimeout(tooltip.updatePopper, 20);
|
|
142
|
+
};
|
|
143
|
+
const hideTooltip = ({ state }) => () => {
|
|
144
|
+
state.tooltipVisible = false;
|
|
145
|
+
};
|
|
134
146
|
export {
|
|
135
147
|
bindDialogEvent,
|
|
136
148
|
clearValidate,
|
|
@@ -138,8 +150,10 @@ export {
|
|
|
138
150
|
created,
|
|
139
151
|
deregisterLabelWidth,
|
|
140
152
|
getLabelWidthIndex,
|
|
153
|
+
hideTooltip,
|
|
141
154
|
registerLabelWidth,
|
|
142
155
|
resetFields,
|
|
156
|
+
showTooltip,
|
|
143
157
|
updateTip,
|
|
144
158
|
validate,
|
|
145
159
|
validateField,
|
package/form/vue.js
CHANGED
|
@@ -11,7 +11,9 @@ import {
|
|
|
11
11
|
registerLabelWidth,
|
|
12
12
|
deregisterLabelWidth,
|
|
13
13
|
updateTip,
|
|
14
|
-
bindDialogEvent
|
|
14
|
+
bindDialogEvent,
|
|
15
|
+
showTooltip,
|
|
16
|
+
hideTooltip
|
|
15
17
|
} from "./index";
|
|
16
18
|
const api = [
|
|
17
19
|
"state",
|
|
@@ -22,9 +24,11 @@ const api = [
|
|
|
22
24
|
"getLabelWidthIndex",
|
|
23
25
|
"registerLabelWidth",
|
|
24
26
|
"deregisterLabelWidth",
|
|
25
|
-
"updateTip"
|
|
27
|
+
"updateTip",
|
|
28
|
+
"showTooltip",
|
|
29
|
+
"hideTooltip"
|
|
26
30
|
];
|
|
27
|
-
const renderless = (props, { computed, inject, provide, reactive, watch }, { parent }) => {
|
|
31
|
+
const renderless = (props, { computed, inject, provide, reactive, watch }, { vm, parent }) => {
|
|
28
32
|
const api2 = {};
|
|
29
33
|
const dialog = inject("dialog", null);
|
|
30
34
|
const state = reactive({
|
|
@@ -58,7 +62,9 @@ const renderless = (props, { computed, inject, provide, reactive, watch }, { par
|
|
|
58
62
|
getLabelWidthIndex: getLabelWidthIndex(state),
|
|
59
63
|
registerLabelWidth: registerLabelWidth({ api: api2, state }),
|
|
60
64
|
deregisterLabelWidth: deregisterLabelWidth({ api: api2, state }),
|
|
61
|
-
watchRules: watchRules({ api: api2, props, state })
|
|
65
|
+
watchRules: watchRules({ api: api2, props, state }),
|
|
66
|
+
showTooltip: showTooltip({ vm, state }),
|
|
67
|
+
hideTooltip: hideTooltip({ state })
|
|
62
68
|
});
|
|
63
69
|
api2.created();
|
|
64
70
|
provide("form", parent);
|
package/form-item/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { POSITION, VALIDATE_STATE } from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { POSITION, VALIDATE_STATE } from "../common";
|
|
3
|
+
import { omitText } from "../common/string";
|
|
4
|
+
import { merge } from "../common/object";
|
|
5
|
+
import Validator from "../common/validate";
|
|
6
|
+
import { isNull } from "../common/type";
|
|
7
|
+
import debounce from "../common/deps/debounce";
|
|
7
8
|
const watchError = (state) => (value) => {
|
|
8
9
|
if (!isNull(value) && state.getValidateType === "tip") {
|
|
9
10
|
state.canShowTip = true;
|
|
@@ -64,7 +65,7 @@ const computedContentStyle = ({ props, state }) => () => {
|
|
|
64
65
|
};
|
|
65
66
|
const computedForm = ({ constants, instance, state }) => () => {
|
|
66
67
|
const { FORM_NAME, FORM_ITEM_NAME } = constants;
|
|
67
|
-
let parent = instance.$parent;
|
|
68
|
+
let parent = instance.$parent.$parent;
|
|
68
69
|
let parentName = parent.$options.componentName;
|
|
69
70
|
while (parentName !== FORM_NAME) {
|
|
70
71
|
if (parentName === FORM_ITEM_NAME) {
|
|
@@ -291,8 +292,44 @@ const wrapValidate = ({ validateFunc, props }) => {
|
|
|
291
292
|
return validateFunc;
|
|
292
293
|
}
|
|
293
294
|
};
|
|
295
|
+
const handleMouseenter = ({ state }) => (e) => {
|
|
296
|
+
if (!state.isDisplayOnly || !state.typeName || !state.form)
|
|
297
|
+
return;
|
|
298
|
+
const dom = e.target;
|
|
299
|
+
const text = dom.textContent;
|
|
300
|
+
const font = window.getComputedStyle(dom).font;
|
|
301
|
+
const rect = dom.getBoundingClientRect();
|
|
302
|
+
let res = {};
|
|
303
|
+
let overHeight = false;
|
|
304
|
+
if (["text", "password", "number"].includes(state.typeName)) {
|
|
305
|
+
res = omitText(text, font, rect.width);
|
|
306
|
+
}
|
|
307
|
+
if (state.typeName === "textarea" && dom && dom.scrollHeight > dom.offsetHeight) {
|
|
308
|
+
overHeight = true;
|
|
309
|
+
}
|
|
310
|
+
if (res.o || overHeight) {
|
|
311
|
+
state.form.showTooltip(dom, state.displayedValue);
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
const handleMouseleave = (state) => () => {
|
|
315
|
+
state.form && state.form.hideTooltip();
|
|
316
|
+
};
|
|
317
|
+
const getDisplayedValue = ({ state }) => (param) => {
|
|
318
|
+
if (!state.formInstance.displayOnly)
|
|
319
|
+
return;
|
|
320
|
+
const valueSplit = state.formInstance.valueSplit || "; ";
|
|
321
|
+
state.typeName = param.type;
|
|
322
|
+
state.isBasicComp = true;
|
|
323
|
+
state.displayedValue = state.displayedValue + (state.displayedValue && param.val ? valueSplit : "") + param.val;
|
|
324
|
+
};
|
|
325
|
+
const clearDisplayedValue = ({ state }) => () => {
|
|
326
|
+
state.typeName = "";
|
|
327
|
+
state.isBasicComp = false;
|
|
328
|
+
state.displayedValue = "";
|
|
329
|
+
};
|
|
294
330
|
export {
|
|
295
331
|
addValidateEvents,
|
|
332
|
+
clearDisplayedValue,
|
|
296
333
|
clearValidate,
|
|
297
334
|
computedContentStyle,
|
|
298
335
|
computedFieldValue,
|
|
@@ -301,10 +338,13 @@ export {
|
|
|
301
338
|
computedIsRequired,
|
|
302
339
|
computedLabelStyle,
|
|
303
340
|
computedValueStyle,
|
|
341
|
+
getDisplayedValue,
|
|
304
342
|
getFilteredRule,
|
|
305
343
|
getPropByPath,
|
|
306
344
|
getRules,
|
|
307
345
|
getValueByPath,
|
|
346
|
+
handleMouseenter,
|
|
347
|
+
handleMouseleave,
|
|
308
348
|
mounted,
|
|
309
349
|
onFieldBlur,
|
|
310
350
|
onFieldChange,
|
package/form-item/vue.js
CHANGED
|
@@ -22,7 +22,11 @@ import {
|
|
|
22
22
|
computedFieldValue,
|
|
23
23
|
computedGetValidateType,
|
|
24
24
|
updateTip,
|
|
25
|
-
wrapValidate
|
|
25
|
+
wrapValidate,
|
|
26
|
+
getDisplayedValue,
|
|
27
|
+
clearDisplayedValue,
|
|
28
|
+
handleMouseenter,
|
|
29
|
+
handleMouseleave
|
|
26
30
|
} from "./index";
|
|
27
31
|
const api = [
|
|
28
32
|
"state",
|
|
@@ -36,7 +40,10 @@ const api = [
|
|
|
36
40
|
"updateComputedLabelWidth",
|
|
37
41
|
"addValidateEvents",
|
|
38
42
|
"removeValidateEvents",
|
|
39
|
-
"updateTip"
|
|
43
|
+
"updateTip",
|
|
44
|
+
"getDisplayedValue",
|
|
45
|
+
"handleMouseenter",
|
|
46
|
+
"handleMouseleave"
|
|
40
47
|
];
|
|
41
48
|
const initState = ({ reactive, computed, api: api2, mode, inject, props }) => {
|
|
42
49
|
const state = reactive({
|
|
@@ -52,7 +59,12 @@ const initState = ({ reactive, computed, api: api2, mode, inject, props }) => {
|
|
|
52
59
|
canShowTip: false,
|
|
53
60
|
// 兼容 2.0 validation 的 required
|
|
54
61
|
validationRequired: false,
|
|
62
|
+
validateType: "text",
|
|
55
63
|
tooltip: null,
|
|
64
|
+
displayedValue: "",
|
|
65
|
+
isBasicComp: false,
|
|
66
|
+
showTooltip: false,
|
|
67
|
+
typeName: "",
|
|
56
68
|
formInstance: inject("form", null),
|
|
57
69
|
labelFor: computed(() => props.for || props.prop),
|
|
58
70
|
labelStyle: computed(() => api2.computedLabelStyle()),
|
|
@@ -61,8 +73,16 @@ const initState = ({ reactive, computed, api: api2, mode, inject, props }) => {
|
|
|
61
73
|
form: computed(() => api2.computedForm()),
|
|
62
74
|
fieldValue: computed(() => api2.computedFieldValue()),
|
|
63
75
|
isRequired: computed(() => api2.computedIsRequired()),
|
|
76
|
+
formInline: computed(() => state.formInstance.inline),
|
|
64
77
|
formSize: computed(() => state.formInstance.size),
|
|
65
78
|
formItemSize: computed(() => props.size || state.formSize),
|
|
79
|
+
isDisplayOnly: computed(() => state.formInstance.displayOnly),
|
|
80
|
+
labelPosition: computed(() => state.formInstance.labelPosition),
|
|
81
|
+
hideRequiredAsterisk: computed(() => state.formInstance.hideRequiredAsterisk),
|
|
82
|
+
labelSuffix: computed(() => state.formInstance.labelSuffix),
|
|
83
|
+
labelWidth: computed(() => state.formInstance.labelWidth),
|
|
84
|
+
showMessage: computed(() => state.formInstance.showMessage),
|
|
85
|
+
inlineMessage: computed(() => state.formInstance.inlineMessage),
|
|
66
86
|
sizeClass: computed(() => state.formItemSize),
|
|
67
87
|
getValidateType: computed(() => api2.computedGetValidateType())
|
|
68
88
|
});
|
|
@@ -94,7 +114,11 @@ const initApi = ({ api: api2, state, dispatch, broadcast, refs, props, constants
|
|
|
94
114
|
onFieldBlur: onFieldBlur(api2),
|
|
95
115
|
onFieldChange: onFieldChange({ api: api2, state }),
|
|
96
116
|
addValidateEvents: addValidateEvents({ api: api2, instance, props, state }),
|
|
97
|
-
validate: wrapValidate({ validateFunc: validate({ api: api2, props, state, t }), props })
|
|
117
|
+
validate: wrapValidate({ validateFunc: validate({ api: api2, props, state, t }), props }),
|
|
118
|
+
getDisplayedValue: getDisplayedValue({ state }),
|
|
119
|
+
clearDisplayedValue: clearDisplayedValue({ state }),
|
|
120
|
+
handleMouseenter: handleMouseenter({ state }),
|
|
121
|
+
handleMouseleave: handleMouseleave(state)
|
|
98
122
|
});
|
|
99
123
|
};
|
|
100
124
|
const initWatch = ({ watch, api: api2, props }) => {
|
package/fullscreen/index.js
CHANGED
package/fullscreen/vue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import sf from "
|
|
2
|
+
import sf from "../common/deps/fullscreen/screenfull";
|
|
3
3
|
import { exit, enter, toggle, request, getState, shadeClick, keypressCallback, fullScreenCallback, onChangeFullscreen, computeWrapperStyle } from "./index";
|
|
4
4
|
const api = ["state", "exit", "enter", "toggle", "request", "getState", "shadeClick", "keypressCallback", "fullScreenCallback", "onChangeFullscreen"];
|
|
5
5
|
const renderless = (props, { reactive, computed, watch }, { vm, emit }) => {
|
package/grid/plugins/export.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadValues
|
|
3
3
|
} from "../../chunk-PKUHTIDK.js";
|
|
4
|
-
import { xss } from "
|
|
5
|
-
import browser from "
|
|
4
|
+
import { xss } from "../../common/xss.js";
|
|
5
|
+
import browser from "../../common/browser";
|
|
6
6
|
import { toTreeArray } from "../static";
|
|
7
7
|
import { getCellValue, getFuncText } from "../utils";
|
|
8
8
|
import { exportExcel } from "./exportExcel";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../chunk-PKUHTIDK.js";
|
|
2
|
-
import { extend } from "
|
|
3
|
-
import browser from "
|
|
2
|
+
import { extend } from "../../common/object";
|
|
3
|
+
import browser from "../../common/browser";
|
|
4
4
|
const isIE = browser.name === "ie";
|
|
5
5
|
const rgbRegExp = /^rgba?\((\d+),\s(\d+),\s(\d+)([\s\S]*)\)$/;
|
|
6
6
|
const hexRegExp = /^#([a-zA-Z0-9]{3}|[a-zA-Z0-9]{6})$/;
|
package/grid/plugins/resize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../../chunk-PKUHTIDK.js";
|
|
2
|
-
import { isDate, isRegExp } from "
|
|
2
|
+
import { isDate, isRegExp } from "../../../common/type";
|
|
3
3
|
import isNumber from "./isNumber";
|
|
4
4
|
import isString from "./isString";
|
|
5
5
|
import isBoolean from "./isBoolean";
|
package/grid/utils/common.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../chunk-PKUHTIDK.js";
|
|
2
|
-
import { extend } from "
|
|
3
|
-
import { isNull } from "
|
|
4
|
-
import { find } from "
|
|
2
|
+
import { extend } from "../../common/object";
|
|
3
|
+
import { isNull } from "../../common/type";
|
|
4
|
+
import { find } from "../../common/array";
|
|
5
5
|
import { get, isFunction, set, findTree } from "../static";
|
|
6
6
|
const gridSize = ["medium", "small", "mini"];
|
|
7
7
|
const getSize = ({ size, $parent }) => size || ($parent && gridSize.includes($parent.size) ? $parent.size : null);
|
package/grid/utils/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../chunk-PKUHTIDK.js";
|
|
2
2
|
import { getRowid } from "./common";
|
|
3
|
-
import { hasClass } from "
|
|
3
|
+
import { hasClass } from "../../common/deps/dom";
|
|
4
4
|
import { arrayIndexOf } from "../static";
|
|
5
5
|
const ATTR_NAME = "data-rowid";
|
|
6
6
|
const CELL_CLS = ".tiny-grid-cell";
|
|
@@ -66,12 +66,12 @@ function setBodyLeft(body, td, $table, column, move) {
|
|
|
66
66
|
const { left, right } = td.getBoundingClientRect();
|
|
67
67
|
let offset = 0;
|
|
68
68
|
if (isLeftArrow && fixedDom) {
|
|
69
|
-
const div = fixedDom.querySelector("td.
|
|
69
|
+
const div = fixedDom.querySelector("td.fixed__column");
|
|
70
70
|
const division = div ? div.getBoundingClientRect().left : fixedDom.getBoundingClientRect().right;
|
|
71
71
|
division > left && (offset = left - division);
|
|
72
72
|
}
|
|
73
73
|
if (isRightArrow && fixedDom) {
|
|
74
|
-
const div = fixedDom.querySelector("td:not(.
|
|
74
|
+
const div = fixedDom.querySelector("td:not(.fixed__column)") || fixedDom;
|
|
75
75
|
const division = div.getBoundingClientRect().left;
|
|
76
76
|
division < right && (offset = right - division);
|
|
77
77
|
}
|
package/grid/utils/event.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../chunk-PKUHTIDK.js";
|
|
2
|
-
import browser from "
|
|
2
|
+
import browser from "../../common/browser";
|
|
3
3
|
import { remove } from "../static";
|
|
4
|
-
import { on } from "
|
|
4
|
+
import { on } from "../../common/deps/dom";
|
|
5
5
|
const wheelName = browser.isDoc && /Firefox/i.test(navigator.userAgent) ? "DOMMouseScroll" : "mousewheel";
|
|
6
6
|
const eventStore = [];
|
|
7
7
|
const GlobalEvent = {
|
package/guide/index.js
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import "../chunk-PKUHTIDK.js";
|
|
2
|
+
import { xss } from "../common/xss";
|
|
3
|
+
const createShepherd = ({ state, props, Shepherd, offset }) => () => {
|
|
4
|
+
const tour = newTour(state, Shepherd, offset);
|
|
5
|
+
state.tour = tour;
|
|
6
|
+
const result = {};
|
|
7
|
+
const deepCopy = getItemCopy(props, tour, result);
|
|
8
|
+
if (state.domData && state.domData !== 0) {
|
|
9
|
+
state.domData.forEach((item, i) => {
|
|
10
|
+
let steps = itemStep(item, state, deepCopy, i, Shepherd);
|
|
11
|
+
const step = tour.addStep(steps);
|
|
12
|
+
if (steps.hightBox && steps.hightBox.length != 0) {
|
|
13
|
+
step.on("show", () => {
|
|
14
|
+
steps.hightBox.forEach((item2) => {
|
|
15
|
+
document.querySelector(item2).classList.add("tiny-guide__z-top");
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
step.on("hide", () => {
|
|
19
|
+
steps.hightBox.forEach((item2) => {
|
|
20
|
+
document.querySelector(item2).classList.remove("tiny-guide__z-top");
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
step.on("complete", () => {
|
|
24
|
+
steps.hightBox.forEach((item2) => {
|
|
25
|
+
document.querySelector(item2).classList.remove("tiny-guide__z-top");
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
step.on("cancel", () => {
|
|
29
|
+
steps.hightBox.forEach((item2) => {
|
|
30
|
+
document.querySelector(item2).classList.remove("tiny-guide__z-top");
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
step.on("destroy", () => {
|
|
34
|
+
steps.hightBox.forEach((item2) => {
|
|
35
|
+
document.querySelector(item2).classList.remove("tiny-guide__z-top");
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
callBack(step, item);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
state.tour.start();
|
|
44
|
+
if (props.width || props.height) {
|
|
45
|
+
document.querySelector(".tiny-guide.shepherd-element").style.width = `${props.width}px`;
|
|
46
|
+
document.querySelector(".tiny-guide.shepherd-element").style.height = `${props.height}px`;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const mounted = ({ state, api }) => () => {
|
|
50
|
+
if (state.showStep) {
|
|
51
|
+
api.createShepherd();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const getItemCopy = (props, tour, result) => {
|
|
55
|
+
const { domData } = props;
|
|
56
|
+
result = domData.map((item) => {
|
|
57
|
+
const itemCopy = JSON.parse(JSON.stringify(item));
|
|
58
|
+
itemCopy.button = item.button.map((e) => {
|
|
59
|
+
const eCopy = JSON.parse(JSON.stringify(e));
|
|
60
|
+
eCopy.action = tour[e.action];
|
|
61
|
+
return eCopy;
|
|
62
|
+
});
|
|
63
|
+
return itemCopy;
|
|
64
|
+
});
|
|
65
|
+
return result;
|
|
66
|
+
};
|
|
67
|
+
const newTour = (state, Shepherd, offset) => {
|
|
68
|
+
const tour = new Shepherd.Tour({
|
|
69
|
+
useModalOverlay: true,
|
|
70
|
+
defaultStepOptions: {
|
|
71
|
+
modalOverlayOpeningPadding: state.modalOverlayOpeningPadding,
|
|
72
|
+
modalOverlayOpeningRadius: state.modalOverlayOpeningRadius,
|
|
73
|
+
arrow: state.arrow,
|
|
74
|
+
highlightClass: state.lightClass,
|
|
75
|
+
classes: "tiny-guide",
|
|
76
|
+
floatingUIOptions: {
|
|
77
|
+
middleware: [
|
|
78
|
+
offset({
|
|
79
|
+
mainAxis: state.mainAxis,
|
|
80
|
+
crossAxis: state.crossAxis,
|
|
81
|
+
alignmentAxis: state.alignmentAxis
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
return tour;
|
|
88
|
+
};
|
|
89
|
+
const itemStep = (item, state, deepCopy, index, Shepherd) => {
|
|
90
|
+
let steps = {
|
|
91
|
+
text: xss.filterUrl(item.text),
|
|
92
|
+
title: xss.filterUrl(item.title),
|
|
93
|
+
classes: item.classes,
|
|
94
|
+
attachTo: {
|
|
95
|
+
element: item.domElement,
|
|
96
|
+
on: item.popPosition || state.popPosition
|
|
97
|
+
},
|
|
98
|
+
hightBox: item.hightBox || null,
|
|
99
|
+
buttons: deepCopy[index].button,
|
|
100
|
+
cancelIcon: {
|
|
101
|
+
enabled: true
|
|
102
|
+
},
|
|
103
|
+
id: item.id,
|
|
104
|
+
scrollTo: true,
|
|
105
|
+
scrollToHandler(el) {
|
|
106
|
+
if (el.getBoundingClientRect().top > document.documentElement.clientHeight) {
|
|
107
|
+
if (document.documentElement.scrollTop > 0) {
|
|
108
|
+
window.scrollTo(0, document.documentElement.scrollTop + el.getBoundingClientRect().top / 2);
|
|
109
|
+
} else {
|
|
110
|
+
window.scrollTo(0, el.getBoundingClientRect().top - document.documentElement.clientHeight / 2);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
when: {
|
|
115
|
+
show() {
|
|
116
|
+
const currentStep = Shepherd.activeTour && Shepherd.activeTour.getCurrentStep();
|
|
117
|
+
const currentStepElement = currentStep && currentStep.getElement();
|
|
118
|
+
const footer = currentStepElement && currentStepElement.querySelector(".shepherd-footer");
|
|
119
|
+
const progress = document.createElement("span");
|
|
120
|
+
progress.classList.add("progress-style");
|
|
121
|
+
progress.innerText = `${Shepherd.activeTour && Shepherd.activeTour.steps.indexOf(currentStep) + 1}/${Shepherd.activeTour && Shepherd.activeTour.steps.length}`;
|
|
122
|
+
footer && footer.insertBefore(progress, currentStepElement.querySelector(".shepherd-button"));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
return steps;
|
|
127
|
+
};
|
|
128
|
+
const callBack = (step, item) => {
|
|
129
|
+
step.on("before-show", () => {
|
|
130
|
+
if (typeof item.beforeShow === "function") {
|
|
131
|
+
item.beforeShow();
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
step.on("show", () => {
|
|
135
|
+
if (typeof item.show === "function") {
|
|
136
|
+
item.show();
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
step.on("before-hide", () => {
|
|
140
|
+
if (typeof item.beforeHide === "function") {
|
|
141
|
+
item.beforeHide();
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
step.on("hide", () => {
|
|
145
|
+
if (typeof item.hide === "function") {
|
|
146
|
+
item.hide();
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
step.on("complete", () => {
|
|
150
|
+
if (typeof item.complete === "function") {
|
|
151
|
+
item.complete();
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
step.on("cancel", () => {
|
|
155
|
+
if (typeof item.cancel === "function") {
|
|
156
|
+
item.cancel();
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
step.on("destroy", () => {
|
|
160
|
+
if (typeof item.destroy === "function") {
|
|
161
|
+
item.destroy();
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
export {
|
|
166
|
+
createShepherd,
|
|
167
|
+
mounted
|
|
168
|
+
};
|
package/guide/vue.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__spreadProps,
|
|
3
|
+
__spreadValues
|
|
4
|
+
} from "../chunk-PKUHTIDK.js";
|
|
5
|
+
import { createShepherd, mounted } from "./index";
|
|
6
|
+
const api = ["state"];
|
|
7
|
+
const renderless = (props, { reactive, onMounted, watch }, utils, { Shepherd, offset }) => {
|
|
8
|
+
const state = reactive({
|
|
9
|
+
tour: null,
|
|
10
|
+
tour1: null,
|
|
11
|
+
showStep: false,
|
|
12
|
+
domData: props.domData || null,
|
|
13
|
+
mainAxis: props.mainAxis,
|
|
14
|
+
crossAxis: props.crossAxis,
|
|
15
|
+
alignmentAxis: props.alignmentAxis,
|
|
16
|
+
popPosition: props.popPosition,
|
|
17
|
+
modalOverlayOpeningPadding: props.modalOverlayOpeningPadding,
|
|
18
|
+
modalOverlayOpeningRadius: props.modalOverlayOpeningRadius,
|
|
19
|
+
arrow: props.arrow,
|
|
20
|
+
lightClass: props.lightClass
|
|
21
|
+
});
|
|
22
|
+
let baseApi = {
|
|
23
|
+
state,
|
|
24
|
+
createShepherd: createShepherd({ state, props, Shepherd, offset })
|
|
25
|
+
};
|
|
26
|
+
const api2 = __spreadProps(__spreadValues({}, baseApi), {
|
|
27
|
+
mounted: mounted({ state, api: baseApi })
|
|
28
|
+
});
|
|
29
|
+
watch(() => props.showStep, api2.createShepherd);
|
|
30
|
+
onMounted(api2.mounted);
|
|
31
|
+
return api2;
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
api,
|
|
35
|
+
renderless
|
|
36
|
+
};
|
package/hrapprover/index.js
CHANGED
package/image/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../chunk-PKUHTIDK.js";
|
|
2
|
-
import { on, off, getScrollContainer, isInContainer } from "
|
|
3
|
-
import { typeOf } from "
|
|
4
|
-
import "
|
|
5
|
-
import { rafThrottle } from "
|
|
2
|
+
import { on, off, getScrollContainer, isInContainer } from "../common/deps/dom";
|
|
3
|
+
import { typeOf } from "../common/type";
|
|
4
|
+
import "../common/deps/requestAnimationFrame";
|
|
5
|
+
import { rafThrottle } from "../image-viewer";
|
|
6
6
|
const isSupportObjectFit = () => document.documentElement.style.objectFit !== void 0;
|
|
7
7
|
const isHtmlElement = (node) => node && node.nodeType === Node.ELEMENT_NODE;
|
|
8
8
|
const computedGetImageStyle = ({ props, api }) => () => {
|
|
@@ -34,6 +34,9 @@ const handleLoad = ({ state, emit }) => (event, img) => {
|
|
|
34
34
|
state.loading = false;
|
|
35
35
|
emit("load", event);
|
|
36
36
|
};
|
|
37
|
+
const deleteHander = (emit) => (event) => {
|
|
38
|
+
emit("delete", event);
|
|
39
|
+
};
|
|
37
40
|
const handleError = ({ state, emit }) => (event) => {
|
|
38
41
|
state.loading = false;
|
|
39
42
|
state.error = true;
|
|
@@ -109,6 +112,7 @@ export {
|
|
|
109
112
|
computedGetAlignCenter,
|
|
110
113
|
computedGetImageStyle,
|
|
111
114
|
computedGetPreview,
|
|
115
|
+
deleteHander,
|
|
112
116
|
getImageStyle,
|
|
113
117
|
handleError,
|
|
114
118
|
handleLazyLoad,
|