element-less 0.0.10 → 0.0.11
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/config/index.d.ts +69 -0
- package/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/elementui/checkbox/index.d.ts +1 -1
- package/elementui/checkbox/src/checkbox.vue.d.ts +1 -1
- package/elementui/checkbox-button/index.d.ts +3 -3
- package/elementui/checkbox-button/src/CheckboxButton.vue.d.ts +1 -1
- package/elementui/radio/index.d.ts +1 -1
- package/elementui/radio/src/radio.vue.d.ts +1 -1
- package/elementui/radio-button/index.d.ts +3 -3
- package/elementui/radio-button/src/radioButton.vue.d.ts +1 -1
- package/elementui/upload/index.d.ts +3 -3
- package/elementui/upload/src/upload.vue.d.ts +3 -3
- package/{index-Cig-voSg.js → index-BPJ2MJz9.js} +163 -115
- package/index-j-lC_R_c.cjs +1 -0
- package/index.d.ts +2 -1
- package/{innerItem-CG9tFZWx.cjs → innerItem-7Bq-Z4KW.cjs} +1 -1
- package/{innerItem-vzH3yn3m.js → innerItem-ZAXmJCe9.js} +1 -1
- package/{mode-csharp-CJYppySx.js → mode-csharp-BZlGXkBn.js} +1 -1
- package/{mode-csharp-0fcUEF6U.cjs → mode-csharp-CTRIUYoz.cjs} +1 -1
- package/{mode-css-CT2qzIxT.js → mode-css-BYh5hBCw.js} +1 -1
- package/{mode-css-QcqXaNmq.cjs → mode-css-D2kK6Yr6.cjs} +1 -1
- package/{mode-javascript-DvlWhLv-.cjs → mode-javascript-CZ7N0sfz.cjs} +1 -1
- package/{mode-javascript-BiP9yoWP.js → mode-javascript-iVD-CtBw.js} +1 -1
- package/{mode-json-D4gQolS_.cjs → mode-json-BbwpZBCH.cjs} +1 -1
- package/{mode-json-W24VUbho.js → mode-json-D50dzohZ.js} +1 -1
- package/{mode-mysql-Cdzottjb.cjs → mode-mysql-5VYrOvsS.cjs} +1 -1
- package/{mode-mysql-D2Rn7oSL.js → mode-mysql-CVg2QeEJ.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/utils/axiosInstance.d.ts +4 -0
- package/utils/index.d.ts +44 -73
- package/utils/lessPrototype.d.ts +4 -4
- package/index-CFPPQMDb.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import axios from "axios";
|
|
5
|
-
import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, computed, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, createApp, openBlock, createElementBlock, createElementVNode, warn, useAttrs, useSlots, resolveComponent, renderSlot, withCtx, createBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createTextVNode, toDisplayString, renderList, resolveDynamicComponent, normalizeClass, normalizeStyle, mergeModels, useModel as useModel$1, onErrorCaptured, h, resolveDirective, withModifiers, pushScopeId, popScopeId, defineAsyncComponent, Suspense, createStaticVNode, shallowRef } from "vue";
|
|
6
4
|
import pkg from "file-saver";
|
|
7
5
|
import * as XLSX from "xlsx";
|
|
8
6
|
import { ElMessage, formItemProps as formItemProps$2, formProps as formProps$2, inputProps as inputProps$1, ElSpace, inputEmits, radioProps as radioProps$1, checkboxProps as checkboxProps$1, rowProps, useNamespace, rowContextKey, colProps, ElForm, ElButton, paginationProps, ElLoading, menuProps as menuProps$1, ElMenu, menuItemProps as menuItemProps$1, menuItemEmits, ElMenuItem, subMenuProps as subMenuProps$1, ElSubMenu, switchProps as switchProps$1, imageProps as imageProps$1, imageViewerProps as imageViewerProps$1, autocompleteProps as autocompleteProps$1, cascaderProps as cascaderProps$1, dialogProps as dialogProps$1, drawerProps as drawerProps$1, dropdownProps as dropdownProps$1, sliderProps as sliderProps$1, inputNumberProps as inputNumberProps$1, uploadProps as uploadProps$1, ElNotification, timePickerDefaultProps, datePickerProps as datePickerProps$1, tabsProps as tabsProps$1, colorPickerProps as colorPickerProps$1, ElContainer, ElMessageBox, useSizeProp as useSizeProp$1 } from "element-plus";
|
|
9
|
-
import
|
|
7
|
+
import { onUnmounted, onDeactivated, isRef, watch, onMounted, nextTick, onActivated, unref, ref, reactive, getCurrentInstance, defineComponent, computed, createVNode, onBeforeUnmount, provide, watchEffect, inject, mergeProps, Transition, withDirectives, vShow, Teleport, Fragment, createApp, openBlock, createElementBlock, createElementVNode, warn, useAttrs, useSlots, resolveComponent, renderSlot, withCtx, createBlock, normalizeProps, guardReactiveProps, createSlots, createCommentVNode, createTextVNode, toDisplayString, renderList, resolveDynamicComponent, normalizeClass, normalizeStyle, mergeModels, useModel as useModel$1, onErrorCaptured, h, resolveDirective, withModifiers, pushScopeId, popScopeId, defineAsyncComponent, Suspense, createStaticVNode, shallowRef } from "vue";
|
|
8
|
+
import axios from "axios";
|
|
9
|
+
import lodash from "lodash";
|
|
10
10
|
import draggable from "vuedraggable";
|
|
11
11
|
import Sortable from "sortablejs";
|
|
12
12
|
import { onClickOutside } from "@vueuse/core";
|
|
@@ -1644,6 +1644,82 @@ const handler = {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
1646
|
const ProxyElsMessage = new Proxy(ElsMessage, handler);
|
|
1647
|
+
const defaultConfig = {
|
|
1648
|
+
api: {
|
|
1649
|
+
code: "ResultCode",
|
|
1650
|
+
message: "ResultMessage",
|
|
1651
|
+
data: "Data",
|
|
1652
|
+
successCode: "0",
|
|
1653
|
+
eventData: { data: "EventActionData", data_key: "Name", data_value: "value" }
|
|
1654
|
+
},
|
|
1655
|
+
axios: {
|
|
1656
|
+
headers: {
|
|
1657
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
upload: {
|
|
1661
|
+
url: "UploadFileOSS",
|
|
1662
|
+
data: "UploadInfo",
|
|
1663
|
+
data_path: "ResourcePath",
|
|
1664
|
+
data_md5: "Md5Value"
|
|
1665
|
+
},
|
|
1666
|
+
uEditor: {
|
|
1667
|
+
serverUrl: "UploadFileOSS",
|
|
1668
|
+
homeUrl: "/UEditor/"
|
|
1669
|
+
},
|
|
1670
|
+
wangEditor: {
|
|
1671
|
+
serverUrl: "UploadFileOSS"
|
|
1672
|
+
},
|
|
1673
|
+
menu: {
|
|
1674
|
+
id: "MenuID",
|
|
1675
|
+
name: "MenuName",
|
|
1676
|
+
action: "ActionType",
|
|
1677
|
+
icon: "ImageUrl",
|
|
1678
|
+
buttonColor: "ButtonColor",
|
|
1679
|
+
buttonType: "ButtonType",
|
|
1680
|
+
group: "Fold",
|
|
1681
|
+
url: "TargetUrl",
|
|
1682
|
+
areaName: "AreaName",
|
|
1683
|
+
controllerName: "ControllerName",
|
|
1684
|
+
actionName: "ActionName"
|
|
1685
|
+
},
|
|
1686
|
+
table: {
|
|
1687
|
+
menu: "PowerMenu",
|
|
1688
|
+
avgDay: "DayCount",
|
|
1689
|
+
page: {
|
|
1690
|
+
data: "Data",
|
|
1691
|
+
pageSize: "PageSize",
|
|
1692
|
+
currentPage: "PageIndex",
|
|
1693
|
+
total: "RecordCountInt",
|
|
1694
|
+
pageCount: "PageCount"
|
|
1695
|
+
}
|
|
1696
|
+
}
|
|
1697
|
+
};
|
|
1698
|
+
let globalConfig = { ...defaultConfig };
|
|
1699
|
+
function setConfig(newConfig) {
|
|
1700
|
+
globalConfig = { ...globalConfig, ...newConfig };
|
|
1701
|
+
}
|
|
1702
|
+
let axiosInstance;
|
|
1703
|
+
function getAxiosConfig() {
|
|
1704
|
+
if (!globalConfig || !globalConfig.axios) {
|
|
1705
|
+
return {
|
|
1706
|
+
headers: {
|
|
1707
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1708
|
+
}
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
return globalConfig.axios;
|
|
1712
|
+
}
|
|
1713
|
+
function createAxiosInstance() {
|
|
1714
|
+
axiosInstance = axios.create(getAxiosConfig());
|
|
1715
|
+
return axiosInstance;
|
|
1716
|
+
}
|
|
1717
|
+
function getAxiosInstance() {
|
|
1718
|
+
if (!axiosInstance) {
|
|
1719
|
+
createAxiosInstance();
|
|
1720
|
+
}
|
|
1721
|
+
return axiosInstance;
|
|
1722
|
+
}
|
|
1647
1723
|
const utils = {
|
|
1648
1724
|
jsonFormatter(obj) {
|
|
1649
1725
|
if (!obj) {
|
|
@@ -1654,84 +1730,70 @@ const utils = {
|
|
|
1654
1730
|
isDef(val) {
|
|
1655
1731
|
return val !== void 0 && val !== null;
|
|
1656
1732
|
},
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1733
|
+
getAxiosConfig() {
|
|
1734
|
+
if (!globalConfig || !globalConfig.axios) {
|
|
1735
|
+
return {
|
|
1736
|
+
headers: {
|
|
1737
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
1738
|
+
}
|
|
1739
|
+
};
|
|
1661
1740
|
}
|
|
1741
|
+
return globalConfig.axios;
|
|
1742
|
+
},
|
|
1743
|
+
getApiConfig() {
|
|
1662
1744
|
return {
|
|
1663
|
-
$codeField:
|
|
1664
|
-
$messageField:
|
|
1665
|
-
$dataField:
|
|
1666
|
-
$eventData:
|
|
1667
|
-
$success:
|
|
1745
|
+
$codeField: globalConfig.api["code"],
|
|
1746
|
+
$messageField: globalConfig.api["message"],
|
|
1747
|
+
$dataField: globalConfig.api["data"],
|
|
1748
|
+
$eventData: globalConfig.api["eventData"],
|
|
1749
|
+
$success: globalConfig.api["successCode"]
|
|
1668
1750
|
};
|
|
1669
1751
|
},
|
|
1670
1752
|
getMenuConfig() {
|
|
1671
|
-
const { proxy } = getCurrentInstance();
|
|
1672
|
-
if (!proxy || !proxy.$lessConfig) {
|
|
1673
|
-
return {};
|
|
1674
|
-
}
|
|
1675
1753
|
return {
|
|
1676
|
-
$idField:
|
|
1677
|
-
$actionField:
|
|
1678
|
-
$nameField:
|
|
1679
|
-
$
|
|
1680
|
-
$areaField:
|
|
1681
|
-
$controllerField:
|
|
1682
|
-
$iconField:
|
|
1683
|
-
$urlField:
|
|
1684
|
-
$buttonColorField:
|
|
1685
|
-
$buttonTypeField:
|
|
1686
|
-
$groupField:
|
|
1687
|
-
$confirmField:
|
|
1688
|
-
$confirmPasswordField:
|
|
1754
|
+
$idField: globalConfig.menu["id"],
|
|
1755
|
+
$actionField: globalConfig.menu["action"],
|
|
1756
|
+
$nameField: globalConfig.menu["name"],
|
|
1757
|
+
$actionTypeField: globalConfig.menu["actionType"],
|
|
1758
|
+
$areaField: globalConfig.menu["areaName"],
|
|
1759
|
+
$controllerField: globalConfig.menu["controllerName"],
|
|
1760
|
+
$iconField: globalConfig.menu["icon"],
|
|
1761
|
+
$urlField: globalConfig.menu["url"],
|
|
1762
|
+
$buttonColorField: globalConfig.menu["buttonColor"],
|
|
1763
|
+
$buttonTypeField: globalConfig.menu["buttonType"],
|
|
1764
|
+
$groupField: globalConfig.menu["group"],
|
|
1765
|
+
$confirmField: globalConfig.menu["confirmField"],
|
|
1766
|
+
$confirmPasswordField: globalConfig.menu["confirmPasswordField"]
|
|
1689
1767
|
};
|
|
1690
1768
|
},
|
|
1691
1769
|
getTableConfig() {
|
|
1692
|
-
const { proxy } = getCurrentInstance();
|
|
1693
|
-
if (!proxy || !proxy.$lessConfig) {
|
|
1694
|
-
return {};
|
|
1695
|
-
}
|
|
1696
1770
|
return {
|
|
1697
|
-
$menuField:
|
|
1698
|
-
$avgDayField:
|
|
1699
|
-
$pageDataField:
|
|
1700
|
-
$pageSizeField:
|
|
1701
|
-
$currentPageField:
|
|
1702
|
-
$totalField:
|
|
1703
|
-
$pageCountField:
|
|
1771
|
+
$menuField: globalConfig.table["menu"],
|
|
1772
|
+
$avgDayField: globalConfig.table["avgDay"],
|
|
1773
|
+
$pageDataField: globalConfig.table.page["data"],
|
|
1774
|
+
$pageSizeField: globalConfig.table.page["pageSize"],
|
|
1775
|
+
$currentPageField: globalConfig.table.page["currentPage"],
|
|
1776
|
+
$totalField: globalConfig.table.page["total"],
|
|
1777
|
+
$pageCountField: globalConfig.table.page["pageCount"]
|
|
1704
1778
|
};
|
|
1705
1779
|
},
|
|
1706
1780
|
getUEditorConfig() {
|
|
1707
|
-
const { proxy } = getCurrentInstance();
|
|
1708
|
-
if (!proxy || !proxy.$lessConfig) {
|
|
1709
|
-
return {};
|
|
1710
|
-
}
|
|
1711
1781
|
return {
|
|
1712
|
-
$serverUrl:
|
|
1713
|
-
$homeUrl:
|
|
1782
|
+
$serverUrl: globalConfig.uEditor["serverUrl"],
|
|
1783
|
+
$homeUrl: globalConfig.uEditor["homeUrl"]
|
|
1714
1784
|
};
|
|
1715
1785
|
},
|
|
1716
1786
|
getWangEditorConfig() {
|
|
1717
|
-
const { proxy } = getCurrentInstance();
|
|
1718
|
-
if (!proxy || !proxy.$lessConfig) {
|
|
1719
|
-
return {};
|
|
1720
|
-
}
|
|
1721
1787
|
return {
|
|
1722
|
-
$serverUrl:
|
|
1788
|
+
$serverUrl: globalConfig.wangEditor["serverUrl"]
|
|
1723
1789
|
};
|
|
1724
1790
|
},
|
|
1725
1791
|
getUploadConfig() {
|
|
1726
|
-
const { proxy } = getCurrentInstance();
|
|
1727
|
-
if (!proxy || !proxy.$lessConfig) {
|
|
1728
|
-
return {};
|
|
1729
|
-
}
|
|
1730
1792
|
return {
|
|
1731
|
-
$uploadUrl:
|
|
1732
|
-
$dataField:
|
|
1733
|
-
$pathField:
|
|
1734
|
-
$md5Field:
|
|
1793
|
+
$uploadUrl: globalConfig.upload["url"],
|
|
1794
|
+
$dataField: globalConfig.upload["data"],
|
|
1795
|
+
$pathField: globalConfig.upload["data_path"],
|
|
1796
|
+
$md5Field: globalConfig.upload["data_md5"]
|
|
1735
1797
|
};
|
|
1736
1798
|
},
|
|
1737
1799
|
getCompareClass(val) {
|
|
@@ -2215,7 +2277,7 @@ const utils = {
|
|
|
2215
2277
|
if (!obj) {
|
|
2216
2278
|
return {};
|
|
2217
2279
|
}
|
|
2218
|
-
return
|
|
2280
|
+
return JSON.parse(JSON.stringify(obj));
|
|
2219
2281
|
},
|
|
2220
2282
|
isObject: (obj) => {
|
|
2221
2283
|
return Object.prototype.toString.call(obj).indexOf("Object") > -1 || Object.prototype.toString.call(obj).indexOf("Array") > -1;
|
|
@@ -2250,62 +2312,60 @@ const utils = {
|
|
|
2250
2312
|
});
|
|
2251
2313
|
}
|
|
2252
2314
|
},
|
|
2253
|
-
upload(url, formData
|
|
2315
|
+
upload(url, formData) {
|
|
2254
2316
|
if (!formData) {
|
|
2255
2317
|
ElMessage.warning("请选择要上传的文件");
|
|
2256
2318
|
return;
|
|
2257
2319
|
}
|
|
2320
|
+
const axiosInstance2 = getAxiosInstance();
|
|
2258
2321
|
return new Promise((resolve, reject) => {
|
|
2259
|
-
|
|
2322
|
+
axiosInstance2.post(url, formData, { headers: { "Content-Type": "multipart/form-data" } }).then((res) => {
|
|
2260
2323
|
if (res.status == 200) {
|
|
2261
2324
|
resolve(res.data);
|
|
2262
2325
|
} else {
|
|
2263
2326
|
reject(res);
|
|
2264
2327
|
}
|
|
2265
2328
|
}).catch((action) => {
|
|
2266
|
-
if (alertCatchError) {
|
|
2267
|
-
ElMessage.error({ message: "接口调用异常" });
|
|
2268
|
-
}
|
|
2269
2329
|
console.log(action);
|
|
2270
2330
|
reject(action);
|
|
2271
2331
|
});
|
|
2272
2332
|
});
|
|
2273
2333
|
},
|
|
2274
|
-
post(url, data,
|
|
2334
|
+
post(url, data, axiosInstance2) {
|
|
2275
2335
|
if (!data) {
|
|
2276
2336
|
data = [];
|
|
2277
2337
|
}
|
|
2338
|
+
if (!axiosInstance2) {
|
|
2339
|
+
axiosInstance2 = getAxiosInstance();
|
|
2340
|
+
}
|
|
2278
2341
|
return new Promise((resolve, reject) => {
|
|
2279
|
-
|
|
2342
|
+
axiosInstance2.post(url, data).then((res) => {
|
|
2280
2343
|
if (res.status == 200) {
|
|
2281
2344
|
resolve(res.data);
|
|
2282
2345
|
} else {
|
|
2283
2346
|
reject(res);
|
|
2284
2347
|
}
|
|
2285
2348
|
}).catch((action) => {
|
|
2286
|
-
if (alertCatchError) {
|
|
2287
|
-
ElMessage.error({ message: "接口调用异常" });
|
|
2288
|
-
}
|
|
2289
2349
|
console.log(action);
|
|
2290
2350
|
reject(action);
|
|
2291
2351
|
});
|
|
2292
2352
|
});
|
|
2293
2353
|
},
|
|
2294
|
-
get(url, data,
|
|
2354
|
+
get(url, data, axiosInstance2) {
|
|
2295
2355
|
if (!data) {
|
|
2296
2356
|
data = [];
|
|
2297
2357
|
}
|
|
2358
|
+
if (!axiosInstance2) {
|
|
2359
|
+
axiosInstance2 = getAxiosInstance();
|
|
2360
|
+
}
|
|
2298
2361
|
return new Promise((resolve, reject) => {
|
|
2299
|
-
|
|
2362
|
+
axiosInstance2.get(url, { params: data ?? {} }).then((res) => {
|
|
2300
2363
|
if (res.status == 200) {
|
|
2301
2364
|
resolve(res.data);
|
|
2302
2365
|
} else {
|
|
2303
2366
|
reject(res);
|
|
2304
2367
|
}
|
|
2305
2368
|
}).catch((action) => {
|
|
2306
|
-
if (alertCatchError) {
|
|
2307
|
-
ElMessage.error({ message: "接口调用异常" });
|
|
2308
|
-
}
|
|
2309
2369
|
console.log(action);
|
|
2310
2370
|
reject(action);
|
|
2311
2371
|
});
|
|
@@ -2461,14 +2521,14 @@ String.prototype.addUrlParameter = function addUrlParameter(param, value) {
|
|
|
2461
2521
|
let cSymbol = this.indexOf("?") > -1 ? "&" : "?";
|
|
2462
2522
|
return `${this}${cSymbol}${param}=${value}`;
|
|
2463
2523
|
};
|
|
2464
|
-
String.prototype.post = function post(postdata,
|
|
2465
|
-
return utils.post(this.toString(), postdata,
|
|
2524
|
+
String.prototype.post = function post(postdata, axiosInstance2) {
|
|
2525
|
+
return utils.post(this.toString(), postdata, axiosInstance2);
|
|
2466
2526
|
};
|
|
2467
|
-
String.prototype.get = function get2(postdata
|
|
2468
|
-
return utils.get(this.toString(), postdata,
|
|
2527
|
+
String.prototype.get = function get2(postdata, axiosInstance2) {
|
|
2528
|
+
return utils.get(this.toString(), postdata, axiosInstance2);
|
|
2469
2529
|
};
|
|
2470
|
-
String.prototype.upload = function upload(formdata
|
|
2471
|
-
return utils.post(this.toString(), formdata
|
|
2530
|
+
String.prototype.upload = function upload(formdata) {
|
|
2531
|
+
return utils.post(this.toString(), formdata);
|
|
2472
2532
|
};
|
|
2473
2533
|
String.prototype.trimQuotes = function trimQuotes() {
|
|
2474
2534
|
return this.toString().replace(/^['"]|['"]$/g, "");
|
|
@@ -8904,7 +8964,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
8904
8964
|
const attrs = useAttrs();
|
|
8905
8965
|
const props = __props;
|
|
8906
8966
|
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
8907
|
-
const { $idField, $
|
|
8967
|
+
const { $idField, $actionTypeField } = utils.getMenuConfig();
|
|
8908
8968
|
const { $pageDataField, $menuField, $pageSizeField, $currentPageField, $totalField, $pageCountField, $avgDayField } = utils.getTableConfig();
|
|
8909
8969
|
const { getValue: getValue2, setValue, attrProps } = useProps(props);
|
|
8910
8970
|
const tagID = props.tagId ?? "els_table_" + utils.shortid();
|
|
@@ -9762,7 +9822,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
9762
9822
|
return;
|
|
9763
9823
|
}
|
|
9764
9824
|
setTimeout(() => {
|
|
9765
|
-
var currPowerMenu = row[$menuField].find((ele) => ele[$idField] === menuID || ele[$
|
|
9825
|
+
var currPowerMenu = row[$menuField].find((ele) => ele[$idField] === menuID || ele[$actionTypeField] === menuID);
|
|
9766
9826
|
if (!currPowerMenu) {
|
|
9767
9827
|
ElMessage.error("菜单不存在");
|
|
9768
9828
|
return;
|
|
@@ -10270,7 +10330,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10270
10330
|
};
|
|
10271
10331
|
}
|
|
10272
10332
|
});
|
|
10273
|
-
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__scopeId", "data-v-
|
|
10333
|
+
const Table$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1Q, [["__scopeId", "data-v-de381c7b"]]);
|
|
10274
10334
|
const ElsTable = withInstall(Table$1);
|
|
10275
10335
|
const treeProps = buildProps({
|
|
10276
10336
|
...formItemProps$1,
|
|
@@ -16501,31 +16561,18 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
16501
16561
|
__name: "menuTool",
|
|
16502
16562
|
props: menuToolProps,
|
|
16503
16563
|
setup(__props, { expose: __expose }) {
|
|
16504
|
-
|
|
16505
|
-
const { proxy } = getCurrentInstance();
|
|
16564
|
+
getCurrentInstance();
|
|
16506
16565
|
const container = useContainer();
|
|
16507
16566
|
const props = __props;
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
|
|
16517
|
-
let buttonTypeFieldname = "";
|
|
16518
|
-
let groupFieldname = "";
|
|
16519
|
-
if (proxy && ((_b = proxy.$lessConfig) == null ? void 0 : _b.menu)) {
|
|
16520
|
-
idFieldname = proxy.$lessConfig.menu.id;
|
|
16521
|
-
nameFieldname = proxy.$lessConfig.menu.name;
|
|
16522
|
-
iconFieldname = proxy.$lessConfig.menu.icon;
|
|
16523
|
-
actionFieldname = proxy.$lessConfig.menu.action;
|
|
16524
|
-
actionTypeFieldname = proxy.$lessConfig.menu.actionType;
|
|
16525
|
-
buttonColorFieldname = proxy.$lessConfig.menu.buttonColor;
|
|
16526
|
-
buttonTypeFieldname = proxy.$lessConfig.menu.buttonType;
|
|
16527
|
-
groupFieldname = proxy.$lessConfig.menu.group;
|
|
16528
|
-
}
|
|
16567
|
+
const menuConfig = utils.getMenuConfig();
|
|
16568
|
+
const idFieldname = menuConfig.$idField;
|
|
16569
|
+
const nameFieldname = menuConfig.$nameField;
|
|
16570
|
+
const iconFieldname = menuConfig.$iconField;
|
|
16571
|
+
const actionFieldname = menuConfig.$actionField;
|
|
16572
|
+
const actionTypeFieldname = menuConfig.$actionTypeField;
|
|
16573
|
+
const buttonColorFieldname = menuConfig.$buttonColorField;
|
|
16574
|
+
const buttonTypeFieldname = menuConfig.$buttonTypeField;
|
|
16575
|
+
const groupFieldname = menuConfig.$groupField;
|
|
16529
16576
|
const saveDataLoading = ref(false);
|
|
16530
16577
|
const isTableEdit = ref(false);
|
|
16531
16578
|
const menuData = reactive([]);
|
|
@@ -18026,7 +18073,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
18026
18073
|
};
|
|
18027
18074
|
}
|
|
18028
18075
|
});
|
|
18029
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
18076
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-fe87b868"]]);
|
|
18030
18077
|
const ElsList = withInstall(List);
|
|
18031
18078
|
const _hoisted_1$13 = { class: "custom-block-title" };
|
|
18032
18079
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
@@ -39569,7 +39616,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
39569
39616
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
39570
39617
|
setup(__props, { emit: __emit }) {
|
|
39571
39618
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
39572
|
-
return import("./innerItem-
|
|
39619
|
+
return import("./innerItem-ZAXmJCe9.js");
|
|
39573
39620
|
});
|
|
39574
39621
|
const { getValue: getValue2 } = useProps();
|
|
39575
39622
|
const tagID = getValue2("tagID");
|
|
@@ -46142,31 +46189,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46142
46189
|
}
|
|
46143
46190
|
onMounted(() => {
|
|
46144
46191
|
if (props.language === "json") {
|
|
46145
|
-
const currModule = import("./mode-json-
|
|
46192
|
+
const currModule = import("./mode-json-D50dzohZ.js").then((n) => n.m);
|
|
46146
46193
|
currModule.then((res) => {
|
|
46147
46194
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
46148
46195
|
init();
|
|
46149
46196
|
});
|
|
46150
46197
|
} else if (props.language === "javascript") {
|
|
46151
|
-
const currModule = import("./mode-javascript-
|
|
46198
|
+
const currModule = import("./mode-javascript-iVD-CtBw.js").then((n) => n.m);
|
|
46152
46199
|
currModule.then((res) => {
|
|
46153
46200
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
46154
46201
|
init();
|
|
46155
46202
|
});
|
|
46156
46203
|
} else if (props.language === "csharp") {
|
|
46157
|
-
const currModule = import("./mode-csharp-
|
|
46204
|
+
const currModule = import("./mode-csharp-BZlGXkBn.js").then((n) => n.m);
|
|
46158
46205
|
currModule.then((res) => {
|
|
46159
46206
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
46160
46207
|
init();
|
|
46161
46208
|
});
|
|
46162
46209
|
} else if (props.language === "mysql") {
|
|
46163
|
-
const currModule = import("./mode-mysql-
|
|
46210
|
+
const currModule = import("./mode-mysql-CVg2QeEJ.js").then((n) => n.m);
|
|
46164
46211
|
currModule.then((res) => {
|
|
46165
46212
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
46166
46213
|
init();
|
|
46167
46214
|
});
|
|
46168
46215
|
} else if (props.language === "css") {
|
|
46169
|
-
const currModule = import("./mode-css-
|
|
46216
|
+
const currModule = import("./mode-css-BYh5hBCw.js").then((n) => n.m);
|
|
46170
46217
|
currModule.then((res) => {
|
|
46171
46218
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
46172
46219
|
init();
|
|
@@ -49575,12 +49622,13 @@ const components = [
|
|
|
49575
49622
|
ElsStampBadge
|
|
49576
49623
|
];
|
|
49577
49624
|
const ElementLess = {
|
|
49578
|
-
install(app) {
|
|
49625
|
+
install(app, options = {}) {
|
|
49579
49626
|
components.forEach((item) => {
|
|
49580
49627
|
if (item.name) {
|
|
49581
49628
|
app.component(item.name, item);
|
|
49582
49629
|
}
|
|
49583
49630
|
});
|
|
49631
|
+
setConfig(options);
|
|
49584
49632
|
app.config.globalProperties.$utils = utils;
|
|
49585
49633
|
app.config.globalProperties.$less_message = ProxyElsMessage;
|
|
49586
49634
|
}
|