0813 工程會議記錄(Icon, Select Value, Data Entry API) #96
kuaniscreative
started this conversation in
Rytass Meetings
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature of
Icon
size prop經常會碰到為了改變 icon size 而要多寫一隻 css class 的狀況,因此決議
Icon
新增可以控制 size 的 prop,但 prop 的名稱要想一下,只取size
會跟目前其他 component 如Button
使用size
的情況不同(目前有 size 的都是固定大小small
、medium
等)Select Value
type SelectValue = string | string[]
Data Entry APIs
為了改善 Data Entry 系列使用上不直覺(需了解 component 內部結構)的問題,接下來會去研究是否每個 component 可以達到以下做法:
id
,name
,value
,onChange
,onBlur
,onFocus
等必須在 component props 中(而不是現在的 props.inputProps 底下)type MznBlurEventHandler = ({ value: string, target: Ref<HTMLInputElement> }) => void
會先嘗試將 type 跟 API 拉出來看看再進一步討論。
與會人員:Steven, Parker, Travor, Kuan
Beta Was this translation helpful? Give feedback.
All reactions