@opentiny/vue-renderless 3.18.5 → 3.19.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-menu/index.js +2 -2
- package/action-menu/vue.js +2 -2
- package/anchor/index.js +8 -6
- package/anchor/vue.js +1 -1
- package/badge/index.js +4 -3
- package/base-select/index.js +3 -3
- package/breadcrumb-item/vue.js +1 -1
- package/bulletin-board/index.js +1 -1
- package/button/index.js +1 -1
- package/button-group/index.js +6 -1
- package/carousel-item/index.js +1 -1
- package/cascader/vue.js +17 -4
- package/chart-core/deps/utils.js +1 -1
- package/checkbox/index.js +1 -1
- package/common/deps/dom.js +9 -1
- package/common/deps/useWindowSize.js +23 -0
- package/common/deps/vue-popper.js +1 -1
- package/common/index.js +2 -2
- package/common/prop-util.js +43 -0
- package/common/runtime.js +1 -1
- package/crop/index.js +14 -22
- package/crop/vue.js +33 -29
- package/date-panel/index.js +13 -2
- package/date-panel/vue.js +16 -10
- package/dialog-select/index.js +78 -0
- package/dialog-select/vue.js +28 -6
- package/drawer/index.js +14 -1
- package/drawer/vue.js +4 -3
- package/dropdown-item/index.js +2 -2
- package/dropdown-item/vue.js +9 -6
- package/espace/index.js +1 -1
- package/fall-menu/index.js +5 -1
- package/fall-menu/vue.js +15 -2
- package/filter-box/vue.js +5 -2
- package/floatbar/index.js +1 -1
- package/fluent-editor/options.js +26 -24
- package/form/index.js +7 -4
- package/form/vue.js +1 -1
- package/grid/plugins/export.js +1 -1
- package/grid/utils/dom.js +3 -1
- package/guide/index.js +17 -2
- package/guide/vue.js +5 -3
- package/image-viewer/vue.js +1 -1
- package/input/index.js +6 -7
- package/input/vue.js +10 -11
- package/ip-address/index.js +0 -10
- package/ip-address/vue.js +2 -5
- package/load-list/index.js +43 -0
- package/load-list/vue.js +69 -0
- package/locales/index.js +1 -5
- package/logout/index.js +1 -1
- package/milestone/index.js +55 -8
- package/milestone/vue.js +16 -3
- package/modal/index.js +6 -6
- package/modal/vue.js +4 -3
- package/nav-menu/index.js +1 -1
- package/package.json +1 -1
- package/pager/index.js +25 -0
- package/pager/vue.js +18 -4
- package/picker/index.js +3 -3
- package/picker/vue.js +1 -1
- package/popeditor/index.js +12 -1
- package/popeditor/vue.js +9 -5
- package/rich-text/table-module.js +4 -3
- package/roles/index.js +1 -1
- package/select/index.js +6 -6
- package/select/vue.js +2 -1
- package/selected-box/vue.js +2 -1
- package/slider/index.js +2 -2
- package/slider-button-group/vue.js +3 -2
- package/split/vue.js +4 -2
- package/sticky/index.js +89 -0
- package/sticky/vue.js +74 -0
- package/tabbar-item/vue.js +1 -1
- package/tall-storage/index.js +1 -1
- package/time/vue.js +2 -1
- package/time-range/vue.js +4 -1
- package/time-spinner/index.js +4 -1
- package/toggle-menu/index.js +1 -1
- package/transfer-panel/vue.js +7 -6
- package/tree/index.js +17 -7
- package/tree/vue.js +10 -6
- package/tree-node/index.js +2 -2
- package/tree-node/vue.js +6 -2
- package/types/action-menu.type.d.ts +1 -1
- package/types/alert.type.d.ts +2 -0
- package/types/anchor.type.d.ts +5 -1
- package/types/badge.type.d.ts +1 -1
- package/types/button-group.type.d.ts +3 -0
- package/types/button.type.d.ts +1 -1
- package/types/date-picker.type.d.ts +3 -0
- package/types/drawer.type.d.ts +5 -1
- package/types/{dropdown-item.type-16d59fd0.d.ts → dropdown-item.type-c9badbc1.d.ts} +2 -2
- package/types/dropdown-item.type.d.ts +1 -1
- package/types/dropdown-menu.type.d.ts +1 -1
- package/types/fall-menu.type.d.ts +1 -0
- package/types/file-upload.type.d.ts +1 -1
- package/types/image.type.d.ts +4 -0
- package/types/input.type.d.ts +8 -4
- package/types/load-list.type.d.ts +58 -0
- package/types/milestone.type.d.ts +27 -1
- package/types/modal.type.d.ts +3 -2
- package/types/pager.type.d.ts +5 -1
- package/types/picker.type.d.ts +3 -0
- package/types/popover.type.d.ts +1 -1
- package/types/search.type.d.ts +0 -3
- package/types/steps.type.d.ts +1 -0
- package/types/tag.type.d.ts +1 -0
- package/types/tooltip.type.d.ts +3 -0
- package/types/transfer.type.d.ts +3 -3
- package/types/tree-menu.type.d.ts +8 -0
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-4194f534.d.ts → upload-list.type-26173587.d.ts} +11 -3
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/user-contact.type.d.ts +127 -1
- package/types/user-head.type.d.ts +1 -4
- package/upload-list/vue.js +7 -7
- package/virtual-scroll-box/index.js +294 -0
- package/virtual-scroll-box/vue.js +43 -0
- package/virtual-tree/index.js +168 -0
- package/virtual-tree/vue.js +53 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
import {
|
|
3
|
+
computeState,
|
|
4
|
+
shouldRender,
|
|
5
|
+
onVsBoxChange,
|
|
6
|
+
onTreeChange,
|
|
7
|
+
getTreeInstance,
|
|
8
|
+
keepExpandStatus,
|
|
9
|
+
keepScrollTop,
|
|
10
|
+
refresh
|
|
11
|
+
} from "./index";
|
|
12
|
+
const api = [
|
|
13
|
+
"state",
|
|
14
|
+
"onVsBoxChange",
|
|
15
|
+
"onTreeChange",
|
|
16
|
+
"getTreeInstance",
|
|
17
|
+
"keepExpandStatus",
|
|
18
|
+
"keepScrollTop",
|
|
19
|
+
"refresh"
|
|
20
|
+
];
|
|
21
|
+
const renderless = (props, { reactive, watch, provide }, { nextTick, vm }) => {
|
|
22
|
+
const api2 = {};
|
|
23
|
+
const state = reactive({
|
|
24
|
+
expandeds: [],
|
|
25
|
+
treeOptions: {},
|
|
26
|
+
treeEvents: {},
|
|
27
|
+
vsBoxOptions: {},
|
|
28
|
+
renderRows: [],
|
|
29
|
+
treeStyle: {}
|
|
30
|
+
});
|
|
31
|
+
Object.assign(api2, {
|
|
32
|
+
state,
|
|
33
|
+
computeState: computeState({ props, state }),
|
|
34
|
+
shouldRender: shouldRender(state),
|
|
35
|
+
onVsBoxChange: onVsBoxChange({ props, state }),
|
|
36
|
+
onTreeChange: onTreeChange({ nextTick, props, state, vm }),
|
|
37
|
+
getTreeInstance: getTreeInstance(vm),
|
|
38
|
+
keepExpandStatus: keepExpandStatus(state),
|
|
39
|
+
keepScrollTop: keepScrollTop(state),
|
|
40
|
+
refresh: refresh({ api: api2, state, vm })
|
|
41
|
+
});
|
|
42
|
+
provide("TreeAdapter", { shouldRender: api2.shouldRender });
|
|
43
|
+
watch(
|
|
44
|
+
() => props.treeOp.data,
|
|
45
|
+
() => api2.refresh(),
|
|
46
|
+
{ immediate: true }
|
|
47
|
+
);
|
|
48
|
+
return api2;
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
api,
|
|
52
|
+
renderless
|
|
53
|
+
};
|