@fmdeui/fmui 1.0.86 → 1.0.87
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/directive/authDirective.mjs +9 -10
- package/index.js +14 -14
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +11 -11
- package/lib/packages/directive/authDirective.js +9 -10
- 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/{lib → es}/defaults.css +0 -0
- /package/{es/index.css → lib/version.css} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { useRoute } from 'vue-router';
|
|
2
1
|
import { useUserInfo } from '../stores/userInfo.mjs';
|
|
3
2
|
import { judgementSameArr } from '../utils/arrayOperation.mjs';
|
|
4
3
|
|
|
@@ -31,10 +30,10 @@ function authDirective(app) {
|
|
|
31
30
|
app.directive("hdtable", {
|
|
32
31
|
mounted(el, binding) {
|
|
33
32
|
const stores = useUserInfo();
|
|
34
|
-
const
|
|
35
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path ===
|
|
33
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
34
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
|
|
36
35
|
if (item && item.formDes.length > 0) {
|
|
37
|
-
const xitem = item.formDes.find((v) => v.field ===
|
|
36
|
+
const xitem = item.formDes.find((v) => v.field === config.field);
|
|
38
37
|
if (xitem && xitem.isTable == 0) el.parentNode.removeChild(el);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -42,10 +41,10 @@ function authDirective(app) {
|
|
|
42
41
|
app.directive("hpquery", {
|
|
43
42
|
mounted(el, binding) {
|
|
44
43
|
const stores = useUserInfo();
|
|
45
|
-
const
|
|
46
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path ===
|
|
44
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
45
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
|
|
47
46
|
if (item && item.formDes.length > 0) {
|
|
48
|
-
const xitem = item.formDes.find((v) => v.field ===
|
|
47
|
+
const xitem = item.formDes.find((v) => v.field === config.field);
|
|
49
48
|
if (xitem && xitem.isQuery == 0) el.parentNode.removeChild(el);
|
|
50
49
|
}
|
|
51
50
|
}
|
|
@@ -53,10 +52,10 @@ function authDirective(app) {
|
|
|
53
52
|
app.directive("hpaddupdate", {
|
|
54
53
|
mounted(el, binding) {
|
|
55
54
|
const stores = useUserInfo();
|
|
56
|
-
const
|
|
57
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path ===
|
|
55
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
56
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
|
|
58
57
|
if (item && item.formDes.length > 0) {
|
|
59
|
-
const xitem = item.formDes.find((v) => v.field ===
|
|
58
|
+
const xitem = item.formDes.find((v) => v.field === config.field);
|
|
60
59
|
if (xitem && xitem.isAddUpdate == 0) el.parentNode.removeChild(el);
|
|
61
60
|
}
|
|
62
61
|
}
|
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.87 */
|
|
2
2
|
(function (global, factory) {
|
|
3
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('
|
|
4
|
-
typeof define === 'function' && define.amd ? define(['exports', '
|
|
5
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fmdeuifmui = {}, global.
|
|
6
|
-
})(this, (function (exports,
|
|
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('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
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', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fmdeuifmui = {}, global.VxeUITable, global.VxeUIPluginRenderElement, global.VxeUIPluginExportXLSX, global.VxeUIExport, global.ExcelJS, global.ElementPlusIconsVue, global.Vue, global.ElementPlus, global._, global.Cookies, global.Pinia, global.vueRouter, global.VueUse, global.CryptoJS, global.XLSX, global.vueI18n, global.Sortable, global.screenfull, global.Push, global.mitt, global.SignalR, global.axios));
|
|
6
|
+
})(this, (function (exports, VxeUITable, VxeUIPluginRenderElement, VxeUIPluginExportXLSX, VxeUI, ExcelJS, svg, vue, elementPlus, lodashEs, Cookies, pinia$1, vueRouter, core, CryptoJS, XLSXS, vueI18n, Sortable, screenfull, Push, mitt, SignalR, axios) { 'use strict';
|
|
7
7
|
|
|
8
8
|
function _interopNamespaceDefault(e) {
|
|
9
9
|
var n = Object.create(null);
|
|
@@ -3926,10 +3926,10 @@
|
|
|
3926
3926
|
app.directive("hdtable", {
|
|
3927
3927
|
mounted(el, binding) {
|
|
3928
3928
|
const stores = useUserInfo();
|
|
3929
|
-
const
|
|
3930
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path ===
|
|
3929
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
3930
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
|
|
3931
3931
|
if (item && item.formDes.length > 0) {
|
|
3932
|
-
const xitem = item.formDes.find((v) => v.field ===
|
|
3932
|
+
const xitem = item.formDes.find((v) => v.field === config.field);
|
|
3933
3933
|
if (xitem && xitem.isTable == 0) el.parentNode.removeChild(el);
|
|
3934
3934
|
}
|
|
3935
3935
|
}
|
|
@@ -3937,10 +3937,10 @@
|
|
|
3937
3937
|
app.directive("hpquery", {
|
|
3938
3938
|
mounted(el, binding) {
|
|
3939
3939
|
const stores = useUserInfo();
|
|
3940
|
-
const
|
|
3941
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path ===
|
|
3940
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
3941
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
|
|
3942
3942
|
if (item && item.formDes.length > 0) {
|
|
3943
|
-
const xitem = item.formDes.find((v) => v.field ===
|
|
3943
|
+
const xitem = item.formDes.find((v) => v.field === config.field);
|
|
3944
3944
|
if (xitem && xitem.isQuery == 0) el.parentNode.removeChild(el);
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
@@ -3948,10 +3948,10 @@
|
|
|
3948
3948
|
app.directive("hpaddupdate", {
|
|
3949
3949
|
mounted(el, binding) {
|
|
3950
3950
|
const stores = useUserInfo();
|
|
3951
|
-
const
|
|
3952
|
-
const item = stores.userInfos.formDes.find((item2) => item2.path ===
|
|
3951
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
3952
|
+
const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
|
|
3953
3953
|
if (item && item.formDes.length > 0) {
|
|
3954
|
-
const xitem = item.formDes.find((v) => v.field ===
|
|
3954
|
+
const xitem = item.formDes.find((v) => v.field === config.field);
|
|
3955
3955
|
if (xitem && xitem.isAddUpdate == 0) el.parentNode.removeChild(el);
|
|
3956
3956
|
}
|
|
3957
3957
|
}
|