-
-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui/col): add a direction API for col #716
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
The |
packages/varlet-ui/src/col/Col.vue
Outdated
@@ -43,7 +44,7 @@ export default defineComponent({ | |||
const span: ComputedRef<number> = computed(() => toNumber(props.span)) | |||
const offset: ComputedRef<number> = computed(() => toNumber(props.offset)) | |||
const { row, bindRow } = useRow() | |||
|
|||
const direction: ComputedRef<string> = computed(() => toString(props.direction)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is unnecessary
packages/varlet-ui/src/col/props.ts
Outdated
@@ -1,6 +1,8 @@ | |||
import type { PropType } from 'vue' | |||
import { SizeDescriptor } from './provide' | |||
|
|||
export type SpaceDirection = 'row' | 'column' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be ColDirection
packages/varlet-ui/src/row/props.ts
Outdated
direction: { | ||
type: [String], | ||
default: 'row', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as col
@@ -8,6 +8,7 @@ export type SizeDescriptor = { | |||
export interface ColProps extends BasicAttributes { | |||
span?: string | number | |||
offset?: string | number | |||
direction?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and row.d.ts
This pr has some problem, I will fix it after i merging. Please focus on the following commit |
Checklist
Change information