@opentiny/vue-renderless 3.11.1 → 3.11.3
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/image-viewer/index.js +4 -1
- package/package.json +1 -1
- package/rich-text-edtior/vue.js +7 -23
- package/types/checkbox.type.d.mts +2 -2
- package/types/collapse.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-1e2e9272.d.ts → form.type-004ecf93.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/upload-dragger.type.d.mts +2 -2
- package/types/{upload-list.type-b934f279.d.ts → upload-list.type-aa21a42e.d.ts} +2 -2
- package/types/upload-list.type.d.mts +1 -1
- package/types/upload.type.d.mts +1 -1
package/image-viewer/index.js
CHANGED
|
@@ -344,9 +344,12 @@ const getImageWidth = ({ state, parent, props, vm, mode }) => () => {
|
|
|
344
344
|
imageW = vm.$refs.canvasBox && vm.$refs.canvasBox.offsetWidth;
|
|
345
345
|
}
|
|
346
346
|
state.imageList = vm.$refs.viewerItem;
|
|
347
|
-
} else {
|
|
347
|
+
} else if (mode === "mobile") {
|
|
348
348
|
imageW = parent.$el.querySelector(".tiny-mobile-image-viewer__canvas").offsetWidth;
|
|
349
349
|
state.imageList = parent.$el.querySelectorAll(".tiny-mobile-image-viewer__item");
|
|
350
|
+
} else {
|
|
351
|
+
imageW = parent.$el.querySelector(".tiny-image-viewer__canvas").offsetWidth;
|
|
352
|
+
state.imageList = parent.$el.querySelectorAll(".tiny-image-viewer__img");
|
|
350
353
|
}
|
|
351
354
|
state.imageItemWidth = imageW;
|
|
352
355
|
state.imageAllWidth = state.urlList.length * imageW;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-renderless",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.3",
|
|
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/rich-text-edtior/vue.js
CHANGED
|
@@ -32,10 +32,6 @@ const api = [
|
|
|
32
32
|
];
|
|
33
33
|
const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref }, { vm, emit, parent }, {
|
|
34
34
|
Editor,
|
|
35
|
-
Collaboration,
|
|
36
|
-
CodehighComp,
|
|
37
|
-
Y,
|
|
38
|
-
WebrtcProvider,
|
|
39
35
|
StarterKit,
|
|
40
36
|
Table,
|
|
41
37
|
TableCell,
|
|
@@ -57,9 +53,10 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref
|
|
|
57
53
|
CodeBlockLowlight,
|
|
58
54
|
lowlight,
|
|
59
55
|
VueNodeViewRenderer,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
// CodehighComp,
|
|
57
|
+
// NodeViewContent,
|
|
58
|
+
// nodeViewProps,
|
|
59
|
+
// NodeViewWrapper,
|
|
63
60
|
Placeholder,
|
|
64
61
|
codeHighlight
|
|
65
62
|
}) => {
|
|
@@ -98,8 +95,6 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref
|
|
|
98
95
|
if (props.customToolBar) {
|
|
99
96
|
toolBar = props.customToolBar;
|
|
100
97
|
}
|
|
101
|
-
let ydoc = null;
|
|
102
|
-
let provider = null;
|
|
103
98
|
const CustomImage = Image.extend({
|
|
104
99
|
addAttributes() {
|
|
105
100
|
var _a2;
|
|
@@ -197,7 +192,7 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref
|
|
|
197
192
|
extensions: [
|
|
198
193
|
StarterKit == null ? void 0 : StarterKit.configure({
|
|
199
194
|
// 开启多人协作功能要关闭默认的history模式
|
|
200
|
-
history:
|
|
195
|
+
history: true
|
|
201
196
|
}),
|
|
202
197
|
Table.configure({
|
|
203
198
|
resizable: true
|
|
@@ -267,19 +262,8 @@ const renderless = (props, { computed, onMounted, onBeforeUnmount, reactive, ref
|
|
|
267
262
|
emit("destroy");
|
|
268
263
|
}
|
|
269
264
|
}, props.options);
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
window._yDoc = new Y.Doc();
|
|
273
|
-
}
|
|
274
|
-
ydoc = window._yDoc;
|
|
275
|
-
provider = new WebrtcProvider("tiny-examsple-document", ydoc);
|
|
276
|
-
defaultOptions.extensions.push(
|
|
277
|
-
Collaboration == null ? void 0 : Collaboration.configure({
|
|
278
|
-
document: ydoc
|
|
279
|
-
})
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
const editor = new Editor(props.options ? props.options : defaultOptions);
|
|
265
|
+
let options = props.options ? Object.assign(defaultOptions, props.options) : defaultOptions;
|
|
266
|
+
const editor = new Editor(options);
|
|
283
267
|
const box = ref(null);
|
|
284
268
|
const fontSize = ref("16px");
|
|
285
269
|
const state = reactive({
|
|
@@ -18,10 +18,10 @@ declare const checkboxProps: {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
modelValue: {
|
|
21
|
-
type: (
|
|
21
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
22
22
|
};
|
|
23
23
|
label: {
|
|
24
|
-
type: (
|
|
24
|
+
type: (BooleanConstructor | StringConstructor | 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: (ArrayConstructor | StringConstructor | NumberConstructor)[];
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
tiny_mode: StringConstructor;
|
|
@@ -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-aa21a42e.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-004ecf93.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: (ArrayConstructor | ObjectConstructor)[];
|
|
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-004ecf93.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: (ArrayConstructor | ObjectConstructor)[];
|
|
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: (ArrayConstructor | ObjectConstructor)[];
|
|
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: (BooleanConstructor | StringConstructor | 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: (BooleanConstructor | StringConstructor | 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: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
52
52
|
default: boolean;
|
|
53
53
|
};
|
|
54
54
|
beforeChange: FunctionConstructor;
|
|
@@ -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-aa21a42e.js';
|
|
4
4
|
|
|
5
5
|
declare const UploadDraggerProps: {
|
|
6
6
|
disabled: BooleanConstructor;
|
|
7
|
-
customClass: (
|
|
7
|
+
customClass: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
|
|
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: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
|
|
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: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
|
|
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-aa21a42e.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-aa21a42e.js';
|
|
3
3
|
import './shared.type.mjs';
|