@airpower/web 2.0.0 → 2.0.1
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;
|
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],
|