rj-grid 0.2.4 → 0.2.5
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/dist/rj-grid.js
CHANGED
|
@@ -9131,7 +9131,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9131
9131
|
actions: {},
|
|
9132
9132
|
selectedRows: {}
|
|
9133
9133
|
},
|
|
9134
|
-
emits: ["update:modelValue", "search", "action-click"],
|
|
9134
|
+
emits: ["update:modelValue", "search", "reset", "action-click"],
|
|
9135
9135
|
setup(__props, { emit: __emit }) {
|
|
9136
9136
|
const props = __props;
|
|
9137
9137
|
const emit = __emit;
|
|
@@ -9214,8 +9214,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9214
9214
|
emitList(next);
|
|
9215
9215
|
}
|
|
9216
9216
|
function clearAll() {
|
|
9217
|
-
|
|
9218
|
-
emit("search");
|
|
9217
|
+
emit("reset");
|
|
9219
9218
|
}
|
|
9220
9219
|
function readVal(ev, numeric) {
|
|
9221
9220
|
const raw = ev.target.value;
|
|
@@ -10512,6 +10511,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10512
10511
|
emit("filter-change");
|
|
10513
10512
|
dispatchEvent("filterChanged", {});
|
|
10514
10513
|
}
|
|
10514
|
+
function onQueryReset() {
|
|
10515
|
+
const cur = savedViews.views.value.find((v) => v.id === currentViewId.value);
|
|
10516
|
+
queryConditions.value = cur ? cloneConditions(cur.conditions || []) : [];
|
|
10517
|
+
onQuerySearch();
|
|
10518
|
+
}
|
|
10515
10519
|
function applyView(v, viewId) {
|
|
10516
10520
|
var _a2;
|
|
10517
10521
|
const view = "conditions" in v ? v : null;
|
|
@@ -13870,6 +13874,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13870
13874
|
actions: _ctx.queryActions,
|
|
13871
13875
|
"selected-rows": selectedRows(),
|
|
13872
13876
|
onSearch: onQuerySearch,
|
|
13877
|
+
onReset: onQueryReset,
|
|
13873
13878
|
onActionClick: runQueryAction
|
|
13874
13879
|
}, createSlots({ _: 2 }, [
|
|
13875
13880
|
_ctx.$slots["query-actions"] ? {
|
|
@@ -9,6 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
9
9
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
10
|
"update:modelValue": (v: RjQueryCondition[]) => void;
|
|
11
11
|
search: () => void;
|
|
12
|
+
reset: () => void;
|
|
12
13
|
"action-click": (a: RjQueryAction) => void;
|
|
13
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
15
|
fields: RjQueryFieldDef[];
|
|
@@ -19,6 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
19
20
|
selectedRows?: RjRowData[] | undefined;
|
|
20
21
|
}>>> & Readonly<{
|
|
21
22
|
onSearch?: (() => any) | undefined;
|
|
23
|
+
onReset?: (() => any) | undefined;
|
|
22
24
|
"onUpdate:modelValue"?: ((v: RjQueryCondition[]) => any) | undefined;
|
|
23
25
|
"onAction-click"?: ((a: RjQueryAction) => any) | undefined;
|
|
24
26
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|