@opentiny/vue-renderless 3.17.5 → 3.18.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/README.md +12 -3
- package/anchor/index.js +6 -2
- package/autocomplete/index.js +12 -11
- package/autocomplete/vue.js +35 -7
- package/breadcrumb-item/vue.js +2 -3
- package/collapse-item/index.js +7 -1
- package/collapse-item/vue.js +12 -2
- package/color-picker/index.js +20 -32
- package/color-picker/vue.js +31 -54
- package/color-select-panel/index.js +8 -5
- package/color-select-panel/vue.js +1 -2
- package/common/deps/clickoutside.js +10 -3
- package/common/deps/tree-model/tree-store.js +13 -2
- package/common/deps/useRelation.js +24 -7
- package/common/form/const.js +10 -0
- package/common/index.js +1 -1
- package/common/runtime.js +1 -1
- package/dialog-box/index.js +1 -1
- package/dialog-select/index.js +40 -13
- package/dialog-select/vue.js +3 -3
- package/dropdown-item/mf.js +1 -1
- package/dropdown-menu/index.js +3 -0
- package/dropdown-menu/vue.js +5 -3
- package/file-upload/index.js +4 -4
- package/fluent-editor/index.js +10 -3
- package/fluent-editor/options.js +32 -2
- package/fluent-editor/vue.js +8 -8
- package/form-item/index.js +6 -1
- package/form-item/vue.js +3 -1
- package/guide/index.js +4 -4
- package/input/index.js +15 -0
- package/input/vue.js +11 -4
- package/option/index.js +0 -15
- package/option/vue.js +2 -13
- package/package.json +1 -1
- package/pager-item/index.js +4 -7
- package/picker/index.js +27 -7
- package/picker/vue.js +2 -1
- package/pop-upload/index.js +13 -4
- package/pop-upload/vue.js +4 -0
- package/popeditor/index.js +2 -1
- package/rich-text-editor/vue.js +9 -3
- package/select/index.js +5 -4
- package/select/vue.js +12 -4
- package/slider-button/index.js +8 -3
- package/slider-button/vue.js +6 -2
- package/slider-button-group/index.js +46 -9
- package/slider-button-group/vue.js +39 -18
- package/tab-item-mf/vue.js +6 -1
- package/tabs-mf/index.js +58 -3
- package/tabs-mf/vue-bar.js +0 -6
- package/tabs-mf/vue-swipe.js +20 -0
- package/tabs-mf/vue.js +22 -4
- package/time/index.js +6 -1
- package/time/vue.js +7 -2
- package/time-line/index.js +1 -1
- package/time-line-new/index.js +53 -0
- package/time-line-new/vue.js +41 -0
- package/time-spinner/index.js +1 -1
- package/time-spinner/vue.js +2 -2
- package/tooltip/vue.js +16 -3
- package/tree/index.js +1 -0
- package/tree/vue.js +4 -1
- package/tree-select/index.js +6 -6
- package/tree-select/vue.js +1 -1
- package/types/autocomplete.type.d.ts +16 -12
- package/types/button.type.d.ts +22 -1
- package/types/checkbox.type.d.ts +1 -0
- package/types/dropdown.type.d.ts +4 -0
- package/types/file-upload.type.d.ts +1 -1
- package/types/form-item.type.d.ts +1 -1
- package/types/{form.type-33aa784a.d.ts → form.type-f6fb4c38.d.ts} +5 -0
- package/types/form.type.d.ts +1 -1
- package/types/input.type.d.ts +6 -2
- package/types/link.type.d.ts +6 -1
- package/types/popover.type.d.ts +1 -1
- package/types/search.type.d.ts +7 -0
- package/types/transfer.type.d.ts +3 -3
- package/types/tree-menu.type.d.ts +0 -1
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-023fd6e9.d.ts → upload-list.type-4194f534.d.ts} +9 -3
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
- package/types/user-head.type.d.ts +4 -1
package/types/search.type.d.ts
CHANGED
|
@@ -76,8 +76,15 @@ declare const searchProps: {
|
|
|
76
76
|
};
|
|
77
77
|
typeValue: ObjectConstructor;
|
|
78
78
|
suffixIcon: (StringConstructor | ObjectConstructor)[];
|
|
79
|
+
disabled: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
79
83
|
tiny_mode: StringConstructor;
|
|
80
84
|
tiny_mode_root: BooleanConstructor;
|
|
85
|
+
/**
|
|
86
|
+
* 配置主题色,primary:蓝 gray:灰
|
|
87
|
+
*/
|
|
81
88
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
82
89
|
tiny_renderless: FunctionConstructor;
|
|
83
90
|
tiny_theme: StringConstructor;
|
package/types/transfer.type.d.ts
CHANGED
|
@@ -108,14 +108,14 @@ declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "
|
|
|
108
108
|
Tree: string;
|
|
109
109
|
}) => () => unknown[];
|
|
110
110
|
/** 返回右边的数据项 */
|
|
111
|
-
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "
|
|
111
|
+
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "props" | "state"> & {
|
|
112
112
|
Tree: string;
|
|
113
113
|
Table: string;
|
|
114
114
|
}) => () => unknown;
|
|
115
115
|
declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
116
116
|
declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
117
117
|
declare const addToLeft: ({ emit, props, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => (value: undefined | 'all') => void;
|
|
118
|
-
declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "
|
|
118
|
+
declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "emit" | "props" | "state" | "refs"> & {
|
|
119
119
|
Tree: string;
|
|
120
120
|
}) => (value: undefined | 'all') => void;
|
|
121
121
|
declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
|
|
@@ -126,7 +126,7 @@ declare const logicFun: ({ props, emit, state }: Pick<ITransferRenderlessParams,
|
|
|
126
126
|
pullMode?: "sort" | undefined;
|
|
127
127
|
}) => void;
|
|
128
128
|
/** 组件加载后,给左右面板初始化Sortable的功能 */
|
|
129
|
-
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "
|
|
129
|
+
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "api" | "refs"> & {
|
|
130
130
|
droppanel: string;
|
|
131
131
|
queryDom: string;
|
|
132
132
|
}) => () => void;
|
|
@@ -12,7 +12,6 @@ declare const treeMenuProps: {
|
|
|
12
12
|
nodeKey: StringConstructor;
|
|
13
13
|
defaultExpandAll: BooleanConstructor;
|
|
14
14
|
suffixIcon: ObjectConstructor;
|
|
15
|
-
prefixIcon: ObjectConstructor;
|
|
16
15
|
searchIcon: {
|
|
17
16
|
type: ObjectConstructor;
|
|
18
17
|
default: () => vue.Raw<_opentiny_vue_common.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
@@ -1,6 +1,6 @@
|
|
|
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-4194f534.js';
|
|
4
4
|
|
|
5
5
|
declare const UploadDraggerProps: {
|
|
6
6
|
disabled: BooleanConstructor;
|
|
@@ -11,6 +11,7 @@ declare const $constants: {
|
|
|
11
11
|
COMMA: string;
|
|
12
12
|
FILE_NOT_LESS_THAN: string;
|
|
13
13
|
FILE_NOT_MORE_THAN: string;
|
|
14
|
+
FILE_SIZE_RANGE: string;
|
|
14
15
|
NUMBER_LIMIT: string;
|
|
15
16
|
FILE_STATUS: {
|
|
16
17
|
READY: string;
|
|
@@ -111,6 +112,7 @@ declare const fileUploadProps: {
|
|
|
111
112
|
COMMA: string;
|
|
112
113
|
FILE_NOT_LESS_THAN: string;
|
|
113
114
|
FILE_NOT_MORE_THAN: string;
|
|
115
|
+
FILE_SIZE_RANGE: string;
|
|
114
116
|
NUMBER_LIMIT: string;
|
|
115
117
|
FILE_STATUS: {
|
|
116
118
|
READY: string;
|
|
@@ -404,7 +406,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
|
|
|
404
406
|
declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
|
|
405
407
|
declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
|
|
406
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;
|
|
407
|
-
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "
|
|
409
|
+
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "emit" | "state" | "t" | "constants"> & IFileUploadModalVm & {
|
|
408
410
|
CryptoJS: object;
|
|
409
411
|
}) => ({ file, chunkSize, showTips }: {
|
|
410
412
|
file: IFileUploadFile;
|
|
@@ -484,13 +486,13 @@ declare const sliceDownloadChunk: ({ state }: Pick<IFileUploadRenderlessParams,
|
|
|
484
486
|
declare const batchSegmentDownload: ({ state, api }: Pick<IFileUploadRenderlessParams, 'state' | 'api'>) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void;
|
|
485
487
|
declare const downloadFileInner: ({ api, props, state }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'state'>) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void;
|
|
486
488
|
declare const afterDownload: ({ api, state }: Pick<IFileUploadRenderlessParams, 'api' | 'state'>) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void;
|
|
487
|
-
declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "
|
|
489
|
+
declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "emit" | "state"> & {
|
|
488
490
|
Streamsaver: IFileUploadStreamsaver;
|
|
489
491
|
}) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function;
|
|
490
492
|
declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
|
|
491
493
|
declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
|
|
492
494
|
declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
|
|
493
|
-
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "
|
|
495
|
+
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "emit" | "props" | "state" | "api" | "constants" | "service"> & {
|
|
494
496
|
CryptoJS: object;
|
|
495
497
|
}) => (batchIndex: number, file: IFileUploadFile, progress: {
|
|
496
498
|
file: IFileUploadFile;
|
|
@@ -677,6 +679,10 @@ declare const uploadProps: {
|
|
|
677
679
|
type: BooleanConstructor;
|
|
678
680
|
default: boolean;
|
|
679
681
|
};
|
|
682
|
+
tipMessage: {
|
|
683
|
+
type: StringConstructor;
|
|
684
|
+
default: string;
|
|
685
|
+
};
|
|
680
686
|
tiny_mode: StringConstructor;
|
|
681
687
|
tiny_mode_root: BooleanConstructor;
|
|
682
688
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
@@ -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-4194f534.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-4194f534.js';
|
|
3
3
|
import './shared.type.js';
|
|
@@ -83,7 +83,10 @@ declare const userHeadProps: {
|
|
|
83
83
|
tiny_mode: StringConstructor;
|
|
84
84
|
tiny_mode_root: BooleanConstructor;
|
|
85
85
|
tiny_template: (FunctionConstructor | ObjectConstructor)[];
|
|
86
|
-
tiny_renderless: FunctionConstructor;
|
|
86
|
+
tiny_renderless: FunctionConstructor; /**
|
|
87
|
+
* @property {String} - 头像资源
|
|
88
|
+
* type=icon 时为图标类名,type=label时为字体串,type=image时为资源路径
|
|
89
|
+
*/
|
|
87
90
|
tiny_theme: StringConstructor;
|
|
88
91
|
tiny_chart_theme: ObjectConstructor;
|
|
89
92
|
};
|