yahee-components 0.0.52 → 0.0.54

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.
Files changed (45) hide show
  1. package/es/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/es/annex-upload/annex-upload.vue.js +69 -154
  3. package/es/annex-upload/annex-upload.vue2.js +119 -2
  4. package/es/annex-upload/index.js +3 -3
  5. package/es/api/tool.js +1 -1
  6. package/es/complex-search/complex-search.vue.js +240 -312
  7. package/es/complex-search/complex-search.vue2.js +154 -2
  8. package/es/complex-search/index.js +5 -5
  9. package/es/copy/copy.vue.js +39 -55
  10. package/es/copy/copy.vue2.js +34 -2
  11. package/es/copy/index.js +3 -3
  12. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +158 -204
  13. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +125 -2
  14. package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
  15. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  16. package/es/image-upload/image-upload.vue.js +76 -113
  17. package/es/image-upload/image-upload.vue2.js +91 -2
  18. package/es/image-upload/index.js +3 -3
  19. package/es/input/index.js +3 -3
  20. package/es/input/input.vue.js +17 -38
  21. package/es/input/input.vue2.js +33 -2
  22. package/es/left-condition/index.js +5 -5
  23. package/es/left-condition/left-condition-sub.vue.js +55 -86
  24. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  25. package/es/left-condition/left-condition.vue.js +93 -210
  26. package/es/left-condition/left-condition.vue2.js +153 -2
  27. package/es/left-condition-enum/index.js +3 -3
  28. package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
  29. package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
  30. package/es/operation-log/operation-log-content.vue.js +78 -92
  31. package/es/operation-log/operation-log-content.vue2.js +39 -2
  32. package/es/operation-log/operation-log-dialog.vue.js +57 -68
  33. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  34. package/es/operation-log/operation-log-form.vue.js +132 -183
  35. package/es/operation-log/operation-log-form.vue2.js +104 -2
  36. package/es/operation-log/operation-log.vue.js +186 -227
  37. package/es/operation-log/operation-log.vue2.js +135 -2
  38. package/es/packages/components/api/log-server.js +5 -5
  39. package/es/packages/components/api/upload-server.js +1 -1
  40. package/es/packages/components/hooks/useImg.js +8 -8
  41. package/es/utils/translate.js +19 -19
  42. package/package.json +1 -1
  43. package/types/src/installs.d.ts +3 -0
  44. package/types/src/left-condition/index.d.ts +3 -0
  45. package/types/src/left-condition/left-condition.vue.d.ts +2 -0
@@ -1,4 +1,4 @@
1
- import { sessionStorageProxy as u, storage as s } from "./storage.js";
1
+ import { sessionStorageProxy as g, storage as l } from "./storage.js";
2
2
  import m from "../_virtual/lodash.js";
3
3
  import "../node_modules/.pnpm/axios@1.8.4/node_modules/axios/index.js";
4
4
  import { i18nType as c } from "../static/CommonObject.js";
@@ -6,24 +6,24 @@ import { Get as h } from "../api/server.js";
6
6
  import y from "../node_modules/.pnpm/axios@1.8.4/node_modules/axios/lib/axios.js";
7
7
  const $ = (e) => {
8
8
  var i;
9
- const t = u.get("employee") || {}, o = d(e);
9
+ const t = g.get("employee") || {}, o = d(e);
10
10
  if (o === 0) return e;
11
- const r = u.get(`translate${t.Language}`) || {};
12
- if (m.isEmpty(r) || t.Language === "zh-CN" || !/[\u4e00-\u9fa5]/.test(e)) return e;
13
- const l = r[o];
14
- if (l)
15
- return l;
11
+ const n = g.get(`translate${t.Language}`) || {};
12
+ if (m.isEmpty(n) || t.Language === "zh-CN" || !/[\u4e00-\u9fa5]/.test(e)) return e;
13
+ const s = n[o];
14
+ if (s)
15
+ return s;
16
16
  {
17
- const n = ((i = localStorage.getItem("localStorageListId")) == null ? void 0 : i.split(",")) || [];
18
- if (n.includes(o.toString()))
17
+ const r = ((i = localStorage.getItem("localStorageListId")) == null ? void 0 : i.split(",")) || [];
18
+ if (r.includes(o.toString()))
19
19
  return e;
20
- n.push(o.toString()), localStorage.setItem("localStorageListId", n.join(","));
20
+ r.push(o.toString()), localStorage.setItem("localStorageListId", r.join(","));
21
21
  const p = {
22
22
  projectId: "place-order",
23
23
  id: o,
24
24
  cn: e
25
- }, g = "https://erptools.yaheecloud.com/api/translation/addTranslate";
26
- return console.log(g, "url"), y.post(g, p, { withCredentials: !0 }).then((f) => {
25
+ }, u = "http://api-tools-test.yahee.com.cn:81/api/translation/addTranslate";
26
+ return console.log(u, "url"), y.post(u, p, { withCredentials: !0 }).then((f) => {
27
27
  f.data.code;
28
28
  }), e;
29
29
  }
@@ -31,21 +31,21 @@ const $ = (e) => {
31
31
  function d(e) {
32
32
  let t = 0;
33
33
  if (!e || e.length === 0) return t;
34
- for (let o = 0, r = e.length; o < r; o++) {
34
+ for (let o = 0, n = e.length; o < n; o++) {
35
35
  const a = e.charCodeAt(o);
36
36
  t = (t << 5) - t + a, t |= 0;
37
37
  }
38
38
  return t;
39
39
  }
40
40
  function j(e, t = "") {
41
- const o = s.get("totalEmployees");
41
+ const o = l.get("totalEmployees");
42
42
  if (!e || m.isEmpty(o)) return t;
43
- const r = u.get("employee");
44
- if (r.Language === c.CN) return t;
43
+ const n = g.get("employee");
44
+ if (n.Language === c.CN) return t;
45
45
  const a = o[e];
46
- return a ? r.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((l) => {
47
- const i = s.get("totalEmployees") || {}, n = l.data[0];
48
- return n ? (i[e] = n, s.setWithExpireTime("totalEmployees", i, 3600 * 1e3), r.Language === c.CN ? n.name || "" : n.enName || "") : t;
46
+ return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((s) => {
47
+ const i = l.get("totalEmployees") || {}, r = s.data[0];
48
+ return r ? (i[e] = r, l.setWithExpireTime("totalEmployees", i, 3600 * 1e3), n.Language === c.CN ? r.name || "" : r.enName || "") : t;
49
49
  }), t);
50
50
  }
51
51
  function E(e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.52",
4
+ "version": "0.0.54",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -1452,6 +1452,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
1452
1452
  noNeedRefreshNumFilterName?: string;
1453
1453
  filterKey: string;
1454
1454
  defaultValues?: Array<string | number | boolean>;
1455
+ showTotal?: boolean;
1455
1456
  }, {
1456
1457
  clickAllSelected: () => void;
1457
1458
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -1476,6 +1477,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
1476
1477
  noNeedRefreshNumFilterName?: string;
1477
1478
  filterKey: string;
1478
1479
  defaultValues?: Array<string | number | boolean>;
1480
+ showTotal?: boolean;
1479
1481
  }> & Readonly<{
1480
1482
  onFilterChange?: (...args: any[]) => any;
1481
1483
  onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
@@ -1496,6 +1498,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
1496
1498
  staticSearch: boolean;
1497
1499
  noNeedRefreshNumFilterName: string;
1498
1500
  defaultValues: Array<string | number | boolean>;
1501
+ showTotal: boolean;
1499
1502
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
1500
1503
  itemRefs: CreateComponentPublicInstanceWithMixins<Readonly<{
1501
1504
  multiSelectList: Array<any>;
@@ -20,6 +20,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
20
20
  noNeedRefreshNumFilterName?: string;
21
21
  filterKey: string;
22
22
  defaultValues?: Array<string | number | boolean>;
23
+ showTotal?: boolean;
23
24
  }, {
24
25
  clickAllSelected: () => void;
25
26
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -44,6 +45,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
44
45
  noNeedRefreshNumFilterName?: string;
45
46
  filterKey: string;
46
47
  defaultValues?: Array<string | number | boolean>;
48
+ showTotal?: boolean;
47
49
  }> & Readonly<{
48
50
  onFilterChange?: (...args: any[]) => any;
49
51
  onSetNoNeedRefreshNumFilterName?: (...args: any[]) => any;
@@ -64,6 +66,7 @@ export declare const YaheeLeftCondition: SFCWithInstall<DefineComponent<{
64
66
  staticSearch: boolean;
65
67
  noNeedRefreshNumFilterName: string;
66
68
  defaultValues: Array<string | number | boolean>;
69
+ showTotal: boolean;
67
70
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
68
71
  itemRefs: CreateComponentPublicInstanceWithMixins<Readonly<{
69
72
  multiSelectList: Array<any>;
@@ -19,6 +19,7 @@ type __VLS_Props = {
19
19
  noNeedRefreshNumFilterName?: string;
20
20
  filterKey: string;
21
21
  defaultValues?: Array<string | number | boolean>;
22
+ showTotal?: boolean;
22
23
  };
23
24
  declare function clickAllSelected(): void;
24
25
  declare const _default: DefineComponent<__VLS_Props, {
@@ -46,6 +47,7 @@ declare const _default: DefineComponent<__VLS_Props, {
46
47
  staticSearch: boolean;
47
48
  noNeedRefreshNumFilterName: string;
48
49
  defaultValues: Array<string | number | boolean>;
50
+ showTotal: boolean;
49
51
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
50
52
  itemRefs: CreateComponentPublicInstanceWithMixins<Readonly<{
51
53
  multiSelectList: Array<any>;