@airpower/web 2.0.0 → 2.0.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.
|
@@ -153,7 +153,7 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
153
153
|
search: () => void;
|
|
154
154
|
}>): void;
|
|
155
155
|
attrs: any;
|
|
156
|
-
slots: Partial<Record
|
|
156
|
+
slots: Partial<Record<`search-${string}`, (_: {
|
|
157
157
|
data: import('@vue/reactivity').DistributeRef<[E] extends [Ref<any, any>] ? import('@vue/shared').IfAny<E, Ref<E, E>, E> : Ref<import('vue').UnwrapRef<E>, E | import('vue').UnwrapRef<E>>>;
|
|
158
158
|
}) => any>> & Partial<Record<string, (_: {
|
|
159
159
|
data: E;
|
|
@@ -164,6 +164,7 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
164
164
|
addButton?(_: {}): any;
|
|
165
165
|
afterButton?(_: {}): any;
|
|
166
166
|
beforeSearch?(_: {}): any;
|
|
167
|
+
search?(_: {}): any;
|
|
167
168
|
afterSearch?(_: {}): any;
|
|
168
169
|
customRow?(_: {
|
|
169
170
|
data: E;
|
|
@@ -30,6 +30,9 @@ declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<
|
|
|
30
30
|
attrs: any;
|
|
31
31
|
slots: {
|
|
32
32
|
icon?(_: {}): any;
|
|
33
|
+
beforeSearch?(_: {}): any;
|
|
34
|
+
afterSearch?(_: {}): any;
|
|
35
|
+
afterTree?(_: {}): any;
|
|
33
36
|
default?(_: {}): any;
|
|
34
37
|
};
|
|
35
38
|
emit: (evt: "change", data: T | undefined) => void;
|
package/dist/main.js
CHANGED
|
@@ -17915,8 +17915,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
17915
17915
|
])
|
|
17916
17916
|
]),
|
|
17917
17917
|
createElementVNode("div", _hoisted_3$2, [
|
|
17918
|
-
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
17919
17918
|
createElementVNode("div", _hoisted_4$1, [
|
|
17919
|
+
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
17920
|
+
renderSlot(_ctx.$slots, "search"),
|
|
17920
17921
|
(openBlock(true), createElementBlock(Fragment, null, renderList(searchFieldList.value, (item) => {
|
|
17921
17922
|
return openBlock(), createElementBlock(Fragment, {
|
|
17922
17923
|
key: item.key
|
|
@@ -17926,7 +17927,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
17926
17927
|
style: normalizeStyle({ width: `${item.width || 150}px` }),
|
|
17927
17928
|
class: "a-table-toolbar-search-item"
|
|
17928
17929
|
}, [
|
|
17929
|
-
renderSlot(_ctx.$slots, item.key
|
|
17930
|
+
renderSlot(_ctx.$slots, `search-${item.key}`, { data: searchFilter.value }, () => [
|
|
17930
17931
|
unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(ElSelect), {
|
|
17931
17932
|
key: 0,
|
|
17932
17933
|
modelValue: searchFilter.value[item.key],
|
|
@@ -18348,6 +18349,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18348
18349
|
renderSlot(_ctx.$slots, "icon")
|
|
18349
18350
|
]),
|
|
18350
18351
|
default: withCtx(() => [
|
|
18352
|
+
renderSlot(_ctx.$slots, "beforeSearch"),
|
|
18351
18353
|
__props.searchable ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
18352
18354
|
createVNode(unref(ElInput), {
|
|
18353
18355
|
modelValue: searchKeyword.value,
|
|
@@ -18356,6 +18358,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18356
18358
|
clearable: ""
|
|
18357
18359
|
}, null, 8, ["modelValue", "placeholder"])
|
|
18358
18360
|
])) : createCommentVNode("", true),
|
|
18361
|
+
renderSlot(_ctx.$slots, "afterSearch"),
|
|
18359
18362
|
withDirectives(createVNode(unref(ElTree), {
|
|
18360
18363
|
ref_key: "treeRef",
|
|
18361
18364
|
ref: treeRef,
|
|
@@ -18370,7 +18373,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18370
18373
|
onNodeClick: treeSelectChanged
|
|
18371
18374
|
}, null, 8, ["current-node-key", "data", "default-expand-all", "props"]), [
|
|
18372
18375
|
[_directive_loading, __props.isTreeLoading]
|
|
18373
|
-
])
|
|
18376
|
+
]),
|
|
18377
|
+
renderSlot(_ctx.$slots, "afterTree")
|
|
18374
18378
|
]),
|
|
18375
18379
|
_: 3
|
|
18376
18380
|
}, 8, ["hide-icon", "show-title", "title"]), [
|