@fmdeui/fmui 1.0.71 → 1.0.72
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 +15 -1
- package/index.js +16 -2
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +16 -2
- package/lib/packages/components/fmtree/index.vue2.js +15 -1
- 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 → make-installer.css} +0 -0
- /package/lib/{defaults.css → make-installer.css} +0 -0
|
@@ -118,10 +118,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
118
|
};
|
|
119
119
|
const emit = __emit;
|
|
120
120
|
const nodeClick = (node) => {
|
|
121
|
-
const reldata =
|
|
121
|
+
const reldata = findNode(node.id);
|
|
122
122
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
123
123
|
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata });
|
|
124
124
|
};
|
|
125
|
+
const findNode = (id) => {
|
|
126
|
+
const search = (nodes) => {
|
|
127
|
+
var _a;
|
|
128
|
+
for (const node of nodes) {
|
|
129
|
+
if (node.id === id) return node;
|
|
130
|
+
if ((_a = node.children) == null ? void 0 : _a.length) {
|
|
131
|
+
const found = search(node.children);
|
|
132
|
+
if (found) return found;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+
};
|
|
137
|
+
return search(state.folderData || []);
|
|
138
|
+
};
|
|
125
139
|
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
126
140
|
var _a;
|
|
127
141
|
(_a = treeRef.value) == null ? void 0 : _a.setCurrentKey(key, shouldAutoExpandParent);
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.72 */
|
|
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) :
|
|
@@ -26299,10 +26299,24 @@
|
|
|
26299
26299
|
};
|
|
26300
26300
|
const emit = __emit;
|
|
26301
26301
|
const nodeClick = (node) => {
|
|
26302
|
-
const reldata =
|
|
26302
|
+
const reldata = findNode(node.id);
|
|
26303
26303
|
modeValue.value = { id: node.id, name: node.name, code: reldata ? reldata.code : "" };
|
|
26304
26304
|
emit("node-click", { id: node.id, name: node.name, code: reldata ? reldata.code : "", data: reldata });
|
|
26305
26305
|
};
|
|
26306
|
+
const findNode = (id) => {
|
|
26307
|
+
const search = (nodes) => {
|
|
26308
|
+
var _a;
|
|
26309
|
+
for (const node of nodes) {
|
|
26310
|
+
if (node.id === id) return node;
|
|
26311
|
+
if ((_a = node.children) == null ? void 0 : _a.length) {
|
|
26312
|
+
const found = search(node.children);
|
|
26313
|
+
if (found) return found;
|
|
26314
|
+
}
|
|
26315
|
+
}
|
|
26316
|
+
return null;
|
|
26317
|
+
};
|
|
26318
|
+
return search(state.folderData || []);
|
|
26319
|
+
};
|
|
26306
26320
|
const setCurrentKey = (key, shouldAutoExpandParent) => {
|
|
26307
26321
|
var _a;
|
|
26308
26322
|
(_a = treeRef.value) == null ? void 0 : _a.setCurrentKey(key, shouldAutoExpandParent);
|