element-less 0.0.9 → 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-CLrh82uM.js → index-BPJ2MJz9.js} +166 -116
- package/index-j-lC_R_c.cjs +1 -0
- package/index.d.ts +2 -1
- package/{innerItem-BU5rzWOS.cjs → innerItem-7Bq-Z4KW.cjs} +1 -1
- package/{innerItem-Ecpkpr_1.js → innerItem-ZAXmJCe9.js} +1 -1
- package/{mode-csharp-8Qr7KA7-.js → mode-csharp-BZlGXkBn.js} +1 -1
- package/{mode-csharp-BHvsSZJJ.cjs → mode-csharp-CTRIUYoz.cjs} +1 -1
- package/{mode-css-7HePkEyP.js → mode-css-BYh5hBCw.js} +1 -1
- package/{mode-css-BYCUXfz9.cjs → mode-css-D2kK6Yr6.cjs} +1 -1
- package/{mode-javascript-DEtLS6uH.cjs → mode-javascript-CZ7N0sfz.cjs} +1 -1
- package/{mode-javascript-BsWAOCK9.js → mode-javascript-iVD-CtBw.js} +1 -1
- package/{mode-json-ClFqizaF.cjs → mode-json-BbwpZBCH.cjs} +1 -1
- package/{mode-json-CNw4Ad6L.js → mode-json-D50dzohZ.js} +1 -1
- package/{mode-mysql-yfRDxj8Z.cjs → mode-mysql-5VYrOvsS.cjs} +1 -1
- package/{mode-mysql-Brju4QkM.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-CfHEZDgc.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, "");
|
|
@@ -5541,9 +5601,11 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
5541
5601
|
if (props.height) {
|
|
5542
5602
|
st2.push({ "--wrapperHeight": props.height.appendPx() });
|
|
5543
5603
|
st2.push({ "--wrapperSelectionHeight": "calc(var(--wrapperHeight) - 10px)" });
|
|
5604
|
+
st2.push({ "--wrapperSelectionScroll": "scroll" });
|
|
5544
5605
|
} else {
|
|
5545
5606
|
st2.push({ "--wrapperHeight": "32px" });
|
|
5546
5607
|
st2.push({ "--wrapperSelectionHeight": "auto" });
|
|
5608
|
+
st2.push({ "--wrapperSelectionScroll": "inherit" });
|
|
5547
5609
|
}
|
|
5548
5610
|
if (props.width && props.optionDirection === "horizontal") {
|
|
5549
5611
|
st2.push({ "--wrapperWidth": currWidth.value.appendPx() });
|
|
@@ -8902,7 +8964,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
8902
8964
|
const attrs = useAttrs();
|
|
8903
8965
|
const props = __props;
|
|
8904
8966
|
const { $codeField, $messageField, $dataField, $success } = utils.getApiConfig();
|
|
8905
|
-
const { $idField, $
|
|
8967
|
+
const { $idField, $actionTypeField } = utils.getMenuConfig();
|
|
8906
8968
|
const { $pageDataField, $menuField, $pageSizeField, $currentPageField, $totalField, $pageCountField, $avgDayField } = utils.getTableConfig();
|
|
8907
8969
|
const { getValue: getValue2, setValue, attrProps } = useProps(props);
|
|
8908
8970
|
const tagID = props.tagId ?? "els_table_" + utils.shortid();
|
|
@@ -9760,7 +9822,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
9760
9822
|
return;
|
|
9761
9823
|
}
|
|
9762
9824
|
setTimeout(() => {
|
|
9763
|
-
var currPowerMenu = row[$menuField].find((ele) => ele[$idField] === menuID || ele[$
|
|
9825
|
+
var currPowerMenu = row[$menuField].find((ele) => ele[$idField] === menuID || ele[$actionTypeField] === menuID);
|
|
9764
9826
|
if (!currPowerMenu) {
|
|
9765
9827
|
ElMessage.error("菜单不存在");
|
|
9766
9828
|
return;
|
|
@@ -10268,7 +10330,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
10268
10330
|
};
|
|
10269
10331
|
}
|
|
10270
10332
|
});
|
|
10271
|
-
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"]]);
|
|
10272
10334
|
const ElsTable = withInstall(Table$1);
|
|
10273
10335
|
const treeProps = buildProps({
|
|
10274
10336
|
...formItemProps$1,
|
|
@@ -16499,31 +16561,18 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
16499
16561
|
__name: "menuTool",
|
|
16500
16562
|
props: menuToolProps,
|
|
16501
16563
|
setup(__props, { expose: __expose }) {
|
|
16502
|
-
|
|
16503
|
-
const { proxy } = getCurrentInstance();
|
|
16564
|
+
getCurrentInstance();
|
|
16504
16565
|
const container = useContainer();
|
|
16505
16566
|
const props = __props;
|
|
16506
|
-
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
let buttonTypeFieldname = "";
|
|
16516
|
-
let groupFieldname = "";
|
|
16517
|
-
if (proxy && ((_b = proxy.$lessConfig) == null ? void 0 : _b.menu)) {
|
|
16518
|
-
idFieldname = proxy.$lessConfig.menu.id;
|
|
16519
|
-
nameFieldname = proxy.$lessConfig.menu.name;
|
|
16520
|
-
iconFieldname = proxy.$lessConfig.menu.icon;
|
|
16521
|
-
actionFieldname = proxy.$lessConfig.menu.action;
|
|
16522
|
-
actionTypeFieldname = proxy.$lessConfig.menu.actionType;
|
|
16523
|
-
buttonColorFieldname = proxy.$lessConfig.menu.buttonColor;
|
|
16524
|
-
buttonTypeFieldname = proxy.$lessConfig.menu.buttonType;
|
|
16525
|
-
groupFieldname = proxy.$lessConfig.menu.group;
|
|
16526
|
-
}
|
|
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;
|
|
16527
16576
|
const saveDataLoading = ref(false);
|
|
16528
16577
|
const isTableEdit = ref(false);
|
|
16529
16578
|
const menuData = reactive([]);
|
|
@@ -18024,7 +18073,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
18024
18073
|
};
|
|
18025
18074
|
}
|
|
18026
18075
|
});
|
|
18027
|
-
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-
|
|
18076
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["__scopeId", "data-v-fe87b868"]]);
|
|
18028
18077
|
const ElsList = withInstall(List);
|
|
18029
18078
|
const _hoisted_1$13 = { class: "custom-block-title" };
|
|
18030
18079
|
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
@@ -39567,7 +39616,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
39567
39616
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
39568
39617
|
setup(__props, { emit: __emit }) {
|
|
39569
39618
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
39570
|
-
return import("./innerItem-
|
|
39619
|
+
return import("./innerItem-ZAXmJCe9.js");
|
|
39571
39620
|
});
|
|
39572
39621
|
const { getValue: getValue2 } = useProps();
|
|
39573
39622
|
const tagID = getValue2("tagID");
|
|
@@ -40805,7 +40854,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
40805
40854
|
};
|
|
40806
40855
|
}
|
|
40807
40856
|
});
|
|
40808
|
-
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-
|
|
40857
|
+
const DynamicRenderInnerObjectArray = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["__scopeId", "data-v-ef473194"]]);
|
|
40809
40858
|
const _hoisted_1$Z = { class: "els-node els-dynamic-render" };
|
|
40810
40859
|
const _hoisted_2$R = { class: "els-dynamic-render-inner" };
|
|
40811
40860
|
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
@@ -46140,31 +46189,31 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
46140
46189
|
}
|
|
46141
46190
|
onMounted(() => {
|
|
46142
46191
|
if (props.language === "json") {
|
|
46143
|
-
const currModule = import("./mode-json-
|
|
46192
|
+
const currModule = import("./mode-json-D50dzohZ.js").then((n) => n.m);
|
|
46144
46193
|
currModule.then((res) => {
|
|
46145
46194
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
46146
46195
|
init();
|
|
46147
46196
|
});
|
|
46148
46197
|
} else if (props.language === "javascript") {
|
|
46149
|
-
const currModule = import("./mode-javascript-
|
|
46198
|
+
const currModule = import("./mode-javascript-iVD-CtBw.js").then((n) => n.m);
|
|
46150
46199
|
currModule.then((res) => {
|
|
46151
46200
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
46152
46201
|
init();
|
|
46153
46202
|
});
|
|
46154
46203
|
} else if (props.language === "csharp") {
|
|
46155
|
-
const currModule = import("./mode-csharp-
|
|
46204
|
+
const currModule = import("./mode-csharp-BZlGXkBn.js").then((n) => n.m);
|
|
46156
46205
|
currModule.then((res) => {
|
|
46157
46206
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
46158
46207
|
init();
|
|
46159
46208
|
});
|
|
46160
46209
|
} else if (props.language === "mysql") {
|
|
46161
|
-
const currModule = import("./mode-mysql-
|
|
46210
|
+
const currModule = import("./mode-mysql-CVg2QeEJ.js").then((n) => n.m);
|
|
46162
46211
|
currModule.then((res) => {
|
|
46163
46212
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
46164
46213
|
init();
|
|
46165
46214
|
});
|
|
46166
46215
|
} else if (props.language === "css") {
|
|
46167
|
-
const currModule = import("./mode-css-
|
|
46216
|
+
const currModule = import("./mode-css-BYh5hBCw.js").then((n) => n.m);
|
|
46168
46217
|
currModule.then((res) => {
|
|
46169
46218
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
46170
46219
|
init();
|
|
@@ -49573,12 +49622,13 @@ const components = [
|
|
|
49573
49622
|
ElsStampBadge
|
|
49574
49623
|
];
|
|
49575
49624
|
const ElementLess = {
|
|
49576
|
-
install(app) {
|
|
49625
|
+
install(app, options = {}) {
|
|
49577
49626
|
components.forEach((item) => {
|
|
49578
49627
|
if (item.name) {
|
|
49579
49628
|
app.component(item.name, item);
|
|
49580
49629
|
}
|
|
49581
49630
|
});
|
|
49631
|
+
setConfig(options);
|
|
49582
49632
|
app.config.globalProperties.$utils = utils;
|
|
49583
49633
|
app.config.globalProperties.$less_message = ProxyElsMessage;
|
|
49584
49634
|
}
|