yahee-components 0.0.110 → 0.0.112

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.
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, reactive as d, ref as E, onMounted as D } from "vue";
2
- import { ElOption as _, ElSelect as h, ElInput as w, ElFormItem as S, ElButton as b, ElDatePicker as y, ElForm as T } from "element-plus";
2
+ import { ElOption as _, ElSelect as b, ElInput as h, ElFormItem as w, ElButton as S, ElDatePicker as y, ElForm as N } from "element-plus";
3
3
  import "element-plus/theme-chalk/src/base.scss";
4
4
  import "element-plus/theme-chalk/src/form.scss";
5
5
  import "element-plus/theme-chalk/src/date-picker.scss";
@@ -12,14 +12,14 @@ import "element-plus/theme-chalk/src/tag.scss";
12
12
  import "element-plus/theme-chalk/src/option.scss";
13
13
  import "element-plus/theme-chalk/src/option-group.scss";
14
14
  import "element-plus/theme-chalk/src/select.scss";
15
- import { Search as v } from "@element-plus/icons-vue";
16
- import { getGlobalNotesUsers as N } from "../packages/components/api/log/index.js";
15
+ import { Search as T } from "@element-plus/icons-vue";
16
+ import { getGlobalNotesUsers as v } from "../packages/components/api/log/index.js";
17
17
  import { M2 as r } from "../utils/translate.js";
18
18
  const A = /* @__PURE__ */ f({
19
19
  __name: "operation-log-form",
20
20
  props: {
21
21
  businessKey: {
22
- type: String,
22
+ type: [String, Number],
23
23
  default: ""
24
24
  },
25
25
  businessName: {
@@ -70,7 +70,7 @@ const A = /* @__PURE__ */ f({
70
70
  t.append(
71
71
  "filter",
72
72
  JSON.stringify({ BusinessKey: n.businessKey, BusinessName: n.businessName })
73
- ), N(t).then((e) => {
73
+ ), v(t).then((e) => {
74
74
  s.value = e || [];
75
75
  });
76
76
  }, i = l, g = (t) => {
@@ -80,21 +80,21 @@ const A = /* @__PURE__ */ f({
80
80
  a();
81
81
  });
82
82
  const m = { props: n, form: o, dataOptions: s, shortcuts: c, getData: a, emit: i, searchChange: g, get ElForm() {
83
- return T;
83
+ return N;
84
84
  }, get ElDatePicker() {
85
85
  return y;
86
86
  }, get ElButton() {
87
- return b;
88
- }, get ElFormItem() {
89
87
  return S;
90
- }, get ElInput() {
88
+ }, get ElFormItem() {
91
89
  return w;
92
- }, get ElSelect() {
90
+ }, get ElInput() {
93
91
  return h;
92
+ }, get ElSelect() {
93
+ return b;
94
94
  }, get ElOption() {
95
95
  return _;
96
96
  }, get Search() {
97
- return v;
97
+ return T;
98
98
  }, get M2() {
99
99
  return r;
100
100
  } };
@@ -16,12 +16,12 @@ import { M2 as s } from "../utils/translate.js";
16
16
  import Q from "../annex-upload/annex-upload.vue.js";
17
17
  import W from "../node_modules/.pnpm/v3-infinite-loading@1.3.2/node_modules/v3-infinite-loading/lib/v3-infinite-loading.es.js";
18
18
  /* empty css */
19
- import { findGlobalNotes as X, insertGlobalnotes as N } from "../packages/components/api/log/index.js";
19
+ import { findGlobalNotes as X, insertGlobalnotes as x } from "../packages/components/api/log/index.js";
20
20
  const be = /* @__PURE__ */ _({
21
21
  name: "YaheeOperationLog",
22
22
  __name: "operation-log",
23
23
  props: {
24
- businessKey: { type: String, required: !0, default: "" },
24
+ businessKey: { type: [String, Number], required: !0, default: "" },
25
25
  businessName: { type: String, required: !0, default: "" },
26
26
  topHeight: { type: Number, required: !1, default: 90 },
27
27
  ifShowDocument: { type: Boolean, required: !1, default: !0 }
@@ -73,14 +73,14 @@ const be = /* @__PURE__ */ _({
73
73
  });
74
74
  }, m = (e) => {
75
75
  const t = new FormData();
76
- return t.append("BusinessKey", a.businessKey), t.append("BusinessName", a.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), N(t);
76
+ return t.append("BusinessKey", a.businessKey), t.append("BusinessName", a.businessName), t.append("notes", e.fileUrl), t.append("ViewTitle", e.fileName), x(t);
77
77
  }, w = () => {
78
78
  if (!p.value) {
79
79
  l.info(s("备注不能为空!"));
80
80
  return;
81
81
  }
82
82
  const e = new FormData();
83
- e.append("BusinessKey", a.businessKey), e.append("BusinessName", a.businessName), e.append("notes", p.value), e.append("ViewTitle", "备注"), N(e).then(async () => {
83
+ e.append("BusinessKey", a.businessKey), e.append("BusinessName", a.businessName), e.append("notes", p.value), e.append("ViewTitle", "备注"), x(e).then(async () => {
84
84
  l.success(s("添加备注成功!")), n.PageIndex = 0, p.value = "", await r(), f();
85
85
  });
86
86
  }, P = (e) => {
@@ -112,7 +112,7 @@ const be = /* @__PURE__ */ _({
112
112
  const e = (t = document.getElementsByClassName("log-form")[0]) == null ? void 0 : t.clientHeight;
113
113
  v.value = window.innerHeight - e - I.value.offsetHeight - a.topHeight, L();
114
114
  });
115
- const x = { props: a, ifShowDocument: M, loading: u, noMore: h, showDialog: c, docInfo: b, dataList: i, textareaText: p, compAnalysisFile: d, params: n, getLogMessage: r, load: L, filterChange: O, change: B, confirmUpload: S, uploadFile: m, sendEditQuill: w, handlePaste: P, infiniteList: y, scrollTop: f, boxHeight: v, logText: I, get CaretRight() {
115
+ const N = { props: a, ifShowDocument: M, loading: u, noMore: h, showDialog: c, docInfo: b, dataList: i, textareaText: p, compAnalysisFile: d, params: n, getLogMessage: r, load: L, filterChange: O, change: B, confirmUpload: S, uploadFile: m, sendEditQuill: w, handlePaste: P, infiniteList: y, scrollTop: f, boxHeight: v, logText: I, get CaretRight() {
116
116
  return V;
117
117
  }, get CaretLeft() {
118
118
  return T;
@@ -129,7 +129,7 @@ const be = /* @__PURE__ */ _({
129
129
  }, YaheeAnnexUpload: Q, get InfiniteLoading() {
130
130
  return W;
131
131
  } };
132
- return Object.defineProperty(x, "__isScriptSetup", { enumerable: !1, value: !0 }), x;
132
+ return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
133
133
  }
134
134
  });
135
135
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.110",
4
+ "version": "0.0.112",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -262,14 +262,14 @@ declare const _default: (( SFCWithInstall<DefineComponent<ExtractPropTypes<{
262
262
  }): any;
263
263
  };
264
264
  })> & Record<string, any>) | ( SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
265
- businessKey: string;
265
+ businessKey: string | number;
266
266
  businessName: string;
267
267
  ifShowDocument: boolean;
268
268
  topHeight: number;
269
269
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
270
270
  logForm: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
271
271
  businessKey: {
272
- type: StringConstructor;
272
+ type: (StringConstructor | NumberConstructor)[];
273
273
  default: string;
274
274
  };
275
275
  businessName: {
@@ -281,7 +281,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<ExtractPropTypes<{
281
281
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
282
282
  filterChange: (...args: any[]) => void;
283
283
  }, PublicProps, {
284
- businessKey: string;
284
+ businessKey: string | number;
285
285
  businessName: string | number;
286
286
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
287
287
  P: {};
@@ -292,7 +292,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<ExtractPropTypes<{
292
292
  Defaults: {};
293
293
  }, Readonly< ExtractPropTypes<{
294
294
  businessKey: {
295
- type: StringConstructor;
295
+ type: (StringConstructor | NumberConstructor)[];
296
296
  default: string;
297
297
  };
298
298
  businessName: {
@@ -302,7 +302,7 @@ declare const _default: (( SFCWithInstall<DefineComponent<ExtractPropTypes<{
302
302
  }>> & Readonly<{
303
303
  onFilterChange?: (...args: any[]) => any;
304
304
  }>, {}, {}, {}, {}, {
305
- businessKey: string;
305
+ businessKey: string | number;
306
306
  businessName: string | number;
307
307
  }>;
308
308
  infiniteList: {
@@ -4,14 +4,14 @@ import { OperationLogProps } from './operation-log';
4
4
  import { ScrollbarDirection } from 'element-plus';
5
5
  import { OnCleanup } from '@vue/reactivity';
6
6
  export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< OperationLogProps> & Readonly<{}>, {
7
- businessKey: string;
7
+ businessKey: string | number;
8
8
  businessName: string;
9
9
  ifShowDocument: boolean;
10
10
  topHeight: number;
11
11
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
12
12
  logForm: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
13
13
  businessKey: {
14
- type: StringConstructor;
14
+ type: (StringConstructor | NumberConstructor)[];
15
15
  default: string;
16
16
  };
17
17
  businessName: {
@@ -23,7 +23,7 @@ export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<Operation
23
23
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
24
  filterChange: (...args: any[]) => void;
25
25
  }, PublicProps, {
26
- businessKey: string;
26
+ businessKey: string | number;
27
27
  businessName: string | number;
28
28
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
29
29
  P: {};
@@ -34,7 +34,7 @@ export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<Operation
34
34
  Defaults: {};
35
35
  }, Readonly< ExtractPropTypes<{
36
36
  businessKey: {
37
- type: StringConstructor;
37
+ type: (StringConstructor | NumberConstructor)[];
38
38
  default: string;
39
39
  };
40
40
  businessName: {
@@ -44,7 +44,7 @@ export declare const YaheeOperationLog: SFCWithInstall<DefineComponent<Operation
44
44
  }>> & Readonly<{
45
45
  onFilterChange?: (...args: any[]) => any;
46
46
  }>, {}, {}, {}, {}, {
47
- businessKey: string;
47
+ businessKey: string | number;
48
48
  businessName: string | number;
49
49
  }>;
50
50
  infiniteList: {
@@ -1,7 +1,7 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
3
  businessKey: {
4
- type: StringConstructor;
4
+ type: (StringConstructor | NumberConstructor)[];
5
5
  default: string;
6
6
  };
7
7
  businessName: {
@@ -12,7 +12,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
12
12
  filterChange: (...args: any[]) => void;
13
13
  }, string, PublicProps, Readonly< ExtractPropTypes<{
14
14
  businessKey: {
15
- type: StringConstructor;
15
+ type: (StringConstructor | NumberConstructor)[];
16
16
  default: string;
17
17
  };
18
18
  businessName: {
@@ -22,7 +22,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
22
22
  }>> & Readonly<{
23
23
  onFilterChange?: (...args: any[]) => any;
24
24
  }>, {
25
- businessKey: string;
25
+ businessKey: string | number;
26
26
  businessName: string | number;
27
27
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
28
28
  export default _default;
@@ -3,7 +3,7 @@ import { default as OperationLog } from './operation-log.vue';
3
3
  * 定义props类型
4
4
  */
5
5
  export interface OperationLogProps {
6
- businessKey: string;
6
+ businessKey: string | number;
7
7
  businessName: string;
8
8
  topHeight?: number;
9
9
  ifShowDocument?: boolean;
@@ -3,14 +3,14 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  import { ScrollbarDirection } from 'element-plus';
4
4
  import { OnCleanup } from '@vue/reactivity';
5
5
  declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<OperationLogProps> & Readonly<{}>, {
6
- businessKey: string;
6
+ businessKey: string | number;
7
7
  businessName: string;
8
8
  ifShowDocument: boolean;
9
9
  topHeight: number;
10
10
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
11
11
  logForm: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
12
12
  businessKey: {
13
- type: StringConstructor;
13
+ type: (StringConstructor | NumberConstructor)[];
14
14
  default: string;
15
15
  };
16
16
  businessName: {
@@ -22,7 +22,7 @@ declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, Compo
22
22
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
23
  filterChange: (...args: any[]) => void;
24
24
  }, PublicProps, {
25
- businessKey: string;
25
+ businessKey: string | number;
26
26
  businessName: string | number;
27
27
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
28
28
  P: {};
@@ -33,7 +33,7 @@ declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, Compo
33
33
  Defaults: {};
34
34
  }, Readonly< ExtractPropTypes<{
35
35
  businessKey: {
36
- type: StringConstructor;
36
+ type: (StringConstructor | NumberConstructor)[];
37
37
  default: string;
38
38
  };
39
39
  businessName: {
@@ -43,7 +43,7 @@ declare const _default: DefineComponent<OperationLogProps, {}, {}, {}, {}, Compo
43
43
  }>> & Readonly<{
44
44
  onFilterChange?: (...args: any[]) => any;
45
45
  }>, {}, {}, {}, {}, {
46
- businessKey: string;
46
+ businessKey: string | number;
47
47
  businessName: string | number;
48
48
  }>;
49
49
  infiniteList: {
@@ -6,7 +6,7 @@ export interface OperationLogProps {
6
6
  * 业务ID
7
7
  * @default ''
8
8
  */
9
- businessKey: string;
9
+ businessKey: string | number;
10
10
  /**
11
11
  * 业务名称(后端提供,如PLM为PRODUCT_DEV)
12
12
  * @default ''