@lambo-design/schema-paging-table 1.0.0-beta.61 → 1.0.0-beta.63

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.vue +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/schema-paging-table",
3
- "version": "1.0.0-beta.61",
3
+ "version": "1.0.0-beta.63",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -12,9 +12,9 @@
12
12
  "devDependencies": {
13
13
  "standard-version": "^9.5.0",
14
14
  "@lambo-design/core": "^4.7.1-beta.159",
15
- "@lambo-design/shared": "^1.0.0-beta.255",
15
+ "@lambo-design/shared": "^1.0.0-beta.258",
16
16
  "@lambo-design/schema-form": "^1.0.0-beta.84",
17
- "@lambo-design/paging-table": "^1.0.0-beta.92"
17
+ "@lambo-design/paging-table": "^1.0.0-beta.93"
18
18
  },
19
19
  "scripts": {
20
20
  "release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
package/src/index.vue CHANGED
@@ -11,6 +11,9 @@
11
11
  :buttonFlex="buttonFlex"
12
12
  :pageDisable="pageDisable"
13
13
  :radioSelectIndex="radioSelectIndex"
14
+ :height="height"
15
+ :pageSize="pageSize"
16
+ :pageSizeOpts="pageSizeOpts"
14
17
  @on-row-click="onRowClick"
15
18
  @on-selection-change="onSelectionChange"
16
19
  @on-select="onSelect"
@@ -139,6 +142,19 @@ export default {
139
142
  type: Boolean,
140
143
  default: false
141
144
  },
145
+ height: {
146
+ type: [Number, String]
147
+ },
148
+ pageSizeOpts: {
149
+ type: Array,
150
+ default: function () {
151
+ return [10, 20, 50, 100, 200];
152
+ }
153
+ },
154
+ pageSize: {
155
+ type: Number,
156
+ default: 10
157
+ },
142
158
  rowKey: {
143
159
  type: String,
144
160
  require: false,
@@ -395,6 +411,7 @@ export default {
395
411
  let container = this.$refs.container
396
412
  if (!container){return}
397
413
  let containerWidth = container.$el.offsetWidth
414
+ if (containerWidth <= 0) return;
398
415
  const buttons = this.$refs.buttons;
399
416
  let totalWidth = 0;
400
417
  let buttonsInFirstRow = 0;