@fmdeui/fmui 1.0.80 → 1.0.81

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.
@@ -31,7 +31,7 @@ function authDirective(app) {
31
31
  mounted(el, binding) {
32
32
  const stores = useUserInfo();
33
33
  const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
34
- const item = stores.userInfos.formDesc.find((item2) => item2.path === config.path);
34
+ const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
35
35
  if (item && item.formDes.length > 0) {
36
36
  const xitem = item.formDes.find((v) => v.field === config.field);
37
37
  if (xitem && xitem.isTable == 0) el.parentNode.removeChild(el);
@@ -42,7 +42,7 @@ function authDirective(app) {
42
42
  mounted(el, binding) {
43
43
  const stores = useUserInfo();
44
44
  const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
45
- const item = stores.userInfos.formDesc.find((item2) => item2.path === config.path);
45
+ const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
46
46
  if (item && item.formDes.length > 0) {
47
47
  const xitem = item.formDes.find((v) => v.field === config.field);
48
48
  if (xitem && xitem.isQuery == 0) el.parentNode.removeChild(el);
@@ -53,7 +53,7 @@ function authDirective(app) {
53
53
  mounted(el, binding) {
54
54
  const stores = useUserInfo();
55
55
  const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
56
- const item = stores.userInfos.formDesc.find((item2) => item2.path === config.path);
56
+ const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
57
57
  if (item && item.formDes.length > 0) {
58
58
  const xitem = item.formDes.find((v) => v.field === config.field);
59
59
  if (xitem && xitem.isAddUpdate == 0) el.parentNode.removeChild(el);
@@ -32,7 +32,7 @@ function hAuthAll(el, value) {
32
32
  }
33
33
  function fdRules(value, field) {
34
34
  const stores = useUserInfo();
35
- const item = stores.userInfos.formDesc.find((item2) => item2.path === value);
35
+ const item = stores.userInfos.formDes.find((item2) => item2.path === value);
36
36
  let rels = [];
37
37
  if (item && item.formDes.length > 0) {
38
38
  const xitem = item.formDes.find((v) => v.field === field);
@@ -9,7 +9,7 @@ function getlimit(value) {
9
9
  }
10
10
  function getFrmItemProp(path, field) {
11
11
  const stores = useUserInfo();
12
- const item = stores.userInfos.formDesc.find((item2) => item2.path === path);
12
+ const item = stores.userInfos.formDes.find((item2) => item2.path === path);
13
13
  if (item && item.formDes.length > 0) {
14
14
  const xitem = item.formDes.find((v) => v.field === field);
15
15
  if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.80 */
1
+ /*! fmdeui-fmui v1.0.81 */
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) :
@@ -3927,7 +3927,7 @@
3927
3927
  mounted(el, binding) {
3928
3928
  const stores = useUserInfo();
3929
3929
  const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
3930
- const item = stores.userInfos.formDesc.find((item2) => item2.path === config.path);
3930
+ const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
3931
3931
  if (item && item.formDes.length > 0) {
3932
3932
  const xitem = item.formDes.find((v) => v.field === config.field);
3933
3933
  if (xitem && xitem.isTable == 0) el.parentNode.removeChild(el);
@@ -3938,7 +3938,7 @@
3938
3938
  mounted(el, binding) {
3939
3939
  const stores = useUserInfo();
3940
3940
  const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
3941
- const item = stores.userInfos.formDesc.find((item2) => item2.path === config.path);
3941
+ const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
3942
3942
  if (item && item.formDes.length > 0) {
3943
3943
  const xitem = item.formDes.find((v) => v.field === config.field);
3944
3944
  if (xitem && xitem.isQuery == 0) el.parentNode.removeChild(el);
@@ -3949,7 +3949,7 @@
3949
3949
  mounted(el, binding) {
3950
3950
  const stores = useUserInfo();
3951
3951
  const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
3952
- const item = stores.userInfos.formDesc.find((item2) => item2.path === config.path);
3952
+ const item = stores.userInfos.formDes.find((item2) => item2.path === config.path);
3953
3953
  if (item && item.formDes.length > 0) {
3954
3954
  const xitem = item.formDes.find((v) => v.field === config.field);
3955
3955
  if (xitem && xitem.isAddUpdate == 0) el.parentNode.removeChild(el);
@@ -19939,7 +19939,7 @@
19939
19939
  }
19940
19940
  function fdRules(value, field) {
19941
19941
  const stores = useUserInfo();
19942
- const item = stores.userInfos.formDesc.find((item2) => item2.path === value);
19942
+ const item = stores.userInfos.formDes.find((item2) => item2.path === value);
19943
19943
  let rels = [];
19944
19944
  if (item && item.formDes.length > 0) {
19945
19945
  const xitem = item.formDes.find((v) => v.field === field);
@@ -20493,7 +20493,7 @@
20493
20493
  }
20494
20494
  function getFrmItemProp(path, field) {
20495
20495
  const stores = useUserInfo();
20496
- const item = stores.userInfos.formDesc.find((item2) => item2.path === path);
20496
+ const item = stores.userInfos.formDes.find((item2) => item2.path === path);
20497
20497
  if (item && item.formDes.length > 0) {
20498
20498
  const xitem = item.formDes.find((v) => v.field === field);
20499
20499
  if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0;