Skip to content
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

[comp: grid] add grid component #133

Closed
1 task done
zymoplastic opened this issue Jan 11, 2021 · 6 comments
Closed
1 task done

[comp: grid] add grid component #133

zymoplastic opened this issue Jan 11, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@zymoplastic
Copy link
Contributor

zymoplastic commented Jan 11, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

grid

What does the proposed API look like?

ix-row

Props

名称 说明 类型 默认值 全局配置 备注
align flex 布局下的垂直对齐方式 string top - -
gutter 栅格间隔,可以写成像素值或支持响应式的对象写法来设置水平间隔 { xs: 8, sm: 16, md: 24}。或者使用数组形式同时设置 [水平间距, 垂直间距] number/object/array 0 - -
justify flex 布局下的水平排列方式:start end center space-around space-between string start - -
wrap 是否自动换行 boolean true -

ix-col

Props

名称 说明 类型 默认值 全局配置 备注
flex flex 布局属性 string/number - - -
offset 栅格左侧的间隔格数,间隔内不可以有栅格 number 0 - -
order 栅格顺序 number 0 - -
pull 栅格向左移动格数 number 0 - -
push 栅格向右移动格数 number 0 - -
span 栅格占位格数,为 0 时相当于 display: none number - - -
xs 屏幕 < 600px 响应式栅格,可为栅格数或一个包含其他属性的对象 number/object - - -
sm 屏幕 >= 600px 响应式栅格,可为栅格数或一个包含其他属性的对象 number/object - - -
md 屏幕 >= 1024px 响应式栅格,可为栅格数或一个包含其他属性的对象 number/object - - -
lg 屏幕 >= 1280px 响应式栅格,可为栅格数或一个包含其他属性的对象 number/object - - -
xl 屏幕 >= 1720px 响应式栅格,可为栅格数或一个包含其他属性的对象 number/object - - -
@zymoplastic zymoplastic added the enhancement New feature or request label Jan 11, 2021
@danranVm danranVm added this to the v1.0.0 milestone Jan 15, 2021
@danranVm danranVm mentioned this issue Jan 15, 2021
95 tasks
@zymoplastic
Copy link
Contributor Author

@danranVm @hele10086 , 麻烦两位看下 API 是否合理

@danranVm
Copy link
Member

@danranVm @hele10086 , 麻烦两位看下 API 是否合理

我没什么问题。

@hele10086
Copy link
Contributor

@danranVm @hele10086 , 麻烦两位看下 API 是否合理
我也没有问题

@zymoplastic
Copy link
Contributor Author

zymoplastic commented Feb 27, 2021

@danranVm, 我看到我们的断点服务里面的 key 为 'XSmall' | 'Small' | 'Medium' | 'Large' | 'XLarge', 我们这里的 prop 还有 gutter 里面是只提供简写(只能写 xs), 还是都支持(xs 和 XSmall 均可, XSmall 优先级高)?

@danranVm
Copy link
Member

@danranVm, 我看到我们的断点服务里面的 key 为 'XSmall' | 'Small' | 'Medium' | 'Large' | 'XLarge', 我们这里的 prop 还有 gutter 里面是只提供简写(只能写 xs), 还是都支持(xs 和 XSmall 均可, XSmall 优先级高)?

xs 吧,这个太常用了,简写吧

@zymoplastic
Copy link
Contributor Author

@danranVm, 我看到我们的断点服务里面的 key 为 'XSmall' | 'Small' | 'Medium' | 'Large' | 'XLarge', 我们这里的 prop 还有 gutter 里面是只提供简写(只能写 xs), 还是都支持(xs 和 XSmall 均可, XSmall 优先级高)?

xs 吧,这个太常用了,简写吧

好的, 现在是第二种实现, 会改成第一种

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants