Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
63cb62e6
authored
May 05, 2023
by
芋道源码
Committed by
Gitee
May 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!139 fix(styles/index): Update .el-scrollbar__bar style
Merge pull request !139 from AhJindeg/fix_tab-scrollbar-style
parents
1c77ba8e
ace8f9e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
src/components/Form/src/helper.ts
+4
-4
src/components/Form/src/types.ts
+1
-1
src/styles/index.scss
+6
-0
No files found.
src/components/Form/src/helper.ts
View file @
63cb62e6
import
type
{
Slots
}
from
'vue'
import
type
{
Slots
}
from
'vue'
import
{
getSlot
}
from
'@/utils/tsxHelper'
import
{
getSlot
}
from
'@/utils/tsxHelper'
import
{
PlaceholderMoel
}
from
'./types'
import
{
PlaceholderMo
d
el
}
from
'./types'
import
{
FormSchema
}
from
'@/types/form'
import
{
FormSchema
}
from
'@/types/form'
import
{
ColProps
}
from
'@/types/components'
import
{
ColProps
}
from
'@/types/components'
...
@@ -10,7 +10,7 @@ import { ColProps } from '@/types/components'
...
@@ -10,7 +10,7 @@ import { ColProps } from '@/types/components'
* @returns 返回提示信息对象
* @returns 返回提示信息对象
* @description 用于自动设置placeholder
* @description 用于自动设置placeholder
*/
*/
export
const
setTextPlaceholder
=
(
schema
:
FormSchema
):
PlaceholderMoel
=>
{
export
const
setTextPlaceholder
=
(
schema
:
FormSchema
):
PlaceholderMo
d
el
=>
{
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
textMap
=
[
'Input'
,
'Autocomplete'
,
'InputNumber'
,
'InputPassword'
]
const
textMap
=
[
'Input'
,
'Autocomplete'
,
'InputNumber'
,
'InputPassword'
]
const
selectMap
=
[
'Select'
,
'SelectV2'
,
'TimePicker'
,
'DatePicker'
,
'TimeSelect'
,
'TimeSelect'
]
const
selectMap
=
[
'Select'
,
'SelectV2'
,
'TimePicker'
,
'DatePicker'
,
'TimeSelect'
,
'TimeSelect'
]
...
@@ -108,8 +108,8 @@ export const setItemComponentSlots = (
...
@@ -108,8 +108,8 @@ export const setItemComponentSlots = (
/**
/**
*
*
* @param schema Form表单结构化数组
* @param schema Form表单结构化数组
* @param formModel FormMoel
* @param formModel FormMo
d
el
* @returns FormMoel
* @returns FormMo
d
el
* @description 生成对应的formModel
* @description 生成对应的formModel
*/
*/
export
const
initModel
=
(
schema
:
FormSchema
[],
formModel
:
Recordable
)
=>
{
export
const
initModel
=
(
schema
:
FormSchema
[],
formModel
:
Recordable
)
=>
{
...
...
src/components/Form/src/types.ts
View file @
63cb62e6
import
{
FormSchema
}
from
'@/types/form'
import
{
FormSchema
}
from
'@/types/form'
export
interface
PlaceholderMoel
{
export
interface
PlaceholderMo
d
el
{
placeholder
?:
string
placeholder
?:
string
startPlaceholder
?:
string
startPlaceholder
?:
string
endPlaceholder
?:
string
endPlaceholder
?:
string
...
...
src/styles/index.scss
View file @
63cb62e6
...
@@ -10,6 +10,12 @@
...
@@ -10,6 +10,12 @@
width
:
100%
!
important
;
width
:
100%
!
important
;
}
}
// 解决表格内容超过表格总宽度后,横向滚动条前端顶不到表格边缘的问题
.el-scrollbar__bar
{
display
:
flex
;
justify-content
:
flex-start
;
}
/* nprogress 适配 element-plus 的主题色 */
/* nprogress 适配 element-plus 的主题色 */
#nprogress
{
#nprogress
{
&
.bar
{
&
.bar
{
...
...
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