@qin-ui/antd-vue-pro 1.0.22 → 1.0.24

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.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, provide, renderSlot } from "vue";
2
2
  import "ant-design-vue";
3
- import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-2b6aeb25.js";
3
+ import { I as INJECT_COMPONENT_PROPS_KEYS } from "../form/index-b9546055.js";
4
4
  import { PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS } from "../table/index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
@@ -16646,22 +16646,23 @@ export {
16646
16646
  _sfc_main as _,
16647
16647
  _export_sfc as a,
16648
16648
  _sfc_main$2 as b,
16649
- _sfc_main$4 as c,
16650
- _sfc_main$1 as d,
16651
- FORM_DATA as e,
16652
- UPDATE_REFS as f,
16653
- COMMAND as g,
16654
- UPDATE_ACTIVE_PATH as h,
16655
- FunctionRegexp as i,
16656
- ArrowFunctionRegexp as j,
16657
- INIT_COMPONENT_PROPS_MAP as k,
16658
- isFunctionString as l,
16659
- jsonStringifyReplacer as m,
16660
- jsonParseReviver as n,
16649
+ cloneDeep as c,
16650
+ _sfc_main$4 as d,
16651
+ _sfc_main$1 as e,
16652
+ FORM_DATA as f,
16653
+ UPDATE_REFS as g,
16654
+ COMMAND as h,
16655
+ UPDATE_ACTIVE_PATH as i,
16656
+ FunctionRegexp as j,
16657
+ ArrowFunctionRegexp as k,
16658
+ INIT_COMPONENT_PROPS_MAP as l,
16659
+ isFunctionString as m,
16660
+ jsonStringifyReplacer as n,
16661
16661
  omit$1 as o,
16662
- useFields as p,
16663
- useFormData as q,
16664
- useCommand as r,
16665
- useInitProps as s,
16662
+ jsonParseReviver as p,
16663
+ useFields as q,
16664
+ useFormData as r,
16665
+ useCommand as s,
16666
+ useInitProps as t,
16666
16667
  useForm as u
16667
16668
  };
package/es/form/index.js CHANGED
@@ -1,30 +1,30 @@
1
- import { j, B, c, g, C, b, e, F, i, k, I, R, d, h, U, f, _, l, n, m, r, p, u, q, s } from "./index-2b6aeb25.js";
1
+ import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, _, m, p, n, s, q, u, r, t } from "./index-b9546055.js";
2
2
  import "vue";
3
3
  import "ant-design-vue";
4
4
  export {
5
- j as ArrowFunctionRegexp,
5
+ k as ArrowFunctionRegexp,
6
6
  B as BaseField,
7
- c as BaseFormItem,
8
- g as COMMAND,
7
+ d as BaseFormItem,
8
+ h as COMMAND,
9
9
  C as COMPONENT_MAP,
10
10
  b as ContainerFragment,
11
- e as FORM_DATA,
11
+ f as FORM_DATA,
12
12
  F as FORM_ITEM_SLOT_KEYS,
13
- i as FunctionRegexp,
14
- k as INIT_COMPONENT_PROPS_MAP,
13
+ j as FunctionRegexp,
14
+ l as INIT_COMPONENT_PROPS_MAP,
15
15
  I as INJECT_COMPONENT_PROPS_KEYS,
16
16
  R as RULE_TYPE_MAP,
17
- d as SlotComponent,
18
- h as UPDATE_ACTIVE_PATH,
17
+ e as SlotComponent,
18
+ i as UPDATE_ACTIVE_PATH,
19
19
  U as UPDATE_FORM_DATA,
20
- f as UPDATE_REFS,
20
+ g as UPDATE_REFS,
21
21
  _ as default,
22
- l as isFunctionString,
23
- n as jsonParseReviver,
24
- m as jsonStringifyReplacer,
25
- r as useCommand,
26
- p as useFields,
22
+ m as isFunctionString,
23
+ p as jsonParseReviver,
24
+ n as jsonStringifyReplacer,
25
+ s as useCommand,
26
+ q as useFields,
27
27
  u as useForm,
28
- q as useFormData,
29
- s as useInitProps
28
+ r as useFormData,
29
+ t as useInitProps
30
30
  };
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./style.css";
2
- import { _ as _sfc_main } from "./form/index-2b6aeb25.js";
3
- import { j, B, c, g, C, b, e, F, i, k, I, R, d, h, U, f, l, n, m, r, p, u, q, s } from "./form/index-2b6aeb25.js";
2
+ import { _ as _sfc_main } from "./form/index-b9546055.js";
3
+ import { k, B, d, h, C, b, f, F, j, l, I, R, e, i, U, g, m, p, n, s, q, u, r, t } from "./form/index-b9546055.js";
4
4
  import BaseTable from "./table/index.js";
5
5
  import { PRO_TABLE_INIT_COMPONENT_PROPS_MAP, PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS, useTable } from "./table/index.js";
6
6
  import _sfc_main$1 from "./component-provider/index.js";
@@ -24,16 +24,16 @@ const index = {
24
24
  }
25
25
  };
26
26
  export {
27
- j as ArrowFunctionRegexp,
27
+ k as ArrowFunctionRegexp,
28
28
  B as BaseField,
29
- c as BaseFormItem,
30
- g as COMMAND,
29
+ d as BaseFormItem,
30
+ h as COMMAND,
31
31
  C as COMPONENT_MAP,
32
32
  b as ContainerFragment,
33
- e as FORM_DATA,
33
+ f as FORM_DATA,
34
34
  F as FORM_ITEM_SLOT_KEYS,
35
- i as FunctionRegexp,
36
- k as INIT_COMPONENT_PROPS_MAP,
35
+ j as FunctionRegexp,
36
+ l as INIT_COMPONENT_PROPS_MAP,
37
37
  I as INJECT_COMPONENT_PROPS_KEYS,
38
38
  PRO_TABLE_INIT_COMPONENT_PROPS_MAP,
39
39
  PRO_TABLE_INJECT_COMPONENT_PROPS_KEYS,
@@ -41,18 +41,18 @@ export {
41
41
  ProForm,
42
42
  ProTable,
43
43
  R as RULE_TYPE_MAP,
44
- d as SlotComponent,
45
- h as UPDATE_ACTIVE_PATH,
44
+ e as SlotComponent,
45
+ i as UPDATE_ACTIVE_PATH,
46
46
  U as UPDATE_FORM_DATA,
47
- f as UPDATE_REFS,
47
+ g as UPDATE_REFS,
48
48
  index as default,
49
- l as isFunctionString,
50
- n as jsonParseReviver,
51
- m as jsonStringifyReplacer,
52
- r as useCommand,
53
- p as useFields,
49
+ m as isFunctionString,
50
+ p as jsonParseReviver,
51
+ n as jsonStringifyReplacer,
52
+ s as useCommand,
53
+ q as useFields,
54
54
  u as useForm,
55
- q as useFormData,
56
- s as useInitProps,
55
+ r as useFormData,
56
+ t as useInitProps,
57
57
  useTable
58
58
  };
package/es/style.css CHANGED
@@ -41,11 +41,11 @@
41
41
  padding: 24px 24px 16px;
42
42
  background-color: #fff;
43
43
  }
44
- .pro-table[data-v-381e47da] {
44
+ .pro-table[data-v-14e8bbe0] {
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  min-width: 800px;
48
48
  }
49
- .pro-table[data-v-381e47da] .ant-pagination .ant-pagination-total-text {
49
+ .pro-table[data-v-14e8bbe0] .ant-pagination .ant-pagination-total-text {
50
50
  flex: 1;
51
51
  }
package/es/table/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createVNode, defineComponent, ref, onMounted, openBlock, createElementBlock, unref, normalizeStyle, createElementVNode, withCtx, createTextVNode, createBlock, toDisplayString, createCommentVNode, mergeModels, useModel, computed, watch, Fragment, renderList, withModifiers, renderSlot, inject, useAttrs, useSlots, mergeProps, createSlots, normalizeProps, guardReactiveProps, nextTick } from "vue";
2
2
  import { Button, Space, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Table } from "ant-design-vue";
3
- import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, u as useForm } from "../form/index-2b6aeb25.js";
3
+ import { A as AntdIcon, _ as _sfc_main$6, a as _export_sfc, o as omit, b as _sfc_main$7, c as cloneDeep, u as useForm } from "../form/index-b9546055.js";
4
4
  var ColumnHeightOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M840 836H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm0-724H184c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h656c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM610.8 378c6 0 9.4-7 5.7-11.7L515.7 238.7a7.14 7.14 0 00-11.3 0L403.6 366.3a7.23 7.23 0 005.7 11.7H476v268h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V378h62.8z" } }] }, "name": "column-height", "theme": "outlined" };
5
5
  const ColumnHeightOutlinedSvg = ColumnHeightOutlined$2;
6
6
  function _objectSpread$2(target) {
@@ -430,10 +430,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
430
430
  current,
431
431
  pageSize
432
432
  });
433
- cache == null ? void 0 : cache.set({
433
+ cache == null ? void 0 : cache.set((pre = {}) => ({
434
+ ...pre,
434
435
  pagination: unref(pagination),
435
436
  searchParam: unref(searchParam)
436
- });
437
+ }));
437
438
  };
438
439
  const reset = () => {
439
440
  var _a2;
@@ -579,17 +580,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
579
580
  };
580
581
  }
581
582
  });
582
- const Table_vue_vue_type_style_index_0_scoped_381e47da_lang = "";
583
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-381e47da"]]);
583
+ const Table_vue_vue_type_style_index_0_scoped_14e8bbe0_lang = "";
584
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-14e8bbe0"]]);
584
585
  const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
585
586
  const useTable = ({
586
587
  columns: initColumns = [],
587
588
  dataSource: initDataSource = [],
588
589
  checkedColumns: initCheckedColumns = void 0,
589
- pagination: initPagination = {},
590
- searchParam: initSearchParam = getDefaultPagination(),
590
+ pagination: initPagination = getDefaultPagination(),
591
+ searchParam: initSearchParam = {},
591
592
  searchFields: initSearchFields = []
592
593
  }) => {
594
+ const _initSearchParam = cloneDeep(unref(initSearchParam));
593
595
  const columns = ref(initColumns);
594
596
  const dataSource = ref(initDataSource);
595
597
  const checkedColumns = ref(
@@ -617,7 +619,7 @@ const useTable = ({
617
619
  const setSearchField = setField;
618
620
  const resetQueryParams = () => {
619
621
  setPagination(getDefaultPagination());
620
- setSearchParam(void 0, {});
622
+ setSearchParam(void 0, _initSearchParam);
621
623
  };
622
624
  return {
623
625
  columns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",