@qin-ui/antd-vue-pro 1.0.32 → 1.0.33

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
@@ -718,6 +718,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
718
718
  controlContainer?: ContainerComponent | any;
719
719
  tableContainer?: ContainerComponent | any;
720
720
  paramCache?: ParamCache | undefined;
721
+ immediateSearch?: boolean | undefined;
721
722
  onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
722
723
  rowSelection?: TableRowSelection<any> | undefined;
723
724
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
@@ -1160,6 +1161,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
1160
1161
  controlContainer?: ContainerComponent | any;
1161
1162
  tableContainer?: ContainerComponent | any;
1162
1163
  paramCache?: ParamCache | undefined;
1164
+ immediateSearch?: boolean | undefined;
1163
1165
  onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
1164
1166
  rowSelection?: TableRowSelection<any> | undefined;
1165
1167
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -1606,6 +1608,7 @@ declare const _default_3: <D extends Record<string, any>>(__VLS_props: {
1606
1608
  controlContainer?: ContainerComponent | any;
1607
1609
  tableContainer?: ContainerComponent | any;
1608
1610
  paramCache?: ParamCache | undefined;
1611
+ immediateSearch?: boolean | undefined;
1609
1612
  onResizeColumn?: ((w: number, col: ColumnType_2<any>) => void) | undefined;
1610
1613
  rowSelection?: TableRowSelection<any> | undefined;
1611
1614
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -3323,6 +3326,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
3323
3326
  controlContainer?: any;
3324
3327
  tableContainer?: any;
3325
3328
  paramCache?: ParamCache | undefined;
3329
+ immediateSearch?: boolean | undefined;
3326
3330
  onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
3327
3331
  rowSelection?: TableRowSelection<any> | undefined;
3328
3332
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
@@ -3765,6 +3769,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
3765
3769
  controlContainer?: any;
3766
3770
  tableContainer?: any;
3767
3771
  paramCache?: ParamCache | undefined;
3772
+ immediateSearch?: boolean | undefined;
3768
3773
  onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
3769
3774
  rowSelection?: TableRowSelection<any> | undefined;
3770
3775
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
@@ -4211,6 +4216,7 @@ export declare const ProTable: SFCWithInstall<(<D extends Record<string, any>>(_
4211
4216
  controlContainer?: any;
4212
4217
  tableContainer?: any;
4213
4218
  paramCache?: ParamCache | undefined;
4219
+ immediateSearch?: boolean | undefined;
4214
4220
  onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
4215
4221
  rowSelection?: TableRowSelection<any> | undefined;
4216
4222
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
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-44c52bd8] {
44
+ .pro-table[data-v-32da447f] {
45
45
  display: flex;
46
46
  flex-direction: column;
47
47
  min-width: 800px;
48
48
  }
49
- .pro-table[data-v-44c52bd8] .ant-pagination .ant-pagination-total-text {
49
+ .pro-table[data-v-32da447f] .ant-pagination .ant-pagination-total-text {
50
50
  flex: 1;
51
51
  }
package/es/table/index.js CHANGED
@@ -399,7 +399,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
399
399
  searchContainer: { default: DefaultSearchContainer },
400
400
  controlContainer: { default: DefaultControlContainer },
401
401
  tableContainer: { default: DefaultTableContainer },
402
- paramCache: { default: void 0 }
402
+ paramCache: { default: void 0 },
403
+ immediateSearch: { type: Boolean, default: false }
403
404
  },
404
405
  emits: ["search"],
405
406
  setup(__props, { emit: __emit }) {
@@ -519,6 +520,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
519
520
  }
520
521
  return list;
521
522
  });
523
+ onMounted(() => {
524
+ if (props.immediateSearch) {
525
+ search();
526
+ }
527
+ });
522
528
  return (_ctx, _cache) => {
523
529
  return openBlock(), createElementBlock("div", {
524
530
  class: "pro-table",
@@ -580,8 +586,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
580
586
  };
581
587
  }
582
588
  });
583
- const Table_vue_vue_type_style_index_0_scoped_44c52bd8_lang = "";
584
- const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-44c52bd8"]]);
589
+ const Table_vue_vue_type_style_index_0_scoped_32da447f_lang = "";
590
+ const BaseTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-32da447f"]]);
585
591
  const getDefaultPagination = () => ({ current: 1, pageSize: 10, total: 0 });
586
592
  const useTable = ({
587
593
  columns: initColumns = [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qin-ui/antd-vue-pro",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "二次封装antd vue组件",
5
5
  "type": "module",
6
6
  "main": "",