@newview/file-ui 1.1.10 → 1.1.12
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 +6 -0
- package/dist/file-ui.js +38 -3
- package/dist/file-ui.umd.cjs +1 -1
- package/package.json +2 -1
- package/vite.config.ts +2 -1
package/README.md
CHANGED
package/dist/file-ui.js
CHANGED
|
@@ -8,6 +8,7 @@ import { BaseInstance } from "@newview/base-vue";
|
|
|
8
8
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode, reactive, renderList, createBlock, createSlots, normalizeClass, withModifiers, createCommentVNode, toDisplayString, createTextVNode, pushScopeId, popScopeId, 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
|
+
import { NvDicSelect, NvStructureTypeSelect, NvStructureSelect } from "@newview/basics-ui";
|
|
11
12
|
const propDefine$3 = {
|
|
12
13
|
modelValue: {
|
|
13
14
|
// 是否显示
|
|
@@ -15328,7 +15329,7 @@ const propDefine = {
|
|
|
15328
15329
|
};
|
|
15329
15330
|
const _sfc_main = defineComponent({
|
|
15330
15331
|
name: "NvComFormUp",
|
|
15331
|
-
components: { UploadFile, TextEditor: TextEditor2 },
|
|
15332
|
+
components: { UploadFile, TextEditor: TextEditor2, NvDicSelect, NvStructureTypeSelect, NvStructureSelect },
|
|
15332
15333
|
emits: ["textChange", "TokenChange"],
|
|
15333
15334
|
props: propDefine,
|
|
15334
15335
|
setup(props, ctx) {
|
|
@@ -15396,14 +15397,25 @@ class ComFormInstance extends BaseInstance {
|
|
|
15396
15397
|
__publicField(this, "textChange", (data) => {
|
|
15397
15398
|
this.ctx.emit("textChange", data);
|
|
15398
15399
|
});
|
|
15400
|
+
//#endregion 文本输入框 END
|
|
15401
|
+
/**
|
|
15402
|
+
* 构件选择值发生改变
|
|
15403
|
+
* @param item
|
|
15404
|
+
* @param data
|
|
15405
|
+
*/
|
|
15406
|
+
__publicField(this, "StructureOnChange", (item, data) => {
|
|
15407
|
+
this.props.formModel[item.model] = data;
|
|
15408
|
+
});
|
|
15399
15409
|
this.props = props;
|
|
15400
15410
|
this.ctx = ctx;
|
|
15401
15411
|
}
|
|
15402
|
-
//#endregion 文本输入框 END
|
|
15403
15412
|
}
|
|
15404
15413
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
15405
15414
|
const _component_UploadFile = resolveComponent("UploadFile");
|
|
15406
15415
|
const _component_TextEditor = resolveComponent("TextEditor");
|
|
15416
|
+
const _component_NvDicSelect = resolveComponent("NvDicSelect");
|
|
15417
|
+
const _component_NvStructureTypeSelect = resolveComponent("NvStructureTypeSelect");
|
|
15418
|
+
const _component_NvStructureSelect = resolveComponent("NvStructureSelect");
|
|
15407
15419
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
15408
15420
|
return openBlock(), createBlock(_component_NvComForm, {
|
|
15409
15421
|
onlyView: _ctx.onlyView,
|
|
@@ -15425,7 +15437,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
15425
15437
|
token: _ctx.formModel[item.model],
|
|
15426
15438
|
border: item.textBorder,
|
|
15427
15439
|
onTextChange: _ctx.textChange
|
|
15428
|
-
}, null, 8, ["readonly", "style", "token", "border", "onTextChange"])) : createCommentVNode("", true)
|
|
15440
|
+
}, null, 8, ["readonly", "style", "token", "border", "onTextChange"])) : createCommentVNode("", true),
|
|
15441
|
+
item.type === "DicSelect" ? (openBlock(), createBlock(_component_NvDicSelect, {
|
|
15442
|
+
key: 2,
|
|
15443
|
+
readonly: _ctx.onlyView,
|
|
15444
|
+
code: item.dicCode,
|
|
15445
|
+
platformId: item.dicPId,
|
|
15446
|
+
modelValue: _ctx.formModel[item.model],
|
|
15447
|
+
"onUpdate:modelValue": ($event) => _ctx.formModel[item.model] = $event
|
|
15448
|
+
}, null, 8, ["readonly", "code", "platformId", "modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true),
|
|
15449
|
+
item.type === "StructureType" ? (openBlock(), createBlock(_component_NvStructureTypeSelect, {
|
|
15450
|
+
key: 3,
|
|
15451
|
+
readonly: _ctx.onlyView,
|
|
15452
|
+
dataValue: _ctx.formModel[item.model],
|
|
15453
|
+
multiple: item.multiple,
|
|
15454
|
+
onOnChange: ($event) => _ctx.StructureOnChange(item, $event)
|
|
15455
|
+
}, null, 8, ["readonly", "dataValue", "multiple", "onOnChange"])) : createCommentVNode("", true),
|
|
15456
|
+
item.type === "Structure" ? (openBlock(), createBlock(_component_NvStructureSelect, {
|
|
15457
|
+
key: 4,
|
|
15458
|
+
readonly: _ctx.onlyView,
|
|
15459
|
+
dataValue: _ctx.formModel[item.model],
|
|
15460
|
+
multiple: item.multiple,
|
|
15461
|
+
selType: item.selType,
|
|
15462
|
+
onOnChange: ($event) => _ctx.StructureOnChange(item, $event)
|
|
15463
|
+
}, null, 8, ["readonly", "dataValue", "multiple", "selType", "onOnChange"])) : createCommentVNode("", true)
|
|
15429
15464
|
]),
|
|
15430
15465
|
_: 1
|
|
15431
15466
|
}, 8, ["onlyView", "formItems", "formModel"]);
|