@lambo-design/schema-paging-table 1.0.0-beta.21 → 1.0.0-beta.22

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.0.0-beta.22](http://git.inspur.com/ecbh/lambo-design/lambo-design/compare/@lambo-design/schema-paging-table@1.0.0-beta.21...@lambo-design/schema-paging-table@1.0.0-beta.22) (2024-04-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **schema-paging-table:** 处理没有表格上按钮的情况 ([aa3adf9](http://git.inspur.com/ecbh/lambo-design/lambo-design/commit/aa3adf913fa9e1acd5b4c158b4e36b14d93b754e))
11
+
5
12
  ## 1.0.0-beta.21 (2024-04-07)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambo-design/schema-paging-table",
3
- "version": "1.0.0-beta.21",
3
+ "version": "1.0.0-beta.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "lambo",
@@ -11,10 +11,10 @@
11
11
  },
12
12
  "devDependencies": {
13
13
  "standard-version": "^9.5.0",
14
- "@lambo-design/shared": "^1.0.0-beta.144",
14
+ "@lambo-design/shared": "^1.0.0-beta.145",
15
15
  "@lambo-design/paging-table": "^1.0.0-beta.76",
16
- "@lambo-design/schema-form": "^1.0.0-beta.42",
17
- "@lambo-design/core": "^4.7.1-beta.129"
16
+ "@lambo-design/core": "^4.7.1-beta.129",
17
+ "@lambo-design/schema-form": "^1.0.0-beta.42"
18
18
  },
19
19
  "scripts": {
20
20
  "release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
package/src/index.vue CHANGED
@@ -273,7 +273,7 @@ export default {
273
273
  const buttons = this.$refs.buttons;
274
274
  let totalWidth = 0;
275
275
  let buttonsInFirstRow = 0;
276
- for (let i = 0; buttons.length > 0 && i < buttons.length; i++) {
276
+ for (let i = 0; buttons && i < buttons.length; i++) {
277
277
  totalWidth += buttons[i].$el.offsetWidth + 5
278
278
  if (totalWidth <= containerWidth) {
279
279
  buttonsInFirstRow++;