@skyfox2000/webui 1.4.16 → 1.4.18

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,9 +1,9 @@
1
1
  import { defineComponent as ae, ref as P, computed as D, watch as B, resolveDirective as ie, createElementBlock as d, openBlock as u, normalizeClass as $, unref as n, createElementVNode as h, withDirectives as y, createBlock as re, mergeProps as le, withCtx as w, createVNode as p, createTextVNode as z, toDisplayString as T, Fragment as ce, renderList as ue, createCommentVNode as C } from "vue";
2
- import { _ as pe } from "./index-CX7vtghj.js";
3
- import { a as A, _ as I } from "./toolIcon-B2btIpdL.js";
2
+ import { _ as pe } from "./index-D14BsF7C.js";
3
+ import { a as A, _ as I } from "./toolIcon-BnkqBipR.js";
4
4
  import { httpPost as K, ResStatus as j } from "@skyfox2000/fapi";
5
- import { L as V, u as q, t as de, _ as me } from "./upload-template-BqG06zPn.js";
6
- import { U as i, f as fe, p as Q } from "./file-upload-Dc61Tbof.js";
5
+ import { L as V, u as q, v as de, _ as me } from "./upload-template-KI-IFzyp.js";
6
+ import { U as i, f as fe, p as Q } from "./file-upload-CNBcbAAZ.js";
7
7
  import { combineParams as G } from "@skyfox2000/microbase";
8
8
  import _ from "vue-m-message";
9
9
  import "async-validator";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
2
2
  import "ant-design-vue";
3
- import { _ as q } from "../../assets/modules/toolIcon-B2btIpdL.js";
3
+ import { _ as q } from "../../assets/modules/toolIcon-BnkqBipR.js";
4
4
  import "@skyfox2000/fapi";
5
- import "../../assets/modules/upload-template-BqG06zPn.js";
5
+ import "../../assets/modules/upload-template-KI-IFzyp.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { _ as D } from "../../assets/modules/index-DrGkF0qX.js";
10
+ import { _ as D } from "../../assets/modules/index-CDr74akE.js";
11
11
  import "vue-draggable-next";
12
12
  const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
13
13
  const o = document.createElement("script");
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as g, unref as n, resolveDynamicComponent as y } from "vue";
2
- import { _ as I } from "../../assets/modules/baseLayout-DQQ-vZCD.js";
3
- import { ag as A, a as S } from "../../assets/modules/upload-template-BqG06zPn.js";
1
+ import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
2
+ import { _ as g } from "../../assets/modules/baseLayout-D3_NxEzk.js";
3
+ import { ah as A, a as S } from "../../assets/modules/upload-template-KI-IFzyp.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import b from "vue-m-message";
@@ -24,7 +24,7 @@ const j = /* @__PURE__ */ f({
24
24
  b.closeAll();
25
25
  }), (c, k) => {
26
26
  const m = h("router-view");
27
- return t(), o(I, {
27
+ return t(), o(g, {
28
28
  routes: l.routes
29
29
  }, {
30
30
  default: s(() => [
@@ -33,11 +33,11 @@ const j = /* @__PURE__ */ f({
33
33
  }, [
34
34
  w(m, null, {
35
35
  default: s(({ Component: u, route: i }) => [
36
- (t(), o(g, {
36
+ (t(), o(y, {
37
37
  include: n(e).CachedComponents,
38
38
  exclude: n(e).ExcludeComponents
39
39
  }, [
40
- (t(), o(y(n(e).cacheComponent(u, i))))
40
+ (t(), o(I(n(e).cacheComponent(u, i))))
41
41
  ], 1032, ["include", "exclude"]))
42
42
  ]),
43
43
  _: 1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/upload-template-BqG06zPn.js";
2
+ import { r as s } from "../../assets/modules/upload-template-KI-IFzyp.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
2
- import { r as s } from "../../assets/modules/upload-template-BqG06zPn.js";
2
+ import { r as s } from "../../assets/modules/upload-template-KI-IFzyp.js";
3
3
  import "@skyfox2000/microbase";
4
4
  import "@skyfox2000/fapi";
5
5
  import "vue-m-message";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as we, ref as f, computed as T, watch as H, onMounted as be, createBlock as W, openBlock as d, unref as n, withCtx as S, renderSlot as J, createElementBlock as g, createCommentVNode as K, createElementVNode as h, createVNode as C, createTextVNode as X, toDisplayString as E, normalizeClass as Ce, Fragment as ie, renderList as ne } from "vue";
2
- import { _ as Y } from "../../assets/modules/index-CX7vtghj.js";
2
+ import { _ as Y } from "../../assets/modules/index-D14BsF7C.js";
3
3
  import { Modal as Fe, Upload as ue, Space as _e } from "ant-design-vue";
4
4
  import { httpGet as Ue, ResStatus as fe } from "@skyfox2000/fapi";
5
- import { F as Te, a3 as Se, a9 as Ee } from "../../assets/modules/upload-template-BqG06zPn.js";
6
- import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-Dc61Tbof.js";
5
+ import { G as Te, a4 as Se, aa as Ee } from "../../assets/modules/upload-template-KI-IFzyp.js";
6
+ import { A as Re, p as De, U as ce } from "../../assets/modules/file-upload-CNBcbAAZ.js";
7
7
  import "@skyfox2000/microbase";
8
8
  import p from "vue-m-message";
9
- import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-Dz624mC-.js";
9
+ import { c as ke, _ as Z, h as Le, p as Ne, i as Ke } from "../../assets/modules/index-DOlO_4KL.js";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
12
  import "async-validator";
@@ -307,7 +307,7 @@ const Be = (l) => l.includes(",") || l.includes(`
307
307
  return p.error(v), ue.LIST_IGNORE;
308
308
  try {
309
309
  if (A(), y.value = t.name, q.value = u ? "text/csv" : "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", u) {
310
- const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-Dz624mC-.js").then((he) => he.j), M = await G(O, t.name);
310
+ const w = await t.arrayBuffer(), O = new TextDecoder("utf-8").decode(w), { csvToExcelView: G } = await import("../../assets/modules/index-DOlO_4KL.js").then((he) => he.j), M = await G(O, t.name);
311
311
  if (!M.success)
312
312
  throw new Error(M.error || "CSV文件处理失败");
313
313
  const oe = await (await fetch(M.blobUrl)).arrayBuffer();
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as g, KeepAlive as w, unref as n, resolveDynamicComponent as I } from "vue";
2
- import { _ as y } from "../../assets/modules/baseLayout-DQQ-vZCD.js";
3
- import { ag as A, a as S } from "../../assets/modules/upload-template-BqG06zPn.js";
1
+ import { defineComponent as f, ref as d, watch as _, onMounted as h, resolveComponent as v, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
2
+ import { _ as y } from "../../assets/modules/baseLayout-D3_NxEzk.js";
3
+ import { ah as A, a as S } from "../../assets/modules/upload-template-KI-IFzyp.js";
4
4
  import "@skyfox2000/microbase";
5
5
  import "@skyfox2000/fapi";
6
6
  import k from "vue-m-message";
@@ -20,10 +20,10 @@ const j = /* @__PURE__ */ f({
20
20
  (c) => {
21
21
  r.value = c ? "h-[calc(100vh-40px)]" : "h-[calc(100vh-81px)]";
22
22
  }
23
- ), v(() => {
23
+ ), h(() => {
24
24
  k.closeAll();
25
25
  }), (c, B) => {
26
- const m = h("router-view");
26
+ const m = v("router-view");
27
27
  return t(), o(y, {
28
28
  routes: p.routes
29
29
  }, {
@@ -31,13 +31,13 @@ const j = /* @__PURE__ */ f({
31
31
  C("div", {
32
32
  class: x(["relative", r.value])
33
33
  }, [
34
- g(m, null, {
34
+ w(m, null, {
35
35
  default: s(({ Component: u, route: i }) => [
36
- (t(), o(w, {
36
+ (t(), o(I, {
37
37
  include: n(e).CachedComponents,
38
38
  exclude: n(e).ExcludeComponents
39
39
  }, [
40
- (t(), o(I(n(e).cacheComponent(u, i))))
40
+ (t(), o(g(n(e).cacheComponent(u, i))))
41
41
  ], 1032, ["include", "exclude"]))
42
42
  ]),
43
43
  _: 1
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as x, ref as o, watch as S, onMounted as h, createBlock as C, openBlock as F, unref as m, withCtx as s, createVNode as f, createTextVNode as q } from "vue";
2
- import { _ as L } from "../../assets/modules/index-CX7vtghj.js";
2
+ import { _ as L } from "../../assets/modules/index-D14BsF7C.js";
3
3
  import { Modal as z, Space as D } from "ant-design-vue";
4
4
  import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
5
- import { aj as d } from "../../assets/modules/upload-template-BqG06zPn.js";
6
- import { U as b } from "../../assets/modules/file-upload-Dc61Tbof.js";
5
+ import { ak as d } from "../../assets/modules/upload-template-KI-IFzyp.js";
6
+ import { U as b } from "../../assets/modules/file-upload-CNBcbAAZ.js";
7
7
  import "@skyfox2000/microbase";
8
8
  import "vue-m-message";
9
9
  import "async-validator";
10
10
  import "dayjs";
11
11
  import "vue-draggable-next";
12
- import { U as j } from "../../assets/modules/uploadList-DlbvQOtR.js";
12
+ import { U as g } from "../../assets/modules/uploadList-DnFXg_B3.js";
13
13
  const _ = /* @__PURE__ */ x({
14
14
  __name: "templateFile",
15
15
  props: {
@@ -158,7 +158,7 @@ const _ = /* @__PURE__ */ x({
158
158
  })
159
159
  ]),
160
160
  default: s(() => [
161
- f(j, {
161
+ f(g, {
162
162
  "file-list": n.value,
163
163
  "onUpdate:fileList": l[0] || (l[0] = (i) => n.value = i),
164
164
  "auto-upload": "",
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as y, ref as f, watch as S, onMounted as z, createBlock as D, openBlock as F, unref as u, withCtx as s, createVNode as m, createTextVNode as C } from "vue";
2
- import { _ as c } from "../../assets/modules/index-CX7vtghj.js";
2
+ import { _ as c } from "../../assets/modules/index-D14BsF7C.js";
3
3
  import { Modal as _, Space as k } from "ant-design-vue";
4
4
  import { ResStatus as E } from "@skyfox2000/fapi";
5
- import { a5 as h } from "../../assets/modules/upload-template-BqG06zPn.js";
5
+ import { a6 as h } from "../../assets/modules/upload-template-KI-IFzyp.js";
6
6
  import "@skyfox2000/microbase";
7
7
  import L from "vue-m-message";
8
8
  import "async-validator";
9
9
  import "dayjs";
10
- import { A as N } from "../../assets/modules/file-upload-Dc61Tbof.js";
10
+ import { A as N } from "../../assets/modules/file-upload-CNBcbAAZ.js";
11
11
  import "vue-draggable-next";
12
- import { U as B } from "../../assets/modules/uploadList-DlbvQOtR.js";
12
+ import { U as B } from "../../assets/modules/uploadList-DnFXg_B3.js";
13
13
  const K = /* @__PURE__ */ y({
14
14
  __name: "uploadForm",
15
15
  props: {
@@ -2,11 +2,16 @@ import { GridControl } from '../typings/table.d';
2
2
  import { IUrlInfo } from '../../../502417_fapi';
3
3
  export interface TableColumn {
4
4
  title: string;
5
- dataIndex?: string;
5
+ dataIndex?: string | string[];
6
6
  key?: string;
7
7
  visible?: boolean;
8
8
  export?: boolean;
9
- customRender?: (value: any, record: Record<string, any>) => any;
9
+ customRender?: (options: {
10
+ text: any;
11
+ record: Record<string, any>;
12
+ index: number;
13
+ column: TableColumn;
14
+ }) => any;
10
15
  }
11
16
  export declare const exportSelectedRows: <T extends Record<string, any>>(fileName: string, columns: TableColumn[], selectRows: T[]) => Promise<void>;
12
17
  export declare const exportResults: <T extends Record<string, any>>(fileName: string, columns: TableColumn[], gridCtrl: GridControl<T>, url: IUrlInfo) => Promise<undefined>;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { default as Validator } from 'async-validator';
3
- import { EditorControl, InputFactoryItems, ValidateRule } from '../typings/form.d';
3
+ import { EditorControl, InputFactoryItems, ValidateRule, ValidateRuleItem } from '../typings/form.d';
4
4
  import { AnyData } from '../../../502417_fapi';
5
5
  export declare let validMessages: Validator;
6
6
  export declare const initValidate: (messages?: Record<string, any>) => void;
@@ -26,4 +26,5 @@ export declare const useFormItemFactory: (options: RuleFactoryOptions, editorCtr
26
26
  msg: string;
27
27
  errClass: string;
28
28
  }>;
29
+ export declare const getRule: (rule: Array<string>, ruleObj: Record<string, any> | undefined) => ValidateRuleItem | undefined;
29
30
  export {};