@newview/file-ui 1.1.27 → 1.1.29
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 +3 -0
- package/dist/file-ui.js +22 -2
- package/dist/file-ui.umd.cjs +1 -1
- package/package.json +59 -59
- package/vite.config.ts +8 -0
package/README.md
CHANGED
package/dist/file-ui.js
CHANGED
|
@@ -10,6 +10,7 @@ import { QueryWrapper, storageInfo } from "@newview/infrastructure";
|
|
|
10
10
|
import { OSSFileApi, FileApi, UploadApi, FileInfoApi } from "@newview/fileservice-api";
|
|
11
11
|
import { DictionaryDetailApi, DataStructureApi, StructureInstanceApi } from "@newview/basics-api";
|
|
12
12
|
import { utilities } from "@newview/tools";
|
|
13
|
+
import { CASign } from "@newview/permission-ui";
|
|
13
14
|
const propDefine$7 = {
|
|
14
15
|
modelValue: {
|
|
15
16
|
// 是否显示
|
|
@@ -19677,7 +19678,7 @@ const propDefine = {
|
|
|
19677
19678
|
};
|
|
19678
19679
|
const _sfc_main = defineComponent({
|
|
19679
19680
|
name: "NvComFormUp",
|
|
19680
|
-
components: { UploadFile, TextEditor: TextEditor2, NvDicSelect, NvStructureTypeSelect, NvStructureSelect, UploadFileList },
|
|
19681
|
+
components: { UploadFile, TextEditor: TextEditor2, NvDicSelect, NvStructureTypeSelect, NvStructureSelect, UploadFileList, CASign },
|
|
19681
19682
|
emits: ["textChange", "TokenChange"],
|
|
19682
19683
|
props: propDefine,
|
|
19683
19684
|
setup(props, ctx) {
|
|
@@ -19787,6 +19788,16 @@ class ComFormInstance extends BaseInstance {
|
|
|
19787
19788
|
};
|
|
19788
19789
|
}
|
|
19789
19790
|
});
|
|
19791
|
+
/**
|
|
19792
|
+
* CA签字签章成功回调
|
|
19793
|
+
* @param item
|
|
19794
|
+
* @param data
|
|
19795
|
+
*/
|
|
19796
|
+
__publicField(this, "signOnSuccess", (item, { result, img }) => {
|
|
19797
|
+
var _a;
|
|
19798
|
+
this.props.formModel[item.model] = result;
|
|
19799
|
+
(_a = item.signProp) == null ? void 0 : _a.onSignSuccess({ result, img });
|
|
19800
|
+
});
|
|
19790
19801
|
this.props = props;
|
|
19791
19802
|
this.ctx = ctx;
|
|
19792
19803
|
}
|
|
@@ -19798,6 +19809,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19798
19809
|
const _component_NvStructureTypeSelect = resolveComponent("NvStructureTypeSelect");
|
|
19799
19810
|
const _component_NvStructureSelect = resolveComponent("NvStructureSelect");
|
|
19800
19811
|
const _component_UploadFileList = resolveComponent("UploadFileList");
|
|
19812
|
+
const _component_CASign = resolveComponent("CASign");
|
|
19801
19813
|
const _component_NvComForm = resolveComponent("NvComForm");
|
|
19802
19814
|
return openBlock(), createBlock(_component_NvComForm, {
|
|
19803
19815
|
onlyView: _ctx.onlyView,
|
|
@@ -19852,7 +19864,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19852
19864
|
token: _ctx.formModel[item.model],
|
|
19853
19865
|
paginationSet: _ctx.getPaginationSet(item),
|
|
19854
19866
|
onReturnFileList: ($event) => _ctx.tokenList($event, item)
|
|
19855
|
-
}, null, 8, ["style", "readonly", "token", "paginationSet", "onReturnFileList"])) : createCommentVNode("", true)
|
|
19867
|
+
}, null, 8, ["style", "readonly", "token", "paginationSet", "onReturnFileList"])) : createCommentVNode("", true),
|
|
19868
|
+
item.type === "CASign" ? (openBlock(), createBlock(_component_CASign, {
|
|
19869
|
+
key: 6,
|
|
19870
|
+
signContent: _ctx.getPropValue(item.signProp, "signContent"),
|
|
19871
|
+
signType: _ctx.getPropValue(item.signProp, "signType"),
|
|
19872
|
+
isFakeVerifySign: _ctx.getPropValue(item.signProp, "isFakeVerifySign"),
|
|
19873
|
+
signResult: _ctx.formModel[item.model],
|
|
19874
|
+
onSignSuccess: ($event) => _ctx.signOnSuccess(item, $event)
|
|
19875
|
+
}, null, 8, ["signContent", "signType", "isFakeVerifySign", "signResult", "onSignSuccess"])) : createCommentVNode("", true)
|
|
19856
19876
|
]),
|
|
19857
19877
|
_: 1
|
|
19858
19878
|
}, 8, ["onlyView", "formItems", "formModel"]);
|