@das-fed/ui 6.4.0-dev.85 → 6.4.0-dev.86
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/device-panel/index.js +11979 -11908
- package/packages/business-components/device-panel/index.js.gz +0 -0
- 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/payment/index.js +186 -172
- 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 +2 -2
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/components/button/index.js +89 -87
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/button/style.css +1 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/edit-table/index.js +587 -606
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/input/index.js +122 -116
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input/style.css +1 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/search/index.d.ts +12 -98
- package/packages/components/search/index.js +143 -129
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search/src/Index.vue.d.ts +13 -152
- package/packages/components/search/src/type.d.ts +25 -5
- package/packages/components/search/style.css +1 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/search-form/index.js +562 -562
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +3 -3
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/table/index.js +1 -1
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tree-select/index.js +246 -246
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +3 -1
|
@@ -1,156 +1,170 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/search/style.css';
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { defineComponent as
|
|
2
|
+
import { withInstall as _ } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { defineComponent as N, ref as o, computed as W, watch as m, openBlock as E, createElementBlock as O, normalizeClass as P, normalizeStyle as U, createCommentVNode as k, createVNode as C, unref as d, withCtx as B, mergeProps as j, isRef as q, createBlock as F, nextTick as w } from "vue";
|
|
4
4
|
import "element-plus/es/components/input/style/css";
|
|
5
|
-
import { ElInput as
|
|
6
|
-
import { DasAutoRegisterIcon as
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { ElInput as G } from "element-plus";
|
|
6
|
+
import { DasAutoRegisterIcon as H, DasIcon as L } from "@das-fed/ui/packages/components/icon/index";
|
|
7
|
+
import { DasTooltip as J } from "@das-fed/ui/packages/components/tooltip/index";
|
|
8
|
+
import { calcTextWidth as K } from "@das-fed/utils/common-tools";
|
|
9
|
+
import { setThemeRule as Q } from "@das-fed/web/packages/theme/index";
|
|
10
|
+
const X = {
|
|
9
11
|
inheritAttrs: !1
|
|
10
|
-
},
|
|
11
|
-
...
|
|
12
|
+
}, Y = /* @__PURE__ */ N({
|
|
13
|
+
...X,
|
|
12
14
|
__name: "Index",
|
|
13
15
|
props: {
|
|
14
|
-
modelValue: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
type: String,
|
|
27
|
-
default: "basis"
|
|
28
|
-
},
|
|
29
|
-
/**
|
|
30
|
-
* 搜索框尺寸
|
|
31
|
-
* large | middle | small | custom | middle-l | middle-xl
|
|
32
|
-
* custom 自适应
|
|
33
|
-
*/
|
|
34
|
-
size: {
|
|
35
|
-
type: String,
|
|
36
|
-
default: "middle"
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* 前缀图标
|
|
40
|
-
*/
|
|
41
|
-
prefixIcon: {
|
|
42
|
-
type: String,
|
|
43
|
-
default: ""
|
|
44
|
-
},
|
|
45
|
-
/**
|
|
46
|
-
* 后缀图标
|
|
47
|
-
*/
|
|
48
|
-
suffixIcon: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: ""
|
|
51
|
-
},
|
|
52
|
-
isIconLeft: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: !1
|
|
55
|
-
},
|
|
56
|
-
//是否显示清空图标
|
|
57
|
-
clearable: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !0
|
|
60
|
-
},
|
|
61
|
-
/**
|
|
62
|
-
* 是否禁用
|
|
63
|
-
*/
|
|
64
|
-
disabled: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: !1
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* 是否需要边框
|
|
70
|
-
*/
|
|
71
|
-
border: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: !1
|
|
74
|
-
},
|
|
75
|
-
/**
|
|
76
|
-
* 聚焦是否需要展开输入框宽度
|
|
77
|
-
*/
|
|
78
|
-
isExpandAtFocus: {
|
|
79
|
-
type: [Boolean, String],
|
|
80
|
-
default: !1
|
|
81
|
-
}
|
|
16
|
+
modelValue: { default: "" },
|
|
17
|
+
border: { type: Boolean, default: !1 },
|
|
18
|
+
searchType: { default: "basis" },
|
|
19
|
+
placeholder: { default: "" },
|
|
20
|
+
size: { default: "middle" },
|
|
21
|
+
disabled: { type: Boolean, default: !1 },
|
|
22
|
+
clearable: { type: Boolean, default: !0 },
|
|
23
|
+
prefixIcon: { default: "" },
|
|
24
|
+
suffixIcon: { default: "" },
|
|
25
|
+
isIconLeft: { type: Boolean, default: !1 },
|
|
26
|
+
isTitle: { type: Boolean, default: !0 },
|
|
27
|
+
isExpandAtFocus: { type: Boolean, default: !1 }
|
|
82
28
|
},
|
|
83
|
-
emits: ["update:modelValue", "change"
|
|
84
|
-
setup(
|
|
85
|
-
|
|
29
|
+
emits: ["update:modelValue", "change"],
|
|
30
|
+
setup(p, { emit: h }) {
|
|
31
|
+
const l = p, f = h;
|
|
32
|
+
H({
|
|
86
33
|
search: import("@das-fed/ui/packages/icons/search"),
|
|
87
34
|
empty: import("@das-fed/ui/packages/icons/empty")
|
|
88
35
|
});
|
|
89
|
-
const
|
|
90
|
-
let a = o(
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
() =>
|
|
96
|
-
(
|
|
97
|
-
a.value =
|
|
36
|
+
const v = o(null), c = o(null);
|
|
37
|
+
let a = o(l.modelValue), b = o(l.modelValue);
|
|
38
|
+
const s = o(!1), $ = W(() => a.value ? a.value : l.placeholder), A = () => {
|
|
39
|
+
f("update:modelValue", a.value), b.value = a.value, f("change", a.value);
|
|
40
|
+
}, y = (e) => e === null || typeof e > "u" || e === "";
|
|
41
|
+
m(
|
|
42
|
+
() => l.modelValue,
|
|
43
|
+
(e, t) => {
|
|
44
|
+
a.value = e, !y(t) && !y(b.value) && y(e) && (b.value = "", f("change", a.value));
|
|
98
45
|
},
|
|
99
46
|
{
|
|
100
47
|
immediate: !0,
|
|
101
48
|
deep: !0
|
|
102
49
|
}
|
|
103
50
|
);
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
51
|
+
const V = () => K(l.placeholder, 12);
|
|
52
|
+
m(
|
|
53
|
+
() => c.value,
|
|
54
|
+
(e) => {
|
|
55
|
+
setTimeout(() => {
|
|
56
|
+
var u, x;
|
|
57
|
+
const t = e;
|
|
58
|
+
t && (i.value = ((u = t == null ? void 0 : t.ref) == null ? void 0 : u.offsetWidth) ?? 0, r.value = a.value ? (x = t == null ? void 0 : t.ref) == null ? void 0 : x.scrollWidth : V());
|
|
59
|
+
}, 200);
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
const i = o(0), r = o(0), z = () => {
|
|
63
|
+
w(() => {
|
|
64
|
+
var e, t, u;
|
|
65
|
+
(e = c.value) != null && e.ref && (i.value = (t = c.value) == null ? void 0 : t.ref.offsetWidth, r.value = a.value ? (u = c.value) == null ? void 0 : u.ref.scrollWidth : V(), (i.value === r.value || r.value - i.value < 5) && (s.value = !1));
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
m(
|
|
69
|
+
() => [a.value, l.placeholder],
|
|
70
|
+
() => {
|
|
71
|
+
z();
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
const n = o(), R = () => {
|
|
75
|
+
i.value === r.value || r.value - i.value < 5 ? s.value = !1 : (s.value = !0, n.value && clearTimeout(n.value));
|
|
76
|
+
}, D = () => {
|
|
77
|
+
n.value = setTimeout(() => {
|
|
78
|
+
s.value = !1;
|
|
79
|
+
}, 200);
|
|
108
80
|
};
|
|
109
|
-
|
|
81
|
+
m(
|
|
82
|
+
() => {
|
|
83
|
+
var e;
|
|
84
|
+
return (e = v.value) == null ? void 0 : e.$tooltipRef.popperRef.contentRef;
|
|
85
|
+
},
|
|
86
|
+
(e) => {
|
|
87
|
+
e && (e.addEventListener("mouseenter", function() {
|
|
88
|
+
s.value = !0, n.value && clearTimeout(n.value);
|
|
89
|
+
}), e.addEventListener("mouseleave", function() {
|
|
90
|
+
n.value = setTimeout(() => {
|
|
91
|
+
s.value = !1;
|
|
92
|
+
}, 200);
|
|
93
|
+
}));
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
const I = o(""), T = o(!1), g = W(() => (l == null ? void 0 : l.isExpandAtFocus) === !0 || (l == null ? void 0 : l.isExpandAtFocus) === "true"), M = () => {
|
|
97
|
+
g.value && (I.value = "400px", T.value = !0);
|
|
98
|
+
}, S = (e) => {
|
|
99
|
+
g.value && (I.value = "", T.value = !1);
|
|
100
|
+
};
|
|
101
|
+
return (e, t) => (E(), O(
|
|
110
102
|
"div",
|
|
111
103
|
{
|
|
112
|
-
class:
|
|
113
|
-
style:
|
|
104
|
+
class: P(`das-ui-search ${e.size}`),
|
|
105
|
+
style: U({ width: g.value && T.value ? I.value : "" })
|
|
114
106
|
},
|
|
115
107
|
[
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
108
|
+
k(" 这里tooltip不能使用v-model:visible 有响应问题 "),
|
|
109
|
+
C(d(J), {
|
|
110
|
+
ref_key: "inputTooltipRef",
|
|
111
|
+
ref: v,
|
|
112
|
+
effect: "light",
|
|
113
|
+
placement: "top",
|
|
114
|
+
manual: !0,
|
|
115
|
+
visible: s.value,
|
|
116
|
+
disabled: e.isExpandAtFocus || !e.isTitle,
|
|
117
|
+
content: $.value
|
|
118
|
+
}, {
|
|
119
|
+
default: B(() => [
|
|
120
|
+
C(d(G), j({
|
|
121
|
+
ref_key: "$refInput",
|
|
122
|
+
ref: c
|
|
123
|
+
}, e.$attrs, {
|
|
124
|
+
placeholder: e.placeholder,
|
|
125
|
+
type: "text",
|
|
126
|
+
class: `main-input ${e.size} ${e.border ? "border" : ""} ${e.isIconLeft ? "left" : ""}`,
|
|
127
|
+
modelValue: d(a),
|
|
128
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => q(a) ? a.value = u : a = u),
|
|
129
|
+
disabled: e.disabled,
|
|
130
|
+
onChange: A,
|
|
131
|
+
clearable: l.clearable,
|
|
132
|
+
onFocus: M,
|
|
133
|
+
onBlur: S,
|
|
134
|
+
onMouseenter: R,
|
|
135
|
+
onMouseleave: D
|
|
136
|
+
}), {
|
|
137
|
+
prefix: B(() => [
|
|
138
|
+
e.isIconLeft ? (E(), F(d(L), {
|
|
139
|
+
key: 0,
|
|
140
|
+
icon: e.prefixIcon ? e.prefixIcon : "search"
|
|
141
|
+
}, null, 8, ["icon"])) : k("v-if", !0)
|
|
142
|
+
]),
|
|
143
|
+
suffix: B(() => [
|
|
144
|
+
e.isIconLeft ? k("v-if", !0) : (E(), F(d(L), {
|
|
145
|
+
key: 0,
|
|
146
|
+
icon: e.suffixIcon ? e.suffixIcon : "search",
|
|
147
|
+
style: { cursor: "pointer" }
|
|
148
|
+
}, null, 8, ["icon"]))
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
/* STABLE */
|
|
152
|
+
}, 16, ["placeholder", "class", "modelValue", "disabled", "clearable"])
|
|
139
153
|
]),
|
|
140
154
|
_: 1
|
|
141
155
|
/* STABLE */
|
|
142
|
-
},
|
|
156
|
+
}, 8, ["visible", "disabled", "content"])
|
|
143
157
|
],
|
|
144
158
|
6
|
|
145
159
|
/* CLASS, STYLE */
|
|
146
160
|
));
|
|
147
161
|
}
|
|
148
|
-
}),
|
|
149
|
-
const
|
|
150
|
-
for (const [
|
|
151
|
-
|
|
152
|
-
return
|
|
153
|
-
},
|
|
162
|
+
}), Z = (p, h) => {
|
|
163
|
+
const l = p.__vccOpts || p;
|
|
164
|
+
for (const [f, v] of h)
|
|
165
|
+
l[f] = v;
|
|
166
|
+
return l;
|
|
167
|
+
}, ee = /* @__PURE__ */ Z(Y, [["__scopeId", "data-v-e1be4359"]]), le = {
|
|
154
168
|
"--demo-alert-bg": {
|
|
155
169
|
light: "#fff",
|
|
156
170
|
dark: "rgba(255,255,255,.2)"
|
|
@@ -160,9 +174,9 @@ const N = {
|
|
|
160
174
|
"--das-ui-search-text": "#212121",
|
|
161
175
|
"--das-ui-search-border-active": "#5582F3"
|
|
162
176
|
};
|
|
163
|
-
|
|
164
|
-
const
|
|
177
|
+
Q(le);
|
|
178
|
+
const fe = _(ee);
|
|
165
179
|
export {
|
|
166
|
-
|
|
167
|
-
|
|
180
|
+
fe as DasSearch,
|
|
181
|
+
fe as default
|
|
168
182
|
};
|
|
Binary file
|
|
@@ -1,162 +1,23 @@
|
|
|
1
1
|
import 'element-plus/es/components/input/style/css';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* basis 基础搜索
|
|
10
|
-
* quick-search 多条件搜索
|
|
11
|
-
* panel 高级搜索
|
|
12
|
-
* smart 智能搜索
|
|
13
|
-
*/
|
|
14
|
-
searchType: {
|
|
15
|
-
type: StringConstructor;
|
|
16
|
-
default: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* 搜索框尺寸
|
|
20
|
-
* large | middle | small | custom | middle-l | middle-xl
|
|
21
|
-
* custom 自适应
|
|
22
|
-
*/
|
|
23
|
-
size: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* 前缀图标
|
|
29
|
-
*/
|
|
30
|
-
prefixIcon: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
default: string;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* 后缀图标
|
|
36
|
-
*/
|
|
37
|
-
suffixIcon: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
isIconLeft: {
|
|
42
|
-
type: BooleanConstructor;
|
|
43
|
-
default: boolean;
|
|
44
|
-
};
|
|
45
|
-
clearable: {
|
|
46
|
-
type: BooleanConstructor;
|
|
47
|
-
default: boolean;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* 是否禁用
|
|
51
|
-
*/
|
|
52
|
-
disabled: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* 是否需要边框
|
|
58
|
-
*/
|
|
59
|
-
border: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* 聚焦是否需要展开输入框宽度
|
|
65
|
-
*/
|
|
66
|
-
isExpandAtFocus: {
|
|
67
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
71
|
-
search: (...args: any[]) => void;
|
|
72
|
-
"update:modelValue": (...args: any[]) => void;
|
|
73
|
-
change: (...args: any[]) => void;
|
|
74
|
-
blur: (...args: any[]) => void;
|
|
75
|
-
"press-enter": (...args: any[]) => void;
|
|
76
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
77
|
-
modelValue: {
|
|
78
|
-
type: StringConstructor;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* 搜索类型
|
|
83
|
-
* basis 基础搜索
|
|
84
|
-
* quick-search 多条件搜索
|
|
85
|
-
* panel 高级搜索
|
|
86
|
-
* smart 智能搜索
|
|
87
|
-
*/
|
|
88
|
-
searchType: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
default: string;
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* 搜索框尺寸
|
|
94
|
-
* large | middle | small | custom | middle-l | middle-xl
|
|
95
|
-
* custom 自适应
|
|
96
|
-
*/
|
|
97
|
-
size: {
|
|
98
|
-
type: StringConstructor;
|
|
99
|
-
default: string;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* 前缀图标
|
|
103
|
-
*/
|
|
104
|
-
prefixIcon: {
|
|
105
|
-
type: StringConstructor;
|
|
106
|
-
default: string;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* 后缀图标
|
|
110
|
-
*/
|
|
111
|
-
suffixIcon: {
|
|
112
|
-
type: StringConstructor;
|
|
113
|
-
default: string;
|
|
114
|
-
};
|
|
115
|
-
isIconLeft: {
|
|
116
|
-
type: BooleanConstructor;
|
|
117
|
-
default: boolean;
|
|
118
|
-
};
|
|
119
|
-
clearable: {
|
|
120
|
-
type: BooleanConstructor;
|
|
121
|
-
default: boolean;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* 是否禁用
|
|
125
|
-
*/
|
|
126
|
-
disabled: {
|
|
127
|
-
type: BooleanConstructor;
|
|
128
|
-
default: boolean;
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* 是否需要边框
|
|
132
|
-
*/
|
|
133
|
-
border: {
|
|
134
|
-
type: BooleanConstructor;
|
|
135
|
-
default: boolean;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* 聚焦是否需要展开输入框宽度
|
|
139
|
-
*/
|
|
140
|
-
isExpandAtFocus: {
|
|
141
|
-
type: (BooleanConstructor | StringConstructor)[];
|
|
142
|
-
default: boolean;
|
|
143
|
-
};
|
|
144
|
-
}>> & Readonly<{
|
|
145
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
146
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
147
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
148
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
|
149
|
-
"onPress-enter"?: ((...args: any[]) => any) | undefined;
|
|
2
|
+
import type { Props } from './type';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
4
|
+
"update:modelValue": (val: string) => any;
|
|
5
|
+
change: (val: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((val: string) => any) | undefined;
|
|
8
|
+
onChange?: ((val: string) => any) | undefined;
|
|
150
9
|
}>, {
|
|
151
|
-
size:
|
|
10
|
+
size: "large" | "middle" | "small" | "custom" | "middle-l" | "middle-xl";
|
|
152
11
|
disabled: boolean;
|
|
153
12
|
modelValue: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
isTitle: boolean;
|
|
154
15
|
clearable: boolean;
|
|
155
16
|
suffixIcon: string;
|
|
156
17
|
prefixIcon: string;
|
|
157
18
|
isIconLeft: boolean;
|
|
158
|
-
isExpandAtFocus:
|
|
19
|
+
isExpandAtFocus: boolean;
|
|
159
20
|
border: boolean;
|
|
160
|
-
searchType:
|
|
161
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
21
|
+
searchType: "basis";
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
162
23
|
export default _default;
|
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
export interface Props {
|
|
2
2
|
|
|
3
3
|
modelValue: string
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
border: boolean
|
|
7
|
+
|
|
4
8
|
|
|
5
9
|
searchType?: 'basis'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
placeholder?: string
|
|
13
|
+
|
|
6
14
|
|
|
7
15
|
size: 'large' | 'middle' | 'small' | 'custom' | 'middle-l' | 'middle-xl'
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
disabled: boolean
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
clearable: boolean
|
|
22
|
+
|
|
8
23
|
|
|
9
24
|
prefixIcon: string
|
|
25
|
+
|
|
10
26
|
|
|
11
27
|
suffixIcon: string
|
|
28
|
+
|
|
12
29
|
|
|
13
30
|
isIconLeft: boolean
|
|
31
|
+
|
|
14
32
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
disabled: boolean
|
|
18
|
-
|
|
19
|
-
border: boolean
|
|
33
|
+
isTitle?: boolean
|
|
34
|
+
|
|
20
35
|
|
|
21
36
|
isExpandAtFocus: boolean
|
|
22
37
|
}
|
|
38
|
+
|
|
39
|
+
export interface Emits {
|
|
40
|
+
(e: 'update:modelValue', val: string): void
|
|
41
|
+
(e: 'change', val: string): void
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-ui-search[data-v-
|
|
1
|
+
.das-ui-search[data-v-e1be4359]{position:relative;transition:width .3s ease}.das-ui-search[data-v-e1be4359] .el-input__inner{font-size:12px}.das-ui-search.small[data-v-e1be4359]{width:200px}.das-ui-search.small[data-v-e1be4359] .el-input__inner{font-size:12px}.das-ui-search.large[data-v-e1be4359]{width:320px}.das-ui-search.large[data-v-e1be4359] .el-input__inner{font-size:16px}.das-ui-search.middle[data-v-e1be4359]{width:260px}.das-ui-search[data-v-e1be4359] .el-input{border-width:0 0 1px 0!important;border-color:var(--das-ui-search-border);box-shadow:none!important;outline:none}.das-ui-search[data-v-e1be4359] .el-input.is-disabled .el-input__wrapper{background:transparent}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper{border-radius:0;box-shadow:none!important;padding:0 0 1px}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper.is-focus .el-input__prefix .el-input__prefix-inner .das-icon,.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper.is-focus .el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon){color:var(--das-ui-search-border-active)}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__inner{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--das-ui-search-text)}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23d9d9d9'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e");background-size:cover;width:16px;height:16px}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear:hover{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23999999'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e")}.das-ui-search[data-v-e1be4359] .el-input.border{border-radius:2px;border-width:1px!important}.das-ui-search[data-v-e1be4359] .el-input.border .el-input__wrapper{padding:0 5px 0 8px}.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):hover,.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):active,.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):focus{border-color:var(--das-ui-search-border-active)}.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):hover.el-input__prefix .el-input__suffix-inner .das-icon,.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):hover.el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon),.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):active.el-input__prefix .el-input__suffix-inner .das-icon,.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):active.el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon),.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):focus.el-input__prefix .el-input__suffix-inner .das-icon,.das-ui-search[data-v-e1be4359] .el-input:not(.is-disabled):focus.el-input__suffix .el-input__suffix-inner .das-icon:not(.close-icon){color:var(--das-ui-search-border-active)}.das-ui-search[data-v-e1be4359] .el-input.el-input__suffix{padding:0 0 1px;box-sizing:border-box}.das-ui-search[data-v-e1be4359] .el-input.el-input__suffix.border{padding:5px}.das-ui-search[data-v-e1be4359] .el-input.el-input__suffix.left .el-input__suffix .das-icon.close-icon{margin-right:0}.das-ui-search[data-v-e1be4359] .el-input.el-input__suffix .el-input__prefix .das-icon{color:var(--das-ui-search-icon)}.das-ui-search[data-v-e1be4359] .el-input.el-input__suffix .el-input__prefix .das-icon:hover{color:var(--das-ui-search-border-active)}.das-ui-search[data-v-e1be4359] .el-input.small .el-input__inner{height:22px}.das-ui-search[data-v-e1be4359] .el-input.middle .el-input__inner,.das-ui-search[data-v-e1be4359] .el-input.custom .el-input__inner{height:26px}.das-ui-search[data-v-e1be4359] .el-input.middle-l .el-input__inner{height:28px}.das-ui-search[data-v-e1be4359] .el-input.middle-xl .el-input__inner{height:30px}.das-ui-search[data-v-e1be4359] .el-input.large .el-input__inner{height:34px}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__inner{position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23d9d9d9'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e");background-size:cover;width:16px;height:16px}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear:hover{background-image:url("data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1685934237687'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2634'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20128c212.064%200%20384%20171.936%20384%20384s-171.936%20384-384%20384S128%20724.064%20128%20512%20299.936%20128%20512%20128z%20m-140.384%20198.72a32%2032%200%200%200-42.24%202.656l-2.656%203.008a32%2032%200%200%200%202.656%2042.24L466.72%20512l-137.344%20137.376a32%2032%200%200%200%2045.248%2045.248L512%20557.28l137.376%20137.344%203.008%202.656a32%2032%200%200%200%2042.24-2.656l2.656-3.008a32%2032%200%200%200-2.656-42.24L557.28%20512l137.344-137.376a32%2032%200%200%200-45.248-45.248L512%20466.72l-137.376-137.344z'%20fill='%23999999'%20fill-opacity='1'%20p-id='2635'%3e%3c/path%3e%3c/svg%3e")}.das-ui-search[data-v-e1be4359] .el-input .el-input__wrapper .el-input__suffix .el-input__suffix-inner .el-input__clear svg{display:none}
|
|
Binary file
|