@opentiny/vue-renderless 3.18.7 → 3.18.8
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/index.js +1 -1
- package/common/runtime.js +1 -1
- package/input/vue.js +3 -0
- package/package.json +1 -1
- package/statistic/index.js +5 -2
- package/types/action-sheet.type.d.ts +2 -2
- package/types/alert.type.d.ts +1 -1
- package/types/checkbox.type.d.ts +3 -3
- package/types/collapse.type.d.ts +1 -1
- package/types/drawer.type.d.ts +1 -1
- package/types/file-upload.type.d.ts +1 -1
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-e721a50f.d.ts → form.type-f6fb4c38.d.ts} +1 -1
- package/types/form.type.d.ts +1 -1
- package/types/input.type.d.ts +1 -1
- package/types/milestone.type.d.ts +1 -1
- package/types/pager.type.d.ts +1 -1
- package/types/popeditor.type.d.ts +1 -1
- package/types/popover.type.d.ts +2 -2
- package/types/progress.type.d.ts +1 -1
- package/types/statistic.type.d.ts +3 -6
- package/types/steps.type.d.ts +1 -1
- package/types/switch.type.d.ts +3 -3
- package/types/tag.type.d.ts +1 -1
- package/types/transfer.type.d.ts +1 -1
- package/types/upload-dragger.type.d.ts +2 -2
- package/types/{upload-list.type-36942775.d.ts → upload-list.type-2f4ec243.d.ts} +4 -4
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
package/common/index.js
CHANGED
package/common/runtime.js
CHANGED
package/input/vue.js
CHANGED
|
@@ -334,6 +334,9 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, onUpdated, re
|
|
|
334
334
|
api2.setShowMoreBtn(true);
|
|
335
335
|
on(window, "resize", api2.setShowMoreBtn);
|
|
336
336
|
}
|
|
337
|
+
if (vm.$attrs.autofocus) {
|
|
338
|
+
api2.focus();
|
|
339
|
+
}
|
|
337
340
|
});
|
|
338
341
|
onBeforeUnmount(() => {
|
|
339
342
|
if (props.type === "textarea" && props.popupMore && state.isDisplayOnly) {
|
package/package.json
CHANGED
package/statistic/index.js
CHANGED
|
@@ -11,9 +11,12 @@ const getIntegerAndDecimal = ({ props }) => () => {
|
|
|
11
11
|
if (!isNumber(props.value)) {
|
|
12
12
|
return props.value;
|
|
13
13
|
}
|
|
14
|
-
let displayValue =
|
|
14
|
+
let displayValue = String(props.value).split(".");
|
|
15
15
|
let integer = (_a = displayValue[0]) == null ? void 0 : _a.replace(/\B(?=(\d{3})+(?!\d))/g, props.groupSeparator);
|
|
16
|
-
let decimal = (_b = displayValue[1]) == null ? void 0 : _b.padEnd(props.precision, "0")
|
|
16
|
+
let decimal = (_b = displayValue[1]) == null ? void 0 : _b.padEnd(props.precision, "0");
|
|
17
|
+
if (props.precision >= 0) {
|
|
18
|
+
decimal = decimal == null ? void 0 : decimal.slice(0, props.precision > 0 ? props.precision : 0);
|
|
19
|
+
}
|
|
17
20
|
if (!displayValue) {
|
|
18
21
|
integer = "0";
|
|
19
22
|
}
|
|
@@ -6,7 +6,7 @@ declare const actionSheetProps: {
|
|
|
6
6
|
type: ArrayConstructor;
|
|
7
7
|
default: () => never[];
|
|
8
8
|
};
|
|
9
|
-
modelValue: (
|
|
9
|
+
modelValue: (StringConstructor | ArrayConstructor | NumberConstructor)[];
|
|
10
10
|
beforeClose: FunctionConstructor;
|
|
11
11
|
visible: {
|
|
12
12
|
type: BooleanConstructor;
|
|
@@ -45,7 +45,7 @@ declare const actionSheetProps: {
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: () => boolean;
|
|
47
47
|
};
|
|
48
|
-
customClass: (
|
|
48
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
49
49
|
contentClass: StringConstructor;
|
|
50
50
|
type: {
|
|
51
51
|
type: StringConstructor;
|
package/types/alert.type.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ declare const alertProps: {
|
|
|
76
76
|
type: BooleanConstructor;
|
|
77
77
|
default: boolean;
|
|
78
78
|
};
|
|
79
|
-
customClass: (
|
|
79
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
80
80
|
offset: {
|
|
81
81
|
type: (StringConstructor | NumberConstructor)[];
|
|
82
82
|
default: number;
|
package/types/checkbox.type.d.ts
CHANGED
|
@@ -20,11 +20,11 @@ declare const checkboxProps: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
modelValue: {
|
|
23
|
-
type: (
|
|
23
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
24
24
|
default: undefined;
|
|
25
25
|
};
|
|
26
26
|
label: {
|
|
27
|
-
type: (
|
|
27
|
+
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
30
|
indeterminate: BooleanConstructor;
|
|
@@ -41,7 +41,7 @@ declare const checkboxProps: {
|
|
|
41
41
|
border: BooleanConstructor;
|
|
42
42
|
size: StringConstructor;
|
|
43
43
|
text: StringConstructor;
|
|
44
|
-
customClass: (
|
|
44
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
45
45
|
validateEvent: {
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: boolean;
|
package/types/collapse.type.d.ts
CHANGED
|
@@ -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;
|
package/types/drawer.type.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare const drawerProps: {
|
|
|
17
17
|
type: BooleanConstructor;
|
|
18
18
|
default: boolean;
|
|
19
19
|
};
|
|
20
|
-
customClass: (
|
|
20
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
21
21
|
placement: {
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
default: string;
|
|
@@ -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-2f4ec243.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -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-f6fb4c38.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -146,7 +146,7 @@ declare const formItemProps: {
|
|
|
146
146
|
type: BooleanConstructor;
|
|
147
147
|
default: undefined;
|
|
148
148
|
};
|
|
149
|
-
rules: (
|
|
149
|
+
rules: (ObjectConstructor | ArrayConstructor)[];
|
|
150
150
|
showMessage: {
|
|
151
151
|
type: BooleanConstructor;
|
|
152
152
|
default: boolean;
|
package/types/form.type.d.ts
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-f6fb4c38.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/input.type.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
|
|
|
241
241
|
borderSize: number;
|
|
242
242
|
boxSizing: string;
|
|
243
243
|
};
|
|
244
|
-
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "state" | "
|
|
244
|
+
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "state" | "props" | "mode" | "api" | "constants"> & {
|
|
245
245
|
hiddenTextarea: HTMLTextAreaElement | null;
|
|
246
246
|
}) => (targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: null) => {
|
|
247
247
|
minHeight?: string | undefined;
|
package/types/pager.type.d.ts
CHANGED
package/types/popover.type.d.ts
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;
|
|
@@ -92,7 +92,7 @@ declare const popoverProps: {
|
|
|
92
92
|
*
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
|
-
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "
|
|
95
|
+
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "state" | "props" | "nextTick" | "mode" | "api"> & {
|
|
96
96
|
constants: {
|
|
97
97
|
IDPREFIX: string;
|
|
98
98
|
};
|
package/types/progress.type.d.ts
CHANGED
|
@@ -11,20 +11,17 @@ declare const statisticProps: {
|
|
|
11
11
|
PREFIX: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
precision:
|
|
15
|
-
type: NumberConstructor;
|
|
16
|
-
default: number;
|
|
17
|
-
};
|
|
14
|
+
precision: NumberConstructor;
|
|
18
15
|
formatter: FunctionConstructor;
|
|
19
16
|
value: {
|
|
20
|
-
type: NumberConstructor;
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
21
18
|
default: number;
|
|
22
19
|
};
|
|
23
20
|
prefix: StringConstructor;
|
|
24
21
|
suffix: StringConstructor;
|
|
25
22
|
title: (StringConstructor | ObjectConstructor)[];
|
|
26
23
|
valueStyle: {
|
|
27
|
-
type: (
|
|
24
|
+
type: (ObjectConstructor | ArrayConstructor)[];
|
|
28
25
|
};
|
|
29
26
|
groupSeparator: {
|
|
30
27
|
type: StringConstructor;
|
package/types/steps.type.d.ts
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.ts
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/tag.type.d.ts
CHANGED
package/types/transfer.type.d.ts
CHANGED
|
@@ -126,7 +126,7 @@ declare const logicFun: ({ props, emit, state, vm }: Pick<ITransferRenderlessPar
|
|
|
126
126
|
pullMode?: "sort" | undefined;
|
|
127
127
|
}) => void;
|
|
128
128
|
/** 组件加载后,给左右面板初始化Sortable的功能 */
|
|
129
|
-
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "
|
|
129
|
+
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "refs" | "api"> & {
|
|
130
130
|
droppanel: string;
|
|
131
131
|
queryDom: string;
|
|
132
132
|
}) => () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
|
|
3
|
-
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-
|
|
3
|
+
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-2f4ec243.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)[];
|
|
@@ -338,7 +338,7 @@ declare const fileUploadProps: {
|
|
|
338
338
|
type: BooleanConstructor;
|
|
339
339
|
default: boolean;
|
|
340
340
|
};
|
|
341
|
-
customClass: (
|
|
341
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
342
342
|
hwh5: ObjectConstructor;
|
|
343
343
|
mode: {
|
|
344
344
|
type: StringConstructor;
|
|
@@ -406,7 +406,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
|
|
|
406
406
|
declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
|
|
407
407
|
declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
|
|
408
408
|
declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick<IFileUploadRenderlessParams, 'api' | 'constants' | 'emit' | 'props' | 'state' | 'mode'>) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void;
|
|
409
|
-
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "
|
|
409
|
+
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "state" | "emit" | "t" | "constants"> & IFileUploadModalVm & {
|
|
410
410
|
CryptoJS: object;
|
|
411
411
|
}) => ({ file, chunkSize, showTips }: {
|
|
412
412
|
file: IFileUploadFile;
|
|
@@ -492,7 +492,7 @@ declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRend
|
|
|
492
492
|
declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
|
|
493
493
|
declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
|
|
494
494
|
declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
|
|
495
|
-
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "
|
|
495
|
+
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "state" | "props" | "emit" | "api" | "constants" | "service"> & {
|
|
496
496
|
CryptoJS: object;
|
|
497
497
|
}) => (batchIndex: number, file: IFileUploadFile, progress: {
|
|
498
498
|
file: IFileUploadFile;
|
|
@@ -668,7 +668,7 @@ declare const uploadProps: {
|
|
|
668
668
|
type: BooleanConstructor;
|
|
669
669
|
default: boolean;
|
|
670
670
|
};
|
|
671
|
-
customClass: (
|
|
671
|
+
customClass: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
672
672
|
handleTriggerClick: {
|
|
673
673
|
type: FunctionConstructor;
|
|
674
674
|
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-2f4ec243.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/upload.type.d.ts
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-2f4ec243.js';
|
|
3
3
|
import './shared.type.js';
|