yahee-components 0.0.111 → 0.0.113

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 (181) hide show
  1. package/es/operation-log/operation-log-form.vue.js +39 -40
  2. package/es/operation-log/operation-log.vue2.js +6 -6
  3. package/package.json +1 -1
  4. package/types/src/installs.d.ts +1 -1
  5. package/types/src/operation-log/index.d.ts +1 -1
  6. package/types/src/operation-log/operation-log.d.ts +1 -1
  7. package/types/src/operation-log/operation-log.vue.d.ts +1 -1
  8. package/types/src/operation-log/props.d.ts +1 -1
  9. package/es/annex-upload/annex-upload.vue.js +0 -55
  10. package/es/annex-upload/annex-upload.vue2.js +0 -121
  11. package/es/annex-upload/index.js +0 -7
  12. package/es/annex-upload/mimeType.js +0 -822
  13. package/es/annex-upload/style/index.css +0 -7
  14. package/es/border-wrap/border-wrap.vue.js +0 -75
  15. package/es/border-wrap/border-wrap.vue2.js +0 -48
  16. package/es/border-wrap/index.js +0 -7
  17. package/es/border-wrap/props.js +0 -11
  18. package/es/border-wrap/style/index.css +0 -24
  19. package/es/common-import/common-import.vue.js +0 -394
  20. package/es/common-import/common-import.vue2.js +0 -366
  21. package/es/common-import/index.js +0 -7
  22. package/es/common-import/props.js +0 -23
  23. package/es/common-import/style/index.css +0 -32
  24. package/es/complex-search/batch-search-dialog.vue.js +0 -119
  25. package/es/complex-search/batch-search-dialog.vue2.js +0 -50
  26. package/es/complex-search/complex-search.vue.js +0 -122
  27. package/es/complex-search/complex-search.vue2.js +0 -71
  28. package/es/complex-search/index.js +0 -7
  29. package/es/complex-search/props.js +0 -19
  30. package/es/complex-search/style/index.css +0 -24
  31. package/es/complex-search/useComplexSearch.js +0 -44
  32. package/es/copy/copy.vue.js +0 -39
  33. package/es/copy/copy.vue2.js +0 -36
  34. package/es/copy/index.js +0 -7
  35. package/es/copy/props.js +0 -9
  36. package/es/copy/style/index.css +0 -12
  37. package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +0 -120
  38. package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +0 -127
  39. package/es/country-platform-shop-condition/index.js +0 -7
  40. package/es/country-platform-shop-condition/style/index.css +0 -59
  41. package/es/drop-down-condition/drop-down-condition.vue.js +0 -125
  42. package/es/drop-down-condition/drop-down-condition.vue2.js +0 -129
  43. package/es/drop-down-condition/index.js +0 -7
  44. package/es/drop-down-condition/style/index.css +0 -64
  45. package/es/echart-gauge/echart-gauge.vue.js +0 -14
  46. package/es/echart-gauge/echart-gauge.vue2.js +0 -149
  47. package/es/echart-gauge/index.js +0 -7
  48. package/es/echart-gauge/props.js +0 -9
  49. package/es/echart-gauge/style/index.css +0 -4
  50. package/es/file-download-wrapper/file-download-wrapper.vue.js +0 -164
  51. package/es/file-download-wrapper/file-download-wrapper.vue2.js +0 -115
  52. package/es/file-download-wrapper/index.js +0 -7
  53. package/es/file-download-wrapper/key.js +0 -17
  54. package/es/file-download-wrapper/props.js +0 -12
  55. package/es/file-download-wrapper/style/index.css +0 -66
  56. package/es/filter-container/filter-container.vue.js +0 -24
  57. package/es/filter-container/filter-container.vue2.js +0 -61
  58. package/es/filter-container/index.js +0 -7
  59. package/es/filter-container/key.js +0 -4
  60. package/es/filter-container/props.js +0 -11
  61. package/es/filter-container/style/index.css +0 -16
  62. package/es/filter-wrapper/filter-wrapper.vue.js +0 -19
  63. package/es/filter-wrapper/filter-wrapper.vue2.js +0 -56
  64. package/es/filter-wrapper/index.js +0 -7
  65. package/es/filter-wrapper/props.js +0 -10
  66. package/es/filter-wrapper/style/index.css +0 -3
  67. package/es/height-collapse/height-collapse.vue.js +0 -26
  68. package/es/height-collapse/height-collapse.vue2.js +0 -44
  69. package/es/height-collapse/index.js +0 -7
  70. package/es/height-collapse/props.js +0 -11
  71. package/es/height-collapse/style/index.css +0 -32
  72. package/es/help-tag/help-tag.vue.js +0 -46
  73. package/es/help-tag/help-tag.vue2.js +0 -51
  74. package/es/help-tag/index.js +0 -7
  75. package/es/help-tag/props.js +0 -9
  76. package/es/help-tag/style/index.css +0 -8
  77. package/es/image-upload/image-upload.vue.js +0 -116
  78. package/es/image-upload/image-upload.vue2.js +0 -93
  79. package/es/image-upload/index.js +0 -7
  80. package/es/image-upload/style/index.css +0 -33
  81. package/es/index.js +0 -63
  82. package/es/installs.js +0 -41
  83. package/es/left-condition/index.js +0 -7
  84. package/es/left-condition/left-condition-sub.vue.js +0 -36
  85. package/es/left-condition/left-condition-sub.vue2.js +0 -78
  86. package/es/left-condition/left-condition.vue.js +0 -77
  87. package/es/left-condition/left-condition.vue2.js +0 -162
  88. package/es/left-condition/style/index.css +0 -10
  89. package/es/left-condition-enum/index.js +0 -7
  90. package/es/left-condition-enum/left-condition-enum.vue.js +0 -22
  91. package/es/left-condition-enum/left-condition-enum.vue2.js +0 -42
  92. package/es/left-condition-enum/style/index.css +0 -10
  93. package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +0 -99
  94. package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +0 -22
  95. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +0 -38
  96. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +0 -53
  97. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +0 -141
  98. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +0 -71
  99. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +0 -46
  100. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +0 -77
  101. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +0 -11
  102. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
  103. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +0 -136
  104. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +0 -54
  105. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -181
  106. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +0 -58
  107. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
  108. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +0 -31
  109. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +0 -70
  110. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +0 -14
  111. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +0 -13
  112. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +0 -89
  113. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +0 -8
  114. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +0 -4
  115. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -33
  116. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -71
  117. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +0 -8
  118. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +0 -23
  119. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
  120. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +0 -30
  121. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +0 -32
  122. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -31
  123. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
  124. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
  125. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -8
  126. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +0 -4
  127. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -30
  128. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
  129. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -35
  130. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -33
  131. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +0 -19
  132. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +0 -8
  133. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +0 -15
  134. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +0 -85
  135. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -13
  136. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +0 -63
  137. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +0 -54
  138. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
  139. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
  140. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
  141. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +0 -15
  142. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +0 -9
  143. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +0 -9
  144. package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +0 -222
  145. package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +0 -282
  146. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +0 -97
  147. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +0 -96
  148. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +0 -56
  149. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +0 -242
  150. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +0 -106
  151. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +0 -345
  152. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +0 -56
  153. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +0 -487
  154. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +0 -77
  155. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +0 -49
  156. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +0 -325
  157. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +0 -23
  158. package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +0 -10
  159. package/lib/annex-upload/style/index.css +0 -7
  160. package/lib/border-wrap/style/index.css +0 -24
  161. package/lib/common-import/style/index.css +0 -32
  162. package/lib/complex-search/style/index.css +0 -24
  163. package/lib/copy/style/index.css +0 -12
  164. package/lib/country-platform-shop-condition/style/index.css +0 -59
  165. package/lib/drop-down-condition/style/index.css +0 -64
  166. package/lib/echart-gauge/style/index.css +0 -4
  167. package/lib/file-download-wrapper/style/index.css +0 -66
  168. package/lib/filter-container/style/index.css +0 -16
  169. package/lib/filter-wrapper/style/index.css +0 -3
  170. package/lib/height-collapse/style/index.css +0 -32
  171. package/lib/help-tag/style/index.css +0 -8
  172. package/lib/image-upload/style/index.css +0 -33
  173. package/lib/left-condition/style/index.css +0 -10
  174. package/lib/left-condition-enum/style/index.css +0 -10
  175. package/lib/operation-log/style/index.css +0 -234
  176. package/lib/scale-screen/style/index.css +0 -0
  177. package/lib/style.css +0 -1405
  178. package/lib/styles/custom.css +0 -82
  179. package/lib/styles/globals.css +0 -699
  180. package/lib/styles/index.css +0 -753
  181. package/lib/styles/variables.css +0 -34
@@ -1,50 +1,49 @@
1
1
  import c from "./operation-log-form.vue2.js";
2
- import { createBlock as t, openBlock as n, withCtx as r, createVNode as a, createElementBlock as f, Fragment as h, renderList as C, createTextVNode as d, toDisplayString as m } from "vue";
2
+ import { createBlock as t, openBlock as n, withCtx as r, createVNode as a, createElementBlock as f, Fragment as h, renderList as C, createTextVNode as m, toDisplayString as d } from "vue";
3
3
  import g from "../_virtual/_plugin-vue_export-helper.js";
4
- function E(u, o, y, l, V, k) {
5
- return n(), t(l.ElForm, {
6
- model: l.form,
4
+ function E(u, o, y, e, V, k) {
5
+ return n(), t(e.ElForm, {
6
+ model: e.form,
7
7
  inline: !0,
8
- "label-width": "auto",
9
8
  size: "small"
10
9
  }, {
11
10
  default: r(() => [
12
- a(l.ElFormItem, null, {
11
+ a(e.ElFormItem, null, {
13
12
  default: r(() => [
14
- a(l.ElDatePicker, {
15
- modelValue: l.form.timeValue,
16
- "onUpdate:modelValue": o[0] || (o[0] = (e) => l.form.timeValue = e),
13
+ a(e.ElDatePicker, {
14
+ modelValue: e.form.timeValue,
15
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => e.form.timeValue = l),
17
16
  type: "daterange",
18
17
  format: "YYYY-MM-DD",
19
18
  "value-format": "YYYY-MM-DD",
20
19
  "unlink-panels": "",
21
- "range-separator": l.M2("至"),
22
- "start-placeholder": l.M2("开始日期"),
23
- "end-placeholder": l.M2("结束日期"),
24
- shortcuts: l.shortcuts,
20
+ "range-separator": e.M2("至"),
21
+ "start-placeholder": e.M2("开始日期"),
22
+ "end-placeholder": e.M2("结束日期"),
23
+ shortcuts: e.shortcuts,
25
24
  size: "small",
26
25
  clearable: "",
27
- onChange: l.searchChange
26
+ onChange: e.searchChange
28
27
  }, null, 8, ["modelValue", "range-separator", "start-placeholder", "end-placeholder"])
29
28
  ]),
30
29
  _: 1
31
30
  }),
32
- a(l.ElFormItem, null, {
31
+ a(e.ElFormItem, null, {
33
32
  default: r(() => [
34
- a(l.ElSelect, {
35
- modelValue: l.form.CreatedBy,
36
- "onUpdate:modelValue": o[1] || (o[1] = (e) => l.form.CreatedBy = e),
37
- placeholder: l.M2("请选择创建人"),
33
+ a(e.ElSelect, {
34
+ modelValue: e.form.CreatedBy,
35
+ "onUpdate:modelValue": o[1] || (o[1] = (l) => e.form.CreatedBy = l),
36
+ placeholder: e.M2("请选择创建人"),
38
37
  style: { width: "120px" },
39
38
  size: "small",
40
39
  clearable: "",
41
- onChange: l.searchChange
40
+ onChange: e.searchChange
42
41
  }, {
43
42
  default: r(() => [
44
- (n(!0), f(h, null, C(l.dataOptions, (e, i) => (n(), t(l.ElOption, {
45
- key: e.CreatedBy || e.CreatedName || i,
46
- label: e.CreatedName || "",
47
- value: e.CreatedBy || ""
43
+ (n(!0), f(h, null, C(e.dataOptions, (l, i) => (n(), t(e.ElOption, {
44
+ key: l.CreatedBy || l.CreatedName || i,
45
+ label: l.CreatedName || "",
46
+ value: l.CreatedBy || ""
48
47
  }, null, 8, ["label", "value"]))), 128))
49
48
  ]),
50
49
  _: 1
@@ -52,19 +51,19 @@ function E(u, o, y, l, V, k) {
52
51
  ]),
53
52
  _: 1
54
53
  }),
55
- a(l.ElFormItem, null, {
54
+ a(e.ElFormItem, null, {
56
55
  default: r(() => [
57
- a(l.ElInput, {
58
- modelValue: l.form.search,
59
- "onUpdate:modelValue": o[2] || (o[2] = (e) => l.form.search = e),
60
- placeholder: l.M2("综合搜索"),
56
+ a(e.ElInput, {
57
+ modelValue: e.form.search,
58
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => e.form.search = l),
59
+ placeholder: e.M2("综合搜索"),
61
60
  clearable: "",
62
61
  style: { width: "160px" }
63
62
  }, {
64
63
  append: r(() => [
65
- a(l.ElButton, {
66
- icon: l.Search,
67
- onClick: l.searchChange
64
+ a(e.ElButton, {
65
+ icon: e.Search,
66
+ onClick: e.searchChange
68
67
  }, null, 8, ["icon"])
69
68
  ]),
70
69
  _: 1
@@ -72,28 +71,28 @@ function E(u, o, y, l, V, k) {
72
71
  ]),
73
72
  _: 1
74
73
  }),
75
- a(l.ElFormItem, null, {
74
+ a(e.ElFormItem, null, {
76
75
  default: r(() => [
77
- a(l.ElButton, {
76
+ a(e.ElButton, {
78
77
  type: "primary",
79
- onClick: o[3] || (o[3] = (e) => l.searchChange(null))
78
+ onClick: o[3] || (o[3] = (l) => e.searchChange(null))
80
79
  }, {
81
80
  default: r(() => [
82
- d(m(l.M2("搜索全部")), 1)
81
+ m(d(e.M2("搜索全部")), 1)
83
82
  ]),
84
83
  _: 1
85
84
  })
86
85
  ]),
87
86
  _: 1
88
87
  }),
89
- a(l.ElFormItem, null, {
88
+ a(e.ElFormItem, null, {
90
89
  default: r(() => [
91
- a(l.ElButton, {
90
+ a(e.ElButton, {
92
91
  type: "primary",
93
- onClick: o[4] || (o[4] = (e) => l.searchChange("Check"))
92
+ onClick: o[4] || (o[4] = (l) => e.searchChange("Check"))
94
93
  }, {
95
94
  default: r(() => [
96
- d(m(l.M2("审核节点备注")), 1)
95
+ m(d(e.M2("审核节点备注")), 1)
97
96
  ]),
98
97
  _: 1
99
98
  })
@@ -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.111",
4
+ "version": "0.0.113",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -262,7 +262,7 @@ 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;
@@ -4,7 +4,7 @@ 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;
@@ -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,7 +3,7 @@ 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;
@@ -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 ''
@@ -1,55 +0,0 @@
1
- import r from "./annex-upload.vue2.js";
2
- import { createElementBlock as a, openBlock as n, createVNode as c, createSlots as m, withCtx as o, renderSlot as d, createTextVNode as f, toDisplayString as l, createElementVNode as s, createCommentVNode as _ } from "vue";
3
- import h from "../_virtual/_plugin-vue_export-helper.js";
4
- const p = { class: "yahee-annex-upload" }, u = { class: "margin15 el-upload__tip" }, x = { key: 0 };
5
- function w(i, y, t, e, S, E) {
6
- return n(), a("div", p, [
7
- c(e.ElUpload, {
8
- ref: "uploadRef",
9
- style: { width: "100%" },
10
- action: "",
11
- "http-request": e.uploadFile,
12
- "before-upload": e.beforeUpload,
13
- "on-success": e.handleSuccess,
14
- "on-remove": e.handleRemove,
15
- "on-exceed": e.handleExceed,
16
- accept: t.accept,
17
- multiple: "",
18
- limit: t.limit,
19
- "file-list": t.fileList,
20
- "show-file-list": t.showList
21
- }, m({
22
- default: o(() => [
23
- d(i.$slots, "default", {}, () => [
24
- c(e.ElButton, {
25
- plain: "",
26
- type: "primary"
27
- }, {
28
- default: o(() => [
29
- f(l(e.M2("上传文件")), 1)
30
- ]),
31
- _: 1
32
- })
33
- ])
34
- ]),
35
- _: 2
36
- }, [
37
- t.showTips ? {
38
- name: "tip",
39
- fn: o(() => [
40
- d(i.$slots, "tip", {}, () => [
41
- s("span", u, [
42
- s("span", null, l(e.M2(`支持扩展名:${t.accept}`)) + ",", 1),
43
- t.limitFileSize ? (n(), a("span", x, l(e.M2(`文件不能大于${t.fileSize}`)) + l(t.fileSizeUnit.toUpperCase()), 1)) : _("", !0)
44
- ])
45
- ])
46
- ]),
47
- key: "0"
48
- } : void 0
49
- ]), 1032, ["accept", "limit", "file-list", "show-file-list"])
50
- ]);
51
- }
52
- const N = /* @__PURE__ */ h(r, [["render", w], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/annex-upload/annex-upload.vue"]]);
53
- export {
54
- N as default
55
- };
@@ -1,121 +0,0 @@
1
- import { defineComponent as U, ref as E, watch as F, nextTick as p } from "vue";
2
- import { useUpload as _ } from "../packages/components/hooks/useUpload.js";
3
- import { useImport as w } from "../packages/components/hooks/useImport.js";
4
- import { useFormItem as $, ElMessage as n, ElButton as b, ElUpload as B } from "element-plus";
5
- import "element-plus/theme-chalk/src/base.scss";
6
- import "element-plus/theme-chalk/src/badge.scss";
7
- import "element-plus/theme-chalk/src/message.scss";
8
- import "element-plus/theme-chalk/src/upload.scss";
9
- import "element-plus/theme-chalk/src/progress.scss";
10
- import "element-plus/theme-chalk/src/button.scss";
11
- import { MimeType as m } from "./mimeType.js";
12
- import { M2 as a } from "../utils/translate.js";
13
- const I = /* @__PURE__ */ U({
14
- name: "AnnexUpload",
15
- __name: "annex-upload",
16
- props: {
17
- modelValue: { type: Array, required: !0, default: () => [] },
18
- fileList: { type: Array, required: !1, default: () => [] },
19
- showList: { type: Boolean, required: !1, default: !0 },
20
- fileType: { type: String, required: !1, default: "105" },
21
- accept: { type: String, required: !1, default: ".gif,.jpg,.png,.doc,.docx,.pdf,.xls,.xlsx" },
22
- checkRealType: { type: Boolean, required: !1, default: !0 },
23
- limit: { type: Number, required: !1, default: 1 },
24
- limitFileSize: { type: Boolean, required: !1, default: !0 },
25
- fileSize: { type: Number, required: !1, default: 20 },
26
- fileSizeUnit: { type: String, required: !1, default: "mb" },
27
- uploadType: { type: String, required: !1, default: "upload" },
28
- validateEvent: { type: Boolean, required: !1, default: !0 },
29
- showTips: { type: Boolean, required: !1, default: !0 }
30
- },
31
- emits: ["update:modelValue", "change", "success", "remove"],
32
- setup(y, { expose: g, emit: h }) {
33
- const l = y, r = h;
34
- function S(t) {
35
- if (l.accept && l.checkRealType) {
36
- const e = [];
37
- for (let i of l.accept.split(","))
38
- if (i = i.toLowerCase(), m.get(i) !== void 0)
39
- e.push(m.get(i));
40
- else
41
- return n.error(a(`文件类型错误,支持文件类型为: ${l.accept}!`)), !1;
42
- if (e.join().indexOf(t.type) === -1)
43
- return n.error(a(`文件类型错误,支持文件类型为: ${l.accept}!`)), !1;
44
- }
45
- if (l.limitFileSize) {
46
- let e = t.size;
47
- if (l.fileSizeUnit.toLowerCase() === "kb" ? e = t.size / 1024 : e = t.size / 1024 / 1024, !(e < l.fileSize))
48
- return n.error(a(`文件大小不能超过 ${l.fileSize}${l.fileSizeUnit}!`)), !1;
49
- }
50
- }
51
- function q(t) {
52
- return l.uploadType === "upload" ? _(l.fileType, t.file, (e) => {
53
- t.onProgress(e);
54
- }).then((e) => {
55
- t.onSuccess(e);
56
- }).catch(() => {
57
- t.onError();
58
- }) : l.uploadType === "import" && w(t.file, (e) => {
59
- t.onProgress(e);
60
- }).then((e) => {
61
- t.onSuccess(e);
62
- }).catch(() => {
63
- t.onError();
64
- }), null;
65
- }
66
- function z(t, e) {
67
- n.warning(
68
- a(
69
- `当前限制选择 ${l.limit} 个文件,本次选择了 ${t.length} 个文件,共选择了 ${t.length + e.length} 个文件`
70
- )
71
- );
72
- }
73
- const u = E(null);
74
- function s(t) {
75
- return t.length === 0 ? [] : t.map((e) => e.response ? {
76
- fileName: e.name,
77
- fileId: e.response[0],
78
- fileUrl: `http://qas-service.yahee.com.cn:8088/FMSService/Latest/${e.response[0]}`
79
- } : {
80
- fileName: e.name,
81
- fileId: e.url.split("/")[e.url.split("/").length - 1],
82
- fileUrl: e.url
83
- });
84
- }
85
- const T = async (t, e, i) => {
86
- if (l.uploadType === "import")
87
- r("update:modelValue", t);
88
- else if (l.uploadType === "upload") {
89
- const c = s(i);
90
- r("update:modelValue", c), await p(), r("change", c);
91
- }
92
- }, x = async (t, e) => {
93
- const i = s(e);
94
- r("update:modelValue", i), await p(), r("change", i);
95
- };
96
- async function f() {
97
- u.value.clearFiles(), r("update:modelValue", []), await p(), r("change", []);
98
- }
99
- g({ clearFiles: f });
100
- const { formItem: o } = $();
101
- F(
102
- () => l.modelValue,
103
- (t) => {
104
- var e;
105
- (!t || t.length === 0) && u.value.clearFiles(), l.validateEvent && ((e = o == null ? void 0 : o.validate) == null || e.call(o, "change").catch(() => {
106
- }));
107
- }
108
- );
109
- const d = { props: l, emits: r, beforeUpload: S, uploadFile: q, handleExceed: z, uploadRef: u, getUploadFiles: s, handleSuccess: T, handleRemove: x, clearFiles: f, formItem: o, get ElUpload() {
110
- return B;
111
- }, get ElButton() {
112
- return b;
113
- }, get M2() {
114
- return a;
115
- } };
116
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
117
- }
118
- });
119
- export {
120
- I as default
121
- };
@@ -1,7 +0,0 @@
1
- import { withInstall as o } from "../utils/install.js";
2
- import t from "./annex-upload.vue.js";
3
- const n = o(t);
4
- export {
5
- n as YaheeAnnexUpload,
6
- n as default
7
- };