Skip to content

Commit 63cb62e

Browse files
YunaiVgitee-org
authored andcommitted
!139 fix(styles/index): Update .el-scrollbar__bar style
Merge pull request !139 from AhJindeg/fix_tab-scrollbar-style
2 parents 1c77ba8 + ace8f9e commit 63cb62e

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/components/Form/src/helper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Slots } from 'vue'
22
import { getSlot } from '@/utils/tsxHelper'
3-
import { PlaceholderMoel } from './types'
3+
import { PlaceholderModel } from './types'
44
import { FormSchema } from '@/types/form'
55
import { ColProps } from '@/types/components'
66

@@ -10,7 +10,7 @@ import { ColProps } from '@/types/components'
1010
* @returns 返回提示信息对象
1111
* @description 用于自动设置placeholder
1212
*/
13-
export const setTextPlaceholder = (schema: FormSchema): PlaceholderMoel => {
13+
export const setTextPlaceholder = (schema: FormSchema): PlaceholderModel => {
1414
const { t } = useI18n()
1515
const textMap = ['Input', 'Autocomplete', 'InputNumber', 'InputPassword']
1616
const selectMap = ['Select', 'SelectV2', 'TimePicker', 'DatePicker', 'TimeSelect', 'TimeSelect']
@@ -108,8 +108,8 @@ export const setItemComponentSlots = (
108108
/**
109109
*
110110
* @param schema Form表单结构化数组
111-
* @param formModel FormMoel
112-
* @returns FormMoel
111+
* @param formModel FormModel
112+
* @returns FormModel
113113
* @description 生成对应的formModel
114114
*/
115115
export const initModel = (schema: FormSchema[], formModel: Recordable) => {

src/components/Form/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FormSchema } from '@/types/form'
22

3-
export interface PlaceholderMoel {
3+
export interface PlaceholderModel {
44
placeholder?: string
55
startPlaceholder?: string
66
endPlaceholder?: string

src/styles/index.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
width: 100% !important;
1111
}
1212

13+
// 解决表格内容超过表格总宽度后,横向滚动条前端顶不到表格边缘的问题
14+
.el-scrollbar__bar {
15+
display: flex;
16+
justify-content: flex-start;
17+
}
18+
1319
/* nprogress 适配 element-plus 的主题色 */
1420
#nprogress {
1521
& .bar {

0 commit comments

Comments
 (0)