@skyfox2000/webui 1.3.3 → 1.3.5
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/lib/assets/modules/{file-upload-D4Pqs8h3.js → file-upload-C0twqMV5.js} +1 -1
- package/lib/assets/modules/{index-V1j9haWy.js → index-C4CryM-R.js} +1 -1
- package/lib/assets/modules/index-CKJIxasX.js +333 -0
- package/lib/assets/modules/{index-CSnwbbQT.js → index-D1XAa1Uo.js} +2 -2
- package/lib/assets/modules/{menuTabs-e8XoJN7m.js → menuTabs-BrYQa4UO.js} +2 -2
- package/lib/assets/modules/{toolIcon-BSF7eiPf.js → toolIcon-B-g9pyE4.js} +1 -1
- package/lib/assets/modules/{uploadList-DA4TRDWR.js → uploadList-0f2FA_5s.js} +490 -455
- package/lib/assets/modules/{uploadList-Bcf7g1bf.js → uploadList-DCWRIxPJ.js} +4 -4
- package/lib/components/content/table/index.vue.d.ts +95 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +339 -202
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/index.d.ts +3 -2
- package/lib/typings/option.d.ts +2 -2
- package/lib/utils/excel-view.d.ts +25 -0
- package/lib/utils/form-csv.d.ts +18 -0
- package/lib/utils/form-excel.d.ts +2 -13
- package/lib/utils/options.d.ts +2 -2
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +897 -871
- package/package.json +2 -2
- package/src/components/common/loading/index.vue +1 -1
- package/src/components/content/dialog/excelForm.vue +386 -107
- package/src/components/content/table/index.vue +9 -6
- package/src/components/form/autoComplete/index.vue +9 -3
- package/src/components/form/cascader/index.vue +8 -6
- package/src/index.ts +25 -2
- package/src/typings/option.d.ts +2 -2
- package/src/utils/excel-view.ts +340 -0
- package/src/utils/form-csv.ts +55 -0
- package/src/utils/form-excel.ts +59 -192
- package/src/utils/options.ts +80 -22
- package/src/utils/table.ts +15 -2
- package/vite.config.ts +0 -1
- package/lib/assets/modules/form-excel-D1vXB4c4.js +0 -235
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as X, ref as P, computed as M, watch as $, resolveDirective as Y, createElementBlock as v, openBlock as m, normalizeClass as O, unref as n, createElementVNode as f, withDirectives as x, createBlock as Z, mergeProps as ee, withCtx as y, createVNode as u, createTextVNode as F, toDisplayString as A, Fragment as te, renderList as oe, createCommentVNode as b } from "vue";
|
|
2
|
-
import { _ as ne } from "./index-
|
|
3
|
-
import { a as z, _ as L } from "./toolIcon-
|
|
2
|
+
import { _ as ne } from "./index-C4CryM-R.js";
|
|
3
|
+
import { a as z, _ as L } from "./toolIcon-B-g9pyE4.js";
|
|
4
4
|
import { httpPost as D, ResStatus as I } from "@skyfox2000/fapi";
|
|
5
|
-
import { s as ae, _ as se } from "./uploadList-
|
|
6
|
-
import { p as R, U as s } from "./file-upload-
|
|
5
|
+
import { s as ae, _ as se } from "./uploadList-0f2FA_5s.js";
|
|
6
|
+
import { p as R, U as s } from "./file-upload-C0twqMV5.js";
|
|
7
7
|
import { combineParams as V } from "@skyfox2000/microbase";
|
|
8
8
|
import k from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TableProps, TableColumnType } from 'ant-design-vue';
|
|
1
|
+
import { PaginationProps, TableProps, TableColumnType } from 'ant-design-vue';
|
|
2
2
|
import { GridControl } from '../../../index';
|
|
3
3
|
import { AnyData } from '../../../../../502417_fapi';
|
|
4
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, ComponentProvideOptions } from 'vue';
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
gridCtrl: GridControl<AnyData>;
|
|
7
7
|
primaryKey?: string;
|
|
8
8
|
tableData?: Record<string, AnyData>[];
|
|
9
9
|
rowSelection?: TableProps['rowSelection'];
|
|
10
|
-
pagination?:
|
|
10
|
+
pagination?: false | PaginationProps;
|
|
11
11
|
scroll?: TableProps['scroll'];
|
|
12
12
|
statusDisabled?: Function;
|
|
13
13
|
};
|
|
@@ -26,7 +26,98 @@ declare function __VLS_template(): {
|
|
|
26
26
|
rootEl: any;
|
|
27
27
|
};
|
|
28
28
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
29
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
30
|
+
pagination: false | Partial< ExtractPropTypes<{
|
|
31
|
+
total: NumberConstructor;
|
|
32
|
+
defaultCurrent: NumberConstructor;
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
current: NumberConstructor;
|
|
38
|
+
defaultPageSize: NumberConstructor;
|
|
39
|
+
pageSize: NumberConstructor;
|
|
40
|
+
hideOnSinglePage: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
showSizeChanger: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
pageSizeOptions: {
|
|
49
|
+
type: PropType<(string | number)[]>;
|
|
50
|
+
default: (string | number)[];
|
|
51
|
+
};
|
|
52
|
+
buildOptionText: {
|
|
53
|
+
type: PropType<(opt: {
|
|
54
|
+
value: any;
|
|
55
|
+
}) => any>;
|
|
56
|
+
default: (opt: {
|
|
57
|
+
value: any;
|
|
58
|
+
}) => any;
|
|
59
|
+
};
|
|
60
|
+
showQuickJumper: {
|
|
61
|
+
type: PropType<boolean | {
|
|
62
|
+
goButton?: any;
|
|
63
|
+
}>;
|
|
64
|
+
default: boolean | {
|
|
65
|
+
goButton?: any;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
showTotal: {
|
|
69
|
+
type: PropType<(total: number, range: [number, number]) => any>;
|
|
70
|
+
default: (total: number, range: [number, number]) => any;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: PropType<"default" | "small">;
|
|
74
|
+
default: "default" | "small";
|
|
75
|
+
};
|
|
76
|
+
simple: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
locale: ObjectConstructor;
|
|
81
|
+
prefixCls: StringConstructor;
|
|
82
|
+
selectPrefixCls: StringConstructor;
|
|
83
|
+
totalBoundaryShowSizeChanger: NumberConstructor;
|
|
84
|
+
selectComponentClass: StringConstructor;
|
|
85
|
+
itemRender: {
|
|
86
|
+
type: PropType<(opt: {
|
|
87
|
+
page: number;
|
|
88
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
89
|
+
originalElement: any;
|
|
90
|
+
}) => any>;
|
|
91
|
+
default: (opt: {
|
|
92
|
+
page: number;
|
|
93
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
94
|
+
originalElement: any;
|
|
95
|
+
}) => any;
|
|
96
|
+
};
|
|
97
|
+
role: StringConstructor;
|
|
98
|
+
responsive: BooleanConstructor;
|
|
99
|
+
showLessItems: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
onChange: {
|
|
104
|
+
type: PropType<(page: number, pageSize: number) => void>;
|
|
105
|
+
default: (page: number, pageSize: number) => void;
|
|
106
|
+
};
|
|
107
|
+
onShowSizeChange: {
|
|
108
|
+
type: PropType<(current: number, size: number) => void>;
|
|
109
|
+
default: (current: number, size: number) => void;
|
|
110
|
+
};
|
|
111
|
+
'onUpdate:current': {
|
|
112
|
+
type: PropType<(current: number) => void>;
|
|
113
|
+
default: (current: number) => void;
|
|
114
|
+
};
|
|
115
|
+
'onUpdate:pageSize': {
|
|
116
|
+
type: PropType<(size: number) => void>;
|
|
117
|
+
default: (size: number) => void;
|
|
118
|
+
};
|
|
119
|
+
}>>;
|
|
120
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
30
121
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
122
|
export default _default;
|
|
32
123
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-B-g9pyE4.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/uploadList-
|
|
5
|
+
import "../../assets/modules/uploadList-0f2FA_5s.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-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-D1XAa1Uo.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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as I, watch as C, onMounted as g, resolveComponent as b, createBlock as n, openBlock as o, unref as e, withCtx as l, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
|
|
2
2
|
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
-
import { a as z } from "../../assets/modules/toolIcon-
|
|
4
|
-
import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import { ad as j, a as K, af as M } from "../../assets/modules/uploadList-
|
|
3
|
+
import { a as z } from "../../assets/modules/toolIcon-B-g9pyE4.js";
|
|
4
|
+
import { I as A, _ as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-BrYQa4UO.js";
|
|
5
|
+
import { ad as j, a as K, af as M } from "../../assets/modules/uploadList-0f2FA_5s.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import P from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -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/uploadList-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-0f2FA_5s.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -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/uploadList-
|
|
2
|
+
import { r as s } from "../../assets/modules/uploadList-0f2FA_5s.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|