yahee-components 0.0.113 → 0.0.114
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.
- package/es/annex-upload/annex-upload.vue.js +55 -0
- package/es/annex-upload/annex-upload.vue2.js +121 -0
- package/es/annex-upload/index.js +7 -0
- package/es/annex-upload/mimeType.js +822 -0
- package/es/annex-upload/style/index.css +7 -0
- package/es/border-wrap/border-wrap.vue.js +75 -0
- package/es/border-wrap/border-wrap.vue2.js +48 -0
- package/es/border-wrap/index.js +7 -0
- package/es/border-wrap/props.js +11 -0
- package/es/border-wrap/style/index.css +24 -0
- package/es/common-import/common-import.vue.js +394 -0
- package/es/common-import/common-import.vue2.js +366 -0
- package/es/common-import/index.js +7 -0
- package/es/common-import/props.js +23 -0
- package/es/common-import/style/index.css +32 -0
- package/es/complex-search/batch-search-dialog.vue.js +119 -0
- package/es/complex-search/batch-search-dialog.vue2.js +50 -0
- package/es/complex-search/complex-search.vue.js +122 -0
- package/es/complex-search/complex-search.vue2.js +71 -0
- package/es/complex-search/index.js +7 -0
- package/es/complex-search/props.js +19 -0
- package/es/complex-search/style/index.css +24 -0
- package/es/complex-search/useComplexSearch.js +44 -0
- package/es/copy/copy.vue.js +39 -0
- package/es/copy/copy.vue2.js +36 -0
- package/es/copy/index.js +7 -0
- package/es/copy/props.js +9 -0
- package/es/copy/style/index.css +12 -0
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue.js +120 -0
- package/es/country-platform-shop-condition/country-platform-shop-condition.vue2.js +127 -0
- package/es/country-platform-shop-condition/index.js +7 -0
- package/es/country-platform-shop-condition/style/index.css +59 -0
- package/es/drop-down-condition/drop-down-condition.vue.js +125 -0
- package/es/drop-down-condition/drop-down-condition.vue2.js +129 -0
- package/es/drop-down-condition/index.js +7 -0
- package/es/drop-down-condition/style/index.css +64 -0
- package/es/echart-gauge/echart-gauge.vue.js +14 -0
- package/es/echart-gauge/echart-gauge.vue2.js +149 -0
- package/es/echart-gauge/index.js +7 -0
- package/es/echart-gauge/props.js +9 -0
- package/es/echart-gauge/style/index.css +4 -0
- package/es/file-download-wrapper/file-download-wrapper.vue.js +164 -0
- package/es/file-download-wrapper/file-download-wrapper.vue2.js +115 -0
- package/es/file-download-wrapper/index.js +7 -0
- package/es/file-download-wrapper/key.js +17 -0
- package/es/file-download-wrapper/props.js +12 -0
- package/es/file-download-wrapper/style/index.css +66 -0
- package/es/filter-container/filter-container.vue.js +24 -0
- package/es/filter-container/filter-container.vue2.js +61 -0
- package/es/filter-container/index.js +7 -0
- package/es/filter-container/key.js +4 -0
- package/es/filter-container/props.js +11 -0
- package/es/filter-container/style/index.css +16 -0
- package/es/filter-wrapper/filter-wrapper.vue.js +19 -0
- package/es/filter-wrapper/filter-wrapper.vue2.js +56 -0
- package/es/filter-wrapper/index.js +7 -0
- package/es/filter-wrapper/props.js +10 -0
- package/es/filter-wrapper/style/index.css +3 -0
- package/es/height-collapse/height-collapse.vue.js +26 -0
- package/es/height-collapse/height-collapse.vue2.js +44 -0
- package/es/height-collapse/index.js +7 -0
- package/es/height-collapse/props.js +11 -0
- package/es/height-collapse/style/index.css +32 -0
- package/es/help-tag/help-tag.vue.js +46 -0
- package/es/help-tag/help-tag.vue2.js +51 -0
- package/es/help-tag/index.js +7 -0
- package/es/help-tag/props.js +9 -0
- package/es/help-tag/style/index.css +8 -0
- package/es/image-upload/image-upload.vue.js +116 -0
- package/es/image-upload/image-upload.vue2.js +93 -0
- package/es/image-upload/index.js +7 -0
- package/es/image-upload/style/index.css +33 -0
- package/es/index.js +63 -0
- package/es/installs.js +41 -0
- package/es/left-condition/index.js +7 -0
- package/es/left-condition/left-condition-sub.vue.js +36 -0
- package/es/left-condition/left-condition-sub.vue2.js +78 -0
- package/es/left-condition/left-condition.vue.js +77 -0
- package/es/left-condition/left-condition.vue2.js +162 -0
- package/es/left-condition/style/index.css +10 -0
- package/es/left-condition-enum/index.js +7 -0
- package/es/left-condition-enum/left-condition-enum.vue.js +22 -0
- package/es/left-condition-enum/left-condition-enum.vue2.js +42 -0
- package/es/left-condition-enum/style/index.css +10 -0
- package/es/node_modules/.pnpm/@vueuse_core@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/core/index.js +99 -0
- package/es/node_modules/.pnpm/@vueuse_shared@11.3.0_vue@3.5.17_typescript@5.8.3_/node_modules/@vueuse/shared/index.js +22 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/index.js +38 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/adapters.js +53 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/fetch.js +141 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/adapters/xhr.js +71 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/axios.js +46 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CancelToken.js +77 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/CanceledError.js +11 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/Axios.js +136 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosError.js +54 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/AxiosHeaders.js +181 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/InterceptorManager.js +58 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/dispatchRequest.js +31 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/mergeConfig.js +70 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/settle.js +14 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/core/transformData.js +13 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/index.js +89 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/defaults/transitional.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/env/data.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/HttpStatusCode.js +71 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/bind.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/buildURL.js +23 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/composeSignals.js +30 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/cookies.js +32 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/formDataToJSON.js +31 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/null.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseHeaders.js +30 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/progressEventReducer.js +35 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/resolveConfig.js +33 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/spread.js +8 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/throttle.js +15 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toFormData.js +85 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/trackStream.js +63 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/helpers/validator.js +54 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/common/utils.js +9 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/platform/index.js +9 -0
- package/es/node_modules/.pnpm/axios@1.10.0/node_modules/axios/lib/utils.js +222 -0
- package/es/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js +282 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/index.js +97 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/basicTransition.js +96 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +56 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/customGraphicTransition.js +242 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/animation/universalTransition.js +345 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarSeries.js +56 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BarView.js +487 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +77 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +49 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/install.js +23 -0
- package/es/node_modules/.pnpm/echarts@6.0.0/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
- package/lib/annex-upload/style/index.css +7 -0
- package/lib/border-wrap/style/index.css +24 -0
- package/lib/common-import/style/index.css +32 -0
- package/lib/complex-search/style/index.css +24 -0
- package/lib/copy/style/index.css +12 -0
- package/lib/country-platform-shop-condition/style/index.css +59 -0
- package/lib/drop-down-condition/style/index.css +64 -0
- package/lib/echart-gauge/style/index.css +4 -0
- package/lib/file-download-wrapper/style/index.css +66 -0
- package/lib/filter-container/style/index.css +16 -0
- package/lib/filter-wrapper/style/index.css +3 -0
- package/lib/height-collapse/style/index.css +32 -0
- package/lib/help-tag/style/index.css +8 -0
- package/lib/image-upload/style/index.css +33 -0
- package/lib/left-condition/style/index.css +10 -0
- package/lib/left-condition-enum/style/index.css +10 -0
- package/lib/operation-log/style/index.css +234 -0
- package/lib/scale-screen/style/index.css +0 -0
- package/lib/style.css +1405 -0
- package/lib/styles/custom.css +82 -0
- package/lib/styles/globals.css +699 -0
- package/lib/styles/index.css +753 -0
- package/lib/styles/variables.css +34 -0
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
};
|