yahee-components 0.0.30 → 0.0.32

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 (53) 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 +228 -282
  7. package/es/complex-search/complex-search.vue2.js +130 -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/country-platform-shop-condition/style/index.css +3 -4
  15. package/es/drop-down-condition/drop-down-condition.vue.js +193 -211
  16. package/es/drop-down-condition/drop-down-condition.vue2.js +127 -2
  17. package/es/drop-down-condition/style/index.css +21 -12
  18. package/es/image-upload/image-upload.vue.js +76 -113
  19. package/es/image-upload/image-upload.vue2.js +91 -2
  20. package/es/image-upload/index.js +3 -3
  21. package/es/input/index.js +3 -3
  22. package/es/input/input.vue.js +17 -38
  23. package/es/input/input.vue2.js +33 -2
  24. package/es/left-condition/index.js +5 -5
  25. package/es/left-condition/left-condition-sub.vue.js +55 -86
  26. package/es/left-condition/left-condition-sub.vue2.js +76 -2
  27. package/es/left-condition/left-condition.vue.js +91 -209
  28. package/es/left-condition/left-condition.vue2.js +152 -2
  29. package/es/left-condition-enum/index.js +3 -3
  30. package/es/left-condition-enum/left-condition-enum.vue.js +19 -77
  31. package/es/left-condition-enum/left-condition-enum.vue2.js +69 -2
  32. package/es/operation-log/operation-log-content.vue.js +78 -88
  33. package/es/operation-log/operation-log-content.vue2.js +35 -2
  34. package/es/operation-log/operation-log-dialog.vue.js +57 -68
  35. package/es/operation-log/operation-log-dialog.vue2.js +38 -2
  36. package/es/operation-log/operation-log-form.vue.js +132 -179
  37. package/es/operation-log/operation-log-form.vue2.js +100 -2
  38. package/es/operation-log/operation-log.vue.js +183 -221
  39. package/es/operation-log/operation-log.vue2.js +133 -2
  40. package/es/packages/components/api/log-server.js +4 -4
  41. package/es/packages/components/api/upload-server.js +5 -5
  42. package/es/packages/components/hooks/useImg.js +8 -8
  43. package/es/style.css +24 -16
  44. package/es/utils/translate.js +13 -13
  45. package/lib/country-platform-shop-condition/style/index.css +3 -4
  46. package/lib/drop-down-condition/style/index.css +21 -12
  47. package/lib/style.css +24 -16
  48. package/package.json +1 -1
  49. package/types/src/installs.d.ts +2 -1
  50. package/types/src/operation-log/index.d.ts +2 -1
  51. package/types/src/operation-log/operation-log-form.vue.d.ts +3 -3
  52. package/types/src/operation-log/operation-log.d.ts +2 -1
  53. package/types/src/operation-log/operation-log.vue.d.ts +2 -1
package/es/style.css CHANGED
@@ -103,15 +103,11 @@
103
103
  height: 22px;
104
104
  }
105
105
 
106
- .yahee-drop-down-condition {
107
- /* 滚动槽 */
108
- /* 滚动条滑块 */
109
- }
110
106
  .yahee-drop-down-condition .checkbox {
111
107
  margin-top: 5px;
112
108
  }
113
109
  .yahee-drop-down-condition .custom-total-button {
114
- margin-right: 0;
110
+ margin-right: 5px;
115
111
  padding: 1px 4px;
116
112
  height: 22px;
117
113
  }
@@ -119,39 +115,52 @@
119
115
  display: flex;
120
116
  flex-direction: column;
121
117
  }
122
- .yahee-drop-down-condition .scrollable-container {
118
+
119
+ .scrollable-container {
123
120
  max-height: 700px;
124
121
  overflow-y: auto;
125
122
  display: flex;
126
123
  flex-direction: column;
127
124
  }
128
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
125
+
126
+ .scrollable-container::-webkit-scrollbar {
129
127
  width: 5px;
130
128
  }
131
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
129
+
130
+ /* 滚动槽 */
131
+ .scrollable-container::-webkit-scrollbar-track {
132
132
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
133
133
  border-radius: 10px;
134
134
  }
135
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
135
+
136
+ /* 滚动条滑块 */
137
+ .scrollable-container::-webkit-scrollbar-thumb {
136
138
  border-radius: 10px;
137
139
  background: rgba(0, 0, 0, 0.1);
138
140
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
139
141
  }
140
142
 
143
+ .el-button + .el-button.custom-dropdown-button {
144
+ margin-left: 5px;
145
+ }
146
+
141
147
  .custom-dropdown .checkbox {
142
148
  margin-top: 5px;
143
149
  }
144
- .custom-dropdown .custom-button {
150
+ .custom-dropdown .custom-dropdown-button {
145
151
  margin-right: 0;
146
152
  padding: 1px 4px;
147
153
  min-height: 22px;
148
154
  height: 22px;
149
- margin-left: 5px;
150
155
  }
151
- .custom-dropdown .custom-button.inner-el-button {
156
+ .custom-dropdown .custom-dropdown-button.inner-el-button {
152
157
  margin-top: 5px;
153
158
  }
154
159
 
160
+ .custom-dropdown-checkbox-group {
161
+ margin-right: 10px;
162
+ }
163
+
155
164
  .custom-popover .checkbox-group {
156
165
  margin: 5px;
157
166
  width: 100%;
@@ -179,7 +188,6 @@
179
188
  }
180
189
  .custom-popover .popover-table td span {
181
190
  display: block;
182
- border: 1px solid transparent;
183
191
  }
184
192
  .custom-popover .custom-total-button {
185
193
  margin-right: 0;
@@ -196,15 +204,15 @@
196
204
  color: blue;
197
205
  }
198
206
  .yahee-country-platform-shop-condition .custom-total-button {
199
- margin-right: 0;
207
+ margin-right: 5px;
200
208
  padding: 1px 4px;
201
209
  height: 22px;
202
210
  }
203
211
  .yahee-country-platform-shop-condition .custom-button {
204
212
  min-height: 22px;
205
- min-width: 50px;
213
+ min-width: 48px;
206
214
  height: 22px;
207
- margin: 3px;
215
+ margin: 0 5px 0 0;
208
216
  }
209
217
  .yahee-country-platform-shop-condition .custom-button.inner-el-button {
210
218
  margin-top: 5px;
@@ -1,17 +1,17 @@
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 h from "../node_modules/.pnpm/axios@1.7.9/node_modules/axios/lib/axios.js";
4
4
  import { i18nType as c } from "../static/CommonObject.js";
5
5
  import { Get as y } from "../api/server.js";
6
6
  const T = (e) => {
7
7
  var i;
8
- const t = u.get("employee") || {}, o = d(e);
8
+ const t = g.get("employee") || {}, o = d(e);
9
9
  if (o === 0) return e;
10
- const n = u.get(`translate${t.Language}`) || {};
10
+ const n = g.get(`translate${t.Language}`) || {};
11
11
  if (m.isEmpty(n) || t.Language === "zh-CN" || !/[\u4e00-\u9fa5]/.test(e)) return e;
12
- const l = n[o];
13
- if (l)
14
- return l;
12
+ const s = n[o];
13
+ if (s)
14
+ return s;
15
15
  {
16
16
  const r = ((i = localStorage.getItem("localStorageListId")) == null ? void 0 : i.split(",")) || [];
17
17
  if (r.includes(o.toString()))
@@ -21,8 +21,8 @@ const T = (e) => {
21
21
  projectId: "place-order",
22
22
  id: o,
23
23
  cn: e
24
- }, g = "https://erptools.yaheecloud.com/api/translation/addTranslate";
25
- return console.log(g, "url"), h.post(g, p, { withCredentials: !0 }).then((f) => {
24
+ }, u = "http://api-tools-test.yahee.com.cn:81/api/translation/addTranslate";
25
+ return console.log(u, "url"), h.post(u, p, { withCredentials: !0 }).then((f) => {
26
26
  f.data.code;
27
27
  }), e;
28
28
  }
@@ -37,14 +37,14 @@ function d(e) {
37
37
  return t;
38
38
  }
39
39
  function $(e, t = "") {
40
- const o = s.get("totalEmployees");
40
+ const o = l.get("totalEmployees");
41
41
  if (!e || m.isEmpty(o)) return t;
42
- const n = u.get("employee");
42
+ const n = g.get("employee");
43
43
  if (n.Language === c.CN) return t;
44
44
  const a = o[e];
45
- return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((l) => {
46
- const i = s.get("totalEmployees") || {}, r = l.data[0];
47
- return r ? (i[e] = r, s.setWithExpireTime("totalEmployees", i, 3600 * 1e3), n.Language === c.CN ? r.name || "" : r.enName || "") : t;
45
+ return a ? n.Language === c.CN ? a.name || t : a.enName || "" : (E(e).then((s) => {
46
+ const i = l.get("totalEmployees") || {}, r = s.data[0];
47
+ return r ? (i[e] = r, l.setWithExpireTime("totalEmployees", i, 3600 * 1e3), n.Language === c.CN ? r.name || "" : r.enName || "") : t;
48
48
  }), t);
49
49
  }
50
50
  function E(e) {
@@ -25,7 +25,6 @@
25
25
  }
26
26
  .custom-popover .popover-table td span {
27
27
  display: block;
28
- border: 1px solid transparent;
29
28
  }
30
29
  .custom-popover .custom-total-button {
31
30
  margin-right: 0;
@@ -42,15 +41,15 @@
42
41
  color: blue;
43
42
  }
44
43
  .yahee-country-platform-shop-condition .custom-total-button {
45
- margin-right: 0;
44
+ margin-right: 5px;
46
45
  padding: 1px 4px;
47
46
  height: 22px;
48
47
  }
49
48
  .yahee-country-platform-shop-condition .custom-button {
50
49
  min-height: 22px;
51
- min-width: 50px;
50
+ min-width: 48px;
52
51
  height: 22px;
53
- margin: 3px;
52
+ margin: 0 5px 0 0;
54
53
  }
55
54
  .yahee-country-platform-shop-condition .custom-button.inner-el-button {
56
55
  margin-top: 5px;
@@ -1,13 +1,9 @@
1
1
  @charset "UTF-8";
2
- .yahee-drop-down-condition {
3
- /* 滚动槽 */
4
- /* 滚动条滑块 */
5
- }
6
2
  .yahee-drop-down-condition .checkbox {
7
3
  margin-top: 5px;
8
4
  }
9
5
  .yahee-drop-down-condition .custom-total-button {
10
- margin-right: 0;
6
+ margin-right: 5px;
11
7
  padding: 1px 4px;
12
8
  height: 22px;
13
9
  }
@@ -15,35 +11,48 @@
15
11
  display: flex;
16
12
  flex-direction: column;
17
13
  }
18
- .yahee-drop-down-condition .scrollable-container {
14
+
15
+ .scrollable-container {
19
16
  max-height: 700px;
20
17
  overflow-y: auto;
21
18
  display: flex;
22
19
  flex-direction: column;
23
20
  }
24
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
21
+
22
+ .scrollable-container::-webkit-scrollbar {
25
23
  width: 5px;
26
24
  }
27
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
25
+
26
+ /* 滚动槽 */
27
+ .scrollable-container::-webkit-scrollbar-track {
28
28
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
29
29
  border-radius: 10px;
30
30
  }
31
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
31
+
32
+ /* 滚动条滑块 */
33
+ .scrollable-container::-webkit-scrollbar-thumb {
32
34
  border-radius: 10px;
33
35
  background: rgba(0, 0, 0, 0.1);
34
36
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
35
37
  }
36
38
 
39
+ .el-button + .el-button.custom-dropdown-button {
40
+ margin-left: 5px;
41
+ }
42
+
37
43
  .custom-dropdown .checkbox {
38
44
  margin-top: 5px;
39
45
  }
40
- .custom-dropdown .custom-button {
46
+ .custom-dropdown .custom-dropdown-button {
41
47
  margin-right: 0;
42
48
  padding: 1px 4px;
43
49
  min-height: 22px;
44
50
  height: 22px;
45
- margin-left: 5px;
46
51
  }
47
- .custom-dropdown .custom-button.inner-el-button {
52
+ .custom-dropdown .custom-dropdown-button.inner-el-button {
48
53
  margin-top: 5px;
54
+ }
55
+
56
+ .custom-dropdown-checkbox-group {
57
+ margin-right: 10px;
49
58
  }
package/lib/style.css CHANGED
@@ -103,15 +103,11 @@
103
103
  height: 22px;
104
104
  }
105
105
 
106
- .yahee-drop-down-condition {
107
- /* 滚动槽 */
108
- /* 滚动条滑块 */
109
- }
110
106
  .yahee-drop-down-condition .checkbox {
111
107
  margin-top: 5px;
112
108
  }
113
109
  .yahee-drop-down-condition .custom-total-button {
114
- margin-right: 0;
110
+ margin-right: 5px;
115
111
  padding: 1px 4px;
116
112
  height: 22px;
117
113
  }
@@ -119,39 +115,52 @@
119
115
  display: flex;
120
116
  flex-direction: column;
121
117
  }
122
- .yahee-drop-down-condition .scrollable-container {
118
+
119
+ .scrollable-container {
123
120
  max-height: 700px;
124
121
  overflow-y: auto;
125
122
  display: flex;
126
123
  flex-direction: column;
127
124
  }
128
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar {
125
+
126
+ .scrollable-container::-webkit-scrollbar {
129
127
  width: 5px;
130
128
  }
131
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-track {
129
+
130
+ /* 滚动槽 */
131
+ .scrollable-container::-webkit-scrollbar-track {
132
132
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
133
133
  border-radius: 10px;
134
134
  }
135
- .yahee-drop-down-condition .scrollable-container::-webkit-scrollbar-thumb {
135
+
136
+ /* 滚动条滑块 */
137
+ .scrollable-container::-webkit-scrollbar-thumb {
136
138
  border-radius: 10px;
137
139
  background: rgba(0, 0, 0, 0.1);
138
140
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
139
141
  }
140
142
 
143
+ .el-button + .el-button.custom-dropdown-button {
144
+ margin-left: 5px;
145
+ }
146
+
141
147
  .custom-dropdown .checkbox {
142
148
  margin-top: 5px;
143
149
  }
144
- .custom-dropdown .custom-button {
150
+ .custom-dropdown .custom-dropdown-button {
145
151
  margin-right: 0;
146
152
  padding: 1px 4px;
147
153
  min-height: 22px;
148
154
  height: 22px;
149
- margin-left: 5px;
150
155
  }
151
- .custom-dropdown .custom-button.inner-el-button {
156
+ .custom-dropdown .custom-dropdown-button.inner-el-button {
152
157
  margin-top: 5px;
153
158
  }
154
159
 
160
+ .custom-dropdown-checkbox-group {
161
+ margin-right: 10px;
162
+ }
163
+
155
164
  .custom-popover .checkbox-group {
156
165
  margin: 5px;
157
166
  width: 100%;
@@ -179,7 +188,6 @@
179
188
  }
180
189
  .custom-popover .popover-table td span {
181
190
  display: block;
182
- border: 1px solid transparent;
183
191
  }
184
192
  .custom-popover .custom-total-button {
185
193
  margin-right: 0;
@@ -196,15 +204,15 @@
196
204
  color: blue;
197
205
  }
198
206
  .yahee-country-platform-shop-condition .custom-total-button {
199
- margin-right: 0;
207
+ margin-right: 5px;
200
208
  padding: 1px 4px;
201
209
  height: 22px;
202
210
  }
203
211
  .yahee-country-platform-shop-condition .custom-button {
204
212
  min-height: 22px;
205
- min-width: 50px;
213
+ min-width: 48px;
206
214
  height: 22px;
207
- margin: 3px;
215
+ margin: 0 5px 0 0;
208
216
  }
209
217
  .yahee-country-platform-shop-condition .custom-button.inner-el-button {
210
218
  margin-top: 5px;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.30",
4
+ "version": "0.0.32",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -143,7 +143,8 @@ declare const _default: (( SFCWithInstall<DefineComponent<InputProps, {
143
143
  }): any;
144
144
  };
145
145
  })> & Record<string, any>) | ( SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
146
- projectId: string;
146
+ businessKey: string;
147
+ businessName: string;
147
148
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>> & Record<string, any>) | ( SFCWithInstall<{
148
149
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< AnnexUploadProps> & Readonly<{
149
150
  onChange?: (...args: any[]) => any;
@@ -2,7 +2,8 @@ import { SFCWithInstall } from '../utils/typescript';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  import { OperationLogProps } from './operation-log';
4
4
  export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
5
- projectId: string;
5
+ businessKey: string;
6
+ businessName: string;
6
7
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>> & Record<string, any>;
7
8
  export default YaheeOperationLog;
8
9
  export * from './operation-log.vue';
@@ -1,19 +1,19 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
- projectId: {
3
+ businessKey: {
4
4
  type: StringConstructor;
5
5
  default: string;
6
6
  };
7
7
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
8
  filterChange: (...args: any[]) => void;
9
9
  }, string, PublicProps, Readonly< ExtractPropTypes<{
10
- projectId: {
10
+ businessKey: {
11
11
  type: StringConstructor;
12
12
  default: string;
13
13
  };
14
14
  }>> & Readonly<{
15
15
  onFilterChange?: (...args: any[]) => any;
16
16
  }>, {
17
- projectId: string;
17
+ businessKey: string;
18
18
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
19
19
  export default _default;
@@ -3,7 +3,8 @@ import { default as OperationLog } from './operation-log.vue';
3
3
  * 定义props类型
4
4
  */
5
5
  export interface OperationLogProps {
6
- projectId: string;
6
+ businessKey: string;
7
+ businessName: string;
7
8
  }
8
9
  /**
9
10
  * 定义instance类型
@@ -1,6 +1,7 @@
1
1
  import { OperationLogProps } from './operation-log';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OperationLogProps> & Readonly<{}>, {
4
- projectId: string;
4
+ businessKey: string;
5
+ businessName: string;
5
6
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
7
  export default _default;