@vue-start/pro 0.4.8 → 0.4.9

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/index.d.ts CHANGED
@@ -613,6 +613,13 @@ declare const proCurdListProps: () => {
613
613
  tableProps: {
614
614
  type: PropType<Record<string, any>>;
615
615
  };
616
+ paginationProps: {
617
+ type: PropType<Record<string, any>>;
618
+ };
619
+ showPagination: {
620
+ type: BooleanConstructor;
621
+ default: boolean;
622
+ };
616
623
  pageState: {
617
624
  type: PropType<TPageState>;
618
625
  };
@@ -632,6 +639,13 @@ declare const createCurdList: (SearchForm: any, Table: any) => vue.DefineCompone
632
639
  tableProps: {
633
640
  type: PropType<Record<string, any>>;
634
641
  };
642
+ paginationProps: {
643
+ type: PropType<Record<string, any>>;
644
+ };
645
+ showPagination: {
646
+ type: BooleanConstructor;
647
+ default: boolean;
648
+ };
635
649
  pageState: {
636
650
  type: PropType<TPageState>;
637
651
  };
@@ -649,6 +663,13 @@ declare const createCurdList: (SearchForm: any, Table: any) => vue.DefineCompone
649
663
  tableProps: {
650
664
  type: PropType<Record<string, any>>;
651
665
  };
666
+ paginationProps: {
667
+ type: PropType<Record<string, any>>;
668
+ };
669
+ showPagination: {
670
+ type: BooleanConstructor;
671
+ default: boolean;
672
+ };
652
673
  pageState: {
653
674
  type: PropType<TPageState>;
654
675
  };
package/dist/index.es.js CHANGED
@@ -1820,6 +1820,14 @@ var proCurdListProps = function proCurdListProps() {
1820
1820
  tableProps: {
1821
1821
  type: Object
1822
1822
  },
1823
+ //pagination是否展示
1824
+ paginationProps: {
1825
+ type: Object
1826
+ },
1827
+ showPagination: {
1828
+ type: Boolean,
1829
+ "default": true
1830
+ },
1823
1831
  //pageState
1824
1832
  pageState: {
1825
1833
  type: Object
@@ -1946,7 +1954,7 @@ var createCurdList = function createCurdList(SearchForm, Table) {
1946
1954
  "default": function _default() {
1947
1955
  return [props.extraInSearch && extra];
1948
1956
  }
1949
- }, (_props$searchProps = props.searchProps) === null || _props$searchProps === void 0 ? void 0 : _props$searchProps.slots)), (_slots$divide = slots.divide) === null || _slots$divide === void 0 ? void 0 : _slots$divide.call(slots), !props.extraInSearch && extra, slots.table ? slots.table(rewriteTableProps) : createVNode(Table, rewriteTableProps, tableProps === null || tableProps === void 0 ? void 0 : tableProps.slots), (_slots$divide2 = slots.divide2) === null || _slots$divide2 === void 0 ? void 0 : _slots$divide2.call(slots), createVNode("div", {
1957
+ }, (_props$searchProps = props.searchProps) === null || _props$searchProps === void 0 ? void 0 : _props$searchProps.slots)), (_slots$divide = slots.divide) === null || _slots$divide === void 0 ? void 0 : _slots$divide.call(slots), !props.extraInSearch && extra, slots.table ? slots.table(rewriteTableProps) : createVNode(Table, rewriteTableProps, tableProps === null || tableProps === void 0 ? void 0 : tableProps.slots), (_slots$divide2 = slots.divide2) === null || _slots$divide2 === void 0 ? void 0 : _slots$divide2.call(slots), props.showPagination && createVNode("div", {
1950
1958
  "class": "pro-curd-list-footer"
1951
1959
  }, [(_slots$footerStart = slots.footerStart) === null || _slots$footerStart === void 0 ? void 0 : _slots$footerStart.call(slots), (_slots$pagination = slots.pagination) === null || _slots$pagination === void 0 ? void 0 : _slots$pagination.call(slots, pageState, (_curdState$listData2 = curdState.listData) === null || _curdState$listData2 === void 0 ? void 0 : _curdState$listData2.total, handleSearch), (_slots$footerEnd = slots.footerEnd) === null || _slots$footerEnd === void 0 ? void 0 : _slots$footerEnd.call(slots)]), (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
1952
1960
  };
package/dist/index.js CHANGED
@@ -1824,6 +1824,14 @@ var proCurdListProps = function proCurdListProps() {
1824
1824
  tableProps: {
1825
1825
  type: Object
1826
1826
  },
1827
+ //pagination是否展示
1828
+ paginationProps: {
1829
+ type: Object
1830
+ },
1831
+ showPagination: {
1832
+ type: Boolean,
1833
+ "default": true
1834
+ },
1827
1835
  //pageState
1828
1836
  pageState: {
1829
1837
  type: Object
@@ -1950,7 +1958,7 @@ var createCurdList = function createCurdList(SearchForm, Table) {
1950
1958
  "default": function _default() {
1951
1959
  return [props.extraInSearch && extra];
1952
1960
  }
1953
- }, (_props$searchProps = props.searchProps) === null || _props$searchProps === void 0 ? void 0 : _props$searchProps.slots)), (_slots$divide = slots.divide) === null || _slots$divide === void 0 ? void 0 : _slots$divide.call(slots), !props.extraInSearch && extra, slots.table ? slots.table(rewriteTableProps) : vue.createVNode(Table, rewriteTableProps, tableProps === null || tableProps === void 0 ? void 0 : tableProps.slots), (_slots$divide2 = slots.divide2) === null || _slots$divide2 === void 0 ? void 0 : _slots$divide2.call(slots), vue.createVNode("div", {
1961
+ }, (_props$searchProps = props.searchProps) === null || _props$searchProps === void 0 ? void 0 : _props$searchProps.slots)), (_slots$divide = slots.divide) === null || _slots$divide === void 0 ? void 0 : _slots$divide.call(slots), !props.extraInSearch && extra, slots.table ? slots.table(rewriteTableProps) : vue.createVNode(Table, rewriteTableProps, tableProps === null || tableProps === void 0 ? void 0 : tableProps.slots), (_slots$divide2 = slots.divide2) === null || _slots$divide2 === void 0 ? void 0 : _slots$divide2.call(slots), props.showPagination && vue.createVNode("div", {
1954
1962
  "class": "pro-curd-list-footer"
1955
1963
  }, [(_slots$footerStart = slots.footerStart) === null || _slots$footerStart === void 0 ? void 0 : _slots$footerStart.call(slots), (_slots$pagination = slots.pagination) === null || _slots$pagination === void 0 ? void 0 : _slots$pagination.call(slots, pageState, (_curdState$listData2 = curdState.listData) === null || _curdState$listData2 === void 0 ? void 0 : _curdState$listData2.total, handleSearch), (_slots$footerEnd = slots.footerEnd) === null || _slots$footerEnd === void 0 ? void 0 : _slots$footerEnd.call(slots)]), (_slots$end = slots.end) === null || _slots$end === void 0 ? void 0 : _slots$end.call(slots)]);
1956
1964
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-start/pro",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "> TODO: description",
5
5
  "author": "zx <zxpstudy@163.com>",
6
6
  "homepage": "https://github.com/zxeryu/vue-start#readme",
@@ -32,5 +32,5 @@
32
32
  "vue": ">=3.x",
33
33
  "vue-router": ">=4.x"
34
34
  },
35
- "gitHead": "abed29975a9db75dcc076220d3ce0c6ba5df98b6"
35
+ "gitHead": "9075107632a73989f5ade116c22cbc0250f29340"
36
36
  }