vue-devui 1.0.0-alpha.6 → 1.0.0-beta.12
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/README.md +32 -35
- package/accordion/index.d.ts +7 -0
- package/accordion/index.es.js +508 -1
- package/accordion/index.umd.js +1 -1
- package/accordion/style.css +1 -1
- package/alert/index.d.ts +7 -0
- package/alert/index.es.js +178 -1
- package/alert/index.umd.js +1 -1
- package/alert/style.css +1 -1
- package/anchor/index.d.ts +7 -0
- package/anchor/index.es.js +263 -1
- package/anchor/index.umd.js +1 -1
- package/avatar/index.d.ts +7 -0
- package/avatar/index.es.js +301 -1
- package/avatar/index.umd.js +1 -1
- package/back-top/index.d.ts +7 -0
- package/back-top/index.es.js +128 -0
- package/back-top/index.umd.js +1 -0
- package/back-top/package.json +7 -0
- package/back-top/style.css +1 -0
- package/badge/index.d.ts +7 -0
- package/badge/index.es.js +95 -1
- package/badge/index.umd.js +1 -1
- package/breadcrumb/index.d.ts +7 -0
- package/breadcrumb/index.es.js +127 -1
- package/breadcrumb/index.umd.js +1 -1
- package/button/index.d.ts +7 -0
- package/button/index.es.js +392 -1
- package/button/index.umd.js +1 -1
- package/button/style.css +1 -1
- package/card/index.d.ts +7 -0
- package/card/index.es.js +61 -1
- package/card/index.umd.js +1 -1
- package/carousel/index.d.ts +7 -0
- package/carousel/index.es.js +329 -1
- package/carousel/index.umd.js +1 -1
- package/cascader/index.d.ts +7 -0
- package/cascader/index.es.js +1343 -1
- package/cascader/index.umd.js +1 -1
- package/cascader/style.css +1 -1
- package/checkbox/index.d.ts +7 -0
- package/checkbox/index.es.js +377 -1
- package/checkbox/index.umd.js +1 -1
- package/comment/index.d.ts +7 -0
- package/comment/index.es.js +85 -0
- package/comment/index.umd.js +1 -0
- package/comment/package.json +7 -0
- package/comment/style.css +1 -0
- package/countdown/index.d.ts +7 -0
- package/countdown/index.es.js +176 -0
- package/countdown/index.umd.js +1 -0
- package/countdown/package.json +7 -0
- package/countdown/style.css +1 -0
- package/date-picker/index.d.ts +7 -0
- package/date-picker/index.es.js +1172 -1
- package/date-picker/index.umd.js +1 -1
- package/date-picker/style.css +1 -1
- package/dragdrop/index.d.ts +7 -0
- package/dragdrop/index.es.js +32 -0
- package/dragdrop/index.umd.js +1 -0
- package/dragdrop/package.json +7 -0
- package/drawer/index.d.ts +7 -0
- package/drawer/index.es.js +287 -0
- package/drawer/index.umd.js +1 -0
- package/drawer/package.json +7 -0
- package/drawer/style.css +1 -0
- package/dropdown/index.d.ts +7 -0
- package/dropdown/index.es.js +535 -0
- package/dropdown/index.umd.js +1 -0
- package/dropdown/package.json +7 -0
- package/dropdown/style.css +1 -0
- package/editable-select/index.d.ts +7 -0
- package/editable-select/index.es.js +5857 -1
- package/editable-select/index.umd.js +27 -1
- package/editable-select/style.css +1 -1
- package/form/index.d.ts +7 -0
- package/form/index.es.js +2244 -0
- package/form/index.umd.js +1 -0
- package/form/package.json +7 -0
- package/form/style.css +1 -0
- package/fullscreen/index.d.ts +7 -0
- package/fullscreen/index.es.js +163 -1
- package/fullscreen/index.umd.js +1 -1
- package/gantt/index.d.ts +7 -0
- package/gantt/index.es.js +535 -0
- package/gantt/index.umd.js +1 -0
- package/gantt/package.json +7 -0
- package/gantt/style.css +1 -0
- package/grid/index.d.ts +7 -0
- package/grid/index.es.js +269 -0
- package/grid/index.umd.js +1 -0
- package/grid/package.json +7 -0
- package/grid/style.css +1 -0
- package/icon/index.d.ts +7 -0
- package/icon/index.es.js +75 -1
- package/icon/index.umd.js +1 -1
- package/image-preview/index.d.ts +7 -0
- package/image-preview/index.es.js +498 -1
- package/image-preview/index.umd.js +1 -1
- package/image-preview/style.css +1 -1
- package/index.d.ts +7 -0
- package/input/index.d.ts +7 -0
- package/input/index.es.js +190 -1
- package/input/index.umd.js +1 -1
- package/input-icon/index.d.ts +7 -0
- package/input-icon/index.es.js +332 -0
- package/input-icon/index.umd.js +1 -0
- package/input-icon/package.json +7 -0
- package/input-icon/style.css +1 -0
- package/input-number/index.d.ts +7 -0
- package/input-number/index.es.js +240 -1
- package/input-number/index.umd.js +1 -1
- package/layout/index.d.ts +7 -0
- package/layout/index.es.js +100 -0
- package/layout/index.umd.js +1 -0
- package/layout/package.json +7 -0
- package/layout/style.css +1 -0
- package/loading/index.d.ts +7 -0
- package/loading/index.es.js +256 -1
- package/loading/index.umd.js +1 -1
- package/modal/index.d.ts +7 -0
- package/modal/index.es.js +1225 -1
- package/modal/index.umd.js +1 -1
- package/modal/style.css +1 -1
- package/nav-sprite/index.d.ts +7 -0
- package/nav-sprite/index.es.js +742 -0
- package/nav-sprite/index.umd.js +1 -0
- package/nav-sprite/package.json +7 -0
- package/nuxt/components/Accordion.js +3 -0
- package/nuxt/components/Alert.js +3 -0
- package/nuxt/components/Anchor.js +3 -0
- package/nuxt/components/Aside.js +3 -0
- package/nuxt/components/Avatar.js +3 -0
- package/nuxt/components/BackTop.js +3 -0
- package/nuxt/components/Badge.js +3 -0
- package/nuxt/components/Breadcrumb.js +3 -0
- package/nuxt/components/Button.js +3 -0
- package/nuxt/components/Card.js +3 -0
- package/nuxt/components/Carousel.js +3 -0
- package/nuxt/components/Cascader.js +3 -0
- package/nuxt/components/Checkbox.js +3 -0
- package/nuxt/components/Col.js +3 -0
- package/nuxt/components/Column.js +3 -0
- package/nuxt/components/Comment.js +3 -0
- package/nuxt/components/Content.js +3 -0
- package/nuxt/components/Countdown.js +3 -0
- package/nuxt/components/DatePicker.js +3 -0
- package/nuxt/components/Drawer.js +3 -0
- package/nuxt/components/Dropdown.js +3 -0
- package/nuxt/components/EditableSelect.js +3 -0
- package/nuxt/components/FixedOverlay.js +3 -0
- package/nuxt/components/FlexibleOverlay.js +3 -0
- package/nuxt/components/Footer.js +3 -0
- package/nuxt/components/Form.js +3 -0
- package/nuxt/components/FormControl.js +3 -0
- package/nuxt/components/FormItem.js +3 -0
- package/nuxt/components/FormLabel.js +3 -0
- package/nuxt/components/FormOperation.js +3 -0
- package/nuxt/components/Fullscreen.js +3 -0
- package/nuxt/components/Gantt.js +3 -0
- package/nuxt/components/Header.js +3 -0
- package/nuxt/components/Icon.js +2 -0
- package/nuxt/components/ImagePreviewService.js +3 -0
- package/nuxt/components/Input.js +3 -0
- package/nuxt/components/InputIcon.js +3 -0
- package/nuxt/components/InputNumber.js +3 -0
- package/nuxt/components/Layout.js +3 -0
- package/nuxt/components/Loading.js +3 -0
- package/nuxt/components/LoadingService.js +3 -0
- package/nuxt/components/Modal.js +3 -0
- package/nuxt/components/NavSprite.js +2 -0
- package/nuxt/components/Pagination.js +3 -0
- package/nuxt/components/Panel.js +3 -0
- package/nuxt/components/Popover.js +3 -0
- package/nuxt/components/Progress.js +3 -0
- package/nuxt/components/QuadrantDiagram.js +3 -0
- package/nuxt/components/Radio.js +3 -0
- package/nuxt/components/RadioGroup.js +3 -0
- package/nuxt/components/Rate.js +3 -0
- package/nuxt/components/ReadTip.js +3 -0
- package/nuxt/components/Result.js +3 -0
- package/nuxt/components/Row.js +3 -0
- package/nuxt/components/Search.js +3 -0
- package/nuxt/components/Select.js +3 -0
- package/nuxt/components/Skeleton.js +3 -0
- package/nuxt/components/SkeletonItem.js +3 -0
- package/nuxt/components/Slider.js +3 -0
- package/nuxt/components/Splitter.js +3 -0
- package/nuxt/components/Statistic.js +3 -0
- package/nuxt/components/Status.js +3 -0
- package/nuxt/components/StepsGuide.js +3 -0
- package/nuxt/components/StickSlider.js +3 -0
- package/nuxt/components/Sticky.js +2 -0
- package/nuxt/components/Switch.js +3 -0
- package/nuxt/components/Table.js +3 -0
- package/nuxt/components/Tabs.js +3 -0
- package/nuxt/components/Tag.js +3 -0
- package/nuxt/components/TagInput.js +3 -0
- package/nuxt/components/Textarea.js +3 -0
- package/nuxt/components/TimeAxis.js +3 -0
- package/nuxt/components/TimeAxisItem.js +3 -0
- package/nuxt/components/TimePicker.js +3 -0
- package/nuxt/components/Toast.js +3 -0
- package/nuxt/components/ToastService.js +3 -0
- package/nuxt/components/Tooltip.js +3 -0
- package/nuxt/components/Transfer.js +3 -0
- package/nuxt/components/Tree.js +3 -0
- package/nuxt/components/TreeSelect.js +3 -0
- package/nuxt/components/Upload.js +3 -0
- package/nuxt/components/buttonProps.js +3 -0
- package/nuxt/index.js +13 -0
- package/overlay/index.d.ts +7 -0
- package/overlay/index.es.js +368 -1
- package/overlay/index.umd.js +1 -1
- package/overlay/style.css +1 -1
- package/package.json +6 -47
- package/pagination/index.d.ts +7 -0
- package/pagination/index.es.js +642 -1
- package/pagination/index.umd.js +1 -1
- package/panel/index.d.ts +7 -0
- package/panel/index.es.js +205 -1
- package/panel/index.umd.js +1 -1
- package/panel/style.css +1 -1
- package/popover/index.d.ts +7 -0
- package/popover/index.es.js +236 -1
- package/popover/index.umd.js +1 -1
- package/progress/index.d.ts +7 -0
- package/progress/index.es.js +153 -1
- package/progress/index.umd.js +3 -1
- package/quadrant-diagram/index.d.ts +7 -0
- package/quadrant-diagram/index.es.js +489 -1
- package/quadrant-diagram/index.umd.js +1 -1
- package/radio/index.d.ts +7 -0
- package/radio/index.es.js +225 -1
- package/radio/index.umd.js +1 -1
- package/rate/index.d.ts +7 -0
- package/rate/index.es.js +220 -1
- package/rate/index.umd.js +1 -1
- package/read-tip/index.d.ts +7 -0
- package/read-tip/index.es.js +258 -0
- package/read-tip/index.umd.js +1 -0
- package/read-tip/package.json +7 -0
- package/read-tip/style.css +1 -0
- package/result/index.d.ts +7 -0
- package/result/index.es.js +119 -0
- package/result/index.umd.js +1 -0
- package/result/package.json +7 -0
- package/result/style.css +1 -0
- package/ripple/index.d.ts +7 -0
- package/ripple/index.es.js +181 -1
- package/ripple/index.umd.js +1 -1
- package/search/index.d.ts +7 -0
- package/search/index.es.js +543 -1
- package/search/index.umd.js +1 -1
- package/select/index.d.ts +7 -0
- package/select/index.es.js +706 -1
- package/select/index.umd.js +1 -1
- package/skeleton/index.d.ts +7 -0
- package/skeleton/index.es.js +297 -1
- package/skeleton/index.umd.js +1 -1
- package/skeleton/style.css +1 -1
- package/slider/index.d.ts +7 -0
- package/slider/index.es.js +199 -1
- package/slider/index.umd.js +1 -1
- package/slider/style.css +1 -1
- package/splitter/index.d.ts +7 -0
- package/splitter/index.es.js +636 -1
- package/splitter/index.umd.js +1 -1
- package/statistic/index.d.ts +7 -0
- package/statistic/index.es.js +280 -0
- package/statistic/index.umd.js +1 -0
- package/statistic/package.json +7 -0
- package/statistic/style.css +1 -0
- package/status/index.d.ts +7 -0
- package/status/index.es.js +42 -1
- package/status/index.umd.js +1 -1
- package/steps-guide/index.d.ts +7 -0
- package/steps-guide/index.es.js +239 -1
- package/steps-guide/index.umd.js +1 -1
- package/steps-guide/style.css +1 -1
- package/sticky/index.d.ts +7 -0
- package/sticky/index.es.js +197 -1
- package/sticky/index.umd.js +1 -1
- package/style.css +1 -1
- package/switch/index.d.ts +7 -0
- package/switch/index.es.js +100 -1
- package/switch/index.umd.js +1 -1
- package/switch/style.css +1 -1
- package/table/index.d.ts +7 -0
- package/table/index.es.js +1836 -1
- package/table/index.umd.js +1 -1
- package/table/style.css +1 -1
- package/tabs/index.d.ts +7 -0
- package/tabs/index.es.js +195 -1
- package/tabs/index.umd.js +1 -1
- package/tabs/style.css +1 -1
- package/tag/index.d.ts +7 -0
- package/tag/index.es.js +131 -0
- package/tag/index.umd.js +1 -0
- package/tag/package.json +7 -0
- package/tag/style.css +1 -0
- package/tag-input/index.d.ts +7 -0
- package/tag-input/index.es.js +329 -1
- package/tag-input/index.umd.js +1 -1
- package/textarea/index.d.ts +7 -0
- package/textarea/index.es.js +132 -0
- package/textarea/index.umd.js +1 -0
- package/textarea/package.json +7 -0
- package/textarea/style.css +1 -0
- package/time-axis/index.d.ts +7 -0
- package/time-axis/index.es.js +299 -0
- package/time-axis/index.umd.js +1 -0
- package/time-axis/package.json +7 -0
- package/time-axis/style.css +1 -0
- package/time-picker/index.d.ts +7 -0
- package/time-picker/index.es.js +1260 -1
- package/time-picker/index.umd.js +1 -1
- package/time-picker/style.css +1 -1
- package/toast/index.d.ts +7 -0
- package/toast/index.es.js +2060 -1
- package/toast/index.umd.js +1 -1
- package/toast/style.css +1 -1
- package/tooltip/index.d.ts +7 -0
- package/tooltip/index.es.js +171 -1
- package/tooltip/index.umd.js +1 -1
- package/transfer/index.d.ts +7 -0
- package/transfer/index.es.js +1725 -1
- package/transfer/index.umd.js +1 -1
- package/transfer/style.css +1 -1
- package/tree/index.d.ts +7 -0
- package/tree/index.es.js +907 -1
- package/tree/index.umd.js +1 -1
- package/tree/style.css +1 -1
- package/tree-select/index.d.ts +7 -0
- package/tree-select/index.es.js +528 -0
- package/tree-select/index.umd.js +1 -0
- package/tree-select/package.json +7 -0
- package/tree-select/style.css +1 -0
- package/upload/index.d.ts +7 -0
- package/upload/index.es.js +2834 -1
- package/upload/index.umd.js +1 -1
- package/upload/style.css +1 -1
- package/vue-devui.es.js +27777 -1
- package/vue-devui.umd.js +29 -1
package/splitter/index.es.js
CHANGED
|
@@ -1 +1,636 @@
|
|
|
1
|
-
var
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
7
|
+
import { defineComponent, inject, reactive, ref, watch, computed, onMounted, withDirectives, createVNode, provide, onUnmounted, resolveComponent, onUpdated } from "vue";
|
|
8
|
+
const splitterProps = {
|
|
9
|
+
orientation: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "horizontal"
|
|
12
|
+
},
|
|
13
|
+
splitBarSize: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "2px"
|
|
16
|
+
},
|
|
17
|
+
disabledBarSize: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "1px"
|
|
20
|
+
},
|
|
21
|
+
showCollapseButton: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: true
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
function setStyle(element, style) {
|
|
27
|
+
const oldStyle = {};
|
|
28
|
+
const styleKeys = Object.keys(style);
|
|
29
|
+
styleKeys.forEach((key) => {
|
|
30
|
+
oldStyle[key] = element.style[key];
|
|
31
|
+
});
|
|
32
|
+
styleKeys.forEach((key) => {
|
|
33
|
+
element.style[key] = style[key];
|
|
34
|
+
});
|
|
35
|
+
return oldStyle;
|
|
36
|
+
}
|
|
37
|
+
function hasClass(el, className) {
|
|
38
|
+
if (el.classList) {
|
|
39
|
+
return el.classList.contains(className);
|
|
40
|
+
}
|
|
41
|
+
const originClass = el.className;
|
|
42
|
+
return ` ${originClass} `.indexOf(` ${className} `) > -1;
|
|
43
|
+
}
|
|
44
|
+
function addClass(el, className) {
|
|
45
|
+
if (el.classList) {
|
|
46
|
+
el.classList.add(className);
|
|
47
|
+
} else {
|
|
48
|
+
if (!hasClass(el, className)) {
|
|
49
|
+
el.className = `${el.className} ${className}`;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function removeClass(el, className) {
|
|
54
|
+
if (el.classList) {
|
|
55
|
+
el.classList.remove(className);
|
|
56
|
+
} else {
|
|
57
|
+
if (hasClass(el, className)) {
|
|
58
|
+
const originClass = el.className;
|
|
59
|
+
el.className = ` ${originClass} `.replace(` ${className} `, " ");
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const resize = {
|
|
64
|
+
mounted(el, { value }) {
|
|
65
|
+
el.$value = value;
|
|
66
|
+
if (value.enableResize) {
|
|
67
|
+
bindEvent(el);
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
unmounted(el, { value }) {
|
|
71
|
+
if (value.enableResize) {
|
|
72
|
+
unbind(el, "mousedown", onMousedown);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
function bindEvent(el) {
|
|
77
|
+
bind(el, "mousedown", onMousedown);
|
|
78
|
+
}
|
|
79
|
+
function bind(el, event, callback) {
|
|
80
|
+
el.addEventListener && el.addEventListener(event, callback);
|
|
81
|
+
}
|
|
82
|
+
function unbind(el, event, callback) {
|
|
83
|
+
el.removeEventListener && el.removeEventListener(event, callback);
|
|
84
|
+
}
|
|
85
|
+
function onMousedown(e) {
|
|
86
|
+
var _a;
|
|
87
|
+
const $value = (_a = e == null ? void 0 : e.target) == null ? void 0 : _a.$value;
|
|
88
|
+
if (!$value)
|
|
89
|
+
return;
|
|
90
|
+
bind(document, "mousemove", onMousemove);
|
|
91
|
+
bind(document, "mouseup", onMouseup);
|
|
92
|
+
$value.onPressEvent(normalizeEvent(e));
|
|
93
|
+
function onMousemove(e2) {
|
|
94
|
+
$value.onDragEvent(normalizeEvent(e2));
|
|
95
|
+
}
|
|
96
|
+
function onMouseup(e2) {
|
|
97
|
+
unbind(document, "mousemove", onMousemove);
|
|
98
|
+
unbind(document, "mouseup", onMouseup);
|
|
99
|
+
$value.onReleaseEvent(normalizeEvent(e2));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function normalizeEvent(e) {
|
|
103
|
+
return {
|
|
104
|
+
pageX: e.pageX,
|
|
105
|
+
pageY: e.pageY,
|
|
106
|
+
clientX: e.clientX,
|
|
107
|
+
clientY: e.clientY,
|
|
108
|
+
offsetX: e.offsetX,
|
|
109
|
+
offsetY: e.offsetY,
|
|
110
|
+
type: e.type,
|
|
111
|
+
originalEvent: e
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
var splitterBar = "";
|
|
115
|
+
const splitterBarProps = {
|
|
116
|
+
index: {
|
|
117
|
+
type: Number
|
|
118
|
+
},
|
|
119
|
+
orientation: {
|
|
120
|
+
type: String,
|
|
121
|
+
required: true
|
|
122
|
+
},
|
|
123
|
+
splitBarSize: {
|
|
124
|
+
type: String,
|
|
125
|
+
required: true
|
|
126
|
+
},
|
|
127
|
+
disabledBarSize: {
|
|
128
|
+
type: String,
|
|
129
|
+
default: "1px"
|
|
130
|
+
},
|
|
131
|
+
showCollapseButton: {
|
|
132
|
+
type: Boolean
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
var DSplitterBar = defineComponent({
|
|
136
|
+
name: "DSplitterBar",
|
|
137
|
+
props: splitterBarProps,
|
|
138
|
+
setup(props) {
|
|
139
|
+
const store = inject("splitterStore");
|
|
140
|
+
const state = reactive({
|
|
141
|
+
wrapperClass: `devui-splitter-bar devui-splitter-bar-${props.orientation}`
|
|
142
|
+
});
|
|
143
|
+
const domRef = ref();
|
|
144
|
+
watch([() => props.splitBarSize, domRef], ([curSplitBarSize, ele]) => {
|
|
145
|
+
if (!(ele instanceof HTMLElement)) {
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
setStyle(ele, {
|
|
149
|
+
flexBasis: curSplitBarSize
|
|
150
|
+
});
|
|
151
|
+
}, {
|
|
152
|
+
immediate: true
|
|
153
|
+
});
|
|
154
|
+
watch([() => store.state.panes, domRef], ([panes, ele]) => {
|
|
155
|
+
if (!store.isStaticBar(props.index)) {
|
|
156
|
+
state.wrapperClass += " resizable";
|
|
157
|
+
} else {
|
|
158
|
+
setStyle(ele, {
|
|
159
|
+
flexBasis: props.disabledBarSize
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
}, {
|
|
163
|
+
deep: true
|
|
164
|
+
});
|
|
165
|
+
const coordinate = {
|
|
166
|
+
pageX: 0,
|
|
167
|
+
pageY: 0,
|
|
168
|
+
originalX: 0,
|
|
169
|
+
originalY: 0
|
|
170
|
+
};
|
|
171
|
+
let initState;
|
|
172
|
+
const resizeProp = {
|
|
173
|
+
enableResize: true,
|
|
174
|
+
onPressEvent: function({
|
|
175
|
+
originalEvent
|
|
176
|
+
}) {
|
|
177
|
+
originalEvent.stopPropagation();
|
|
178
|
+
if (!store.isResizable(props.index))
|
|
179
|
+
return;
|
|
180
|
+
initState = store.dragState(props.index);
|
|
181
|
+
coordinate.originalX = originalEvent.pageX;
|
|
182
|
+
coordinate.originalY = originalEvent.pageY;
|
|
183
|
+
},
|
|
184
|
+
onDragEvent: function({
|
|
185
|
+
originalEvent
|
|
186
|
+
}) {
|
|
187
|
+
originalEvent.stopPropagation();
|
|
188
|
+
if (!store.isResizable(props.index))
|
|
189
|
+
return;
|
|
190
|
+
coordinate.pageX = originalEvent.pageX;
|
|
191
|
+
coordinate.pageY = originalEvent.pageY;
|
|
192
|
+
let distance;
|
|
193
|
+
if (props.orientation === "vertical") {
|
|
194
|
+
distance = coordinate.pageY - coordinate.originalY;
|
|
195
|
+
} else {
|
|
196
|
+
distance = coordinate.pageX - coordinate.originalX;
|
|
197
|
+
}
|
|
198
|
+
store.setSize(initState, distance);
|
|
199
|
+
},
|
|
200
|
+
onReleaseEvent: function({
|
|
201
|
+
originalEvent
|
|
202
|
+
}) {
|
|
203
|
+
originalEvent.stopPropagation();
|
|
204
|
+
if (!store.isResizable(props.index))
|
|
205
|
+
return;
|
|
206
|
+
coordinate.pageX = originalEvent.pageX;
|
|
207
|
+
coordinate.pageY = originalEvent.pageY;
|
|
208
|
+
let distance;
|
|
209
|
+
if (props.orientation === "vertical") {
|
|
210
|
+
distance = coordinate.pageY - coordinate.originalY;
|
|
211
|
+
} else {
|
|
212
|
+
distance = coordinate.pageX - coordinate.originalX;
|
|
213
|
+
}
|
|
214
|
+
store.setSize(initState, distance);
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
const queryPanes = (index2, nearIndex) => {
|
|
218
|
+
const pane = store.getPane(index2);
|
|
219
|
+
const nearPane = store.getPane(nearIndex);
|
|
220
|
+
return {
|
|
221
|
+
pane,
|
|
222
|
+
nearPane
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
const generateCollapseClass = (pane, nearPane, showIcon) => {
|
|
226
|
+
var _a, _b, _c, _d;
|
|
227
|
+
const isCollapsible = ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapsible) && showIcon;
|
|
228
|
+
const isCollapsed = (_d = (_c = pane == null ? void 0 : pane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed;
|
|
229
|
+
const isNearPaneCollapsed = nearPane.collapsed;
|
|
230
|
+
return {
|
|
231
|
+
"devui-collapse": isCollapsible,
|
|
232
|
+
collapsed: isCollapsed,
|
|
233
|
+
hidden: isNearPaneCollapsed
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
const prevClass = computed(() => {
|
|
237
|
+
var _a, _b;
|
|
238
|
+
const {
|
|
239
|
+
pane,
|
|
240
|
+
nearPane
|
|
241
|
+
} = queryPanes(props.index, props.index + 1);
|
|
242
|
+
const showIcon = ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapseDirection) !== "after" || props.index === 0;
|
|
243
|
+
return generateCollapseClass(pane, nearPane, showIcon);
|
|
244
|
+
});
|
|
245
|
+
const nextClass = computed(() => {
|
|
246
|
+
var _a, _b;
|
|
247
|
+
const {
|
|
248
|
+
pane,
|
|
249
|
+
nearPane
|
|
250
|
+
} = queryPanes(props.index + 1, props.index);
|
|
251
|
+
const showIcon = ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapseDirection) !== "before" || props.index + 1 === store.state.paneCount - 1;
|
|
252
|
+
return generateCollapseClass(pane, nearPane, showIcon);
|
|
253
|
+
});
|
|
254
|
+
const toggleResize = () => {
|
|
255
|
+
var _a, _b, _c, _d;
|
|
256
|
+
const {
|
|
257
|
+
pane,
|
|
258
|
+
nearPane
|
|
259
|
+
} = queryPanes(props.index, props.index + 1);
|
|
260
|
+
const isCollapsed = ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapsed) || ((_d = (_c = nearPane == null ? void 0 : nearPane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed);
|
|
261
|
+
if (isCollapsed) {
|
|
262
|
+
addClass(domRef.value, "none-resizable");
|
|
263
|
+
} else {
|
|
264
|
+
removeClass(domRef.value, "none-resizable");
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
const handleCollapsePrePane = (lockStatus) => {
|
|
268
|
+
store.tooglePane(props.index, props.index + 1, lockStatus);
|
|
269
|
+
toggleResize();
|
|
270
|
+
};
|
|
271
|
+
const handleCollapseNextPane = (lockStatus) => {
|
|
272
|
+
store.tooglePane(props.index + 1, props.index, lockStatus);
|
|
273
|
+
toggleResize();
|
|
274
|
+
};
|
|
275
|
+
const initialCollapseStatus = () => {
|
|
276
|
+
handleCollapsePrePane(true);
|
|
277
|
+
handleCollapseNextPane(true);
|
|
278
|
+
};
|
|
279
|
+
onMounted(() => {
|
|
280
|
+
initialCollapseStatus();
|
|
281
|
+
});
|
|
282
|
+
return () => {
|
|
283
|
+
return withDirectives(createVNode("div", {
|
|
284
|
+
"class": state.wrapperClass,
|
|
285
|
+
"ref": domRef
|
|
286
|
+
}, [props.showCollapseButton ? createVNode("div", {
|
|
287
|
+
"class": ["prev", prevClass.value],
|
|
288
|
+
"onClick": () => {
|
|
289
|
+
handleCollapsePrePane();
|
|
290
|
+
}
|
|
291
|
+
}, null) : null, createVNode("div", {
|
|
292
|
+
"class": "devui-resize-handle"
|
|
293
|
+
}, null), props.showCollapseButton ? createVNode("div", {
|
|
294
|
+
"class": ["next", nextClass.value],
|
|
295
|
+
"onClick": () => handleCollapseNextPane()
|
|
296
|
+
}, null) : null]), [[resize, resizeProp]]);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
class SplitterStore {
|
|
301
|
+
constructor() {
|
|
302
|
+
__publicField(this, "state");
|
|
303
|
+
this.state = reactive({
|
|
304
|
+
panes: [],
|
|
305
|
+
splitterContainerSize: 0,
|
|
306
|
+
paneCount: 0
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
setPanes({ panes }) {
|
|
310
|
+
this.state.panes = panes.map((pane, index2) => {
|
|
311
|
+
var _a;
|
|
312
|
+
if (pane.component) {
|
|
313
|
+
pane.component.exposed.order.value = index2 * 2;
|
|
314
|
+
}
|
|
315
|
+
pane.getPaneSize = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.exposed.getPaneSize;
|
|
316
|
+
return pane;
|
|
317
|
+
});
|
|
318
|
+
this.state.paneCount = panes.length;
|
|
319
|
+
}
|
|
320
|
+
setSplitter({ containerSize }) {
|
|
321
|
+
this.state.splitterContainerSize = containerSize;
|
|
322
|
+
}
|
|
323
|
+
getPane(index2) {
|
|
324
|
+
if (!this.state.panes || index2 < 0 || index2 >= this.state.panes.length) {
|
|
325
|
+
throw new Error("no pane can return.");
|
|
326
|
+
}
|
|
327
|
+
return this.state.panes[index2];
|
|
328
|
+
}
|
|
329
|
+
dragState(splitbarIndex) {
|
|
330
|
+
const prev = this.getPane(splitbarIndex);
|
|
331
|
+
const next = this.getPane(splitbarIndex + 1);
|
|
332
|
+
const total = prev.getPaneSize() + next.getPaneSize();
|
|
333
|
+
return {
|
|
334
|
+
prev: {
|
|
335
|
+
index: splitbarIndex,
|
|
336
|
+
initialSize: prev.getPaneSize(),
|
|
337
|
+
minSize: this.toPixels(prev.component.props.minSize) || total - this.toPixels(next.component.props.maxSize) || 0,
|
|
338
|
+
maxSize: this.toPixels(prev.component.props.maxSize) || total - this.toPixels(next.component.props.minSize) || total
|
|
339
|
+
},
|
|
340
|
+
next: {
|
|
341
|
+
index: splitbarIndex + 1,
|
|
342
|
+
initialSize: next.getPaneSize(),
|
|
343
|
+
minSize: this.toPixels(next.component.props.minSize) || total - this.toPixels(prev.component.props.maxSize) || 0,
|
|
344
|
+
maxSize: this.toPixels(next.component.props.maxSize) || total - this.toPixels(prev.component.props.minSize) || total
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
clamp(minSize, maxSize, initialSize) {
|
|
349
|
+
return Math.min(maxSize, Math.max(minSize, initialSize));
|
|
350
|
+
}
|
|
351
|
+
resize(paneState, moveSize) {
|
|
352
|
+
const pane = this.getPane(paneState.index);
|
|
353
|
+
const splitterSize = this.state.splitterContainerSize;
|
|
354
|
+
const newSize = this.clamp(paneState.minSize, paneState.maxSize, paneState.initialSize + moveSize);
|
|
355
|
+
let size = "";
|
|
356
|
+
if (this.isPercent(pane.component.props.size)) {
|
|
357
|
+
size = newSize / splitterSize * 100 + "%";
|
|
358
|
+
} else {
|
|
359
|
+
size = newSize + "px";
|
|
360
|
+
}
|
|
361
|
+
pane.component.props.size = size;
|
|
362
|
+
pane.component.emit("sizeChange", size);
|
|
363
|
+
}
|
|
364
|
+
isResizable(splitBarIndex) {
|
|
365
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
366
|
+
const prevPane = this.getPane(splitBarIndex);
|
|
367
|
+
const nextPane = this.getPane(splitBarIndex + 1);
|
|
368
|
+
const paneCollapsed = ((_b = (_a = prevPane == null ? void 0 : prevPane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapsed) || ((_d = (_c = nextPane == null ? void 0 : nextPane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed);
|
|
369
|
+
return ((_f = (_e = prevPane == null ? void 0 : prevPane.component) == null ? void 0 : _e.props) == null ? void 0 : _f.resizable) && ((_h = (_g = nextPane == null ? void 0 : nextPane.component) == null ? void 0 : _g.props) == null ? void 0 : _h.resizable) && !paneCollapsed;
|
|
370
|
+
}
|
|
371
|
+
isStaticBar(splitBarIndex) {
|
|
372
|
+
var _a, _b, _c, _d;
|
|
373
|
+
const prevPane = this.getPane(splitBarIndex);
|
|
374
|
+
const nextPane = this.getPane(splitBarIndex + 1);
|
|
375
|
+
return !(((_b = (_a = prevPane == null ? void 0 : prevPane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.resizable) && ((_d = (_c = nextPane == null ? void 0 : nextPane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.resizable));
|
|
376
|
+
}
|
|
377
|
+
isPercent(size) {
|
|
378
|
+
return /%$/.test(size);
|
|
379
|
+
}
|
|
380
|
+
toPixels(size) {
|
|
381
|
+
let result = parseFloat(size);
|
|
382
|
+
if (this.isPercent(size)) {
|
|
383
|
+
result = this.state.splitterContainerSize * result / 100;
|
|
384
|
+
}
|
|
385
|
+
return result;
|
|
386
|
+
}
|
|
387
|
+
tooglePane(paneIndex, nearPaneIndex, lockStatus) {
|
|
388
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
389
|
+
const pane = this.getPane(paneIndex);
|
|
390
|
+
const nearPane = this.getPane(nearPaneIndex);
|
|
391
|
+
if ((_b = (_a = pane == null ? void 0 : pane.component) == null ? void 0 : _a.props) == null ? void 0 : _b.collapsible) {
|
|
392
|
+
pane.component.props.collapsed = lockStatus ? (_d = (_c = pane == null ? void 0 : pane.component) == null ? void 0 : _c.props) == null ? void 0 : _d.collapsed : !((_f = (_e = pane == null ? void 0 : pane.component) == null ? void 0 : _e.props) == null ? void 0 : _f.collapsed);
|
|
393
|
+
(_j = (_g = nearPane == null ? void 0 : nearPane.component) == null ? void 0 : _g.exposed) == null ? void 0 : _j.toggleNearPaneFlexGrow((_i = (_h = pane == null ? void 0 : pane.component) == null ? void 0 : _h.props) == null ? void 0 : _i.collapsed);
|
|
394
|
+
(_m = pane == null ? void 0 : pane.component) == null ? void 0 : _m.emit("collapsedChange", (_l = (_k = pane == null ? void 0 : pane.component) == null ? void 0 : _k.props) == null ? void 0 : _l.collapsed);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
setSize(state, distance) {
|
|
398
|
+
const prev = this.getPane(state.prev.index);
|
|
399
|
+
const next = this.getPane(state.next.index);
|
|
400
|
+
if (prev.component.props.size && next.component.props.size) {
|
|
401
|
+
this.resize(state.prev, distance);
|
|
402
|
+
this.resize(state.next, -distance);
|
|
403
|
+
} else if (next.component.props.size) {
|
|
404
|
+
this.resize(state.next, -distance);
|
|
405
|
+
} else {
|
|
406
|
+
this.resize(state.prev, distance);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
var splitter = "";
|
|
411
|
+
var Splitter = defineComponent({
|
|
412
|
+
name: "DSplitter",
|
|
413
|
+
components: {
|
|
414
|
+
DSplitterBar
|
|
415
|
+
},
|
|
416
|
+
props: splitterProps,
|
|
417
|
+
emits: [],
|
|
418
|
+
setup(props, ctx) {
|
|
419
|
+
var _a, _b;
|
|
420
|
+
const store = new SplitterStore();
|
|
421
|
+
const state = reactive({
|
|
422
|
+
panes: []
|
|
423
|
+
});
|
|
424
|
+
state.panes = ((_b = (_a = ctx.slots).DSplitterPane) == null ? void 0 : _b.call(_a)) || [];
|
|
425
|
+
store.setPanes({
|
|
426
|
+
panes: state.panes
|
|
427
|
+
});
|
|
428
|
+
provide("orientation", props.orientation);
|
|
429
|
+
provide("splitterStore", store);
|
|
430
|
+
const domRef = ref();
|
|
431
|
+
const refreshSplitterContainerSize = () => {
|
|
432
|
+
if (!domRef)
|
|
433
|
+
return;
|
|
434
|
+
let containerSize = 0;
|
|
435
|
+
if (props.orientation === "vertical") {
|
|
436
|
+
containerSize = domRef.value.clientHeight;
|
|
437
|
+
} else {
|
|
438
|
+
containerSize = domRef.value.clientWidth;
|
|
439
|
+
}
|
|
440
|
+
store.setSplitter({
|
|
441
|
+
containerSize
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
const observer = new ResizeObserver(refreshSplitterContainerSize);
|
|
445
|
+
watch(domRef, (ele) => {
|
|
446
|
+
if (!ele) {
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
449
|
+
refreshSplitterContainerSize();
|
|
450
|
+
observer.observe(domRef.value);
|
|
451
|
+
});
|
|
452
|
+
onUnmounted(() => {
|
|
453
|
+
observer.disconnect();
|
|
454
|
+
});
|
|
455
|
+
return () => {
|
|
456
|
+
const {
|
|
457
|
+
splitBarSize,
|
|
458
|
+
orientation,
|
|
459
|
+
showCollapseButton
|
|
460
|
+
} = props;
|
|
461
|
+
const wrapperClass = ["devui-splitter", `devui-splitter-${orientation}`];
|
|
462
|
+
return createVNode("div", {
|
|
463
|
+
"class": wrapperClass,
|
|
464
|
+
"ref": domRef
|
|
465
|
+
}, [state.panes, state.panes.filter((pane, index2, arr) => index2 !== arr.length - 1).map((pane, index2) => {
|
|
466
|
+
return createVNode(resolveComponent("d-splitter-bar"), {
|
|
467
|
+
"key": index2,
|
|
468
|
+
"style": `order: ${index2 * 2 + 1}`,
|
|
469
|
+
"splitBarSize": splitBarSize,
|
|
470
|
+
"orientation": orientation,
|
|
471
|
+
"index": index2,
|
|
472
|
+
"showCollapseButton": showCollapseButton
|
|
473
|
+
}, null);
|
|
474
|
+
})]);
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
const splitterPaneProps = {
|
|
479
|
+
size: {
|
|
480
|
+
type: String
|
|
481
|
+
},
|
|
482
|
+
minSize: {
|
|
483
|
+
type: String
|
|
484
|
+
},
|
|
485
|
+
maxSize: {
|
|
486
|
+
type: String
|
|
487
|
+
},
|
|
488
|
+
resizable: {
|
|
489
|
+
type: Boolean,
|
|
490
|
+
default: true
|
|
491
|
+
},
|
|
492
|
+
collapsible: {
|
|
493
|
+
type: Boolean,
|
|
494
|
+
default: false
|
|
495
|
+
},
|
|
496
|
+
collapsed: {
|
|
497
|
+
type: Boolean,
|
|
498
|
+
default: false
|
|
499
|
+
},
|
|
500
|
+
collapseDirection: {
|
|
501
|
+
type: String,
|
|
502
|
+
default: "both"
|
|
503
|
+
},
|
|
504
|
+
shrink: {
|
|
505
|
+
type: Boolean,
|
|
506
|
+
default: false
|
|
507
|
+
},
|
|
508
|
+
shrinkWidth: {
|
|
509
|
+
type: Number,
|
|
510
|
+
default: 36
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
var splitterPane = "";
|
|
514
|
+
var SplitterPane = defineComponent({
|
|
515
|
+
name: "DSplitterPane",
|
|
516
|
+
props: splitterPaneProps,
|
|
517
|
+
emits: ["sizeChange", "collapsedChange"],
|
|
518
|
+
setup(props, {
|
|
519
|
+
slots,
|
|
520
|
+
expose
|
|
521
|
+
}) {
|
|
522
|
+
const store = inject("splitterStore");
|
|
523
|
+
const domRef = ref();
|
|
524
|
+
const orderRef = ref();
|
|
525
|
+
watch([orderRef, domRef], ([order, ele]) => {
|
|
526
|
+
if (!ele) {
|
|
527
|
+
return;
|
|
528
|
+
}
|
|
529
|
+
setStyle(ele, {
|
|
530
|
+
order
|
|
531
|
+
});
|
|
532
|
+
});
|
|
533
|
+
const setSizeStyle = (curSize, ele) => {
|
|
534
|
+
if (!ele) {
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
ele.style.flexBasis = curSize;
|
|
538
|
+
const paneFixedClass = "devui-splitter-pane-fixed";
|
|
539
|
+
if (curSize) {
|
|
540
|
+
addClass(ele, paneFixedClass);
|
|
541
|
+
} else {
|
|
542
|
+
removeClass(ele, paneFixedClass);
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
watch([() => props.size, domRef], ([size, ele]) => {
|
|
546
|
+
setSizeStyle(size, ele);
|
|
547
|
+
}, {
|
|
548
|
+
immediate: true
|
|
549
|
+
});
|
|
550
|
+
const orientation = inject("orientation");
|
|
551
|
+
let initialSize = "";
|
|
552
|
+
onMounted(() => {
|
|
553
|
+
initialSize = props.size;
|
|
554
|
+
store.setPanes({
|
|
555
|
+
panes: store.state.panes
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
onUpdated(() => {
|
|
559
|
+
store.setPanes({
|
|
560
|
+
panes: store.state.panes
|
|
561
|
+
});
|
|
562
|
+
});
|
|
563
|
+
const getPaneSize = () => {
|
|
564
|
+
const ele = domRef.value;
|
|
565
|
+
if (!ele) {
|
|
566
|
+
return;
|
|
567
|
+
}
|
|
568
|
+
if (orientation === "vertical") {
|
|
569
|
+
return ele.offsetHeight;
|
|
570
|
+
} else {
|
|
571
|
+
return ele.offsetWidth;
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
watch(() => props.collapsed, (collapsed) => {
|
|
575
|
+
const ele = domRef.value;
|
|
576
|
+
if (!ele) {
|
|
577
|
+
return;
|
|
578
|
+
}
|
|
579
|
+
const paneHiddenClass = "devui-splitter-pane-hidden";
|
|
580
|
+
if (!collapsed) {
|
|
581
|
+
removeClass(ele, paneHiddenClass);
|
|
582
|
+
} else {
|
|
583
|
+
addClass(ele, paneHiddenClass);
|
|
584
|
+
}
|
|
585
|
+
if (collapsed && props.shrink) {
|
|
586
|
+
removeClass(ele, paneHiddenClass);
|
|
587
|
+
setStyle(ele, {
|
|
588
|
+
flexBasis: `${props.shrinkWidth}px`
|
|
589
|
+
});
|
|
590
|
+
} else {
|
|
591
|
+
setStyle(ele, {
|
|
592
|
+
flexBasis: initialSize
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
}, {
|
|
596
|
+
immediate: true
|
|
597
|
+
});
|
|
598
|
+
const toggleNearPaneFlexGrow = (collapsed) => {
|
|
599
|
+
const ele = domRef.value;
|
|
600
|
+
if (!(ele instanceof HTMLElement)) {
|
|
601
|
+
return;
|
|
602
|
+
}
|
|
603
|
+
const flexGrowClass = "devui-splitter-pane-grow";
|
|
604
|
+
if (hasClass(ele, flexGrowClass)) {
|
|
605
|
+
removeClass(ele, flexGrowClass);
|
|
606
|
+
} else if (collapsed) {
|
|
607
|
+
addClass(ele, flexGrowClass);
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
expose({
|
|
611
|
+
order: orderRef,
|
|
612
|
+
getPaneSize,
|
|
613
|
+
toggleNearPaneFlexGrow
|
|
614
|
+
});
|
|
615
|
+
return () => {
|
|
616
|
+
var _a;
|
|
617
|
+
return createVNode("div", {
|
|
618
|
+
"class": "devui-splitter-pane",
|
|
619
|
+
"ref": domRef
|
|
620
|
+
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
621
|
+
};
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
Splitter.install = function(app) {
|
|
625
|
+
app.component(Splitter.name, Splitter);
|
|
626
|
+
app.component(SplitterPane.name, SplitterPane);
|
|
627
|
+
};
|
|
628
|
+
var index = {
|
|
629
|
+
title: "Splitter \u5206\u5272\u5668",
|
|
630
|
+
category: "\u5E03\u5C40",
|
|
631
|
+
status: "100%",
|
|
632
|
+
install(app) {
|
|
633
|
+
app.use(Splitter);
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
export { Splitter, index as default };
|