mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-12 21:50:23 +08:00
hide stack border
This commit is contained in:
parent
52ccb12c93
commit
8fe946fcf0
@ -18,6 +18,7 @@ const HStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
|
||||
justify,
|
||||
spacing,
|
||||
slotsMap,
|
||||
hideBorder,
|
||||
}) => {
|
||||
return (
|
||||
<BaseHStack
|
||||
@ -25,7 +26,7 @@ const HStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
|
||||
width="full"
|
||||
padding="4"
|
||||
background="white"
|
||||
border="1px solid"
|
||||
border={hideBorder ? '0' : '1px solid'}
|
||||
borderColor="gray.200"
|
||||
borderRadius="4"
|
||||
{...{ direction, wrap, align, justify, spacing }}
|
||||
@ -41,6 +42,7 @@ const PropsSchema = Type.Object({
|
||||
align: AlignItemsSchema,
|
||||
justify: JustifyContentSchema,
|
||||
spacing: SpacingSchema,
|
||||
hideBorder: Type.Optional(Type.Boolean()),
|
||||
});
|
||||
|
||||
export default {
|
||||
|
@ -18,6 +18,7 @@ const VStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
|
||||
justify,
|
||||
spacing,
|
||||
slotsMap,
|
||||
hideBorder,
|
||||
}) => {
|
||||
return (
|
||||
<BaseVStack
|
||||
@ -25,7 +26,7 @@ const VStack: ComponentImplementation<Static<typeof PropsSchema>> = ({
|
||||
height="full"
|
||||
padding="4"
|
||||
background="white"
|
||||
border="1px solid"
|
||||
border={hideBorder ? '0' : '1px solid'}
|
||||
borderColor="gray.200"
|
||||
borderRadius="4"
|
||||
{...{ direction, wrap, align, justify, spacing }}
|
||||
@ -41,6 +42,7 @@ const PropsSchema = Type.Object({
|
||||
align: AlignItemsSchema,
|
||||
justify: JustifyContentSchema,
|
||||
spacing: SpacingSchema,
|
||||
hideBorder: Type.Optional(Type.Boolean()),
|
||||
});
|
||||
|
||||
export default {
|
||||
|
Loading…
x
Reference in New Issue
Block a user