@skyfox2000/webui 1.3.18 → 1.3.20
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/AceEditor.d.ts +1 -0
- package/lib/BasicLayout.d.ts +1 -0
- package/lib/Error403.d.ts +1 -0
- package/lib/Error404.d.ts +1 -0
- package/lib/ExcelForm.d.ts +1 -0
- package/lib/MenuLayout.d.ts +1 -0
- package/lib/UploadForm.d.ts +1 -0
- package/lib/assets/modules/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/lib/assets/modules/baseLayout-B9dSxkYo.js +79 -0
- package/lib/assets/modules/file-upload-JBIvw5Xx.js +204 -0
- package/lib/assets/modules/index-BMkaOjBS.js +380 -0
- package/lib/assets/modules/index-BOYtm8ib.js +112 -0
- package/lib/assets/modules/index-BkChvyed.js +109 -0
- package/lib/assets/modules/menuTabs-BFPjaQRI.js +671 -0
- package/lib/assets/modules/toolIcon-XOgjdQdO.js +50 -0
- package/lib/assets/modules/uploadList-BedljASx.js +2407 -0
- package/lib/assets/modules/uploadList-CW7OIDS3.js +382 -0
- package/lib/components/common/alert/index.vue.d.ts +13 -0
- package/lib/components/common/button/index.vue.d.ts +41 -0
- package/lib/components/common/icon/appicon.vue.d.ts +11 -0
- package/lib/components/common/icon/fullscreen.vue.d.ts +3 -0
- package/lib/components/common/icon/helper.vue.d.ts +23 -0
- package/lib/components/common/icon/index.vue.d.ts +243 -0
- package/lib/components/common/icon/layoutIcon.vue.d.ts +43 -0
- package/lib/components/common/icon/projectIcon.vue.d.ts +59 -0
- package/lib/components/common/icon/toolIcon.vue.d.ts +43 -0
- package/lib/components/common/index.d.ts +22 -0
- package/lib/components/common/loading/index.vue.d.ts +3 -0
- package/lib/components/common/tooltip/index.vue.d.ts +21 -0
- package/lib/components/content/dialog/index.vue.d.ts +35 -0
- package/lib/components/content/drawer/index.vue.d.ts +28 -0
- package/lib/components/content/form/formItem.vue.d.ts +28 -0
- package/lib/components/content/form/index.vue.d.ts +25 -0
- package/lib/components/content/index.d.ts +22 -0
- package/lib/components/content/search/index.vue.d.ts +32 -0
- package/lib/components/content/search/searchItem.vue.d.ts +23 -0
- package/lib/components/content/table/index.vue.d.ts +127 -0
- package/lib/components/content/table/tableOperate.vue.d.ts +18 -0
- package/lib/components/content/toolbar/icontool.vue.d.ts +7 -0
- package/lib/components/content/toolbar/index.vue.d.ts +18 -0
- package/lib/components/content/tree/index.vue.d.ts +46 -0
- package/lib/components/form/aceEditor/aceConfig.d.ts +8 -0
- package/lib/components/form/autoComplete/index.vue.d.ts +101 -0
- package/lib/components/form/cascader/index.vue.d.ts +80 -0
- package/lib/components/form/checkbox/index.vue.d.ts +100 -0
- package/lib/components/form/datePicker/index.vue.d.ts +6 -0
- package/lib/components/form/index.d.ts +41 -0
- package/lib/components/form/input/index.vue.d.ts +29 -0
- package/lib/components/form/input/inputIcon.vue.d.ts +10 -0
- package/lib/components/form/input/inputNumber.vue.d.ts +3 -0
- package/lib/components/form/input/inputPassword.vue.d.ts +3 -0
- package/lib/components/form/propEditor/index.vue.d.ts +15 -0
- package/lib/components/form/radio/index.vue.d.ts +105 -0
- package/lib/components/form/radio/radioStatus.vue.d.ts +31 -0
- package/lib/components/form/rangePicker/index.vue.d.ts +16 -0
- package/lib/components/form/select/index.vue.d.ts +119 -0
- package/lib/components/form/switch/index.vue.d.ts +76 -0
- package/lib/components/form/textarea/index.vue.d.ts +3 -0
- package/lib/components/form/timePicker/index.vue.d.ts +6 -0
- package/lib/components/form/transfer/index.vue.d.ts +38 -0
- package/lib/components/form/transfer/transferTable.vue.d.ts +38 -0
- package/lib/components/form/treeSelect/index.vue.d.ts +47 -0
- package/lib/components/form/upload/uploadList.vue.d.ts +488 -0
- package/lib/components/index.d.ts +4 -0
- package/lib/components/layout/breadcrumb/index.vue.d.ts +3 -0
- package/lib/components/layout/content/index.vue.d.ts +22 -0
- package/lib/components/layout/datetime/index.vue.d.ts +3 -0
- package/lib/components/layout/header/headerExits.vue.d.ts +3 -0
- package/lib/components/layout/header/index.vue.d.ts +3 -0
- package/lib/components/layout/header/user.vue.d.ts +3 -0
- package/lib/components/layout/index.d.ts +14 -0
- package/lib/components/layout/menu/index.vue.d.ts +6 -0
- package/lib/components/layout/menu/menuTabs.vue.d.ts +3 -0
- package/lib/const/options.d.ts +32 -0
- package/lib/directives/enter-submit.d.ts +4 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/permission.d.ts +5 -0
- package/lib/es/AceEditor/index.js +167 -0
- package/lib/es/BasicLayout/index.js +54 -0
- package/lib/es/Error403/index.js +39 -0
- package/lib/es/Error404/index.js +39 -0
- package/lib/es/ExcelForm/index.js +491 -0
- package/lib/es/MenuLayout/index.js +54 -0
- package/lib/es/UploadForm/index.js +110 -0
- package/lib/index.d.ts +46 -0
- package/lib/router/index.d.ts +15 -0
- package/lib/stores/appInfo.d.ts +31 -0
- package/lib/stores/hostInfo.d.ts +11 -0
- package/lib/stores/pageInfo.d.ts +18 -0
- package/lib/stores/pinia.d.ts +3 -0
- package/lib/stores/settingInfo.d.ts +8 -0
- package/lib/stores/userInfo.d.ts +25 -0
- package/lib/typings/data.d.ts +80 -0
- package/lib/typings/form.d.ts +206 -0
- package/lib/typings/menu.d.ts +7 -0
- package/lib/typings/option.d.ts +209 -0
- package/lib/typings/page.d.ts +70 -0
- package/lib/typings/table.d.ts +181 -0
- package/lib/typings/tools.d.ts +130 -0
- package/lib/typings/tree.d.ts +72 -0
- package/lib/typings/upload.d.ts +161 -0
- package/lib/typings/urls.d.ts +69 -0
- package/lib/utils/cache.d.ts +23 -0
- package/lib/utils/data.d.ts +6 -0
- package/lib/utils/download.d.ts +6 -0
- package/lib/utils/eventbus.d.ts +16 -0
- package/lib/utils/excel-preview.d.ts +24 -0
- package/lib/utils/excel-view.d.ts +25 -0
- package/lib/utils/export-table.d.ts +12 -0
- package/lib/utils/file-upload.d.ts +17 -0
- package/lib/utils/form-csv.d.ts +18 -0
- package/lib/utils/form-excel.d.ts +36 -0
- package/lib/utils/form-validate.d.ts +29 -0
- package/lib/utils/form.d.ts +9 -0
- package/lib/utils/icon-loader.d.ts +125 -0
- package/lib/utils/isEmpty.d.ts +1 -0
- package/lib/utils/main-openapis.d.ts +8 -0
- package/lib/utils/menu.d.ts +6 -0
- package/lib/utils/options.d.ts +7 -0
- package/lib/utils/page.d.ts +30 -0
- package/lib/utils/table.d.ts +21 -0
- package/lib/utils/tools.d.ts +18 -0
- package/lib/utils/tree.d.ts +3 -0
- package/lib/vite-env.d.ts +8 -0
- package/lib/webui.css +1 -0
- package/lib/webui.es.js +2345 -0
- package/package.json +1 -1
- package/src/components/layout/page/menuLayout.vue +34 -0
- package/vite.config.ts +1 -1
- package/.cursorignore +0 -8
- package/scripts/userInput.py +0 -2
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { defineComponent as F, provide as _, ref as w, watch as p, onMounted as B, createBlock as n, openBlock as r, unref as a, withCtx as i, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as v } from "vue";
|
|
2
|
+
import { _ as m } from "./index-BkChvyed.js";
|
|
3
|
+
import { Modal as D, Space as E } from "ant-design-vue";
|
|
4
|
+
import "@skyfox2000/fapi";
|
|
5
|
+
import { P as M, d as P, o as $, b as K } from "./uploadList-BedljASx.js";
|
|
6
|
+
import "@skyfox2000/microbase";
|
|
7
|
+
import "vue-m-message";
|
|
8
|
+
import "async-validator";
|
|
9
|
+
import "dayjs";
|
|
10
|
+
import "vue-draggable-next";
|
|
11
|
+
const U = { class: "overflow-y-auto w-full h-full" }, R = /* @__PURE__ */ F({
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: {
|
|
14
|
+
saveText: {},
|
|
15
|
+
saveAsText: {},
|
|
16
|
+
cancelText: {},
|
|
17
|
+
editorCtrl: {},
|
|
18
|
+
dialogSave: { type: Function },
|
|
19
|
+
dialogSaveAs: { type: Function },
|
|
20
|
+
width: {},
|
|
21
|
+
full: { type: Boolean },
|
|
22
|
+
open: { type: Boolean }
|
|
23
|
+
},
|
|
24
|
+
emits: ["update:open"],
|
|
25
|
+
setup(C, { emit: T }) {
|
|
26
|
+
const l = C, e = l.editorCtrl;
|
|
27
|
+
_(M.EditorControl, e);
|
|
28
|
+
const t = w(l.open ?? !1), A = T, h = w(l.width ?? 430);
|
|
29
|
+
p(
|
|
30
|
+
() => e == null ? void 0 : e.visible.value,
|
|
31
|
+
(o) => {
|
|
32
|
+
t.value = o ?? !1;
|
|
33
|
+
}
|
|
34
|
+
), p(
|
|
35
|
+
() => l.open,
|
|
36
|
+
(o) => {
|
|
37
|
+
t.value = o;
|
|
38
|
+
}
|
|
39
|
+
), p(
|
|
40
|
+
() => t.value,
|
|
41
|
+
(o) => {
|
|
42
|
+
A("update:open", o), o || f();
|
|
43
|
+
}
|
|
44
|
+
), B(() => {
|
|
45
|
+
t.value = (e == null ? void 0 : e.visible.value) ?? !1;
|
|
46
|
+
});
|
|
47
|
+
const k = () => {
|
|
48
|
+
l.dialogSave ? l.dialogSave() : e && $(e);
|
|
49
|
+
}, x = () => {
|
|
50
|
+
l.dialogSaveAs ? l.dialogSaveAs() : e && K(e);
|
|
51
|
+
}, f = () => {
|
|
52
|
+
e ? P(e) : t.value = !1;
|
|
53
|
+
};
|
|
54
|
+
return (o, c) => (r(), n(a(D), {
|
|
55
|
+
open: t.value,
|
|
56
|
+
"onUpdate:open": c[0] || (c[0] = (s) => t.value = s),
|
|
57
|
+
wrapClassName: "modal mx-auto min-w-[430px] " + (o.full ? "full-modal w-full" : ""),
|
|
58
|
+
width: h.value
|
|
59
|
+
}, {
|
|
60
|
+
footer: i(() => [
|
|
61
|
+
V(a(E), null, {
|
|
62
|
+
default: i(() => {
|
|
63
|
+
var s, g, S, y;
|
|
64
|
+
return [
|
|
65
|
+
o.cancelText !== "" ? (r(), n(a(m), {
|
|
66
|
+
key: 0,
|
|
67
|
+
onClick: f
|
|
68
|
+
}, {
|
|
69
|
+
default: i(() => [
|
|
70
|
+
u(v(o.cancelText ?? "取消"), 1)
|
|
71
|
+
]),
|
|
72
|
+
_: 1
|
|
73
|
+
})) : d("", !0),
|
|
74
|
+
o.saveAsText !== "" && ((s = a(e)) == null ? void 0 : s.saveAsBtnVisible) !== !1 ? (r(), n(a(m), {
|
|
75
|
+
key: 1,
|
|
76
|
+
onClick: x,
|
|
77
|
+
type: "primary",
|
|
78
|
+
loading: (g = a(e)) == null ? void 0 : g.isFormSaving.value
|
|
79
|
+
}, {
|
|
80
|
+
default: i(() => [
|
|
81
|
+
u(v(o.saveAsText ?? "另存为"), 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["loading"])) : d("", !0),
|
|
85
|
+
o.saveText !== "" && ((S = a(e)) == null ? void 0 : S.saveBtnVisible) !== !1 ? (r(), n(a(m), {
|
|
86
|
+
key: 2,
|
|
87
|
+
onClick: k,
|
|
88
|
+
type: "primary",
|
|
89
|
+
loading: (y = a(e)) == null ? void 0 : y.isFormSaving.value
|
|
90
|
+
}, {
|
|
91
|
+
default: i(() => [
|
|
92
|
+
u(v(o.saveText ?? "保存"), 1)
|
|
93
|
+
]),
|
|
94
|
+
_: 1
|
|
95
|
+
}, 8, ["loading"])) : d("", !0)
|
|
96
|
+
];
|
|
97
|
+
}),
|
|
98
|
+
_: 1
|
|
99
|
+
})
|
|
100
|
+
]),
|
|
101
|
+
default: i(() => [
|
|
102
|
+
N("div", U, [
|
|
103
|
+
b(o.$slots, "default")
|
|
104
|
+
])
|
|
105
|
+
]),
|
|
106
|
+
_: 3
|
|
107
|
+
}, 8, ["open", "wrapClassName", "width"]));
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
export {
|
|
111
|
+
R as _
|
|
112
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
|
|
2
|
+
import { Button as _ } from "ant-design-vue";
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-XOgjdQdO.js";
|
|
4
|
+
const C = /* @__PURE__ */ d({
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* 提示标题
|
|
10
|
+
* @props
|
|
11
|
+
* @name content
|
|
12
|
+
* @type {string}
|
|
13
|
+
*/
|
|
14
|
+
tiptext: String,
|
|
15
|
+
/**
|
|
16
|
+
* 提示显示位置
|
|
17
|
+
* @props
|
|
18
|
+
* @name placement
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @default 'top'
|
|
21
|
+
*/
|
|
22
|
+
placement: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "top"
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* 内置图标属性设置
|
|
28
|
+
* @props
|
|
29
|
+
* @name iconProps
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @summary 内置图标复杂属性设置,仅支持前置图标
|
|
32
|
+
*/
|
|
33
|
+
iconProps: Object,
|
|
34
|
+
/**
|
|
35
|
+
* 默认使用框架图标
|
|
36
|
+
* 其它图标请自定义
|
|
37
|
+
* @props
|
|
38
|
+
* @name icon
|
|
39
|
+
* @type {string}
|
|
40
|
+
*/
|
|
41
|
+
icon: String
|
|
42
|
+
// /**
|
|
43
|
+
// * 点击事件
|
|
44
|
+
// * @props
|
|
45
|
+
// * @name clickEvent
|
|
46
|
+
// * @summary 格式 "空间名#事件名",空间名和事件名用#分隔,事件名用.分隔
|
|
47
|
+
// * @type {string}
|
|
48
|
+
// */
|
|
49
|
+
// clickEvent: {
|
|
50
|
+
// type: String
|
|
51
|
+
// },
|
|
52
|
+
// /**
|
|
53
|
+
// * 点击传输数据
|
|
54
|
+
// * @props
|
|
55
|
+
// * @name data
|
|
56
|
+
// * @summary 点击事件传输的默认数据
|
|
57
|
+
// * @type {object|string}
|
|
58
|
+
// */
|
|
59
|
+
// data: {
|
|
60
|
+
// type: [Object, String]
|
|
61
|
+
// }
|
|
62
|
+
},
|
|
63
|
+
emits: [
|
|
64
|
+
/**
|
|
65
|
+
* 点击事件
|
|
66
|
+
* @emits
|
|
67
|
+
* @name click
|
|
68
|
+
* @summary 图标按钮点击时触发的事件
|
|
69
|
+
*/
|
|
70
|
+
"click"
|
|
71
|
+
],
|
|
72
|
+
setup(i, { emit: l }) {
|
|
73
|
+
const c = f(), t = i, a = l, m = () => {
|
|
74
|
+
t.iconProps && t.iconProps.icons && (t.iconProps.iconIndex = (t.iconProps.iconIndex + 1) % t.iconProps.icons.length), a("click");
|
|
75
|
+
};
|
|
76
|
+
return (s, b) => (x(), u("div", null, [
|
|
77
|
+
e(P, {
|
|
78
|
+
title: t.tiptext,
|
|
79
|
+
disabled: t.tiptext ? void 0 : "disabled",
|
|
80
|
+
placement: i.placement
|
|
81
|
+
}, {
|
|
82
|
+
default: n(() => [
|
|
83
|
+
e(o(_), r({ class: "px-[10px] py-[4px] flex items-center gap-1" }, o(c), { onClick: m }), {
|
|
84
|
+
icon: n(() => [
|
|
85
|
+
p(s.$slots, "icon", {}, () => [
|
|
86
|
+
e(k, r({
|
|
87
|
+
icon: t.icon,
|
|
88
|
+
class: [
|
|
89
|
+
o(c).type === "primary" ? "ant-btn-primary" : "",
|
|
90
|
+
"cursor-pointer w-[17px] h-[17px] mx-auto"
|
|
91
|
+
],
|
|
92
|
+
clickable: ""
|
|
93
|
+
}, t.iconProps), null, 16, ["icon", "class"])
|
|
94
|
+
])
|
|
95
|
+
]),
|
|
96
|
+
default: n(() => [
|
|
97
|
+
p(s.$slots, "default")
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 16)
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["title", "disabled", "placement"])
|
|
104
|
+
]));
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export {
|
|
108
|
+
C as _
|
|
109
|
+
};
|