jmash-core 0.0.106 → 0.0.107

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.
@@ -1,6 +1,6 @@
1
1
  import { _ as D } from "./picture-CBRsHLZl.mjs";
2
2
  import { defineComponent as E, ref as V, reactive as p, resolveComponent as c, openBlock as N, createElementBlock as $, Fragment as B, createVNode as e, withCtx as l, createTextVNode as u, toDisplayString as f, createElementVNode as _ } from "vue";
3
- import { t as R, c as w, v as S, w as q, x as z } from "./index-BbCqgUaV.mjs";
3
+ import { t as R, c as w, v as S, w as q, x as z } from "./index-BjlMU6q-.mjs";
4
4
  const A = { class: "h-[40px]" }, M = { class: "image-slot" }, P = { class: "dialog-footer" }, H = /* @__PURE__ */ E({
5
5
  __name: "types",
6
6
  setup(T) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-OiSdAbmC.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-Dc5ToAO6.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, openBlock as O, createBlock as A, unref as t, isRef as U, withCtx as n, createElementVNode as B, createVNode as r, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as D } from "element-plus";
3
- import { A as b, J as I } from "./index-BbCqgUaV.mjs";
3
+ import { A as b, J as I } from "./index-BjlMU6q-.mjs";
4
4
  import { useI18n as S } from "vue-i18n";
5
5
  const z = { class: "dialog-footer" }, k = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
@@ -1,4 +1,4 @@
1
- import type { AxiosPromise } from 'axios';
1
+ import type { AxiosPromise } from "axios";
2
2
  export interface EntityApi {
3
3
  getKey(model: EntityModel): EntityKey;
4
4
  findPage?(query: EntityReq): AxiosPromise<EntityPage>;
@@ -1,4 +1,4 @@
1
- export type { VueMetaEnv, TableColumn, TableSort, DialogRef, AppSettings } from "./types";
1
+ export type { VueMetaEnv, TableColumn, TableSort, DialogRef, AppSettings, FileResponseReq, FilesReq } from "./types";
2
2
  export type { EntityApi, EnumEntryReq, Entry, LayEntry, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityFormReq, EntityExportReq, EntityImportReq } from "./api/types";
3
3
  export type { LoginData } from "./api/auth/types";
4
4
  import type { App } from "vue";
@@ -73,3 +73,23 @@ export interface AppSettings {
73
73
  /** 水印内容 */
74
74
  watermarkContent: string;
75
75
  }
76
+ /**
77
+ * 上传文件返回的数据
78
+ */
79
+ export interface FileResponseReq {
80
+ contentType?: string;
81
+ createDate?: string;
82
+ fileExt?: string;
83
+ fileHeight?: number;
84
+ fileId?: string;
85
+ fileSize?: string;
86
+ filePath?: string;
87
+ fileWidth?: number;
88
+ hashSha256?: string;
89
+ hashSm3?: string;
90
+ fileName?: string;
91
+ }
92
+ export interface FilesReq {
93
+ fileName?: string;
94
+ fileId?: string;
95
+ }
@@ -1,6 +1,12 @@
1
+ import type { FileResponseReq } from "@/types";
1
2
  export declare function generateRandomKey(): string;
2
3
  export declare function getDaysInMonth(val?: any): string[];
3
4
  /**
4
5
  * 枚举数据回显
5
6
  * ******* */
6
7
  export declare function useDictionary(datas: any, key: string): string;
8
+ /**
9
+ * 预览附件
10
+ * @param {FileResponseReq} row - 附件实体
11
+ */
12
+ export declare function handlePreview(row: FileResponseReq): Window | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.106",
3
+ "version": "0.0.107",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",