duck-vue-components 0.2.6 → 0.2.8
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/dist/constants.cjs +1 -1
- package/dist/constants.d.cts +2 -2
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +1 -1
- package/dist/{controls-DpkadZFc.cjs → controls-DG8fwV0k.cjs} +158 -55
- package/dist/{controls-DrfqUxIp.js → controls-Dxh5hv4E.js} +149 -52
- package/dist/controls.cjs +13 -2
- package/dist/controls.d.cts +2 -2
- package/dist/controls.d.ts +2 -2
- package/dist/controls.js +2 -2
- package/dist/hooks.cjs +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{index-DC-T2dZD.d.ts → index-BGyW0r_d.d.ts} +2 -2
- package/dist/{index-CEIaHTGG.d.cts → index-CFo8iFar.d.ts} +47 -20
- package/dist/{index-B-JdU485.d.ts → index-DRjT-kbb.d.ts} +5 -5
- package/dist/{index-1Pf2-Oor.d.cts → index-Di4VXcF7.d.ts} +7 -1
- package/dist/{index-DbRrwdMu.d.cts → index-LRnqHV-3.d.cts} +3 -3
- package/dist/{index-pAifGnVL.d.ts → index-PC2m5jkL.d.cts} +50 -19
- package/dist/{index-HZiNsnNI.d.ts → index-dsgEPomF.d.cts} +7 -1
- package/dist/{index-k9hHlxH9.d.cts → index-us2I7-ho.d.cts} +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -8
- package/dist/locale.js +1 -1
- package/dist/pages.cjs +2 -2
- package/dist/pages.d.cts +2 -2
- package/dist/pages.d.ts +2 -2
- package/dist/pages.js +3 -3
- package/dist/stores.cjs +2 -2
- package/dist/stores.d.cts +1 -1
- package/dist/stores.d.ts +1 -1
- package/dist/stores.js +2 -2
- package/dist/style.css +0 -4
- package/dist/{utils-D_H_FuDE.cjs → utils-CJUw1Ktb.cjs} +4 -3
- package/dist/{utils-CUQ01uOs.js → utils-Cx01ubSA.js} +5 -4
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -1
- /package/dist/{constants-Djb2MLAv.cjs → constants-Br-3mtDb.cjs} +0 -0
- /package/dist/{constants-BTxLCrpe.js → constants-WErhxuYm.js} +0 -0
- /package/dist/{locale-B3sWTtoq.js → locale-BscyDzS3.js} +0 -0
package/dist/constants.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_constants = require("./constants-
|
|
2
|
+
const require_constants = require("./constants-Br-3mtDb.cjs");
|
|
3
3
|
exports.CHANGE_EVENT = require_constants.CHANGE_EVENT;
|
|
4
4
|
exports.EVENT_CODE = require_constants.EVENT_CODE;
|
|
5
5
|
exports.INPUT_EVENT = require_constants.INPUT_EVENT;
|
package/dist/constants.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { CHANGE_EVENT, ComponentSize, DatePickType, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, JSONValue, UPDATE_MODEL_EVENT, WEEK_DAYS, area, areaT, baseT, complexT, componentSizeMap, componentSizes, controlBaseTypeT, controlContainerTypeT, controlInputTypeT, datePickTypes, infoI, labelPositionI, modelT, sizeT, tags, typeT };
|
|
1
|
+
import { C as DatePickType, E as EVENT_CODE, S as UPDATE_MODEL_EVENT, T as datePickTypes, _ as sizeT, a as JSONValue, b as CHANGE_EVENT, c as complexT, d as controlInputTypeT, f as labelPositionI, g as componentSizes, h as componentSizeMap, i as tags, l as controlBaseTypeT, m as ComponentSize, n as baseT, o as infoI, p as modelT, r as area, s as areaT, t as FrameworkOptions, u as controlContainerTypeT, v as typeT, w as WEEK_DAYS, x as INPUT_EVENT, y as INSTALLED_KEY } from "./index-dsgEPomF.cjs";
|
|
2
|
+
export { CHANGE_EVENT, ComponentSize, DatePickType, EVENT_CODE, FrameworkOptions, INPUT_EVENT, INSTALLED_KEY, JSONValue, UPDATE_MODEL_EVENT, WEEK_DAYS, area, areaT, baseT, complexT, componentSizeMap, componentSizes, controlBaseTypeT, controlContainerTypeT, controlInputTypeT, datePickTypes, infoI, labelPositionI, modelT, sizeT, tags, typeT };
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { CHANGE_EVENT, ComponentSize, DatePickType, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, JSONValue, UPDATE_MODEL_EVENT, WEEK_DAYS, area, areaT, baseT, complexT, componentSizeMap, componentSizes, controlBaseTypeT, controlContainerTypeT, controlInputTypeT, datePickTypes, infoI, labelPositionI, modelT, sizeT, tags, typeT };
|
|
1
|
+
import { C as DatePickType, E as EVENT_CODE, S as UPDATE_MODEL_EVENT, T as datePickTypes, _ as sizeT, a as JSONValue, b as CHANGE_EVENT, c as complexT, d as controlInputTypeT, f as labelPositionI, g as componentSizes, h as componentSizeMap, i as tags, l as controlBaseTypeT, m as ComponentSize, n as baseT, o as infoI, p as modelT, r as area, s as areaT, t as FrameworkOptions, u as controlContainerTypeT, v as typeT, w as WEEK_DAYS, x as INPUT_EVENT, y as INSTALLED_KEY } from "./index-Di4VXcF7.js";
|
|
2
|
+
export { CHANGE_EVENT, ComponentSize, DatePickType, EVENT_CODE, FrameworkOptions, INPUT_EVENT, INSTALLED_KEY, JSONValue, UPDATE_MODEL_EVENT, WEEK_DAYS, area, areaT, baseT, complexT, componentSizeMap, componentSizes, controlBaseTypeT, controlContainerTypeT, controlInputTypeT, datePickTypes, infoI, labelPositionI, modelT, sizeT, tags, typeT };
|
package/dist/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as INSTALLED_KEY, c as UPDATE_MODEL_EVENT, d as EVENT_CODE, i as componentSizes, l as WEEK_DAYS, n as tags, o as CHANGE_EVENT, r as componentSizeMap, s as INPUT_EVENT, t as area, u as datePickTypes } from "./constants-
|
|
1
|
+
import { a as INSTALLED_KEY, c as UPDATE_MODEL_EVENT, d as EVENT_CODE, i as componentSizes, l as WEEK_DAYS, n as tags, o as CHANGE_EVENT, r as componentSizeMap, s as INPUT_EVENT, t as area, u as datePickTypes } from "./constants-WErhxuYm.js";
|
|
2
2
|
export { CHANGE_EVENT, EVENT_CODE, INPUT_EVENT, INSTALLED_KEY, UPDATE_MODEL_EVENT, WEEK_DAYS, area, componentSizeMap, componentSizes, datePickTypes, tags };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_locale = require("./locale-BTmar3YP.cjs");
|
|
2
|
-
const require_utils = require("./utils-
|
|
2
|
+
const require_utils = require("./utils-CJUw1Ktb.cjs");
|
|
3
3
|
const require_stores = require("./stores.cjs");
|
|
4
4
|
const require_hooks = require("./hooks.cjs");
|
|
5
5
|
let element_plus = require("element-plus");
|
|
6
6
|
let pinia = require("pinia");
|
|
7
|
-
let vue = require("vue");
|
|
8
7
|
let lodash_es = require("lodash-es");
|
|
8
|
+
let vue = require("vue");
|
|
9
9
|
let axios = require("axios");
|
|
10
10
|
axios = require_locale.__toESM(axios);
|
|
11
11
|
let js_cookie = require("js-cookie");
|
|
@@ -13,43 +13,9 @@ js_cookie = require_locale.__toESM(js_cookie);
|
|
|
13
13
|
let _element_plus_icons_vue = require("@element-plus/icons-vue");
|
|
14
14
|
let sortablejs = require("sortablejs");
|
|
15
15
|
sortablejs = require_locale.__toESM(sortablejs);
|
|
16
|
-
//#region src/packages/controls/MyButton/MyButton.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var MyButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
18
|
-
__name: "MyButton",
|
|
19
|
-
props: { type: {
|
|
20
|
-
type: String,
|
|
21
|
-
required: false
|
|
22
|
-
} },
|
|
23
|
-
setup(__props) {
|
|
24
|
-
const count = (0, vue.ref)(0);
|
|
25
|
-
return (_ctx, _cache) => {
|
|
26
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("button", {
|
|
27
|
-
class: "my-button",
|
|
28
|
-
onClick: _cache[0] || (_cache[0] = ($event) => count.value++)
|
|
29
|
-
}, [
|
|
30
|
-
_cache[1] || (_cache[1] = (0, vue.createTextVNode)(" my button", -1)),
|
|
31
|
-
_cache[2] || (_cache[2] = (0, vue.createElementVNode)("br", null, null, -1)),
|
|
32
|
-
(0, vue.createTextVNode)(" type: " + (0, vue.toDisplayString)(__props.type), 1),
|
|
33
|
-
_cache[3] || (_cache[3] = (0, vue.createElementVNode)("br", null, null, -1)),
|
|
34
|
-
(0, vue.createTextVNode)(" count: " + (0, vue.toDisplayString)(count.value), 1)
|
|
35
|
-
]);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region \0plugin-vue:export-helper
|
|
41
|
-
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
42
|
-
const target = sfc.__vccOpts || sfc;
|
|
43
|
-
for (const [key, val] of props) target[key] = val;
|
|
44
|
-
return target;
|
|
45
|
-
};
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/packages/controls/MyButton/MyButton.vue
|
|
48
|
-
var MyButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(MyButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8d6f1d45"]]);
|
|
49
|
-
//#endregion
|
|
50
16
|
//#region src/packages/controls/affix/affix.vue?vue&type=script&setup=true&lang.ts
|
|
51
|
-
const _hoisted_1$
|
|
52
|
-
const _hoisted_2$
|
|
17
|
+
const _hoisted_1$28 = ["innerHTML"];
|
|
18
|
+
const _hoisted_2$27 = { key: 2 };
|
|
53
19
|
//#endregion
|
|
54
20
|
//#region src/packages/controls/affix/affix.vue
|
|
55
21
|
var affix_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -85,7 +51,7 @@ var affix_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
85
51
|
fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_utils.isComponent)(__props.control.default) && (0, vue.unref)(require_utils.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && (0, vue.unref)(require_utils.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
86
52
|
key: 1,
|
|
87
53
|
innerHTML: __props.control.default
|
|
88
|
-
}, null, 8, _hoisted_1$
|
|
54
|
+
}, null, 8, _hoisted_1$28)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$27, (0, vue.toDisplayString)(__props.control.default), 1))]),
|
|
89
55
|
key: "0"
|
|
90
56
|
} : void 0]), 1040);
|
|
91
57
|
};
|
|
@@ -94,10 +60,131 @@ var affix_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
94
60
|
//#endregion
|
|
95
61
|
//#region src/packages/controls/affix/affix.ts
|
|
96
62
|
var affix_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
63
|
+
Template: () => Template$37,
|
|
64
|
+
init: () => init$40
|
|
65
|
+
});
|
|
66
|
+
const Template$37 = require_utils.withInstall(affix_default);
|
|
67
|
+
function init$40(moduleName, name, options = {}) {
|
|
68
|
+
return {
|
|
69
|
+
moduleName,
|
|
70
|
+
name,
|
|
71
|
+
...options
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/packages/controls/alert/alert.vue?vue&type=script&setup=true&lang.ts
|
|
76
|
+
const _hoisted_1$27 = ["innerHTML"];
|
|
77
|
+
const _hoisted_2$26 = { key: 2 };
|
|
78
|
+
const _hoisted_3$21 = ["innerHTML"];
|
|
79
|
+
const _hoisted_4$16 = { key: 2 };
|
|
80
|
+
const _hoisted_5$13 = ["innerHTML"];
|
|
81
|
+
const _hoisted_6$13 = { key: 2 };
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/packages/controls/alert/alert.vue
|
|
84
|
+
var alert_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
85
|
+
__name: "alert",
|
|
86
|
+
props: { control: {
|
|
87
|
+
type: Object,
|
|
88
|
+
required: true
|
|
89
|
+
} },
|
|
90
|
+
setup(__props) {
|
|
91
|
+
const props = __props;
|
|
92
|
+
/**
|
|
93
|
+
* 从 control 对象中提取并返回排除 default、title 和 icon 之外的其他属性
|
|
94
|
+
* @returns 剩余的属性对象
|
|
95
|
+
* */
|
|
96
|
+
const AlertProps = (0, vue.computed)(() => {
|
|
97
|
+
const { default: _default, title, icon, ...rest } = props.control;
|
|
98
|
+
return rest;
|
|
99
|
+
});
|
|
100
|
+
return (_ctx, _cache) => {
|
|
101
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(element_plus.ElAlert), (0, vue.mergeProps)(AlertProps.value, { onClose: _cache[0] || (_cache[0] = (event) => __props.control.close?.(event)) }), (0, vue.createSlots)({
|
|
102
|
+
default: (0, vue.withCtx)(() => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.control?.name) + " ", 1)]),
|
|
103
|
+
_: 2
|
|
104
|
+
}, [
|
|
105
|
+
__props.control?.default ? {
|
|
106
|
+
name: "default",
|
|
107
|
+
fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_utils.isComponent)(__props.control.default) && !(0, vue.unref)(require_utils.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && (0, vue.unref)(require_utils.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
108
|
+
key: 1,
|
|
109
|
+
innerHTML: __props.control.default
|
|
110
|
+
}, null, 8, _hoisted_1$27)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_2$26, (0, vue.toDisplayString)(__props.control.default), 1))]),
|
|
111
|
+
key: "0"
|
|
112
|
+
} : void 0,
|
|
113
|
+
__props.control?.title ? {
|
|
114
|
+
name: "title",
|
|
115
|
+
fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_utils.isComponent)(__props.control.title) && !(0, vue.unref)(require_utils.isHTML)(__props.control.title) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.control.title), { key: 0 })) : typeof __props.control.title === "string" && (0, vue.unref)(require_utils.isHTML)(__props.control.title) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
116
|
+
key: 1,
|
|
117
|
+
innerHTML: __props.control.title
|
|
118
|
+
}, null, 8, _hoisted_3$21)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_4$16, (0, vue.toDisplayString)(__props.control.title), 1))]),
|
|
119
|
+
key: "1"
|
|
120
|
+
} : void 0,
|
|
121
|
+
__props.control?.icon ? {
|
|
122
|
+
name: "icon",
|
|
123
|
+
fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_utils.isComponent)(__props.control.icon) && !(0, vue.unref)(require_utils.isHTML)(__props.control.icon) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.control.icon), { key: 0 })) : typeof __props.control.icon === "string" && (0, vue.unref)(require_utils.isHTML)(__props.control.icon) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
124
|
+
key: 1,
|
|
125
|
+
innerHTML: __props.control.icon
|
|
126
|
+
}, null, 8, _hoisted_5$13)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_6$13, (0, vue.toDisplayString)(__props.control.icon), 1))]),
|
|
127
|
+
key: "2"
|
|
128
|
+
} : void 0
|
|
129
|
+
]), 1040);
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/packages/controls/alert/alert.ts
|
|
135
|
+
var alert_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
136
|
+
Template: () => Template$36,
|
|
137
|
+
init: () => init$39
|
|
138
|
+
});
|
|
139
|
+
const Template$36 = require_utils.withInstall(alert_default);
|
|
140
|
+
function init$39(moduleName, name, options = {}) {
|
|
141
|
+
return {
|
|
142
|
+
moduleName,
|
|
143
|
+
name,
|
|
144
|
+
...options
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/packages/controls/avatar/avatar.vue?vue&type=script&setup=true&lang.ts
|
|
149
|
+
const _hoisted_1$26 = { key: 0 };
|
|
150
|
+
const _hoisted_2$25 = ["innerHTML"];
|
|
151
|
+
const _hoisted_3$20 = { key: 2 };
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/packages/controls/avatar/avatar.vue
|
|
154
|
+
var avatar_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
155
|
+
__name: "avatar",
|
|
156
|
+
props: { control: {
|
|
157
|
+
type: Object,
|
|
158
|
+
required: true
|
|
159
|
+
} },
|
|
160
|
+
setup(__props) {
|
|
161
|
+
const props = __props;
|
|
162
|
+
const avatarProps = (0, vue.computed)(() => {
|
|
163
|
+
const { default: _default, ...rest } = props.control;
|
|
164
|
+
return rest;
|
|
165
|
+
});
|
|
166
|
+
return (_ctx, _cache) => {
|
|
167
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(element_plus.ElAvatar), (0, vue.mergeProps)(avatarProps.value, { onError: _cache[0] || (_cache[0] = (event) => __props.control.error?.(event)) }), (0, vue.createSlots)({
|
|
168
|
+
default: (0, vue.withCtx)(() => [!__props.control.default ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_1$26, (0, vue.toDisplayString)(__props.control.name), 1)) : (0, vue.createCommentVNode)("v-if", true)]),
|
|
169
|
+
_: 2
|
|
170
|
+
}, [__props.control.default ? {
|
|
171
|
+
name: "default",
|
|
172
|
+
fn: (0, vue.withCtx)(() => [(0, vue.unref)(require_utils.isComponent)(__props.control.default) && !(0, vue.unref)(require_utils.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && (0, vue.unref)(require_utils.isHTML)(__props.control.default) ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
173
|
+
key: 1,
|
|
174
|
+
innerHTML: __props.control.default
|
|
175
|
+
}, null, 8, _hoisted_2$25)) : ((0, vue.openBlock)(), (0, vue.createElementBlock)("span", _hoisted_3$20, (0, vue.toDisplayString)(__props.control.default), 1))]),
|
|
176
|
+
key: "0"
|
|
177
|
+
} : void 0]), 1040);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/packages/controls/avatar/avatar.ts
|
|
183
|
+
var avatar_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
97
184
|
Template: () => Template$35,
|
|
98
185
|
init: () => init$38
|
|
99
186
|
});
|
|
100
|
-
const Template$35 = require_utils.withInstall(
|
|
187
|
+
const Template$35 = require_utils.withInstall(avatar_default);
|
|
101
188
|
function init$38(moduleName, name, options = {}) {
|
|
102
189
|
return {
|
|
103
190
|
moduleName,
|
|
@@ -225,9 +312,7 @@ const _hoisted_3$18 = ["innerHTML"];
|
|
|
225
312
|
const _hoisted_4$14 = { key: 2 };
|
|
226
313
|
const _hoisted_5$11 = ["innerHTML"];
|
|
227
314
|
const _hoisted_6$11 = { key: 2 };
|
|
228
|
-
|
|
229
|
-
//#region src/packages/controls/button/button.vue
|
|
230
|
-
var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ (0, vue.defineComponent)({
|
|
315
|
+
var button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
231
316
|
__name: "button",
|
|
232
317
|
props: { control: {
|
|
233
318
|
type: Object,
|
|
@@ -319,7 +404,17 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
319
404
|
]), 1040, ["class"]);
|
|
320
405
|
};
|
|
321
406
|
}
|
|
322
|
-
})
|
|
407
|
+
});
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region \0plugin-vue:export-helper
|
|
410
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
411
|
+
const target = sfc.__vccOpts || sfc;
|
|
412
|
+
for (const [key, val] of props) target[key] = val;
|
|
413
|
+
return target;
|
|
414
|
+
};
|
|
415
|
+
//#endregion
|
|
416
|
+
//#region src/packages/controls/button/button.vue
|
|
417
|
+
var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(button_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-2741bf9a"]]);
|
|
323
418
|
//#endregion
|
|
324
419
|
//#region src/packages/controls/button/button.ts
|
|
325
420
|
var button_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
@@ -3616,6 +3711,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3616
3711
|
}),
|
|
3617
3712
|
emits: ["update:value", "update:dialogShow"],
|
|
3618
3713
|
setup(__props) {
|
|
3714
|
+
const config = (0, vue.inject)("frameworkConfig");
|
|
3619
3715
|
const props = __props;
|
|
3620
3716
|
const fieldValue = (0, vue.useModel)(__props, "value");
|
|
3621
3717
|
const dialogShow = (0, vue.useModel)(__props, "dialogShow");
|
|
@@ -3730,9 +3826,9 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3730
3826
|
const debugObj = {};
|
|
3731
3827
|
for (const [key, value] of formData.entries()) debugObj[key] = value;
|
|
3732
3828
|
console.log("Upload data:", debugObj);
|
|
3733
|
-
console.log("Upload API:", `${
|
|
3829
|
+
console.log("Upload API:", `${config?.apiBaseUrl}?p=files&a=uploadFile`);
|
|
3734
3830
|
}
|
|
3735
|
-
const response = await axios.default.post(`${
|
|
3831
|
+
const response = await axios.default.post(`${config?.apiBaseUrl}?p=files&a=uploadFile`, formData, {
|
|
3736
3832
|
headers: { "Content-Type": "multipart/form-data" },
|
|
3737
3833
|
onUploadProgress: (progressEvent) => {
|
|
3738
3834
|
if (progressEvent.total) {
|
|
@@ -3763,7 +3859,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3763
3859
|
onError({
|
|
3764
3860
|
status: response.status,
|
|
3765
3861
|
method: "POST",
|
|
3766
|
-
url: `${
|
|
3862
|
+
url: `${config?.apiBaseUrl}?p=files&a=uploadFile`,
|
|
3767
3863
|
message: "Upload failed"
|
|
3768
3864
|
});
|
|
3769
3865
|
}
|
|
@@ -3779,7 +3875,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3779
3875
|
onError({
|
|
3780
3876
|
status: 0,
|
|
3781
3877
|
method: "POST",
|
|
3782
|
-
url: `${
|
|
3878
|
+
url: `${config?.apiBaseUrl}?p=files&a=uploadFile`,
|
|
3783
3879
|
message: error instanceof Error ? error.message : "Upload failed"
|
|
3784
3880
|
});
|
|
3785
3881
|
}
|
|
@@ -9483,9 +9579,10 @@ function createMergeSelectComponent(name, optionFrom, optionValues, options, for
|
|
|
9483
9579
|
//#endregion
|
|
9484
9580
|
//#region src/packages/controls/index.ts
|
|
9485
9581
|
var controls_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
9486
|
-
MyButton: () => MyButton_default,
|
|
9487
9582
|
RwAffix: () => affix_exports,
|
|
9583
|
+
RwAlert: () => alert_exports,
|
|
9488
9584
|
RwAutocomplete: () => autocomplete_exports,
|
|
9585
|
+
RwAvatar: () => avatar_exports,
|
|
9489
9586
|
RwButton: () => button_exports,
|
|
9490
9587
|
RwButtonGroup: () => buttonGroup_exports,
|
|
9491
9588
|
RwDialog: () => dialog_exports,
|
|
@@ -9525,12 +9622,6 @@ var controls_exports = /* @__PURE__ */ require_locale.__exportAll({
|
|
|
9525
9622
|
tableStruct: () => tableStruct_exports
|
|
9526
9623
|
});
|
|
9527
9624
|
//#endregion
|
|
9528
|
-
Object.defineProperty(exports, "MyButton_default", {
|
|
9529
|
-
enumerable: true,
|
|
9530
|
-
get: function() {
|
|
9531
|
-
return MyButton_default;
|
|
9532
|
-
}
|
|
9533
|
-
});
|
|
9534
9625
|
Object.defineProperty(exports, "RwForm", {
|
|
9535
9626
|
enumerable: true,
|
|
9536
9627
|
get: function() {
|
|
@@ -9555,12 +9646,24 @@ Object.defineProperty(exports, "affix_exports", {
|
|
|
9555
9646
|
return affix_exports;
|
|
9556
9647
|
}
|
|
9557
9648
|
});
|
|
9649
|
+
Object.defineProperty(exports, "alert_exports", {
|
|
9650
|
+
enumerable: true,
|
|
9651
|
+
get: function() {
|
|
9652
|
+
return alert_exports;
|
|
9653
|
+
}
|
|
9654
|
+
});
|
|
9558
9655
|
Object.defineProperty(exports, "autocomplete_exports", {
|
|
9559
9656
|
enumerable: true,
|
|
9560
9657
|
get: function() {
|
|
9561
9658
|
return autocomplete_exports;
|
|
9562
9659
|
}
|
|
9563
9660
|
});
|
|
9661
|
+
Object.defineProperty(exports, "avatar_exports", {
|
|
9662
|
+
enumerable: true,
|
|
9663
|
+
get: function() {
|
|
9664
|
+
return avatar_exports;
|
|
9665
|
+
}
|
|
9666
|
+
});
|
|
9564
9667
|
Object.defineProperty(exports, "buttonGroup_exports", {
|
|
9565
9668
|
enumerable: true,
|
|
9566
9669
|
get: function() {
|
|
@@ -1,53 +1,19 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
|
-
import { Et as isHTML, Lt as renderTemplate, P as withInstall, a as bd09ToGcj02, h as http, n as PathUtils, o as gcj02ToBd09, qt as loadScript, r as createFormData, s as exportExcel, t as FormDataKey, tt as assignmentData, u as useAppConfigStore, ut as transDataToString, xt as isComponent } from "./utils-
|
|
3
|
-
import { a as localeOptions, i as locale, t as i18n, u as t$3 } from "./locale-
|
|
2
|
+
import { Et as isHTML, Lt as renderTemplate, P as withInstall, a as bd09ToGcj02, h as http, n as PathUtils, o as gcj02ToBd09, qt as loadScript, r as createFormData, s as exportExcel, t as FormDataKey, tt as assignmentData, u as useAppConfigStore, ut as transDataToString, xt as isComponent } from "./utils-Cx01ubSA.js";
|
|
3
|
+
import { a as localeOptions, i as locale, t as i18n, u as t$3 } from "./locale-BscyDzS3.js";
|
|
4
4
|
import { useColumnsSettingStore, useLocalSettingStore } from "./stores.js";
|
|
5
5
|
import { useFormValue } from "./hooks.js";
|
|
6
|
-
import { ElAffix, ElAutocomplete, ElButton, ElButtonGroup, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElConfigProvider, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElImage, ElInput, ElInputNumber, ElInputTag, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElPagination, ElPopconfirm, ElPopover, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElSegmented, ElSelect, ElSlider, ElSwitch, ElTabPane, ElTableColumn, ElTabs, ElTag, ElText, ElTooltip, ElTree, ElTreeSelect, ElUpload, ElWatermark } from "element-plus";
|
|
6
|
+
import { ElAffix, ElAlert, ElAutocomplete, ElAvatar, ElButton, ElButtonGroup, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElConfigProvider, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElForm, ElFormItem, ElIcon, ElImage, ElInput, ElInputNumber, ElInputTag, ElMessage, ElMessageBox, ElNotification, ElOption, ElOptionGroup, ElPagination, ElPopconfirm, ElPopover, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRow, ElSegmented, ElSelect, ElSlider, ElSwitch, ElTabPane, ElTableColumn, ElTabs, ElTag, ElText, ElTooltip, ElTree, ElTreeSelect, ElUpload, ElWatermark } from "element-plus";
|
|
7
7
|
import { storeToRefs } from "pinia";
|
|
8
|
-
import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, isReactive, isRef, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, toDisplayString, toRaw, unref, useCssVars, useModel, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
9
8
|
import { debounce } from "lodash-es";
|
|
9
|
+
import { Fragment, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, isReactive, isRef, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onUnmounted, onUpdated, openBlock, provide, reactive, readonly, ref, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, toDisplayString, toRaw, unref, useCssVars, useModel, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
10
10
|
import axios from "axios";
|
|
11
11
|
import Cookies from "js-cookie";
|
|
12
12
|
import { ArrowDown, ArrowUp, Bottom, Check, Close, CloseBold, Delete, Document, Edit, Iphone, Loading, Memo, Picture, Plus, Refresh, RefreshLeft, Search, Select, UploadFilled, VideoPlay, Warning, ZoomIn } from "@element-plus/icons-vue";
|
|
13
13
|
import Sortable from "sortablejs";
|
|
14
|
-
//#region src/packages/controls/MyButton/MyButton.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var MyButton_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
16
|
-
__name: "MyButton",
|
|
17
|
-
props: { type: {
|
|
18
|
-
type: String,
|
|
19
|
-
required: false
|
|
20
|
-
} },
|
|
21
|
-
setup(__props) {
|
|
22
|
-
const count = ref(0);
|
|
23
|
-
return (_ctx, _cache) => {
|
|
24
|
-
return openBlock(), createElementBlock("button", {
|
|
25
|
-
class: "my-button",
|
|
26
|
-
onClick: _cache[0] || (_cache[0] = ($event) => count.value++)
|
|
27
|
-
}, [
|
|
28
|
-
_cache[1] || (_cache[1] = createTextVNode(" my button", -1)),
|
|
29
|
-
_cache[2] || (_cache[2] = createElementVNode("br", null, null, -1)),
|
|
30
|
-
createTextVNode(" type: " + toDisplayString(__props.type), 1),
|
|
31
|
-
_cache[3] || (_cache[3] = createElementVNode("br", null, null, -1)),
|
|
32
|
-
createTextVNode(" count: " + toDisplayString(count.value), 1)
|
|
33
|
-
]);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region \0plugin-vue:export-helper
|
|
39
|
-
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
40
|
-
const target = sfc.__vccOpts || sfc;
|
|
41
|
-
for (const [key, val] of props) target[key] = val;
|
|
42
|
-
return target;
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region src/packages/controls/MyButton/MyButton.vue
|
|
46
|
-
var MyButton_default = /* @__PURE__ */ _plugin_vue_export_helper_default(MyButton_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8d6f1d45"]]);
|
|
47
|
-
//#endregion
|
|
48
14
|
//#region src/packages/controls/affix/affix.vue?vue&type=script&setup=true&lang.ts
|
|
49
|
-
const _hoisted_1$
|
|
50
|
-
const _hoisted_2$
|
|
15
|
+
const _hoisted_1$28 = ["innerHTML"];
|
|
16
|
+
const _hoisted_2$27 = { key: 2 };
|
|
51
17
|
//#endregion
|
|
52
18
|
//#region src/packages/controls/affix/affix.vue
|
|
53
19
|
var affix_default = /* @__PURE__ */ defineComponent({
|
|
@@ -83,7 +49,7 @@ var affix_default = /* @__PURE__ */ defineComponent({
|
|
|
83
49
|
fn: withCtx(() => [unref(isComponent)(__props.control.default) && unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
84
50
|
key: 1,
|
|
85
51
|
innerHTML: __props.control.default
|
|
86
|
-
}, null, 8, _hoisted_1$
|
|
52
|
+
}, null, 8, _hoisted_1$28)) : (openBlock(), createElementBlock("span", _hoisted_2$27, toDisplayString(__props.control.default), 1))]),
|
|
87
53
|
key: "0"
|
|
88
54
|
} : void 0]), 1040);
|
|
89
55
|
};
|
|
@@ -92,10 +58,131 @@ var affix_default = /* @__PURE__ */ defineComponent({
|
|
|
92
58
|
//#endregion
|
|
93
59
|
//#region src/packages/controls/affix/affix.ts
|
|
94
60
|
var affix_exports = /* @__PURE__ */ __exportAll({
|
|
61
|
+
Template: () => Template$37,
|
|
62
|
+
init: () => init$40
|
|
63
|
+
});
|
|
64
|
+
const Template$37 = withInstall(affix_default);
|
|
65
|
+
function init$40(moduleName, name, options = {}) {
|
|
66
|
+
return {
|
|
67
|
+
moduleName,
|
|
68
|
+
name,
|
|
69
|
+
...options
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/packages/controls/alert/alert.vue?vue&type=script&setup=true&lang.ts
|
|
74
|
+
const _hoisted_1$27 = ["innerHTML"];
|
|
75
|
+
const _hoisted_2$26 = { key: 2 };
|
|
76
|
+
const _hoisted_3$21 = ["innerHTML"];
|
|
77
|
+
const _hoisted_4$16 = { key: 2 };
|
|
78
|
+
const _hoisted_5$13 = ["innerHTML"];
|
|
79
|
+
const _hoisted_6$13 = { key: 2 };
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/packages/controls/alert/alert.vue
|
|
82
|
+
var alert_default = /* @__PURE__ */ defineComponent({
|
|
83
|
+
__name: "alert",
|
|
84
|
+
props: { control: {
|
|
85
|
+
type: Object,
|
|
86
|
+
required: true
|
|
87
|
+
} },
|
|
88
|
+
setup(__props) {
|
|
89
|
+
const props = __props;
|
|
90
|
+
/**
|
|
91
|
+
* 从 control 对象中提取并返回排除 default、title 和 icon 之外的其他属性
|
|
92
|
+
* @returns 剩余的属性对象
|
|
93
|
+
* */
|
|
94
|
+
const AlertProps = computed(() => {
|
|
95
|
+
const { default: _default, title, icon, ...rest } = props.control;
|
|
96
|
+
return rest;
|
|
97
|
+
});
|
|
98
|
+
return (_ctx, _cache) => {
|
|
99
|
+
return openBlock(), createBlock(unref(ElAlert), mergeProps(AlertProps.value, { onClose: _cache[0] || (_cache[0] = (event) => __props.control.close?.(event)) }), createSlots({
|
|
100
|
+
default: withCtx(() => [createTextVNode(toDisplayString(__props.control?.name) + " ", 1)]),
|
|
101
|
+
_: 2
|
|
102
|
+
}, [
|
|
103
|
+
__props.control?.default ? {
|
|
104
|
+
name: "default",
|
|
105
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
106
|
+
key: 1,
|
|
107
|
+
innerHTML: __props.control.default
|
|
108
|
+
}, null, 8, _hoisted_1$27)) : (openBlock(), createElementBlock("span", _hoisted_2$26, toDisplayString(__props.control.default), 1))]),
|
|
109
|
+
key: "0"
|
|
110
|
+
} : void 0,
|
|
111
|
+
__props.control?.title ? {
|
|
112
|
+
name: "title",
|
|
113
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.title) && !unref(isHTML)(__props.control.title) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.title), { key: 0 })) : typeof __props.control.title === "string" && unref(isHTML)(__props.control.title) ? (openBlock(), createElementBlock("div", {
|
|
114
|
+
key: 1,
|
|
115
|
+
innerHTML: __props.control.title
|
|
116
|
+
}, null, 8, _hoisted_3$21)) : (openBlock(), createElementBlock("span", _hoisted_4$16, toDisplayString(__props.control.title), 1))]),
|
|
117
|
+
key: "1"
|
|
118
|
+
} : void 0,
|
|
119
|
+
__props.control?.icon ? {
|
|
120
|
+
name: "icon",
|
|
121
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.icon) && !unref(isHTML)(__props.control.icon) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.icon), { key: 0 })) : typeof __props.control.icon === "string" && unref(isHTML)(__props.control.icon) ? (openBlock(), createElementBlock("div", {
|
|
122
|
+
key: 1,
|
|
123
|
+
innerHTML: __props.control.icon
|
|
124
|
+
}, null, 8, _hoisted_5$13)) : (openBlock(), createElementBlock("span", _hoisted_6$13, toDisplayString(__props.control.icon), 1))]),
|
|
125
|
+
key: "2"
|
|
126
|
+
} : void 0
|
|
127
|
+
]), 1040);
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/packages/controls/alert/alert.ts
|
|
133
|
+
var alert_exports = /* @__PURE__ */ __exportAll({
|
|
134
|
+
Template: () => Template$36,
|
|
135
|
+
init: () => init$39
|
|
136
|
+
});
|
|
137
|
+
const Template$36 = withInstall(alert_default);
|
|
138
|
+
function init$39(moduleName, name, options = {}) {
|
|
139
|
+
return {
|
|
140
|
+
moduleName,
|
|
141
|
+
name,
|
|
142
|
+
...options
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/packages/controls/avatar/avatar.vue?vue&type=script&setup=true&lang.ts
|
|
147
|
+
const _hoisted_1$26 = { key: 0 };
|
|
148
|
+
const _hoisted_2$25 = ["innerHTML"];
|
|
149
|
+
const _hoisted_3$20 = { key: 2 };
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region src/packages/controls/avatar/avatar.vue
|
|
152
|
+
var avatar_default = /* @__PURE__ */ defineComponent({
|
|
153
|
+
__name: "avatar",
|
|
154
|
+
props: { control: {
|
|
155
|
+
type: Object,
|
|
156
|
+
required: true
|
|
157
|
+
} },
|
|
158
|
+
setup(__props) {
|
|
159
|
+
const props = __props;
|
|
160
|
+
const avatarProps = computed(() => {
|
|
161
|
+
const { default: _default, ...rest } = props.control;
|
|
162
|
+
return rest;
|
|
163
|
+
});
|
|
164
|
+
return (_ctx, _cache) => {
|
|
165
|
+
return openBlock(), createBlock(unref(ElAvatar), mergeProps(avatarProps.value, { onError: _cache[0] || (_cache[0] = (event) => __props.control.error?.(event)) }), createSlots({
|
|
166
|
+
default: withCtx(() => [!__props.control.default ? (openBlock(), createElementBlock("span", _hoisted_1$26, toDisplayString(__props.control.name), 1)) : createCommentVNode("v-if", true)]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, [__props.control.default ? {
|
|
169
|
+
name: "default",
|
|
170
|
+
fn: withCtx(() => [unref(isComponent)(__props.control.default) && !unref(isHTML)(__props.control.default) ? (openBlock(), createBlock(resolveDynamicComponent(__props.control.default), { key: 0 })) : typeof __props.control.default === "string" && unref(isHTML)(__props.control.default) ? (openBlock(), createElementBlock("div", {
|
|
171
|
+
key: 1,
|
|
172
|
+
innerHTML: __props.control.default
|
|
173
|
+
}, null, 8, _hoisted_2$25)) : (openBlock(), createElementBlock("span", _hoisted_3$20, toDisplayString(__props.control.default), 1))]),
|
|
174
|
+
key: "0"
|
|
175
|
+
} : void 0]), 1040);
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/packages/controls/avatar/avatar.ts
|
|
181
|
+
var avatar_exports = /* @__PURE__ */ __exportAll({
|
|
95
182
|
Template: () => Template$35,
|
|
96
183
|
init: () => init$38
|
|
97
184
|
});
|
|
98
|
-
const Template$35 = withInstall(
|
|
185
|
+
const Template$35 = withInstall(avatar_default);
|
|
99
186
|
function init$38(moduleName, name, options = {}) {
|
|
100
187
|
return {
|
|
101
188
|
moduleName,
|
|
@@ -223,9 +310,7 @@ const _hoisted_3$18 = ["innerHTML"];
|
|
|
223
310
|
const _hoisted_4$14 = { key: 2 };
|
|
224
311
|
const _hoisted_5$11 = ["innerHTML"];
|
|
225
312
|
const _hoisted_6$11 = { key: 2 };
|
|
226
|
-
|
|
227
|
-
//#region src/packages/controls/button/button.vue
|
|
228
|
-
var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
313
|
+
var button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
229
314
|
__name: "button",
|
|
230
315
|
props: { control: {
|
|
231
316
|
type: Object,
|
|
@@ -317,7 +402,17 @@ var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
317
402
|
]), 1040, ["class"]);
|
|
318
403
|
};
|
|
319
404
|
}
|
|
320
|
-
})
|
|
405
|
+
});
|
|
406
|
+
//#endregion
|
|
407
|
+
//#region \0plugin-vue:export-helper
|
|
408
|
+
var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
409
|
+
const target = sfc.__vccOpts || sfc;
|
|
410
|
+
for (const [key, val] of props) target[key] = val;
|
|
411
|
+
return target;
|
|
412
|
+
};
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region src/packages/controls/button/button.vue
|
|
415
|
+
var button_default = /* @__PURE__ */ _plugin_vue_export_helper_default(button_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-2741bf9a"]]);
|
|
321
416
|
//#endregion
|
|
322
417
|
//#region src/packages/controls/button/button.ts
|
|
323
418
|
var button_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -3614,6 +3709,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3614
3709
|
}),
|
|
3615
3710
|
emits: ["update:value", "update:dialogShow"],
|
|
3616
3711
|
setup(__props) {
|
|
3712
|
+
const config = inject("frameworkConfig");
|
|
3617
3713
|
const props = __props;
|
|
3618
3714
|
const fieldValue = useModel(__props, "value");
|
|
3619
3715
|
const dialogShow = useModel(__props, "dialogShow");
|
|
@@ -3728,9 +3824,9 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3728
3824
|
const debugObj = {};
|
|
3729
3825
|
for (const [key, value] of formData.entries()) debugObj[key] = value;
|
|
3730
3826
|
console.log("Upload data:", debugObj);
|
|
3731
|
-
console.log("Upload API:", `${
|
|
3827
|
+
console.log("Upload API:", `${config?.apiBaseUrl}?p=files&a=uploadFile`);
|
|
3732
3828
|
}
|
|
3733
|
-
const response = await axios.post(`${
|
|
3829
|
+
const response = await axios.post(`${config?.apiBaseUrl}?p=files&a=uploadFile`, formData, {
|
|
3734
3830
|
headers: { "Content-Type": "multipart/form-data" },
|
|
3735
3831
|
onUploadProgress: (progressEvent) => {
|
|
3736
3832
|
if (progressEvent.total) {
|
|
@@ -3761,7 +3857,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3761
3857
|
onError({
|
|
3762
3858
|
status: response.status,
|
|
3763
3859
|
method: "POST",
|
|
3764
|
-
url: `${
|
|
3860
|
+
url: `${config?.apiBaseUrl}?p=files&a=uploadFile`,
|
|
3765
3861
|
message: "Upload failed"
|
|
3766
3862
|
});
|
|
3767
3863
|
}
|
|
@@ -3777,7 +3873,7 @@ var dialog_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
3777
3873
|
onError({
|
|
3778
3874
|
status: 0,
|
|
3779
3875
|
method: "POST",
|
|
3780
|
-
url: `${
|
|
3876
|
+
url: `${config?.apiBaseUrl}?p=files&a=uploadFile`,
|
|
3781
3877
|
message: error instanceof Error ? error.message : "Upload failed"
|
|
3782
3878
|
});
|
|
3783
3879
|
}
|
|
@@ -9475,9 +9571,10 @@ function createMergeSelectComponent(name, optionFrom, optionValues, options, for
|
|
|
9475
9571
|
//#endregion
|
|
9476
9572
|
//#region src/packages/controls/index.ts
|
|
9477
9573
|
var controls_exports = /* @__PURE__ */ __exportAll({
|
|
9478
|
-
MyButton: () => MyButton_default,
|
|
9479
9574
|
RwAffix: () => affix_exports,
|
|
9575
|
+
RwAlert: () => alert_exports,
|
|
9480
9576
|
RwAutocomplete: () => autocomplete_exports,
|
|
9577
|
+
RwAvatar: () => avatar_exports,
|
|
9481
9578
|
RwButton: () => button_exports,
|
|
9482
9579
|
RwButtonGroup: () => buttonGroup_exports,
|
|
9483
9580
|
RwDialog: () => dialog_exports,
|
|
@@ -9517,4 +9614,4 @@ var controls_exports = /* @__PURE__ */ __exportAll({
|
|
|
9517
9614
|
tableStruct: () => tableStruct_exports
|
|
9518
9615
|
});
|
|
9519
9616
|
//#endregion
|
|
9520
|
-
export { mergeInput_exports as A, popconfirm_exports as B, upload_exports as C, mergeSelect_exports as D, slider_exports as E, input_exports as F,
|
|
9617
|
+
export { mergeInput_exports as A, popconfirm_exports as B, upload_exports as C, mergeSelect_exports as D, slider_exports as E, input_exports as F, alert_exports as G, _plugin_vue_export_helper_default as H, divider_exports as I, affix_exports as K, dialog_exports as L, inputNumber_exports as M, inputTag_exports as N, image_exports as O, select_exports as P, buttonGroup_exports as R, tree_exports as S, map_exports as T, autocomplete_exports as U, button_exports as V, avatar_exports as W, segmented_exports as _, pageTable_exports as a, tag_exports as b, init$5 as c, pageBase_exports as d, RwForm as f, RwFormItems as g, tabPane_exports as h, mTreeSTable_exports as i, radio_exports as j, switch_exports as k, pageStruct_exports as l, tabs_exports as m, search_exports as n, init$4 as o, init$9 as p, progress_exports as r, pageForm_exports as s, controls_exports as t, tableStruct_exports as u, table_exports as v, pagination_exports as w, text_exports as x, tagComp_exports as y, dropdown_exports as z };
|