@das-fed/ui 6.4.0-dev.80 → 6.4.0-dev.82
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/package.json +5 -5
- package/packages/business-components/app-container/index.js +137 -133
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/index.js +14 -10
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/area-phone-select/style.css +1 -1
- package/packages/business-components/area-phone-select/style.css.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +10236 -10183
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/components/barChart.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/dataTrends/index.vue.d.ts +8 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/components/barChart.vue.d.ts +6 -2
- package/packages/business-components/device-panel/src/components/devicePanelModal/dataTrends/index.vue.d.ts +8 -2
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/import-button/index.js +30 -30
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/payment/index.js +61 -59
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/process-form/index.js +763 -793
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/upload-file/index.d.ts +8 -0
- package/packages/business-components/upload-file/index.js +48 -49
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/upload-file/src/App.vue.d.ts +2 -0
- package/packages/business-components/upload-file/src/type.d.ts +3 -0
- package/packages/business-components/upload-file/style.css +1 -1
- package/packages/components/color-picker/index.js +62 -63
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/color-picker/style.css +1 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +580 -567
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/edit-table/style.css +1 -1
- package/packages/components/edit-table/style.css.gz +0 -0
- package/packages/components/image-upload/index.js +109 -124
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/src/hooks/use-imageUpload.d.ts +1 -1
- package/packages/components/image-viewer/index.js +339 -354
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +2 -2
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/pagination/index.js +1 -1
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/pagination/style.css +1 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/search-form/index.js +734 -708
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/hooks/common.d.ts +1 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/text-tooltip/index.js +616 -616
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +68 -72
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.d.ts +3 -0
- package/packages/components/upload/index.js +143 -124
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/upload/src/Index.vue.d.ts +1 -0
- package/packages/components/upload/src/type.d.ts +3 -0
- package/packages/components/upload/style.css +1 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/virtual-tree/index.js +40 -35
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/virtual-tree/src/App.vue.d.ts +1 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-image[data-v-
|
|
1
|
+
.form-image[data-v-745a2e98]{background:#fff;margin:10px 0 30px}.table-search-process-top[data-v-76614098]{display:flex;justify-content:space-between;align-items:center;margin:0 14px 6px}.table-search-process-top .left-box[data-v-76614098]{display:flex;align-items:center}.form-image[data-v-b30e3d77]{background:#fff;margin:10px 0 30px}.accordion-layout{width:100%}.accordion-layout .grid-layout{padding:0}.custom-page[data-v-c3b8808e]{display:flex;flex-direction:column;background-color:#e2e7ef}.custom-page .btn-box[data-v-c3b8808e]{background-color:#fff;height:48px;line-height:48px;padding-left:18px}.custom-page .content-box[data-v-c3b8808e]{flex:1;min-height:0}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
declare const DasBusinessUploadFile: import("@das-fed/utils").SFCWithInstall<import("vue").DefineComponent<import("./src/type.js").Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
2
2
|
"update:modelValue": (val: string) => any;
|
|
3
3
|
"upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
|
|
4
|
+
"upload-fail": (file: import("ant-design-vue").UploadFile<any>) => any;
|
|
4
5
|
}, string, import("vue").PublicProps, Readonly<import("./src/type.js").Props> & Readonly<{
|
|
5
6
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
6
7
|
"onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
|
|
8
|
+
"onUpload-fail"?: ((file: import("ant-design-vue").UploadFile<any>) => any) | undefined;
|
|
7
9
|
}>, {
|
|
8
10
|
type: "input" | "image";
|
|
9
11
|
minioTokenApi: string;
|
|
@@ -16,9 +18,11 @@ declare const DasBusinessUploadFile: import("@das-fed/utils").SFCWithInstall<imp
|
|
|
16
18
|
declare const DasBusinessUploadFileRef: () => import("vue").Ref<import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
17
19
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
18
20
|
"onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
|
|
21
|
+
"onUpload-fail"?: ((file: import("ant-design-vue").UploadFile<any>) => any) | undefined;
|
|
19
22
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
23
|
"update:modelValue": (val: string) => any;
|
|
21
24
|
"upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
|
|
25
|
+
"upload-fail": (file: import("ant-design-vue").UploadFile<any>) => any;
|
|
22
26
|
}, import("vue").PublicProps, {
|
|
23
27
|
type: "input" | "image";
|
|
24
28
|
minioTokenApi: string;
|
|
@@ -36,6 +40,7 @@ declare const DasBusinessUploadFileRef: () => import("vue").Ref<import("vue").Cr
|
|
|
36
40
|
}, Readonly<import("./src/type.js").Props> & Readonly<{
|
|
37
41
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
38
42
|
"onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
|
|
43
|
+
"onUpload-fail"?: ((file: import("ant-design-vue").UploadFile<any>) => any) | undefined;
|
|
39
44
|
}>, {}, {}, {}, {}, {
|
|
40
45
|
type: "input" | "image";
|
|
41
46
|
minioTokenApi: string;
|
|
@@ -46,9 +51,11 @@ declare const DasBusinessUploadFileRef: () => import("vue").Ref<import("vue").Cr
|
|
|
46
51
|
}> | null, import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/type.js").Props> & Readonly<{
|
|
47
52
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
48
53
|
"onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
|
|
54
|
+
"onUpload-fail"?: ((file: import("ant-design-vue").UploadFile<any>) => any) | undefined;
|
|
49
55
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
50
56
|
"update:modelValue": (val: string) => any;
|
|
51
57
|
"upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
|
|
58
|
+
"upload-fail": (file: import("ant-design-vue").UploadFile<any>) => any;
|
|
52
59
|
}, import("vue").PublicProps, {
|
|
53
60
|
type: "input" | "image";
|
|
54
61
|
minioTokenApi: string;
|
|
@@ -66,6 +73,7 @@ declare const DasBusinessUploadFileRef: () => import("vue").Ref<import("vue").Cr
|
|
|
66
73
|
}, Readonly<import("./src/type.js").Props> & Readonly<{
|
|
67
74
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
68
75
|
"onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
|
|
76
|
+
"onUpload-fail"?: ((file: import("ant-design-vue").UploadFile<any>) => any) | undefined;
|
|
69
77
|
}>, {}, {}, {}, {}, {
|
|
70
78
|
type: "input" | "image";
|
|
71
79
|
minioTokenApi: string;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/upload-file/style.css';
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as g, computed as h, defineComponent as U, useCssVars as y, openBlock as p, createElementBlock as m, createVNode as f, unref as u, mergeProps as c, isRef as V, createCommentVNode as w, normalizeClass as F, createElementVNode as k } from "vue";
|
|
3
3
|
import { withInstall as S } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { DasInput as
|
|
5
|
-
import { DasUpload as
|
|
6
|
-
import { useCalculateSize as
|
|
4
|
+
import { DasInput as b } from "@das-fed/ui/packages/components/input/index";
|
|
5
|
+
import { DasUpload as B } from "@das-fed/ui/packages/components/upload/index";
|
|
6
|
+
import { useCalculateSize as C, minioUpload as x, DasImageViewer as D } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
7
7
|
import { t as N, setI18nRule as P } from "@das-fed/web/packages/i18n/index";
|
|
8
8
|
import { DasMessage as I } from "@das-fed/ui/packages/components/message/index";
|
|
9
|
-
const _ = (
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
12
|
-
const { finalSize:
|
|
13
|
-
if (
|
|
14
|
-
const
|
|
15
|
-
return I.warning(
|
|
9
|
+
const _ = (o, t) => {
|
|
10
|
+
const a = g(!1), { size2B: d } = C(), { upload: n } = x(o), r = (e) => {
|
|
11
|
+
if (o.maxSize) {
|
|
12
|
+
const { finalSize: i, sizeText: s } = d(o.maxSize);
|
|
13
|
+
if (e.size > i) {
|
|
14
|
+
const z = N("upload-file_uploadFileSizeLimit", s);
|
|
15
|
+
return I.warning(z), !1;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
return !0;
|
|
19
|
-
},
|
|
20
|
-
get: () =>
|
|
21
|
-
set: (
|
|
19
|
+
}, l = h({
|
|
20
|
+
get: () => o.modelValue,
|
|
21
|
+
set: (e) => t("update:modelValue", e)
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
loading:
|
|
25
|
-
imgUrl:
|
|
26
|
-
uploadFile: async (
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
|
|
24
|
+
loading: a,
|
|
25
|
+
imgUrl: l,
|
|
26
|
+
uploadFile: async (e) => {
|
|
27
|
+
if (a.value = !0, r(e)) {
|
|
28
|
+
const i = await n(e);
|
|
29
|
+
i && i !== "error" ? (l.value = i, t("upload-success", e, i)) : t("upload-fail", e);
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
a.value = !1;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
}, T = { class: "das-business-file-upload" }, A = {
|
|
@@ -54,57 +54,56 @@ const _ = (a, n) => {
|
|
|
54
54
|
inputProps: { default: () => ({}) },
|
|
55
55
|
imageProps: { default: () => ({}) }
|
|
56
56
|
},
|
|
57
|
-
emits: ["update:modelValue", "upload-success"],
|
|
58
|
-
setup(
|
|
57
|
+
emits: ["update:modelValue", "upload-success", "upload-fail"],
|
|
58
|
+
setup(o, { emit: t }) {
|
|
59
59
|
y((e) => ({
|
|
60
|
-
|
|
61
|
-
"
|
|
60
|
+
e810a398: r.value,
|
|
61
|
+
"7d7d61be": e.imageHeight
|
|
62
62
|
}));
|
|
63
|
-
const
|
|
64
|
-
return (e,
|
|
65
|
-
e.type === "input" ? (
|
|
66
|
-
|
|
63
|
+
const a = o, d = t, n = g([]), r = h(() => (a == null ? void 0 : a.width) ?? "100%"), { imgUrl: l, uploadFile: v } = _(a, d);
|
|
64
|
+
return (e, i) => (p(), m("div", T, [
|
|
65
|
+
e.type === "input" ? (p(), m("div", A, [
|
|
66
|
+
f(u(b), c({
|
|
67
67
|
width: "100%",
|
|
68
|
-
modelValue:
|
|
69
|
-
"onUpdate:modelValue":
|
|
68
|
+
modelValue: u(l),
|
|
69
|
+
"onUpdate:modelValue": i[0] || (i[0] = (s) => V(l) ? l.value = s : null),
|
|
70
70
|
"is-view": e.isView
|
|
71
71
|
}, e.inputProps), null, 16, ["modelValue", "is-view"])
|
|
72
|
-
])) :
|
|
73
|
-
e.type === "image" ? (
|
|
72
|
+
])) : w("v-if", !0),
|
|
73
|
+
e.type === "image" ? (p(), m(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
76
|
key: 1,
|
|
77
77
|
class: F(["image-box", e.isView ? "is-view" : ""])
|
|
78
78
|
},
|
|
79
79
|
[
|
|
80
|
-
|
|
80
|
+
f(u(D), c({
|
|
81
81
|
style: { width: e.imageWidth, height: e.imageHeight },
|
|
82
|
-
modelValue:
|
|
83
|
-
"onUpdate:modelValue":
|
|
82
|
+
modelValue: u(l),
|
|
83
|
+
"onUpdate:modelValue": i[1] || (i[1] = (s) => V(l) ? l.value = s : null),
|
|
84
84
|
status: "info",
|
|
85
85
|
"is-view": !0
|
|
86
86
|
}, e.imageProps), null, 16, ["style", "modelValue"])
|
|
87
87
|
],
|
|
88
88
|
2
|
|
89
89
|
/* CLASS */
|
|
90
|
-
)) :
|
|
90
|
+
)) : w("v-if", !0),
|
|
91
91
|
k("div", H, [
|
|
92
|
-
|
|
93
|
-
modelValue:
|
|
94
|
-
"onUpdate:modelValue":
|
|
92
|
+
f(u(B), c({
|
|
93
|
+
modelValue: n.value,
|
|
94
|
+
"onUpdate:modelValue": i[2] || (i[2] = (s) => n.value = s),
|
|
95
95
|
draggle: !1,
|
|
96
|
-
onFileUpload: d(o),
|
|
97
96
|
"is-view": e.isView
|
|
98
|
-
}, e.$attrs), null, 16, ["modelValue", "
|
|
97
|
+
}, e.$attrs, { onFileUpload: u(v) }), null, 16, ["modelValue", "is-view", "onFileUpload"])
|
|
99
98
|
])
|
|
100
99
|
]));
|
|
101
100
|
}
|
|
102
|
-
}), R = (
|
|
103
|
-
const
|
|
104
|
-
for (const [
|
|
105
|
-
|
|
106
|
-
return
|
|
107
|
-
}, W = /* @__PURE__ */ R(L, [["__scopeId", "data-v-
|
|
101
|
+
}), R = (o, t) => {
|
|
102
|
+
const a = o.__vccOpts || o;
|
|
103
|
+
for (const [d, n] of t)
|
|
104
|
+
a[d] = n;
|
|
105
|
+
return a;
|
|
106
|
+
}, W = /* @__PURE__ */ R(L, [["__scopeId", "data-v-b0e4c862"]]), $ = {
|
|
108
107
|
"upload-file_uploadFileSizeLimit": {
|
|
109
108
|
"zh-CN": "上传的文件大小不能超过$0",
|
|
110
109
|
en: "The size of the uploaded file cannot exceed $0",
|
|
@@ -112,7 +111,7 @@ const _ = (a, n) => {
|
|
|
112
111
|
}
|
|
113
112
|
};
|
|
114
113
|
P($);
|
|
115
|
-
const K = S(W), Q = () =>
|
|
114
|
+
const K = S(W), Q = () => g(null), X = { name: "复合型文件上传 upload-file" };
|
|
116
115
|
export {
|
|
117
116
|
K as DasBusinessUploadFile,
|
|
118
117
|
Q as DasBusinessUploadFileRef,
|
|
Binary file
|
|
@@ -2,9 +2,11 @@ import type { Props } from './type';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
3
|
"update:modelValue": (val: string) => any;
|
|
4
4
|
"upload-success": (file: import("ant-design-vue").UploadFile<any>, url: string) => any;
|
|
5
|
+
"upload-fail": (file: import("ant-design-vue").UploadFile<any>) => any;
|
|
5
6
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
6
7
|
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
7
8
|
"onUpload-success"?: ((file: import("ant-design-vue").UploadFile<any>, url: string) => any) | undefined;
|
|
9
|
+
"onUpload-fail"?: ((file: import("ant-design-vue").UploadFile<any>) => any) | undefined;
|
|
8
10
|
}>, {
|
|
9
11
|
type: "input" | "image";
|
|
10
12
|
minioTokenApi: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-business-file-upload[data-v-
|
|
1
|
+
.das-business-file-upload[data-v-b0e4c862]{display:flex;align-items:center;width:var(--e810a398)}.das-business-file-upload .input-box[data-v-b0e4c862]{flex:1;min-width:0;padding-right:20px;box-sizing:border-box}.das-business-file-upload .image-box[data-v-b0e4c862]{position:relative;padding-right:60px}.das-business-file-upload .image-box[data-v-b0e4c862]:not(.is-view):after{position:absolute;display:block;content:"";height:calc(var(--7d7d61be) - 10px);width:1px;right:30px;top:50%;transform:translateY(-50%);background-color:#d9d9d9}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/color-picker/style.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { currentLang as
|
|
5
|
-
import { DasDropdown as
|
|
6
|
-
import { DasAutoRegisterIcon as
|
|
7
|
-
import { DasInput as
|
|
8
|
-
import { ElConfigProvider as
|
|
2
|
+
import { defineComponent as T, computed as I, ref as y, openBlock as c, createElementBlock as V, createVNode as k, unref as e, mergeProps as x, isRef as z, withCtx as f, createBlock as v, createCommentVNode as w, createElementVNode as P, normalizeClass as C, normalizeStyle as H, Fragment as N, renderList as O } from "vue";
|
|
3
|
+
import { withInstall as $ } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { currentLang as F, t as A, setI18nRule as L } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDropdown as M, DasDropdownMenu as U } from "@das-fed/ui/packages/components/dropdown/index";
|
|
6
|
+
import { DasAutoRegisterIcon as j, DasIcon as q } from "@das-fed/ui/packages/components/icon/index";
|
|
7
|
+
import { DasInput as G } from "@das-fed/ui/packages/components/input/index";
|
|
8
|
+
import { ElConfigProvider as J, ElColorPicker as K } from "element-plus";
|
|
9
9
|
import "element-plus/es/components/color-picker/style/css";
|
|
10
10
|
import { useModelValue as g } from "@das-fed/utils/vue";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { setThemeRule as
|
|
14
|
-
const
|
|
11
|
+
import Q from "element-plus/dist/locale/zh-cn.mjs";
|
|
12
|
+
import W from "element-plus/dist/locale/en.mjs";
|
|
13
|
+
import { setThemeRule as X } from "@das-fed/web/packages/theme/index";
|
|
14
|
+
const Y = (s, d) => {
|
|
15
15
|
const l = g(s, "modelValue"), u = g(s, "options");
|
|
16
16
|
let p = g(s, "modelValue");
|
|
17
|
-
return { innerValue: l, inputChangeHandler: (
|
|
18
|
-
p.value =
|
|
19
|
-
}, inputInputHandler: (
|
|
20
|
-
p.value =
|
|
17
|
+
return { innerValue: l, inputChangeHandler: (i) => {
|
|
18
|
+
p.value = i, d("update:modelValue", i), d("change", i);
|
|
19
|
+
}, inputInputHandler: (i) => {
|
|
20
|
+
p.value = i, d("update:modelValue", i), d("dasInput", i), d("change", i);
|
|
21
21
|
}, colorOption: u, colorPickerValue: p };
|
|
22
|
-
},
|
|
22
|
+
}, Z = {
|
|
23
23
|
class: "das-ui-color-picker",
|
|
24
24
|
style: { width: "100%" }
|
|
25
|
-
},
|
|
25
|
+
}, ee = { class: "color-predefine-content" }, oe = ["onClick"], le = /* @__PURE__ */ T({
|
|
26
26
|
__name: "Index",
|
|
27
27
|
props: {
|
|
28
28
|
modelValue: { default: "" },
|
|
@@ -42,94 +42,93 @@ const X = (s, d) => {
|
|
|
42
42
|
emits: ["update:modelValue", "change", "dasInput"],
|
|
43
43
|
setup(s, { emit: d }) {
|
|
44
44
|
const l = s, u = d;
|
|
45
|
-
|
|
45
|
+
j({
|
|
46
46
|
fold: import("@das-fed/ui/packages/icons/fold"),
|
|
47
47
|
close2: import("@das-fed/ui/packages/icons/close-2")
|
|
48
48
|
});
|
|
49
|
-
const p = I(() =>
|
|
50
|
-
I(() => l.placeholder || F("请输入"));
|
|
51
|
-
const { innerValue: i, inputChangeHandler: _, inputInputHandler: a, colorOption: o, colorPickerValue: b } = X(l, u), h = y(), m = y(!1), E = (t) => {
|
|
49
|
+
const p = I(() => F.value === "zh-CN" ? Q : W), _ = I(() => l.placeholder || A("请输入")), { innerValue: a, inputChangeHandler: i, inputInputHandler: E, colorOption: o, colorPickerValue: h } = Y(l, u), b = y(), m = y(!1), R = (t) => {
|
|
52
50
|
var n, r;
|
|
53
|
-
u("change", t),
|
|
51
|
+
u("change", t), a.value = t, (r = (n = b.value) == null ? void 0 : n.getElRef()) == null || r.handleClose(), m.value = !1;
|
|
54
52
|
}, D = () => {
|
|
55
53
|
var t, n;
|
|
56
|
-
o.value.mode != "default" && ((n = (t =
|
|
57
|
-
},
|
|
54
|
+
o.value.mode != "default" && ((n = (t = b.value) == null ? void 0 : t.getElRef()) == null || n.handleOpen(), m.value = !0);
|
|
55
|
+
}, B = (t) => {
|
|
58
56
|
m.value = t;
|
|
59
57
|
};
|
|
60
|
-
return (t, n) => (c(), V("div",
|
|
61
|
-
k(e(
|
|
58
|
+
return (t, n) => (c(), V("div", Z, [
|
|
59
|
+
k(e(G), x({
|
|
62
60
|
class: ["das-color-picker-input", [
|
|
63
61
|
`das-color-picker-${e(o).size}`,
|
|
64
|
-
{ "das-empty-color": !e(
|
|
62
|
+
{ "das-empty-color": !e(a) },
|
|
65
63
|
{ "das-predefine-cell": e(o).mode == "predefine" && (!e(o).isView || !l.isView) },
|
|
66
64
|
{ "das-predefine-view-cell": e(o).mode == "predefine" && (e(o).isView || l.isView) },
|
|
67
65
|
{ "das-both-view-cell": e(o).isView || l.isView },
|
|
68
66
|
{ "focus-predefine-view-cell": e(o).mode == "predefine" && m.value }
|
|
69
67
|
]],
|
|
70
|
-
modelValue: e(
|
|
71
|
-
"onUpdate:modelValue": n[1] || (n[1] = (r) => z(
|
|
68
|
+
modelValue: e(a),
|
|
69
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => z(a) ? a.value = r : null)
|
|
72
70
|
}, t.$attrs, {
|
|
73
71
|
isView: e(o).mode == "predefine" ? !0 : e(o).isView || l.isView,
|
|
74
72
|
disabled: e(o).disabled || l.disabled,
|
|
75
73
|
append: "",
|
|
76
74
|
onClick: D,
|
|
77
|
-
onInput: e(
|
|
75
|
+
onInput: e(E),
|
|
78
76
|
borderType: l.borderType,
|
|
79
|
-
|
|
77
|
+
placeholder: _.value,
|
|
78
|
+
noSetDefaultVal: e(o).mode == "predefine" && !e(o).isView && !l.isView && !e(o).disabled && !l.disabled || l.noSetDefaultVal && (e(o).isView || l.isView) && !e(a)
|
|
80
79
|
}), {
|
|
81
80
|
append: f(() => [
|
|
82
|
-
e(o).mode == "default" ? (c(),
|
|
81
|
+
e(o).mode == "default" ? (c(), v(e(J), {
|
|
83
82
|
key: 0,
|
|
84
83
|
locale: p.value
|
|
85
84
|
}, {
|
|
86
85
|
default: f(() => [
|
|
87
|
-
!e(o).isView && !l.isView || e(
|
|
86
|
+
!e(o).isView && !l.isView || e(a) ? (c(), v(e(K), {
|
|
88
87
|
key: 0,
|
|
89
88
|
locale: p.value,
|
|
90
89
|
placement: e(o).placement,
|
|
91
|
-
modelValue: e(
|
|
92
|
-
"onUpdate:modelValue": n[0] || (n[0] = (r) => z(
|
|
90
|
+
modelValue: e(h),
|
|
91
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => z(h) ? h.value = r : null),
|
|
93
92
|
size: e(o).size,
|
|
94
93
|
"show-alpha": e(o).showAlpha,
|
|
95
94
|
"color-format": e(o).colorFormat,
|
|
96
95
|
"popper-class": `das-color-picker-popper ${e(o).popperClass}`,
|
|
97
96
|
predefine: e(o).predefine,
|
|
98
97
|
disabled: e(o).disabled || l.disabled || e(o).isView || l.isView,
|
|
99
|
-
onChange: e(
|
|
98
|
+
onChange: e(i)
|
|
100
99
|
}, null, 8, ["locale", "placement", "modelValue", "size", "show-alpha", "color-format", "popper-class", "predefine", "disabled", "onChange"])) : w("v-if", !0)
|
|
101
100
|
]),
|
|
102
101
|
_: 1
|
|
103
102
|
/* STABLE */
|
|
104
103
|
}, 8, ["locale"])) : w("v-if", !0),
|
|
105
|
-
e(o).mode == "predefine" ? (c(),
|
|
104
|
+
e(o).mode == "predefine" ? (c(), v(e(M), {
|
|
106
105
|
key: 1,
|
|
107
106
|
disabled: e(o).disabled || l.disabled || e(o).isView || l.isView,
|
|
108
107
|
ref_key: "predefineDrown",
|
|
109
|
-
ref:
|
|
108
|
+
ref: b,
|
|
110
109
|
trigger: "click",
|
|
111
110
|
placement: "bottom-end",
|
|
112
111
|
selfPopperClass: "color-predefine-dropdown",
|
|
113
112
|
"hide-on-click": !1,
|
|
114
|
-
onVisibleChange:
|
|
113
|
+
onVisibleChange: B
|
|
115
114
|
}, {
|
|
116
115
|
content: f(() => [
|
|
117
116
|
P(
|
|
118
117
|
"span",
|
|
119
118
|
{
|
|
120
|
-
class:
|
|
119
|
+
class: C([
|
|
121
120
|
"color-predefine-icon",
|
|
122
121
|
e(o).size,
|
|
123
|
-
e(
|
|
122
|
+
e(a) && e(a) != "-",
|
|
124
123
|
{ "view-prefine-icon": e(o).disabled || l.disabled || e(o).isView || l.isView }
|
|
125
124
|
]),
|
|
126
|
-
style: H("background-color:" + e(
|
|
125
|
+
style: H("background-color:" + e(a))
|
|
127
126
|
},
|
|
128
127
|
[
|
|
129
|
-
k(e(
|
|
130
|
-
icon: e(
|
|
128
|
+
k(e(q), {
|
|
129
|
+
icon: e(a) && e(a) != "-" ? "fold" : "close2",
|
|
131
130
|
customSize: "6px",
|
|
132
|
-
iconColor: e(
|
|
131
|
+
iconColor: e(a) && e(a) != "-" ? "#fff" : "#909399"
|
|
133
132
|
}, null, 8, ["icon", "iconColor"])
|
|
134
133
|
],
|
|
135
134
|
6
|
|
@@ -137,18 +136,18 @@ const X = (s, d) => {
|
|
|
137
136
|
)
|
|
138
137
|
]),
|
|
139
138
|
default: f(() => [
|
|
140
|
-
k(e(
|
|
139
|
+
k(e(U), null, {
|
|
141
140
|
default: f(() => [
|
|
142
|
-
P("div",
|
|
141
|
+
P("div", ee, [
|
|
143
142
|
(c(!0), V(
|
|
144
|
-
|
|
143
|
+
N,
|
|
145
144
|
null,
|
|
146
|
-
|
|
147
|
-
class:
|
|
148
|
-
key:
|
|
145
|
+
O(e(o).predefine, (r, S) => (c(), V("div", {
|
|
146
|
+
class: C(["color-predefine-span", { active: e(a) == r }]),
|
|
147
|
+
key: S,
|
|
149
148
|
style: H("background-color:" + r),
|
|
150
|
-
onClick: (
|
|
151
|
-
}, null, 14,
|
|
149
|
+
onClick: (de) => R(r)
|
|
150
|
+
}, null, 14, oe))),
|
|
152
151
|
128
|
|
153
152
|
/* KEYED_FRAGMENT */
|
|
154
153
|
))
|
|
@@ -164,12 +163,12 @@ const X = (s, d) => {
|
|
|
164
163
|
]),
|
|
165
164
|
_: 1
|
|
166
165
|
/* STABLE */
|
|
167
|
-
}, 16, ["class", "modelValue", "isView", "disabled", "onInput", "borderType", "noSetDefaultVal"]),
|
|
168
|
-
e(o).mode == "predefine" && !e(o).isView && !l.isView && !e(o).disabled && !l.disabled && !e(
|
|
166
|
+
}, 16, ["class", "modelValue", "isView", "disabled", "onInput", "borderType", "placeholder", "noSetDefaultVal"]),
|
|
167
|
+
e(o).mode == "predefine" && !e(o).isView && !l.isView && !e(o).disabled && !l.disabled && !e(a) ? (c(), V(
|
|
169
168
|
"span",
|
|
170
169
|
{
|
|
171
170
|
key: 0,
|
|
172
|
-
class:
|
|
171
|
+
class: C(["predefine-placeholder", { "padding-l": l.borderType == "bordered" }]),
|
|
173
172
|
onClick: D
|
|
174
173
|
},
|
|
175
174
|
"请选择",
|
|
@@ -178,24 +177,24 @@ const X = (s, d) => {
|
|
|
178
177
|
)) : w("v-if", !0)
|
|
179
178
|
]));
|
|
180
179
|
}
|
|
181
|
-
}),
|
|
180
|
+
}), ae = (s, d) => {
|
|
182
181
|
const l = s.__vccOpts || s;
|
|
183
182
|
for (const [u, p] of d)
|
|
184
183
|
l[u] = p;
|
|
185
184
|
return l;
|
|
186
|
-
}, ie = /* @__PURE__ */ le
|
|
185
|
+
}, ie = /* @__PURE__ */ ae(le, [["__scopeId", "data-v-352eb360"]]), ne = {
|
|
187
186
|
"--demo-alert-bg": {
|
|
188
187
|
light: "#fff",
|
|
189
188
|
dark: "rgba(255,255,255,.2)"
|
|
190
189
|
},
|
|
191
190
|
"--das-ui-color-picker-primary": "#5582F3"
|
|
192
191
|
// 主题色
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
const
|
|
192
|
+
}, re = { 请输入: { "zh-CN": "请输入", en: "Please Enter", _appCode: "framework" } };
|
|
193
|
+
L(re);
|
|
194
|
+
X(ne);
|
|
195
|
+
const ve = () => y(null), Ce = $(ie);
|
|
197
196
|
export {
|
|
198
197
|
Ce as DasColorPicker,
|
|
199
|
-
|
|
198
|
+
ve as DasColorPickerRef,
|
|
200
199
|
Ce as default
|
|
201
200
|
};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-color-picker[data-v-
|
|
1
|
+
.das-ui-color-picker[data-v-352eb360]{position:relative}.das-ui-color-picker .das-input-table-size+.predefine-placeholder[data-v-352eb360]{font-size:12px}.das-ui-color-picker .predefine-placeholder[data-v-352eb360]{position:absolute;top:50%;left:0;transform:translateY(-50%);cursor:pointer;color:#b2b2b2;font-size:14px}.das-ui-color-picker .predefine-placeholder.padding-l[data-v-352eb360]{left:8px}.das-ui-color-picker .das-ui-input[data-v-352eb360]:not(.only-border-bottom) .el-input-group__append{display:flex;align-items:center;justify-content:center}.das-ui-color-picker[data-v-352eb360] .el-color-picker__mask{display:none}.das-ui-color-picker .only-border-bottom[data-v-352eb360] .das-color-picker-input .el-input-group__append{display:flex;align-items:flex-end}.das-ui-color-picker .only-border-bottom[data-v-352eb360] .das-color-picker-input .color-predefine-icon{margin-bottom:2px}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input:not(.das-predefine-cell) .el-input-group__append{padding:0 5px!important}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .el-color-picker{display:flex;align-items:flex-end}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .el-color-picker__color{border-color:#9093994d}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .el-color-picker__color .el-color-picker__color-inner{border-radius:2px}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input.das-empty-color .el-color-picker__color{border-color:#909399}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input.das-color-picker-mini .el-color-picker__trigger{width:20px;height:20px}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input.das-color-picker-mini .el-color-picker__mask{width:20px;height:16px}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input.el-input.el-input-group .el-input-group__prepend{padding-right:8px!important}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input.el-input.el-input-group .el-input-group__prepend .ant-select-selection-item{padding-right:18px}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .el-color-picker__trigger{border:0;padding:2px}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .color-predefine-icon{width:16px;height:16px;border-radius:2px;border:1px solid rgb(144,147,153);display:flex;align-items:center;justify-content:center;padding:2px;box-sizing:border-box}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .color-predefine-icon.border-predefine{border-color:#9093994d}.das-ui-color-picker[data-v-352eb360] .das-color-picker-input .color-predefine-icon.view-prefine-icon{cursor:not-allowed}.color-predefine-dropdown .color-predefine-content[data-v-352eb360]{max-width:314px;padding:10px;box-sizing:border-box;display:flex;flex-wrap:wrap}.color-predefine-dropdown .color-predefine-content .color-predefine-span[data-v-352eb360]{width:20px;height:20px;border-radius:3px;margin:0 8px 8px 0}.color-predefine-dropdown .color-predefine-content .color-predefine-span[data-v-352eb360]:first-of-type{margin-left:0}.color-predefine-dropdown .color-predefine-content .color-predefine-span.active[data-v-352eb360]{box-shadow:0 0 5px #00abff}.das-ui-color-picker .das-ui-input .is-view.el-input-group.das-predefine-cell.is-disabled .el-input__inner{color:#b2b2b2!important;-webkit-text-fill-color:#b2b2b2!important}.das-ui-color-picker .das-ui-input .is-view.el-input-group.das-predefine-cell:not(.das-predefine-view-cell,.is-disabled) .el-input__wrapper{background-color:#fff}.das-ui-color-picker .das-ui-input:not(.only-border-bottom) .focus-predefine-view-cell .el-input__wrapper{box-shadow:0 0 0 1px #5582f3 inset!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-disabled.el-input-group{border-bottom-color:#e5e5e5!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell{border:0 none;border-bottom:1px solid #999!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell:not(.das-predefine-view-cell,.is-disabled) .el-input__wrapper .el-input__inner{background-color:#fff}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell:not(.das-predefine-view-cell,.is-disabled).focus-predefine-view-cell{border-color:#5582f3!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell:not(.das-both-view-cell,.is-disabled) .el-input__wrapper .el-input__inner{cursor:pointer}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell:hover{border-bottom-color:#999!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell:hover.das-predefine-view-cell,.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell.is-disabled{border-bottom-color:#e5e5e5!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-cell.is-disabled .el-input__inner{color:#b2b2b2!important;-webkit-text-fill-color:#b2b2b2!important}.das-ui-color-picker .das-ui-input.only-border-bottom .el-input.is-view.el-input-group.das-predefine-view-cell{border-bottom-color:#e5e5e5!important}.das-ui-color-picker .el-color-picker .el-color-picker__empty{font-size:8px!important}.das-color-picker-popper .el-button.is-text:not(.is-disabled):focus,.das-color-picker-popper .el-button.is-text:not(.is-disabled):hover{background-color:transparent;color:var(--das-ui-color-picker-primary)}.das-color-picker-popper .el-button.is-plain:not(.is-disabled):focus,.das-color-picker-popper .el-button.is-plain:not(.is-disabled):hover{color:var(--das-ui-color-picker-primary);border-color:var(--das-ui-color-picker-primary)}.das-both-view-cell .color-predefine-icon .das-icon,.das-both-view-cell .el-color-picker__color .el-color-picker__icon{display:none}.das-both-view-cell .el-color-picker__color,.das-both-view-cell .color-predefine-icon.view-prefine-icon{border:none!important}
|
|
Binary file
|