@opentiny/vue-renderless 3.11.3 → 3.11.4
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/common/deps/tree-model/node.js +12 -6
- package/package.json +1 -1
- package/picker/index.js +5 -1
- package/picker/vue.js +2 -2
- package/tabs/index.js +15 -25
- package/tabs/vue.js +1 -1
- package/tree/vue.js +2 -9
- package/tree-node/index.js +2 -2
- package/tree-node/vue.js +8 -2
- package/types/checkbox.type.d.mts +2 -2
- package/types/collapse.type.d.mts +1 -1
- package/types/date-picker.type.d.mts +1 -1
- package/types/file-upload.type.d.mts +1 -1
- package/types/form-item.type.d.mts +1 -1
- package/types/{form.type-004ecf93.d.ts → form.type-1e2e9272.d.ts} +1 -1
- package/types/form.type.d.mts +1 -1
- package/types/milestone.type.d.mts +1 -1
- package/types/popeditor.type.d.mts +1 -1
- package/types/popover.type.d.mts +1 -1
- package/types/progress.type.d.mts +1 -1
- package/types/steps.type.d.mts +1 -1
- package/types/switch.type.d.mts +3 -3
- package/types/tabs.type.d.mts +1 -1
- package/types/upload-dragger.type.d.mts +2 -2
- package/types/{upload-list.type-aa21a42e.d.ts → upload-list.type-b934f279.d.ts} +2 -2
- package/types/upload-list.type.d.mts +1 -1
- package/types/upload.type.d.mts +1 -1
|
@@ -4,6 +4,7 @@ import { markNodeData, NODE_KEY } from "./util";
|
|
|
4
4
|
import { indexOf } from "../../array";
|
|
5
5
|
import { hasOwn, typeOf } from "../../type";
|
|
6
6
|
const defaultChildrenKey = "children";
|
|
7
|
+
const defaultIsLeafKey = "isLeaf";
|
|
7
8
|
const getPropertyFromData = (node, prop) => {
|
|
8
9
|
const props = node.store.props;
|
|
9
10
|
const dataData = node.data || {};
|
|
@@ -66,7 +67,7 @@ class Node {
|
|
|
66
67
|
store.registerNode(this);
|
|
67
68
|
const props = store.props;
|
|
68
69
|
if (props && typeof props.isLeaf !== "undefined") {
|
|
69
|
-
const isLeaf = getPropertyFromData(this,
|
|
70
|
+
const isLeaf = getPropertyFromData(this, defaultIsLeafKey);
|
|
70
71
|
if (typeof isLeaf === "boolean") {
|
|
71
72
|
this.isLeafByUser = isLeaf;
|
|
72
73
|
}
|
|
@@ -93,12 +94,14 @@ class Node {
|
|
|
93
94
|
this.setData(data);
|
|
94
95
|
if (store.defaultExpandAll) {
|
|
95
96
|
this.expanded = true;
|
|
97
|
+
this.updateMethod(this, "expanded");
|
|
96
98
|
}
|
|
97
99
|
} else if (level > 0 && store.lazy && store.defaultExpandAll) {
|
|
98
100
|
this.expand();
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
103
|
init(options) {
|
|
104
|
+
var _a, _b;
|
|
102
105
|
this.id = nodeIdSeed++;
|
|
103
106
|
this.checked = false;
|
|
104
107
|
this.indeterminate = false;
|
|
@@ -108,19 +111,19 @@ class Node {
|
|
|
108
111
|
this.text = null;
|
|
109
112
|
this.data = null;
|
|
110
113
|
this.parent = null;
|
|
114
|
+
this.updateMethod = () => {
|
|
115
|
+
};
|
|
111
116
|
Object.keys(options).forEach((key) => {
|
|
112
117
|
if (hasOwn.call(options, key)) {
|
|
113
118
|
this[key] = options[key];
|
|
114
119
|
}
|
|
115
120
|
});
|
|
116
|
-
|
|
121
|
+
const isLeafKey = ((_b = (_a = this.store) == null ? void 0 : _a.props) == null ? void 0 : _b.isLeaf) || defaultIsLeafKey;
|
|
122
|
+
this.isLeaf = !!(this.data && this.data[isLeafKey]);
|
|
117
123
|
this.loaded = false;
|
|
118
124
|
this.loading = false;
|
|
119
125
|
this.childNodes = [];
|
|
120
|
-
this.level = 0;
|
|
121
|
-
if (this.parent) {
|
|
122
|
-
this.level = this.parent.level + 1;
|
|
123
|
-
}
|
|
126
|
+
this.level = this.parent ? this.parent.level + 1 : 0;
|
|
124
127
|
}
|
|
125
128
|
expandByDefaultKeys() {
|
|
126
129
|
const { defaultExpandedKeys, key, autoExpandParent } = this.store;
|
|
@@ -273,10 +276,12 @@ class Node {
|
|
|
273
276
|
let parentNode = this.parent;
|
|
274
277
|
while (parentNode.level > 0) {
|
|
275
278
|
parentNode.expanded = true;
|
|
279
|
+
parentNode.updateMethod(parentNode, "expanded");
|
|
276
280
|
parentNode = parentNode.parent;
|
|
277
281
|
}
|
|
278
282
|
}
|
|
279
283
|
this.expanded = true;
|
|
284
|
+
this.updateMethod(this, "expanded");
|
|
280
285
|
callback && callback();
|
|
281
286
|
};
|
|
282
287
|
if (this.shouldLoadData()) {
|
|
@@ -301,6 +306,7 @@ class Node {
|
|
|
301
306
|
}
|
|
302
307
|
collapse() {
|
|
303
308
|
this.expanded = false;
|
|
309
|
+
this.updateMethod(this, "expanded");
|
|
304
310
|
}
|
|
305
311
|
shouldLoadData() {
|
|
306
312
|
return this.store.lazy === true && this.store.load && !this.loaded;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-renderless",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.4",
|
|
4
4
|
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
|
|
5
5
|
"homepage": "https://opentiny.design/tiny-vue",
|
|
6
6
|
"keywords": [
|
package/picker/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import userPopper from "../common/deps/vue-popper";
|
|
|
8
8
|
import { DATEPICKER } from "../common";
|
|
9
9
|
import { formatDate, parseDate, isDateObject, getWeekNumber } from "../common/deps/date-util";
|
|
10
10
|
import { extend } from "../common/object";
|
|
11
|
+
import { isFunction } from "../common/type";
|
|
11
12
|
import globalTimezone from "./timezone";
|
|
12
13
|
const iso8601Reg = /^\d{4}-\d{2}-\d{2}(.)\d{2}:\d{2}:\d{2}(.+)$/;
|
|
13
14
|
const getPanel = ({ DatePanel, DateRangePanel, MonthRangePanel, YearRangePanel, TimePanel, TimeRangePanel, TimeSelect }) => (type) => {
|
|
@@ -513,10 +514,13 @@ const handleKeydown = ({ api, state }) => (event) => {
|
|
|
513
514
|
state.picker.handleKeydown(event);
|
|
514
515
|
}
|
|
515
516
|
};
|
|
516
|
-
const hidePicker = ({ state }) => () => {
|
|
517
|
+
const hidePicker = ({ state, doDestroy }) => () => {
|
|
517
518
|
if (state.picker) {
|
|
518
519
|
state.picker.resetView && state.picker.resetView();
|
|
519
520
|
state.pickerVisible = state.picker.visible = state.picker.state.visible = false;
|
|
521
|
+
if (isFunction(doDestroy)) {
|
|
522
|
+
doDestroy();
|
|
523
|
+
}
|
|
520
524
|
}
|
|
521
525
|
};
|
|
522
526
|
const showPicker = ({ api, nextTick, updatePopper, state }) => () => {
|
package/picker/vue.js
CHANGED
|
@@ -120,13 +120,13 @@ const initState = ({ api: api2, reactive, vm, computed, props, utils, parent })
|
|
|
120
120
|
const initApi = ({ api: api2, props, hooks, state, vnode, others, utils }) => {
|
|
121
121
|
const { t, emit, dispatch, nextTick, vm } = vnode;
|
|
122
122
|
const { TimePanel, TimeRangePanel } = others;
|
|
123
|
-
const { destroyPopper, popperElm, updatePopper } = initPopper({ props, hooks, vnode });
|
|
123
|
+
const { destroyPopper, popperElm, updatePopper, doDestroy } = initPopper({ props, hooks, vnode });
|
|
124
124
|
state.popperElm = popperElm;
|
|
125
125
|
state.picker = null;
|
|
126
126
|
Object.assign(api2, {
|
|
127
127
|
destroyPopper,
|
|
128
128
|
emitDbTime: emitDbTime({ emit, state, t }),
|
|
129
|
-
hidePicker: hidePicker({ state }),
|
|
129
|
+
hidePicker: hidePicker({ state, doDestroy }),
|
|
130
130
|
handleSelectChange: ({ tz, date }) => emit("select-change", { tz, date }),
|
|
131
131
|
getPanel: getPanel(others),
|
|
132
132
|
handleFocus: handleFocus({ emit, vm, state }),
|
package/tabs/index.js
CHANGED
|
@@ -32,13 +32,7 @@ const calcPaneInstances = ({
|
|
|
32
32
|
state.panes = [];
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
const calcMorePanes = ({
|
|
36
|
-
parent,
|
|
37
|
-
props,
|
|
38
|
-
state,
|
|
39
|
-
refs,
|
|
40
|
-
nextTick
|
|
41
|
-
}) => () => {
|
|
35
|
+
const calcMorePanes = ({ parent, props, state, refs }) => () => {
|
|
42
36
|
if (!props.showMoreTabs) {
|
|
43
37
|
return;
|
|
44
38
|
}
|
|
@@ -46,25 +40,21 @@ const calcMorePanes = ({
|
|
|
46
40
|
const tabs = el.querySelectorAll(".tiny-tabs__item");
|
|
47
41
|
const tabNavRefs = refs.nav.$refs;
|
|
48
42
|
if (tabs && tabs.length) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} else {
|
|
61
|
-
state.showPanesCount = i;
|
|
62
|
-
}
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
43
|
+
let tabsAllWidth = 0;
|
|
44
|
+
for (let i = 0; i < tabs.length; i++) {
|
|
45
|
+
const tabItem = tabs[i];
|
|
46
|
+
tabsAllWidth = tabItem.offsetLeft + tabItem.offsetWidth / 2;
|
|
47
|
+
const tabsHeaderWidth = tabNavRefs.navScroll.offsetWidth;
|
|
48
|
+
const currentName = Number(state.currentName || 0);
|
|
49
|
+
if (tabsAllWidth > tabsHeaderWidth && currentName >= 0) {
|
|
50
|
+
if (currentName >= i + 1) {
|
|
51
|
+
state.showPanesCount = currentName - 0;
|
|
52
|
+
} else {
|
|
53
|
+
state.showPanesCount = i;
|
|
65
54
|
}
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
68
58
|
}
|
|
69
59
|
};
|
|
70
60
|
const calcExpandPanes = ({ parent, props, state }) => () => {
|
package/tabs/vue.js
CHANGED
|
@@ -79,7 +79,7 @@ const renderless = (props, { onMounted, onUpdated, provide, reactive, watch }, {
|
|
|
79
79
|
handleTabRemove: handleTabRemove(emit),
|
|
80
80
|
changeDirection: changeDirection({ props, state }),
|
|
81
81
|
changeCurrentName: changeCurrentName({ emit, state }),
|
|
82
|
-
calcMorePanes: calcMorePanes({ parent, props, state, refs
|
|
82
|
+
calcMorePanes: calcMorePanes({ parent, props, state, refs }),
|
|
83
83
|
calcExpandPanes: calcExpandPanes({ parent, props, state }),
|
|
84
84
|
calcPaneInstances: calcPaneInstances({ constants, parent, state, childrenHandler }),
|
|
85
85
|
handleTabDragStart: handleTabDragStart({ emit }),
|
package/tree/vue.js
CHANGED
|
@@ -126,7 +126,7 @@ const initState = ({ reactive, emitter, props, computed, api: api2 }) => {
|
|
|
126
126
|
treeItems: null,
|
|
127
127
|
currentNode: null,
|
|
128
128
|
checkboxItems: [],
|
|
129
|
-
isEmpty:
|
|
129
|
+
isEmpty: computed(() => api2.computedIsEmpty(props, state)),
|
|
130
130
|
emitter: emitter(),
|
|
131
131
|
expandIcon: props.expandIcon,
|
|
132
132
|
shrinkIcon: props.shrinkIcon,
|
|
@@ -231,14 +231,7 @@ const initWatcher = ({ watch, props, api: api2, state }) => {
|
|
|
231
231
|
(value) => state.action.addDisabled = value || [],
|
|
232
232
|
{ immediate: true }
|
|
233
233
|
);
|
|
234
|
-
watch(
|
|
235
|
-
() => state.root,
|
|
236
|
-
() => {
|
|
237
|
-
state.isEmpty = api2.computedIsEmpty(props, state);
|
|
238
|
-
api2.initPlainNodeStore();
|
|
239
|
-
},
|
|
240
|
-
{ deep: true }
|
|
241
|
-
);
|
|
234
|
+
watch(() => state.root, api2.initPlainNodeStore, { deep: true });
|
|
242
235
|
};
|
|
243
236
|
const renderless = (props, { computed, onMounted, onUpdated, reactive, watch, provide, onBeforeUnmount }, { vm, t, emit, constants, broadcast, dispatch, service, emitter, nextTick }) => {
|
|
244
237
|
const api2 = {};
|
package/tree-node/index.js
CHANGED
|
@@ -201,9 +201,9 @@ const onSiblingToggleExpand = ({ state, props }) => ({ isExpand, sibling }) => {
|
|
|
201
201
|
props.node.collapse();
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
|
-
const watchExpandedChange = ({ state, props }) => (
|
|
204
|
+
const watchExpandedChange = ({ state, props }) => () => {
|
|
205
205
|
state.parentEmitter.emit("sibling-node-toggle-expand", {
|
|
206
|
-
isExpand:
|
|
206
|
+
isExpand: props.node.expanded,
|
|
207
207
|
sibling: props.node
|
|
208
208
|
});
|
|
209
209
|
};
|
package/tree-node/vue.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import "../chunk-G2ADBYYC.js";
|
|
2
|
+
import debounce from "../common/deps/debounce";
|
|
2
3
|
import {
|
|
3
4
|
created,
|
|
4
5
|
handleDragEnd,
|
|
@@ -74,7 +75,7 @@ const initApi = ({ api: api2, state, dispatch, broadcast, vm, props, parent, tre
|
|
|
74
75
|
state,
|
|
75
76
|
dispatch,
|
|
76
77
|
broadcast,
|
|
77
|
-
watchExpanded: watchExpanded({ state }),
|
|
78
|
+
watchExpanded: debounce(20, watchExpanded({ state })),
|
|
78
79
|
created: created({ props, state }),
|
|
79
80
|
getNodeKey: getNodeKey(state),
|
|
80
81
|
closeMenu: closeMenu(state),
|
|
@@ -108,7 +109,7 @@ const initWatcher = ({ watch, state, api: api2, props }) => {
|
|
|
108
109
|
watch(() => props.node.checked, api2.watchChecked, { deep: true });
|
|
109
110
|
watch(() => props.node.expanded, api2.watchExpanded, { deep: true });
|
|
110
111
|
};
|
|
111
|
-
const renderless = (props, { reactive, watch, inject, provide, computed }, { parent: parentVm, vm, nextTick, emit, broadcast, dispatch, emitter, designConfig }) => {
|
|
112
|
+
const renderless = (props, { reactive, watch, inject, provide, computed }, { parent: parentVm, vm, nextTick, emit, broadcast, dispatch, emitter, designConfig }, { isVue2 }) => {
|
|
112
113
|
const api2 = {};
|
|
113
114
|
const parent = inject("parentTree") || parentVm;
|
|
114
115
|
const treeRoot = inject("TreeRoot");
|
|
@@ -125,6 +126,11 @@ const renderless = (props, { reactive, watch, inject, provide, computed }, { par
|
|
|
125
126
|
props.node.updateChildren();
|
|
126
127
|
}
|
|
127
128
|
);
|
|
129
|
+
if (!isVue2) {
|
|
130
|
+
props.node.updateMethod = (node, field) => {
|
|
131
|
+
field === "expanded" && api2.watchExpanded(node[field]);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
128
134
|
});
|
|
129
135
|
state.parentEmitter.on("closeMenu", () => {
|
|
130
136
|
api2.closeMenu();
|
|
@@ -18,10 +18,10 @@ declare const checkboxProps: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
modelValue: {
|
|
21
|
-
type: (
|
|
21
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
22
22
|
};
|
|
23
23
|
label: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
27
|
indeterminate: BooleanConstructor;
|
|
@@ -24,7 +24,7 @@ declare const collapseProps: {
|
|
|
24
24
|
accordion: BooleanConstructor;
|
|
25
25
|
beforeClose: FunctionConstructor;
|
|
26
26
|
modelValue: {
|
|
27
|
-
type: (
|
|
27
|
+
type: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
tiny_mode: StringConstructor;
|
|
@@ -28,7 +28,7 @@ declare const $constants: {
|
|
|
28
28
|
};
|
|
29
29
|
declare const datePickerProps: {
|
|
30
30
|
type: {
|
|
31
|
-
type: PropType<"date" | "dates" | "
|
|
31
|
+
type: PropType<"date" | "dates" | "year" | "years" | "yearrange" | "month" | "week" | "daterange" | "datetimerange" | "monthrange" | "datetime">;
|
|
32
32
|
default: string;
|
|
33
33
|
};
|
|
34
34
|
_constants: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-
|
|
2
|
+
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-b934f279.js';
|
|
3
3
|
import './shared.type.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-
|
|
2
|
+
export { i as IFormItemApi, f as IFormItemConstants, I as IFormItemDisplayedValueParam, k as IFormItemInstance, c as IFormItemLabelStyle, g as IFormItemProps, j as IFormItemRenderlessParamUtils, h as IFormItemRenderlessParams, d as IFormItemRule, e as IFormItemState, b as IFormItemTrigger, a as IFormItemValidateStatus } from './form.type-1e2e9272.js';
|
|
3
3
|
import './shared.type.mjs';
|
|
@@ -126,7 +126,7 @@ declare const formItemProps: {
|
|
|
126
126
|
type: BooleanConstructor;
|
|
127
127
|
default: boolean;
|
|
128
128
|
};
|
|
129
|
-
rules: (
|
|
129
|
+
rules: (ObjectConstructor | ArrayConstructor)[];
|
|
130
130
|
showMessage: {
|
|
131
131
|
type: BooleanConstructor;
|
|
132
132
|
default: boolean;
|
package/types/form.type.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-
|
|
2
|
+
export { p as IFormApi, r as IFormInstance, n as IFormProps, q as IFormRenderlessParamUtils, o as IFormRenderlessParams, l as IFormRules, m as IFormState } from './form.type-1e2e9272.js';
|
|
3
3
|
import './shared.type.mjs';
|
package/types/popover.type.d.mts
CHANGED
|
@@ -67,7 +67,7 @@ declare const popoverProps: {
|
|
|
67
67
|
maxHeight: {
|
|
68
68
|
type: (StringConstructor | NumberConstructor)[];
|
|
69
69
|
};
|
|
70
|
-
listData: (
|
|
70
|
+
listData: (ObjectConstructor | ArrayConstructor)[];
|
|
71
71
|
genArrowByHtml: {
|
|
72
72
|
type: BooleanConstructor;
|
|
73
73
|
default: () => boolean;
|
package/types/steps.type.d.mts
CHANGED
|
@@ -14,7 +14,7 @@ declare const stepsProps: {
|
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
|
-
data: (
|
|
17
|
+
data: (ObjectConstructor | ArrayConstructor)[];
|
|
18
18
|
space: (StringConstructor | NumberConstructor)[];
|
|
19
19
|
active: {
|
|
20
20
|
type: NumberConstructor;
|
package/types/switch.type.d.mts
CHANGED
|
@@ -30,7 +30,7 @@ declare const switchProps: {
|
|
|
30
30
|
};
|
|
31
31
|
falseColor: StringConstructor;
|
|
32
32
|
falseValue: {
|
|
33
|
-
type: (
|
|
33
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
36
|
mini: {
|
|
@@ -38,7 +38,7 @@ declare const switchProps: {
|
|
|
38
38
|
default: boolean;
|
|
39
39
|
};
|
|
40
40
|
modelValue: {
|
|
41
|
-
type: (
|
|
41
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
42
42
|
default: boolean;
|
|
43
43
|
};
|
|
44
44
|
size: (StringConstructor | NumberConstructor)[];
|
|
@@ -48,7 +48,7 @@ declare const switchProps: {
|
|
|
48
48
|
};
|
|
49
49
|
trueColor: StringConstructor;
|
|
50
50
|
trueValue: {
|
|
51
|
-
type: (
|
|
51
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
54
|
beforeChange: FunctionConstructor;
|
package/types/tabs.type.d.mts
CHANGED
|
@@ -67,7 +67,7 @@ declare const tabsProps: {
|
|
|
67
67
|
*/
|
|
68
68
|
|
|
69
69
|
declare const calcPaneInstances: ({ constants, parent, state, childrenHandler }: Pick<ITabsRenderlessParams, 'constants' | 'parent' | 'state' | 'childrenHandler'>) => (isForceUpdate?: boolean) => void;
|
|
70
|
-
declare const calcMorePanes: ({ parent, props, state, refs
|
|
70
|
+
declare const calcMorePanes: ({ parent, props, state, refs }: Pick<ITabsRenderlessParams, 'parent' | 'props' | 'state' | 'refs'>) => () => void;
|
|
71
71
|
declare const calcExpandPanes: ({ parent, props, state }: Pick<ITabsRenderlessParams, 'parent' | 'props' | 'state'>) => () => void;
|
|
72
72
|
declare const handleTabClick: ({ api, emit, props, refs }: Pick<ITabsRenderlessParams, 'api' | 'emit' | 'props' | 'refs'>) => (pane: ITabsPane, tabName: string, event: Event) => void;
|
|
73
73
|
declare const handleTabRemove: (emit: ITabsRenderlessParams['emit']) => (pane: ITabsPane, event: Event) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.mjs';
|
|
3
|
-
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-
|
|
3
|
+
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-b934f279.js';
|
|
4
4
|
|
|
5
5
|
declare const UploadDraggerProps: {
|
|
6
6
|
disabled: BooleanConstructor;
|
|
7
|
-
customClass: (
|
|
7
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
8
8
|
tiny_mode: StringConstructor;
|
|
9
9
|
tiny_mode_root: BooleanConstructor;
|
|
10
10
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -316,7 +316,7 @@ declare const fileUploadProps: {
|
|
|
316
316
|
type: BooleanConstructor;
|
|
317
317
|
default: boolean;
|
|
318
318
|
};
|
|
319
|
-
customClass: (
|
|
319
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
320
320
|
hwh5: ObjectConstructor;
|
|
321
321
|
mode: {
|
|
322
322
|
type: StringConstructor;
|
|
@@ -617,7 +617,7 @@ declare const uploadProps: {
|
|
|
617
617
|
type: BooleanConstructor;
|
|
618
618
|
default: boolean;
|
|
619
619
|
};
|
|
620
|
-
customClass: (
|
|
620
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
621
621
|
handleTriggerClick: {
|
|
622
622
|
type: FunctionConstructor;
|
|
623
623
|
default: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-
|
|
2
|
+
export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-b934f279.js';
|
|
3
3
|
import './shared.type.mjs';
|
package/types/upload.type.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-
|
|
2
|
+
export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-b934f279.js';
|
|
3
3
|
import './shared.type.mjs';
|