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,44 +0,0 @@
1
- import { defineComponent as h, mergeDefaults as x, ref as i, watch as w, onMounted as H, onUnmounted as _, nextTick as f } from "vue";
2
- import { defaultHeightCollapseProps as b } from "./props.js";
3
- const E = /* @__PURE__ */ h({
4
- __name: "height-collapse",
5
- props: /* @__PURE__ */ x({
6
- maxHeight: { type: Number, required: !1 },
7
- defaultExpand: { type: Boolean, required: !1 },
8
- expandTitle: { type: String, required: !1 },
9
- collapseTitle: { type: String, required: !1 }
10
- }, b()),
11
- emits: ["change"],
12
- setup(v, { expose: d, emit: m }) {
13
- d();
14
- const t = v, u = m, l = i(t.defaultExpand), c = i(!1), e = i(null), r = i(t.maxHeight + 5);
15
- let a = null;
16
- const s = () => {
17
- if (!e.value) {
18
- r.value = t.maxHeight + 5;
19
- return;
20
- }
21
- l.value ? r.value = e.value.scrollHeight : r.value = Math.min(e.value.clientHeight, t.maxHeight);
22
- }, n = async () => {
23
- if (await f(), !e.value) return;
24
- const { scrollHeight: o } = e.value;
25
- c.value = o > t.maxHeight, s();
26
- }, g = async () => {
27
- l.value = !l.value, u("change", l.value), await f(), s();
28
- };
29
- w(() => t.maxHeight, n), H(() => {
30
- n(), e.value && (a = new ResizeObserver(n), a.observe(e.value)), window.addEventListener("resize", n);
31
- }), _(() => {
32
- a == null || a.disconnect(), window.removeEventListener("resize", n);
33
- });
34
- const p = { props: t, emit: u, isExpand: l, isOverflow: c, contentRef: e, buttonTop: r, get resizeObserver() {
35
- return a;
36
- }, set resizeObserver(o) {
37
- a = o;
38
- }, updateButtonTop: s, calcOverflow: n, clickToggleFilter: g };
39
- return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
40
- }
41
- });
42
- export {
43
- E as default
44
- };
@@ -1,7 +0,0 @@
1
- import { withInstall as t } from "../utils/install.js";
2
- import e from "./height-collapse.vue.js";
3
- const a = t(e);
4
- export {
5
- a as YaheeHeightCollapse,
6
- a as default
7
- };
@@ -1,11 +0,0 @@
1
- function e() {
2
- return {
3
- maxHeight: 140,
4
- defaultExpand: !1,
5
- expandTitle: "点击收缩",
6
- collapseTitle: "点击加载更多"
7
- };
8
- }
9
- export {
10
- e as defaultHeightCollapseProps
11
- };
@@ -1,32 +0,0 @@
1
- @charset "UTF-8";
2
- .yahee-height-collapse-wrapper {
3
- width: 100%;
4
- position: relative;
5
- }
6
- .yahee-height-collapse-wrapper .height-collapse-content {
7
- width: 100%;
8
- transition: max-height 0.2s ease;
9
- }
10
- .yahee-height-collapse-wrapper .show-filters {
11
- cursor: pointer;
12
- width: 100%;
13
- background: #eaeded;
14
- font-weight: bold;
15
- color: #3366cc;
16
- text-align: center;
17
- font-size: 10px;
18
- height: 12px;
19
- z-index: 1111;
20
- display: inline-block;
21
- position: absolute;
22
- margin: 0;
23
- border-bottom: 1px solid #3366cc;
24
- border-top: 1px solid #ddd;
25
- line-height: 9px;
26
- left: 0;
27
- /* 收起状态的额外样式可以通过 .show-filters.more 来扩展 */
28
- }
29
- .yahee-height-collapse-wrapper .show-filters:hover {
30
- background: #9bafbf;
31
- color: #fff;
32
- }
@@ -1,46 +0,0 @@
1
- import c from "./help-tag.vue2.js";
2
- import { createElementBlock as i, openBlock as r, createVNode as t, withCtx as o, withDirectives as a, createElementVNode as l, withModifiers as p } from "vue";
3
- import d from "../_virtual/_plugin-vue_export-helper.js";
4
- const s = {
5
- class: "yahee-help-tag",
6
- ref: "yaheeHelpTag"
7
- }, f = ["innerHTML"];
8
- function _(h, m, n, e, g, v) {
9
- return r(), i("div", s, [
10
- t(e.ElPopover, {
11
- ref: "popoverRef",
12
- placement: "bottom",
13
- width: n.tipsContentSize.width,
14
- "append-to": e.yaheeHelpTag,
15
- trigger: "click"
16
- }, {
17
- reference: o(() => [
18
- t(e.ElIcon, {
19
- size: "18",
20
- color: "#ccc",
21
- onClick: p(e.getTipsContent, ["stop"]),
22
- style: { cursor: "pointer" }
23
- }, {
24
- default: o(() => [
25
- t(e.InfoFilled)
26
- ]),
27
- _: 1
28
- })
29
- ]),
30
- default: o(() => [
31
- a(l("div", {
32
- class: "tips-content",
33
- ref: "contentRef",
34
- innerHTML: e.tipsContent
35
- }, null, 8, f), [
36
- [e.vLoading, e.loading]
37
- ])
38
- ]),
39
- _: 1
40
- }, 8, ["width", "append-to"])
41
- ], 512);
42
- }
43
- const C = /* @__PURE__ */ d(c, [["render", _], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/help-tag/help-tag.vue"]]);
44
- export {
45
- C as default
46
- };
@@ -1,51 +0,0 @@
1
- import { defineComponent as f, ref as e, nextTick as c } from "vue";
2
- import { GetHelpTag as d } from "../packages/components/api/log/index.js";
3
- import { InfoFilled as g } from "@element-plus/icons-vue";
4
- import { vLoading as m, ElIcon as v, ElPopover as h } from "element-plus";
5
- import "element-plus/theme-chalk/src/base.scss";
6
- import "element-plus/theme-chalk/src/popper.scss";
7
- import "element-plus/theme-chalk/src/popover.scss";
8
- const E = /* @__PURE__ */ f({
9
- __name: "help-tag",
10
- props: {
11
- tipsId: {
12
- type: String,
13
- default: ""
14
- },
15
- tipsContentSize: {
16
- type: Object,
17
- default: () => ({ width: 80, height: 80 }),
18
- required: !1
19
- }
20
- },
21
- setup(a, { expose: u }) {
22
- u();
23
- const n = e(), s = e(null), t = e(null), o = e(null), p = e(!1), i = a;
24
- c(() => {
25
- o.value && (o.value.style.height = `${i.tipsContentSize.height}px`), t.value && typeof t.value.updatePopper == "function" && t.value.updatePopper();
26
- });
27
- const r = { tipsContent: n, yaheeHelpTag: s, popoverRef: t, contentRef: o, loading: p, props: i, getTipsContent: () => {
28
- p.value = !0, setTimeout(() => {
29
- d({ Id: i.tipsId }).then((l) => {
30
- l && l.Content && (n.value = l.Content.Content);
31
- }).catch(() => {
32
- n.value = "加载失败,请重试";
33
- }).finally(() => {
34
- p.value = !1;
35
- });
36
- }, 3e3);
37
- }, get InfoFilled() {
38
- return g;
39
- }, get ElPopover() {
40
- return h;
41
- }, get ElIcon() {
42
- return v;
43
- }, get vLoading() {
44
- return m;
45
- } };
46
- return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
47
- }
48
- });
49
- export {
50
- E as default
51
- };
@@ -1,7 +0,0 @@
1
- import { withInstall as t } from "../utils/install.js";
2
- import a from "./help-tag.vue.js";
3
- const l = t(a);
4
- export {
5
- l as YaheeHelpTag,
6
- l as default
7
- };
@@ -1,9 +0,0 @@
1
- function t() {
2
- return {
3
- tipsContentSize: () => ({ width: 80, height: 80 }),
4
- tipsId: ""
5
- };
6
- }
7
- export {
8
- t as defaultHelpTagProps
9
- };
@@ -1,8 +0,0 @@
1
- .yahee-help-tag {
2
- display: flex;
3
- align-items: center;
4
- }
5
- .yahee-help-tag .tips-content {
6
- overflow: auto;
7
- text-align: left;
8
- }
@@ -1,116 +0,0 @@
1
- import f from "./image-upload.vue2.js";
2
- import { createElementBlock as s, openBlock as t, Fragment as h, withDirectives as u, createVNode as o, normalizeStyle as _, withCtx as i, renderSlot as w, createBlock as V, createElementVNode as n, createTextVNode as v, withModifiers as c, createCommentVNode as y } from "vue";
3
- import I from "../_virtual/_plugin-vue_export-helper.js";
4
- const k = { class: "yahee-image-upload" }, E = {
5
- key: 0,
6
- style: { width: "100%", height: "100%" }
7
- }, p = ["src"];
8
- function z(g, l, a, e, C, x) {
9
- return t(), s(h, null, [
10
- u((t(), s("div", k, [
11
- o(e.ElUpload, {
12
- class: "picture-uploader",
13
- action: "#",
14
- style: _({ width: a.imgSize.width * a.zoom + "px", height: a.imgSize.height * a.zoom + "px" }),
15
- "show-file-list": !1,
16
- multiple: !1,
17
- "auto-upload": !1,
18
- accept: "image/jpeg,image/jpg,image/gif,image/png",
19
- "on-change": e.handleUploadChange
20
- }, {
21
- default: i(() => {
22
- var d;
23
- return [
24
- w(g.$slots, "default", {
25
- value: (d = a.modelValue) == null ? void 0 : d.fileId
26
- }, () => {
27
- var m, r;
28
- return [
29
- (m = a.modelValue) != null && m.fileId ? (t(), s("div", E, [
30
- o(e.ElImage, {
31
- class: "picture",
32
- src: e.useImage((r = a.modelValue) == null ? void 0 : r.fileId)
33
- }, {
34
- error: i(() => l[2] || (l[2] = [
35
- n("div", { style: { display: "none" } }, null, -1)
36
- ])),
37
- placeholder: i(() => l[3] || (l[3] = [
38
- n("div", { class: "image-slot" }, [
39
- v("Loading"),
40
- n("span", { class: "dot" }, "...")
41
- ], -1)
42
- ])),
43
- _: 1
44
- }, 8, ["src"]),
45
- n("span", {
46
- class: "upload-actions",
47
- onClick: c(e.handleFilePreview, ["stop"])
48
- }, [
49
- a.showDelete ? (t(), s("span", {
50
- key: 0,
51
- class: "upload-delete",
52
- onClick: c(e.handleFileRemove, ["stop"])
53
- }, [
54
- o(e.ElIcon, {
55
- size: 20,
56
- color: "#ff1e1e"
57
- }, {
58
- default: i(() => [
59
- o(e.Delete)
60
- ]),
61
- _: 1
62
- })
63
- ])) : y("", !0)
64
- ])
65
- ])) : (t(), V(e.ElIcon, {
66
- key: 1,
67
- class: "picture-uploader-icon",
68
- size: 20
69
- }, {
70
- default: i(() => [
71
- o(e.Plus)
72
- ]),
73
- _: 1
74
- }))
75
- ];
76
- })
77
- ];
78
- }),
79
- _: 3
80
- }, 8, ["style"])
81
- ])), [
82
- [e.vLoading, e.loading]
83
- ]),
84
- o(e.ElDialog, {
85
- modelValue: e.dialogVisible,
86
- "onUpdate:modelValue": l[1] || (l[1] = (d) => e.dialogVisible = d),
87
- "show-close": !1
88
- }, {
89
- header: i(() => [
90
- o(e.ElIcon, {
91
- size: 40,
92
- color: "#a4a4a4",
93
- class: "pull-right marginB6",
94
- onClick: l[0] || (l[0] = (d) => e.dialogVisible = !1)
95
- }, {
96
- default: i(() => [
97
- o(e.CircleCloseFilled)
98
- ]),
99
- _: 1
100
- })
101
- ]),
102
- default: i(() => [
103
- n("img", {
104
- style: { width: "100%" },
105
- src: e.dialogImageUrl,
106
- alt: "Preview Image"
107
- }, null, 8, p)
108
- ]),
109
- _: 1
110
- }, 8, ["modelValue"])
111
- ], 64);
112
- }
113
- const D = /* @__PURE__ */ I(f, [["render", z], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/image-upload/image-upload.vue"]]);
114
- export {
115
- D as default
116
- };
@@ -1,93 +0,0 @@
1
- import { defineComponent as y, ref as o, onMounted as v, getCurrentInstance as E } from "vue";
2
- import p from "../packages/components/hooks/useImg.js";
3
- import { useIsImg as _, useUpload as b } from "../packages/components/hooks/useUpload.js";
4
- import { vLoading as f, ElMessage as u, ElImage as q, ElIcon as C, ElDialog as U, ElUpload as w } from "element-plus";
5
- import "element-plus/theme-chalk/src/base.scss";
6
- import "element-plus/theme-chalk/src/upload.scss";
7
- import "element-plus/theme-chalk/src/progress.scss";
8
- import "element-plus/theme-chalk/src/dialog.scss";
9
- import "element-plus/theme-chalk/src/overlay.scss";
10
- import "element-plus/theme-chalk/src/image.scss";
11
- import "element-plus/theme-chalk/src/image-viewer.scss";
12
- import "element-plus/theme-chalk/src/badge.scss";
13
- import "element-plus/theme-chalk/src/message.scss";
14
- import { CircleCloseFilled as x, Plus as F, Delete as V } from "@element-plus/icons-vue";
15
- const Y = /* @__PURE__ */ y({
16
- name: "YaheeImageUpload",
17
- __name: "image-upload",
18
- props: {
19
- modelValue: { type: Object, required: !0, default: () => ({ index: 0, fileId: "", fileName: "" }) },
20
- showDelete: { type: Boolean, required: !1, default: !0 },
21
- zoom: { type: Number, required: !1, default: 1 },
22
- imgSize: { type: Object, required: !1, default: () => ({ width: 80, height: 80 }) },
23
- limitImgSize: { type: Boolean, required: !1, default: !0 },
24
- limitFileSize: { type: Boolean, required: !1, default: !0 },
25
- fileSize: { type: Number, required: !1, default: 50 },
26
- fileSizeUnit: { type: String, required: !1, default: "kb" },
27
- fileType: { type: String, required: !1, default: "105" }
28
- },
29
- emits: ["update:modelValue", "change"],
30
- setup(g, { expose: c, emit: I }) {
31
- c();
32
- const t = g, r = I, l = o(!1), z = (e) => {
33
- if (!_(e.raw)) {
34
- u.error("只能选择图片格式文件!");
35
- return;
36
- }
37
- if (t.limitFileSize) {
38
- let i = e.size;
39
- if (t.fileSizeUnit.toLowerCase() == "kb" ? i = e.size / 1024 : i = e.size / 1024 / 1024, !(i < t.fileSize)) {
40
- u.error(`图片大小不能超过 ${t.fileSize}${t.fileSizeUnit}!`);
41
- return;
42
- }
43
- }
44
- l.value = !0, b(t.fileType, e.raw).then((i) => {
45
- const m = {
46
- fileName: e.name,
47
- fileId: i[0],
48
- index: 0
49
- };
50
- r("update:modelValue", m), r("change", {
51
- fileName: e.name,
52
- fileId: i[0],
53
- index: 0
54
- }), l.value = !1;
55
- }).catch((i) => {
56
- u.error("update image error", i), l.value = !1;
57
- });
58
- }, S = () => {
59
- r("update:modelValue", "");
60
- }, n = o(""), s = o(!1), h = () => {
61
- var e;
62
- n.value = p((e = t.modelValue) == null ? void 0 : e.fileId, !0), s.value = !0;
63
- };
64
- v(() => {
65
- var a;
66
- const e = (a = E()) == null ? void 0 : a.appContext.app;
67
- e && e.directive("loading", f);
68
- });
69
- const d = { props: t, emits: r, loading: l, handleUploadChange: z, handleFileRemove: S, dialogImageUrl: n, dialogVisible: s, handleFilePreview: h, get useImage() {
70
- return p;
71
- }, get ElUpload() {
72
- return w;
73
- }, get ElDialog() {
74
- return U;
75
- }, get ElIcon() {
76
- return C;
77
- }, get ElImage() {
78
- return q;
79
- }, get vLoading() {
80
- return f;
81
- }, get Delete() {
82
- return V;
83
- }, get Plus() {
84
- return F;
85
- }, get CircleCloseFilled() {
86
- return x;
87
- } };
88
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
89
- }
90
- });
91
- export {
92
- Y as default
93
- };
@@ -1,7 +0,0 @@
1
- import { withInstall as a } from "../utils/install.js";
2
- import o from "./image-upload.vue.js";
3
- const m = a(o);
4
- export {
5
- m as YaheeImageUpload,
6
- m as default
7
- };
@@ -1,33 +0,0 @@
1
- .yahee-image-upload .el-upload {
2
- height: 100%;
3
- width: 100%;
4
- border: 1px dashed #d9d9d9;
5
- border-radius: 6px;
6
- cursor: pointer;
7
- position: relative;
8
- overflow: hidden;
9
- }
10
- .yahee-image-upload .el-upload:hover {
11
- border: 1px dashed blue;
12
- }
13
- .yahee-image-upload .picture {
14
- width: 100%;
15
- }
16
- .yahee-image-upload .picture-uploader {
17
- position: relative;
18
- }
19
- .yahee-image-upload .upload-actions {
20
- position: absolute;
21
- width: 100%;
22
- height: 100%;
23
- left: 0;
24
- top: 0;
25
- padding: 2px;
26
- }
27
- .yahee-image-upload .picture-uploader-icon {
28
- height: 100%;
29
- width: 100%;
30
- font-size: 28px;
31
- color: #8c939d;
32
- text-align: center;
33
- }
package/es/index.js DELETED
@@ -1,63 +0,0 @@
1
- import { makeInstaller as o } from "./utils/install.js";
2
- import r from "./installs.js";
3
- import { config as t } from "./utils/config.js";
4
- import { YaheeComplexSearch as i } from "./complex-search/index.js";
5
- import { YaheeCopy as s } from "./copy/index.js";
6
- import { YaheeImageUpload as u } from "./image-upload/index.js";
7
- import { YaheeAnnexUpload as c } from "./annex-upload/index.js";
8
- import { YaheeOperationLog as P } from "./operation-log/index.js";
9
- import { YaheeCountryPlatformShopCondition as W } from "./country-platform-shop-condition/index.js";
10
- import { YaheeLeftCondition as F } from "./left-condition/index.js";
11
- import { YaheeLeftConditionEnum as w } from "./left-condition-enum/index.js";
12
- import { YaheeDropDownCondition as E } from "./drop-down-condition/index.js";
13
- import { YaheeCommonImport as I } from "./common-import/index.js";
14
- import { YaheeBorderWrap as B } from "./border-wrap/index.js";
15
- import { YaheeEchartGauge as U } from "./echart-gauge/index.js";
16
- import { YaheeScaleScreen as k } from "./scale-screen/index.js";
17
- import { YaheeHelpTag as O } from "./help-tag/index.js";
18
- import { YaheeFilterContainer as q } from "./filter-container/index.js";
19
- import { YaheeFilterWrapper as z } from "./filter-wrapper/index.js";
20
- import { YaheeHeightCollapse as K } from "./height-collapse/index.js";
21
- import { YaheeFileDownloadWrapper as N } from "./file-download-wrapper/index.js";
22
- import { defaultComplexSearchProps as R } from "./complex-search/props.js";
23
- import { defaultCopyProps as X } from "./copy/props.js";
24
- import { defaultBorderWrapPropsProps as _ } from "./border-wrap/props.js";
25
- import { defaultEchartGaugeProps as ee } from "./echart-gauge/props.js";
26
- import { defaultScaleScreenProps as re } from "./scale-screen/props.js";
27
- import { defaultHelpTagProps as pe } from "./help-tag/props.js";
28
- import { defaultHeightCollapseProps as fe } from "./height-collapse/props.js";
29
- import { defaultFileDownloadWrapperProps as le } from "./file-download-wrapper/props.js";
30
- const { setConfig: p } = t(), l = o([...r]);
31
- function n(e) {
32
- p(e);
33
- }
34
- export {
35
- c as YaheeAnnexUpload,
36
- B as YaheeBorderWrap,
37
- I as YaheeCommonImport,
38
- i as YaheeComplexSearch,
39
- s as YaheeCopy,
40
- W as YaheeCountryPlatformShopCondition,
41
- E as YaheeDropDownCondition,
42
- U as YaheeEchartGauge,
43
- N as YaheeFileDownloadWrapper,
44
- q as YaheeFilterContainer,
45
- z as YaheeFilterWrapper,
46
- K as YaheeHeightCollapse,
47
- O as YaheeHelpTag,
48
- u as YaheeImageUpload,
49
- F as YaheeLeftCondition,
50
- w as YaheeLeftConditionEnum,
51
- P as YaheeOperationLog,
52
- k as YaheeScaleScreen,
53
- l as default,
54
- _ as defaultBorderWrapPropsProps,
55
- R as defaultComplexSearchProps,
56
- X as defaultCopyProps,
57
- ee as defaultEchartGaugeProps,
58
- le as defaultFileDownloadWrapperProps,
59
- fe as defaultHeightCollapseProps,
60
- pe as defaultHelpTagProps,
61
- re as defaultScaleScreenProps,
62
- n as useGlobalConfig
63
- };
package/es/installs.js DELETED
@@ -1,41 +0,0 @@
1
- import { YaheeComplexSearch as o } from "./complex-search/index.js";
2
- import { YaheeCopy as e } from "./copy/index.js";
3
- import { YaheeImageUpload as r } from "./image-upload/index.js";
4
- import { YaheeOperationLog as m } from "./operation-log/index.js";
5
- import { YaheeAnnexUpload as a } from "./annex-upload/index.js";
6
- import { YaheeLeftCondition as t } from "./left-condition/index.js";
7
- import { YaheeLeftConditionEnum as p } from "./left-condition-enum/index.js";
8
- import { YaheeDropDownCondition as i } from "./drop-down-condition/index.js";
9
- import { YaheeCountryPlatformShopCondition as f } from "./country-platform-shop-condition/index.js";
10
- import { YaheeCommonImport as h } from "./common-import/index.js";
11
- import { YaheeBorderWrap as n } from "./border-wrap/index.js";
12
- import { YaheeEchartGauge as Y } from "./echart-gauge/index.js";
13
- import { YaheeScaleScreen as l } from "./scale-screen/index.js";
14
- import { YaheeHelpTag as C } from "./help-tag/index.js";
15
- import { YaheeFilterContainer as d } from "./filter-container/index.js";
16
- import { YaheeFilterWrapper as c } from "./filter-wrapper/index.js";
17
- import { YaheeHeightCollapse as g } from "./height-collapse/index.js";
18
- import { YaheeFileDownloadWrapper as s } from "./file-download-wrapper/index.js";
19
- const T = [
20
- o,
21
- e,
22
- r,
23
- m,
24
- a,
25
- t,
26
- p,
27
- i,
28
- f,
29
- h,
30
- n,
31
- Y,
32
- l,
33
- C,
34
- d,
35
- c,
36
- g,
37
- s
38
- ];
39
- export {
40
- T as default
41
- };
@@ -1,7 +0,0 @@
1
- import { withInstall as t } from "../utils/install.js";
2
- import o from "./left-condition.vue.js";
3
- const n = t(o);
4
- export {
5
- n as YaheeLeftCondition,
6
- n as default
7
- };
@@ -1,36 +0,0 @@
1
- import s from "./left-condition-sub.vue2.js";
2
- import { createElementBlock as n, openBlock as l, Fragment as d, createElementVNode as a, createCommentVNode as c, normalizeStyle as k, createTextVNode as u, withModifiers as _, toDisplayString as m } from "vue";
3
- import f from "../_virtual/_plugin-vue_export-helper.js";
4
- const b = ["checked"], h = { key: 1 }, y = {
5
- key: 0,
6
- class: "num"
7
- };
8
- function x(C, t, o, e, g, v) {
9
- var i;
10
- return l(), n(d, null, [
11
- a("span", {
12
- class: "el-button custom-button el-button--small",
13
- style: k(e.stylesUtils.getBackgroundColor(e.value)),
14
- onClick: e.onClick
15
- }, [
16
- o.allIsCheckbox || e.isMultiSelect(e.item) ? (l(), n("input", {
17
- key: 0,
18
- checked: e.checkboxValue,
19
- class: "el-checkbox__input",
20
- type: "checkbox",
21
- onChange: e.checkboxChange,
22
- onClick: t[0] || (t[0] = _(() => {
23
- }, ["stop"]))
24
- }, null, 40, b)) : c("", !0),
25
- u(" " + m(o.translateUserId ? e.translateEmployeeName(e.item.value, e.item.label) : e.M2(e.item.label)) + " ", 1),
26
- e._.isEmpty(o.countList) ? c("", !0) : (l(), n("span", h, " (" + m((i = o.countList.filter((r) => r.value == e.item.value)[0]) == null ? void 0 : i.count) + ") ", 1))
27
- ], 4),
28
- e.hasNum ? (l(), n("span", y, t[1] || (t[1] = [
29
- a("em", null, null, -1)
30
- ]))) : c("", !0)
31
- ], 64);
32
- }
33
- const V = /* @__PURE__ */ f(s, [["render", x], ["__file", "E:/工作/项目代码/common_componentsweb/packages/components/src/left-condition/left-condition-sub.vue"]]);
34
- export {
35
- V as default
36
- };