@newview/file-ui 1.1.7 → 1.1.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/README.md +2 -3
- package/dist/file-ui.js +34 -3
- package/dist/file-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/ComFormUp.d.ts +19 -1
package/README.md
CHANGED
package/dist/file-ui.js
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { BaseInstance } from "@newview/base-vue";
|
|
8
|
-
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, reactive, renderList, createBlock, createSlots, normalizeClass, withModifiers, createCommentVNode, createTextVNode, toDisplayString, onMounted, onBeforeUnmount, nextTick, h, watchEffect } from "vue";
|
|
8
|
+
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, reactive, renderList, createBlock, createSlots, normalizeClass, withModifiers, createCommentVNode, createTextVNode, toDisplayString, onMounted, onBeforeUnmount, nextTick, h, watchEffect, normalizeStyle } from "vue";
|
|
9
9
|
import { QueryWrapper } from "@newview/infrastructure";
|
|
10
10
|
import { OSSFileApi, FileApi, UploadApi, FileInfoApi } from "@newview/fileservice-api";
|
|
11
11
|
const propDefine$3 = {
|
|
@@ -15196,7 +15196,6 @@ let TextEditor$1 = class TextEditor extends BaseInstance {
|
|
|
15196
15196
|
* 清空长文本
|
|
15197
15197
|
*/
|
|
15198
15198
|
__publicField(this, "clearTextData", async () => {
|
|
15199
|
-
console.log("clearTextData");
|
|
15200
15199
|
this.content.value = "";
|
|
15201
15200
|
this.QuillEditorRef.value.setHTML("");
|
|
15202
15201
|
});
|
|
@@ -15289,9 +15288,39 @@ class ComFormInstance extends BaseInstance {
|
|
|
15289
15288
|
super();
|
|
15290
15289
|
__publicField(this, "props");
|
|
15291
15290
|
__publicField(this, "ctx");
|
|
15291
|
+
//#region 文本输入框
|
|
15292
|
+
// 私有属性 | private
|
|
15293
|
+
// 响应属性 | ref、reactive、computed、watch
|
|
15294
|
+
__publicField(this, "textEditorRef", ref());
|
|
15295
|
+
// 私有方法 | private 方法名() {}
|
|
15296
|
+
// 响应式方法 | xxx = () => {}
|
|
15297
|
+
/**
|
|
15298
|
+
* @description 保存文本数据
|
|
15299
|
+
*/
|
|
15300
|
+
__publicField(this, "saveTextData", async () => {
|
|
15301
|
+
this.textEditorRef.value.saveTextData();
|
|
15302
|
+
});
|
|
15303
|
+
/**
|
|
15304
|
+
* 清空长文本
|
|
15305
|
+
*/
|
|
15306
|
+
__publicField(this, "clearTextData", async () => {
|
|
15307
|
+
this.textEditorRef.value.clearTextData();
|
|
15308
|
+
});
|
|
15309
|
+
/**删除长文本 */
|
|
15310
|
+
__publicField(this, "deleteTextData", async () => {
|
|
15311
|
+
this.textEditorRef.value.deleteTextData();
|
|
15312
|
+
});
|
|
15313
|
+
/**
|
|
15314
|
+
* 删除长文本
|
|
15315
|
+
* @param Token
|
|
15316
|
+
*/
|
|
15317
|
+
__publicField(this, "deleteTextDataByToken", async (Token) => {
|
|
15318
|
+
this.textEditorRef.value.deleteTextDataByToken(Token);
|
|
15319
|
+
});
|
|
15292
15320
|
this.props = props;
|
|
15293
15321
|
this.ctx = ctx;
|
|
15294
15322
|
}
|
|
15323
|
+
//#endregion 文本输入框 END
|
|
15295
15324
|
}
|
|
15296
15325
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15297
15326
|
const _component_UploadFile = resolveComponent("UploadFile");
|
|
@@ -15310,9 +15339,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15310
15339
|
}, null, 8, ["readonly", "token"])) : createCommentVNode("", true),
|
|
15311
15340
|
item.type === "TextEditor" ? (openBlock(), createBlock(_component_TextEditor, {
|
|
15312
15341
|
key: 1,
|
|
15342
|
+
ref: "textEditorRef",
|
|
15313
15343
|
readonly: _ctx.onlyView,
|
|
15344
|
+
style: normalizeStyle({ height: `${item.textHeight == void 0 ? "300" : item.textHeight}px` }),
|
|
15314
15345
|
token: _ctx.formModel[item.model]
|
|
15315
|
-
}, null, 8, ["readonly", "token"])) : createCommentVNode("", true)
|
|
15346
|
+
}, null, 8, ["readonly", "style", "token"])) : createCommentVNode("", true)
|
|
15316
15347
|
]),
|
|
15317
15348
|
_: 1
|
|
15318
15349
|
}, 8, ["onlyView", "formItems", "formModel"]);
|