Skip to content

Commit 3bfd0fd

Browse files
committed
perf: 优化选项类型组件样式
1 parent 080cbb2 commit 3bfd0fd

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

packages/dl-ui/src/checkbox-group/style.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
}
1212
}
1313

14+
&--vertical {
15+
.#{$prefix}-checkbox + .#{$prefix}-checkbox {
16+
margin-top: var(--d-gap-xs);
17+
}
18+
}
19+
1420
.#{$prefix}-cell-group {
1521
margin-bottom: 0;
1622
}

packages/dl-ui/src/input/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const INPUT_PROPS = {
4444
},
4545
placeholder: {
4646
type: String,
47-
default: ''
47+
default: '请输入'
4848
},
4949
formatter: {
5050
type: Function as PropType<(value: string | number | undefined) => string>,

packages/dl-ui/src/radio-group/style.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
}
1212
}
1313

14+
&--vertical {
15+
.#{$prefix}-radio + .#{$prefix}-radio {
16+
margin-top: var(--d-gap-xs);
17+
}
18+
}
19+
1420
.#{$prefix}-cell-group {
1521
margin-bottom: 0;
1622
}

packages/dl-ui/src/textarea/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const TEXTAREA_PROPS = {
1313
},
1414
placeholder: {
1515
type: String,
16-
default: ''
16+
default: '请输入'
1717
},
1818
showWordLimit: Boolean,
1919
autosize: Boolean

0 commit comments

Comments
 (0)