@fmdeui/fmui 1.0.62 → 1.0.63
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/es/packages/components/fmtree/index.vue2.mjs +7 -6
- package/index.js +8 -7
- package/index.min.js +5 -5
- package/index.min.mjs +6 -6
- package/index.mjs +8 -7
- package/lib/packages/components/fmtree/index.vue2.js +7 -6
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{index.css → component.css} +0 -0
|
@@ -74,7 +74,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
state.folderData = (_a = res.data.result) != null ? _a : [];
|
|
75
75
|
if (showLoading) state.loading = false;
|
|
76
76
|
const rtreeData = (_b = res.data.result) != null ? _b : [];
|
|
77
|
-
modeValue.value = rtreeData.length > 0 ? rtreeData[0] : { id: 0, name: "" };
|
|
77
|
+
modeValue.value = rtreeData.length > 0 ? rtreeData[0] : { id: 0, name: "", code: "" };
|
|
78
78
|
return rtreeData;
|
|
79
79
|
};
|
|
80
80
|
const getCheckedKeys = () => {
|
|
@@ -98,14 +98,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
98
98
|
fetchTreeData();
|
|
99
99
|
} else if ("rootNode" == command) {
|
|
100
100
|
(_a = treeRef.value) == null ? void 0 : _a.setCurrentKey();
|
|
101
|
-
modeValue.value = { id: 0, name: "" };
|
|
102
|
-
emit("node-click", { id: 0, name: "" });
|
|
101
|
+
modeValue.value = { id: 0, name: "", code: "" };
|
|
102
|
+
emit("node-click", { id: 0, name: "", code: "" });
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
const emit = __emit;
|
|
106
|
-
const nodeClick = (node) => {
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
const nodeClick = (node, data) => {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
modeValue.value = { id: node.id, name: node.name, code: data ? (_a = data.code) != null ? _a : "" : "" };
|
|
109
|
+
emit("node-click", { id: node.id, name: node.name, code: data ? (_b = data.code) != null ? _b : "" : "" });
|
|
109
110
|
};
|
|
110
111
|
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
111
112
|
var _a;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.63 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('vue-router'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'vue-router', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -26225,7 +26225,7 @@
|
|
|
26225
26225
|
state.folderData = (_a = res.data.result) != null ? _a : [];
|
|
26226
26226
|
if (showLoading) state.loading = false;
|
|
26227
26227
|
const rtreeData = (_b = res.data.result) != null ? _b : [];
|
|
26228
|
-
modeValue.value = rtreeData.length > 0 ? rtreeData[0] : { id: 0, name: "" };
|
|
26228
|
+
modeValue.value = rtreeData.length > 0 ? rtreeData[0] : { id: 0, name: "", code: "" };
|
|
26229
26229
|
return rtreeData;
|
|
26230
26230
|
};
|
|
26231
26231
|
const getCheckedKeys = () => {
|
|
@@ -26249,14 +26249,15 @@
|
|
|
26249
26249
|
fetchTreeData();
|
|
26250
26250
|
} else if ("rootNode" == command) {
|
|
26251
26251
|
(_a = treeRef.value) == null ? void 0 : _a.setCurrentKey();
|
|
26252
|
-
modeValue.value = { id: 0, name: "" };
|
|
26253
|
-
emit("node-click", { id: 0, name: "" });
|
|
26252
|
+
modeValue.value = { id: 0, name: "", code: "" };
|
|
26253
|
+
emit("node-click", { id: 0, name: "", code: "" });
|
|
26254
26254
|
}
|
|
26255
26255
|
};
|
|
26256
26256
|
const emit = __emit;
|
|
26257
|
-
const nodeClick = (node) => {
|
|
26258
|
-
|
|
26259
|
-
|
|
26257
|
+
const nodeClick = (node, data) => {
|
|
26258
|
+
var _a, _b;
|
|
26259
|
+
modeValue.value = { id: node.id, name: node.name, code: data ? (_a = data.code) != null ? _a : "" : "" };
|
|
26260
|
+
emit("node-click", { id: node.id, name: node.name, code: data ? (_b = data.code) != null ? _b : "" : "" });
|
|
26260
26261
|
};
|
|
26261
26262
|
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
26262
26263
|
var _a;
|