@funcho/ui 1.1.26 → 1.1.27

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.
@@ -197,9 +197,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
197
197
  pagination.value.pageSize = pageSize;
198
198
  loadData();
199
199
  };
200
+ const resetSearch = () => {
201
+ queryBoxRef.value?.resetFields();
202
+ handleResetClick();
203
+ };
200
204
  __expose({
201
205
  loadData,
202
- tableData
206
+ // 刷新当前页
207
+ tableData,
208
+ reload: handleResetClick,
209
+ // 不清空表单,回到第一页刷新
210
+ resetSearch
211
+ // 清空表单,回到第一页刷新
203
212
  });
204
213
  return (_ctx, _cache) => {
205
214
  const _directive_loading = vue.resolveDirective("loading");
@@ -209,8 +209,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
209
209
  ref: queryBoxRef,
210
210
  class: vue.normalizeClass({ [vue.unref(ns).e("query-box")]: true, [vue.unref(ns).is("expanded")]: isExpanded.value }),
211
211
  style: vue.normalizeStyle({
212
- "--query-box-max-height": vue.unref(formHeight) + 16 + "px",
213
- "--query-box-first-row-height": formFirstRowHeight.value + 16 + "px"
212
+ "--query-box-max-height": vue.unref(formHeight) + "px",
213
+ "--query-box-first-row-height": formFirstRowHeight.value + "px"
214
214
  })
215
215
  }, [
216
216
  vue.createVNode(ProForm_vue_vue_type_script_setup_true_lang.default, {
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const version = "1.1.26";
5
+ const version = "1.1.27";
6
6
 
7
7
  exports.version = version;
@@ -193,9 +193,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
193
193
  pagination.value.pageSize = pageSize;
194
194
  loadData();
195
195
  };
196
+ const resetSearch = () => {
197
+ queryBoxRef.value?.resetFields();
198
+ handleResetClick();
199
+ };
196
200
  __expose({
197
201
  loadData,
198
- tableData
202
+ // 刷新当前页
203
+ tableData,
204
+ reload: handleResetClick,
205
+ // 不清空表单,回到第一页刷新
206
+ resetSearch
207
+ // 清空表单,回到第一页刷新
199
208
  });
200
209
  return (_ctx, _cache) => {
201
210
  const _directive_loading = resolveDirective("loading");
@@ -205,8 +205,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
205
  ref: queryBoxRef,
206
206
  class: normalizeClass({ [unref(ns).e("query-box")]: true, [unref(ns).is("expanded")]: isExpanded.value }),
207
207
  style: normalizeStyle({
208
- "--query-box-max-height": unref(formHeight) + 16 + "px",
209
- "--query-box-first-row-height": formFirstRowHeight.value + 16 + "px"
208
+ "--query-box-max-height": unref(formHeight) + "px",
209
+ "--query-box-first-row-height": formFirstRowHeight.value + "px"
210
210
  })
211
211
  }, [
212
212
  createVNode(_sfc_main$1, {
@@ -1,3 +1,3 @@
1
- const version = "1.1.26";
1
+ const version = "1.1.27";
2
2
 
3
3
  export { version };
package/dist/style.css CHANGED
@@ -17098,6 +17098,7 @@ to {
17098
17098
  background-color: #e8efff;
17099
17099
  border-radius: 2px;
17100
17100
  padding: 8px;
17101
+ box-sizing: content-box !important;
17101
17102
  max-height: var(--query-box-first-row-height);
17102
17103
  overflow: hidden;
17103
17104
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1);
@@ -1507,6 +1507,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1507
1507
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
1508
1508
  loadData: () => Promise<void>;
1509
1509
  tableData: import('vue').Ref<any[], any[]>;
1510
+ reload: () => void;
1511
+ resetSearch: () => void;
1510
1512
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
1511
1513
  height: number;
1512
1514
  fields: Array<TProFormField>;
@@ -41,6 +41,8 @@ export declare const FcProDataTable: {
41
41
  }> & Readonly<{}>, {
42
42
  loadData: () => Promise<void>;
43
43
  tableData: import('vue').Ref<any[], any[]>;
44
+ reload: () => void;
45
+ resetSearch: () => void;
44
46
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
45
47
  height: number;
46
48
  fields: Array<import('..').TProFormField>;
@@ -1593,6 +1595,8 @@ export declare const FcProDataTable: {
1593
1595
  }> & Readonly<{}>, {
1594
1596
  loadData: () => Promise<void>;
1595
1597
  tableData: import('vue').Ref<any[], any[]>;
1598
+ reload: () => void;
1599
+ resetSearch: () => void;
1596
1600
  }, {}, {}, {}, {
1597
1601
  height: number;
1598
1602
  fields: Array<import('..').TProFormField>;
@@ -1678,6 +1682,8 @@ export declare const FcProDataTable: {
1678
1682
  }> & Readonly<{}>, {
1679
1683
  loadData: () => Promise<void>;
1680
1684
  tableData: import('vue').Ref<any[], any[]>;
1685
+ reload: () => void;
1686
+ resetSearch: () => void;
1681
1687
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1682
1688
  height: number;
1683
1689
  fields: Array<import('..').TProFormField>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funcho/ui",
3
3
  "description": "@funcho ui library",
4
- "version": "1.1.26",
4
+ "version": "1.1.27",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.mjs",