@lambo-design/detail-table 1.0.0-beta.23 → 1.0.0-beta.24
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/.versionrc +23 -0
- package/CHANGELOG.md +7 -0
- package/package.json +11 -4
- package/src/components/Col.js +2 -2
- package/src/detail-table.vue +3 -1
package/.versionrc
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tagPrefix": "@lambo-design/detail-table@",
|
|
3
|
+
"releaseCommitMessageFormat": "chore(release): @lambo-design/detail-table@{{currentTag}}",
|
|
4
|
+
"path": ".",
|
|
5
|
+
"header": "# Changelog",
|
|
6
|
+
"types": [
|
|
7
|
+
{"type": "chore", "section":"'🎫 Chores | 其他更新", "hidden": false},
|
|
8
|
+
{"type": "revert", "section":"⏪ Reverts | 回退", "hidden": false},
|
|
9
|
+
{"type": "feat", "section": "✨ Features | 新功能", "hidden": false},
|
|
10
|
+
{"type": "fix", "section": "🐛 Bug Fixes | Bug 修复", "hidden": false},
|
|
11
|
+
{"type": "improvement", "section": "Feature Improvements", "hidden": false},
|
|
12
|
+
{"type": "docs", "section":"📝 Documentation | 文档", "hidden": false},
|
|
13
|
+
{"type": "style", "section":"💄 Styles | 风格", "hidden": false},
|
|
14
|
+
{"type": "refactor", "section":"💄 Styles | 风格", "hidden": false},
|
|
15
|
+
{"type": "perf", "section":"⚡ Performance Improvements | 性能优化", "hidden": false},
|
|
16
|
+
{"type": "test", "section":"✅ Tests | 测试", "hidden": false},
|
|
17
|
+
{"type": "build", "section":"👷 Build System | 构建", "hidden": false},
|
|
18
|
+
{"type": "ci", "section":"🔧 Continuous Integration | CI 配置", "hidden":false}
|
|
19
|
+
],
|
|
20
|
+
"commitUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/commit/{{hash}}",
|
|
21
|
+
"compareUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/compare/{{previousTag}}...{{currentTag}}",
|
|
22
|
+
"issueUrlFormat": "http://git.inspur.com/ecbh/lambo-design/lambo-design/-/issues/{{id}}"
|
|
23
|
+
}
|
package/CHANGELOG.md
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/detail-table",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -10,8 +10,15 @@
|
|
|
10
10
|
"registry": "https://registry.npmjs.org/"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@lambo-design/
|
|
14
|
-
"@lambo-design/
|
|
13
|
+
"@lambo-design/core": "^4.7.1-beta.136",
|
|
14
|
+
"@lambo-design/shared": "^1.0.0-beta.170"
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
16
|
+
"scripts": {
|
|
17
|
+
"release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
|
18
|
+
"release-major": "standard-version --release-as major",
|
|
19
|
+
"release-minor": "standard-version --release-as minor",
|
|
20
|
+
"release-patch": "standard-version --release-as patch",
|
|
21
|
+
"release-beta": "standard-version --prerelease beta",
|
|
22
|
+
"re-publish": "pnpm publish --access public --no-git-checks"
|
|
23
|
+
}
|
|
17
24
|
}
|
package/src/components/Col.js
CHANGED
|
@@ -28,8 +28,8 @@ const Col = {
|
|
|
28
28
|
const { key } = ctx.data;
|
|
29
29
|
const label = getComponentFromProp(child, "label");
|
|
30
30
|
const slots = getSlots(child);
|
|
31
|
-
const labelColSpan = Math.floor(100 / ColProps.totalCols * 0.
|
|
32
|
-
const contextColSpan = Math.floor(100 / ColProps.totalCols * 0.
|
|
31
|
+
const labelColSpan = Math.floor(100 / ColProps.totalCols * 0.33); // 计算 label 的长度
|
|
32
|
+
const contextColSpan = Math.floor(100 / ColProps.totalCols * 0.66); // 计算 context 的长度
|
|
33
33
|
const labelProps = {
|
|
34
34
|
attrs: {},
|
|
35
35
|
class: [
|
package/src/detail-table.vue
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
:bordered="bordered"
|
|
22
22
|
:layout="layout"
|
|
23
23
|
:colon="colon"
|
|
24
|
-
|
|
24
|
+
>
|
|
25
|
+
</Row>
|
|
25
26
|
</tbody>
|
|
26
27
|
</table>
|
|
27
28
|
</div>
|
|
@@ -109,6 +110,7 @@ export default {
|
|
|
109
110
|
.filter((node) => node);
|
|
110
111
|
const column = this.getColumn();
|
|
111
112
|
this.childrenArray = this.generateChildrenRows(cloneChildren, column);
|
|
113
|
+
console.log('array:',this.childrenArray)
|
|
112
114
|
},
|
|
113
115
|
getColumn() {
|
|
114
116
|
const { column } = this.$props;
|