@fmdeui/fmui 1.0.70 → 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/es/packages/stores/userInfo.mjs +1 -1
- package/es/stores/userInfo.d.ts +1 -1
- package/index.js +17 -3
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +17 -3
- package/lib/packages/components/fmtree/index.vue2.js +15 -1
- package/lib/packages/stores/userInfo.js +1 -1
- package/lib/stores/userInfo.d.ts +1 -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/{component.css → make-installer.css} +0 -0
- /package/lib/{index.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);
|
|
@@ -21,7 +21,7 @@ const useUserInfo = defineStore("userInfo", {
|
|
|
21
21
|
// 获取当前用户信息
|
|
22
22
|
getUserInfos: (state) => state.userInfos,
|
|
23
23
|
// 获取当前用户公司ID
|
|
24
|
-
|
|
24
|
+
getCmpId: (state) => {
|
|
25
25
|
return Number(state.userInfos.cmpId > 0 ? state.userInfos.cmpId : state.userInfos.tenantId);
|
|
26
26
|
},
|
|
27
27
|
// 获取当前用户租户ID
|
package/es/stores/userInfo.d.ts
CHANGED
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) :
|
|
@@ -3720,7 +3720,7 @@
|
|
|
3720
3720
|
// 获取当前用户信息
|
|
3721
3721
|
getUserInfos: (state) => state.userInfos,
|
|
3722
3722
|
// 获取当前用户公司ID
|
|
3723
|
-
|
|
3723
|
+
getCmpId: (state) => {
|
|
3724
3724
|
return Number(state.userInfos.cmpId > 0 ? state.userInfos.cmpId : state.userInfos.tenantId);
|
|
3725
3725
|
},
|
|
3726
3726
|
// 获取当前用户租户ID
|
|
@@ -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);
|