@zl-ui-kit/components 0.24.1 → 0.24.2
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/README.md +2 -2
- package/dist/components/ZlSearch/index.vue.mjs +18 -18
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1203,7 +1203,7 @@ function onSearch(params) {
|
|
|
1203
1203
|
```
|
|
1204
1204
|
|
|
1205
1205
|
`ZlSearch` 按容器宽度自适应排列(每项最小 240px,列数随宽度变化)。**一行放不下的项会自动隐藏**,
|
|
1206
|
-
|
|
1206
|
+
此时「搜索」左侧出现展开按钮(筛选图标):点击在查询条上层展开全量表单,再点即收起。
|
|
1207
1207
|
是否溢出由实测宽度算出(不是按项数猜),窗口拉宽后按钮会自动消失。`@search` 回传查询参数对象。
|
|
1208
1208
|
|
|
1209
1209
|
#### ⑤ `ZlDictTag` —— 注入字典后由 `useDict` 解析
|
|
@@ -1765,7 +1765,7 @@ const items: SearchItem[] = [
|
|
|
1765
1765
|
校验与取值不受影响),所以查询条永远只有一行高;
|
|
1766
1766
|
- `ResizeObserver` 监听宽度变化重算,拉宽窗口后展开按钮会自己消失;查询项增删/显隐后也会重测。
|
|
1767
1767
|
|
|
1768
|
-
|
|
1768
|
+
**按钮布局**:操作区从左到右为 展开/收起图标按钮(有溢出时)→「搜索」→「重置」;「搜索」「重置」为
|
|
1769
1769
|
文本按钮、不带图标,展开/收起为纯图标按钮。点击图标按钮在查询条**上层**展开全量表单浮层
|
|
1770
1770
|
(`position: absolute` + 上滑 `--28px` 淡入,不改变页面高度),再点收起;搜索/重置后自动收起。
|
|
1771
1771
|
`labelsVisible` 不显式传时,仅在发生溢出时展示「筛选条件」标签行(旧名 `showLabels` 仍兼容)。
|
|
@@ -139,15 +139,6 @@ const de = { class: "zl-search" }, ue = {
|
|
|
139
139
|
}))
|
|
140
140
|
]), 1032, ["model", "items", "disabled", "hide-empty-label"]),
|
|
141
141
|
g("div", fe, [
|
|
142
|
-
s(b, {
|
|
143
|
-
type: "primary",
|
|
144
|
-
onClick: y
|
|
145
|
-
}, {
|
|
146
|
-
default: t(() => [
|
|
147
|
-
m(c(o(r)("zl.search.search", "搜索")), 1)
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}),
|
|
151
142
|
o(E) !== null ? (n(), N(b, {
|
|
152
143
|
key: 0,
|
|
153
144
|
class: "zl-search-form-actions__toggle",
|
|
@@ -161,6 +152,15 @@ const de = { class: "zl-search" }, ue = {
|
|
|
161
152
|
]),
|
|
162
153
|
_: 1
|
|
163
154
|
}, 8, ["title", "aria-label", "aria-expanded"])) : v("", !0),
|
|
155
|
+
s(b, {
|
|
156
|
+
type: "primary",
|
|
157
|
+
onClick: y
|
|
158
|
+
}, {
|
|
159
|
+
default: t(() => [
|
|
160
|
+
m(c(o(r)("zl.search.search", "搜索")), 1)
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}),
|
|
164
164
|
s(b, {
|
|
165
165
|
class: "zl-search-form-actions__reset",
|
|
166
166
|
onClick: V
|
|
@@ -228,15 +228,6 @@ const de = { class: "zl-search" }, ue = {
|
|
|
228
228
|
}))
|
|
229
229
|
]), 1032, ["model", "items", "disabled", "hide-empty-label"]),
|
|
230
230
|
g("div", be, [
|
|
231
|
-
s(b, {
|
|
232
|
-
type: "primary",
|
|
233
|
-
onClick: y
|
|
234
|
-
}, {
|
|
235
|
-
default: t(() => [
|
|
236
|
-
m(c(o(r)("zl.search.search", "搜索")), 1)
|
|
237
|
-
]),
|
|
238
|
-
_: 1
|
|
239
|
-
}),
|
|
240
231
|
s(b, {
|
|
241
232
|
class: "zl-search-form-actions__toggle",
|
|
242
233
|
title: o(r)("zl.search.collapse", "收起"),
|
|
@@ -249,6 +240,15 @@ const de = { class: "zl-search" }, ue = {
|
|
|
249
240
|
]),
|
|
250
241
|
_: 1
|
|
251
242
|
}, 8, ["title", "aria-label", "aria-expanded"]),
|
|
243
|
+
s(b, {
|
|
244
|
+
type: "primary",
|
|
245
|
+
onClick: y
|
|
246
|
+
}, {
|
|
247
|
+
default: t(() => [
|
|
248
|
+
m(c(o(r)("zl.search.search", "搜索")), 1)
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}),
|
|
252
252
|
s(b, {
|
|
253
253
|
class: "zl-search-form-actions__reset",
|
|
254
254
|
onClick: V
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zl-ui-kit/components",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ZL UI 业务组件库(Element Plus 体系,Zl 前缀)——首批:Icon/AutoTooltip/Tag/CornerTag/Text/Title/Copy/Empty/Pagination/DictTag",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"file-type": "^20.4.1",
|
|
40
40
|
"dt-sql-parser": "^4.3.1",
|
|
41
41
|
"sql-formatter": "^15.4.2",
|
|
42
|
-
"@zl-ui-kit/icons": "0.24.
|
|
43
|
-
"@zl-ui-kit/composables": "0.24.
|
|
44
|
-
"@zl-ui-kit/utils": "0.24.
|
|
42
|
+
"@zl-ui-kit/icons": "0.24.2",
|
|
43
|
+
"@zl-ui-kit/composables": "0.24.2",
|
|
44
|
+
"@zl-ui-kit/utils": "0.24.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@vueuse/core": "^12.3.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"echarts": "^5.6.0",
|
|
102
102
|
"@jichuang/eslint-config": "1.0.0",
|
|
103
103
|
"@jichuang/tsconfig": "1.0.0",
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
104
|
+
"@jichuang/vite-config": "1.0.0",
|
|
105
|
+
"@zl-ui-kit/theme": "0.24.2"
|
|
106
106
|
},
|
|
107
107
|
"repository": {
|
|
108
108
|
"type": "git",
|