@qin-ui/antd-vue-pro 1.1.23 → 1.1.25

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/es/index.d.ts CHANGED
@@ -886,6 +886,7 @@ declare const _default_3: __VLS_WithTemplateSlots_3<DefineComponent<ExtractPropT
886
886
  } & {
887
887
  setSearchParam: SetFormData;
888
888
  setSearchField: SetField;
889
+ getSearchField: GetField;
889
890
  setShowColumnKeys: (val: string[]) => void;
890
891
  setPagination: (val: Partial<ExtractPropTypes<{
891
892
  total: NumberConstructor;
@@ -1481,6 +1482,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
1481
1482
  } & {
1482
1483
  setSearchParam: SetFormData;
1483
1484
  setSearchField: SetField;
1485
+ getSearchField: GetField;
1484
1486
  setShowColumnKeys: (val: string[]) => void;
1485
1487
  setPagination: (val: Partial<ExtractPropTypes<{
1486
1488
  total: NumberConstructor;
@@ -1820,6 +1822,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
1820
1822
  } & {
1821
1823
  setSearchParam: SetFormData;
1822
1824
  setSearchField: SetField;
1825
+ getSearchField: GetField;
1823
1826
  setShowColumnKeys: (val: string[]) => void;
1824
1827
  setPagination: (val: Partial<ExtractPropTypes<{
1825
1828
  total: NumberConstructor;
@@ -2387,6 +2390,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
2387
2390
  } & {
2388
2391
  setSearchParam: SetFormData;
2389
2392
  setSearchField: SetField;
2393
+ getSearchField: GetField;
2390
2394
  setShowColumnKeys: (val: string[]) => void;
2391
2395
  setPagination: (val: Partial<ExtractPropTypes<{
2392
2396
  total: NumberConstructor;
@@ -2726,6 +2730,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
2726
2730
  } & {
2727
2731
  setSearchParam: SetFormData;
2728
2732
  setSearchField: SetField;
2733
+ getSearchField: GetField;
2729
2734
  setShowColumnKeys: (val: string[]) => void;
2730
2735
  setPagination: (val: Partial<ExtractPropTypes<{
2731
2736
  total: NumberConstructor;
@@ -3290,6 +3295,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
3290
3295
  } & {
3291
3296
  setSearchParam: SetFormData;
3292
3297
  setSearchField: SetField;
3298
+ getSearchField: GetField;
3293
3299
  setShowColumnKeys: (val: string[]) => void;
3294
3300
  setPagination: (val: Partial<ExtractPropTypes<{
3295
3301
  total: NumberConstructor;
@@ -3629,6 +3635,7 @@ export declare const ProComponentProvider: SFCWithInstall<{
3629
3635
  } & {
3630
3636
  setSearchParam: SetFormData;
3631
3637
  setSearchField: SetField;
3638
+ getSearchField: GetField;
3632
3639
  setShowColumnKeys: (val: string[]) => void;
3633
3640
  setPagination: (val: Partial<ExtractPropTypes<{
3634
3641
  total: NumberConstructor;
@@ -4816,6 +4823,7 @@ export declare const ProTable: SFCWithInstall<{
4816
4823
  } & {
4817
4824
  setSearchParam: SetFormData;
4818
4825
  setSearchField: SetField;
4826
+ getSearchField: GetField;
4819
4827
  setShowColumnKeys: (val: string[]) => void;
4820
4828
  setPagination: (val: Partial<ExtractPropTypes<{
4821
4829
  total: NumberConstructor;
@@ -5467,6 +5475,7 @@ export declare const ProTable: SFCWithInstall<{
5467
5475
  } & {
5468
5476
  setSearchParam: SetFormData;
5469
5477
  setSearchField: SetField;
5478
+ getSearchField: GetField;
5470
5479
  setShowColumnKeys: (val: string[]) => void;
5471
5480
  setPagination: (val: Partial<ExtractPropTypes<{
5472
5481
  total: NumberConstructor;
@@ -5844,6 +5853,7 @@ export declare const ProTable: SFCWithInstall<{
5844
5853
  } & {
5845
5854
  setSearchParam: SetFormData;
5846
5855
  setSearchField: SetField;
5856
+ getSearchField: GetField;
5847
5857
  setShowColumnKeys: (val: string[]) => void;
5848
5858
  setPagination: (val: Partial<ExtractPropTypes<{
5849
5859
  total: NumberConstructor;
@@ -6402,6 +6412,7 @@ export declare const ProTable: SFCWithInstall<{
6402
6412
  } & {
6403
6413
  setSearchParam: SetFormData;
6404
6414
  setSearchField: SetField;
6415
+ getSearchField: GetField;
6405
6416
  setShowColumnKeys: (val: string[]) => void;
6406
6417
  setPagination: (val: Partial<ExtractPropTypes<{
6407
6418
  total: NumberConstructor;
@@ -6776,6 +6787,7 @@ export declare const ProTable: SFCWithInstall<{
6776
6787
  } & {
6777
6788
  setSearchParam: SetFormData;
6778
6789
  setSearchField: SetField;
6790
+ getSearchField: GetField;
6779
6791
  setShowColumnKeys: (val: string[]) => void;
6780
6792
  setPagination: (val: Partial<ExtractPropTypes<{
6781
6793
  total: NumberConstructor;
@@ -7427,6 +7439,7 @@ export declare const ProTable: SFCWithInstall<{
7427
7439
  } & {
7428
7440
  setSearchParam: SetFormData;
7429
7441
  setSearchField: SetField;
7442
+ getSearchField: GetField;
7430
7443
  setShowColumnKeys: (val: string[]) => void;
7431
7444
  setPagination: (val: Partial<ExtractPropTypes<{
7432
7445
  total: NumberConstructor;
@@ -7737,6 +7750,7 @@ export declare type UseTable = <D extends Data = Data>(init: Partial<Table<D>>)
7737
7750
  } & {
7738
7751
  setSearchParam: SetFormData;
7739
7752
  setSearchField: SetField;
7753
+ getSearchField: GetField;
7740
7754
  setShowColumnKeys: (val: Array<string>) => void;
7741
7755
  setPagination: (val: PaginationProps) => void;
7742
7756
  resetQueryParams: () => void;
package/es/style.css CHANGED
@@ -33,11 +33,11 @@
33
33
  padding: 24px 24px 16px;
34
34
  background-color: #fff;
35
35
  }
36
- .pro-table[data-v-1adefaaa] {
36
+ .pro-table[data-v-7ca35914] {
37
37
  display: flex;
38
38
  flex-direction: column;
39
39
  min-width: 800px;
40
40
  }
41
- .pro-table[data-v-1adefaaa] .ant-pagination .ant-pagination-total-text {
41
+ .pro-table[data-v-7ca35914] .ant-pagination .ant-pagination-total-text {
42
42
  flex: 1;
43
43
  }
package/es/table/index.js CHANGED
@@ -536,8 +536,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
536
536
  onChange: table ? (...args) => {
537
537
  var _a2;
538
538
  setPagination(args[0]);
539
- search();
540
539
  (_a2 = attrs.onChange) == null ? void 0 : _a2.call(attrs, ...args);
540
+ search();
541
541
  } : attrs.onChange
542
542
  };
543
543
  });
@@ -633,8 +633,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
633
633
  };
634
634
  }
635
635
  });
636
- const Table_vue_vue_type_style_index_0_scoped_1adefaaa_lang = "";
637
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1adefaaa"]]);
636
+ const Table_vue_vue_type_style_index_0_scoped_7ca35914_lang = "";
637
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ca35914"]]);
638
638
  const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
639
639
  const useTable = ({
640
640
  columns: initColumns = [],
@@ -670,7 +670,7 @@ const useTable = ({
670
670
  const setPagination = (val) => {
671
671
  pagination.value = val;
672
672
  };
673
- const { formData, fields, setFormData, setField } = useForm(
673
+ const { formData, fields, setFormData, setField, getField } = useForm(
674
674
  initSearchParam,
675
675
  initSearchFields
676
676
  );
@@ -678,6 +678,7 @@ const useTable = ({
678
678
  const searchFields = fields;
679
679
  const setSearchParam = setFormData;
680
680
  const setSearchField = setField;
681
+ const getSearchField = getField;
681
682
  const resetQueryParams = () => {
682
683
  setPagination(getDefaultPagination());
683
684
  setSearchParam(cloneDeep(_initSearchParam));
@@ -691,6 +692,7 @@ const useTable = ({
691
692
  setSearchParam,
692
693
  searchFields,
693
694
  setSearchField,
695
+ getSearchField,
694
696
  setShowColumnKeys,
695
697
  setPagination,
696
698
  resetQueryParams
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "es/index.js",