Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
najiu-frontend
najiu-admin-template
Commits
840332ab
Commit
840332ab
authored
Oct 31, 2020
by
vben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: form col style
parent
2407b336
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-1
useLabelWidth.ts
src/components/Form/src/hooks/useLabelWidth.ts
+2
-2
No files found.
CHANGELOG.zh_CN.md
View file @
840332ab
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
-
添加部分注释
-
添加部分注释
-
pwa 图标补充
-
pwa 图标补充
-
types 类型调整
-
types 类型调整
-
升级
`ant-design-vue`
到
`beta.11`
,并修改带来的已知问题
-
升级
`ant-design-vue`
到
`beta.11`
,并修改带来的已知问题
,部分问题发现后在解决
### 🐛 Bug Fixes
### 🐛 Bug Fixes
...
...
src/components/Form/src/hooks/useLabelWidth.ts
View file @
840332ab
...
@@ -36,8 +36,8 @@ export function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<
...
@@ -36,8 +36,8 @@ export function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<
width
=
isNumber
(
width
)
?
`
${
width
}
px`
:
width
;
width
=
isNumber
(
width
)
?
`
${
width
}
px`
:
width
;
}
}
return
{
return
{
labelCol
:
{
style
:
{
width
},
span
:
1
,
...
labelCol
},
labelCol
:
{
style
:
{
width
},
...
labelCol
},
wrapperCol
:
{
style
:
{
width
:
`calc(100% -
${
width
}
)`
},
span
:
23
,
...
wrapperCol
},
wrapperCol
:
{
style
:
{
width
:
`calc(100% -
${
width
}
)`
},
...
wrapperCol
},
};
};
});
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment