-
Notifications
You must be signed in to change notification settings - Fork 378
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: repaint ui for setProperties in visual editor #2017
Conversation
840cdbe
to
874417f
Compare
Composer/packages/extensions/visual-designer/src/components/common/ListOverview.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/visual-designer/src/widgets/ChoiceInput.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/visual-designer/src/widgets/ChoiceInput.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/visual-designer/src/widgets/PropertiesWidget.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/visual-designer/src/widgets/PropertiesWidget.tsx
Outdated
Show resolved
Hide resolved
The styled component lib could help us standardize the design langauge we used in Visual Editor. It's a really good change. We will migrate to the styled lib in future PRs. |
Composer/packages/extensions/visual-designer/src/components/nodes/templates/FormCard.tsx
Outdated
Show resolved
Hide resolved
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.
...oser/packages/extensions/visual-designer/src/components/nodes/templates/ListOverviewCard.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/visual-designer/src/widgets/ActionCard.tsx
Outdated
Show resolved
Hide resolved
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.
We still need to reduce changes, improve code quality.
Description
Repaint ui for
setProperties
with new design in visual editor.What does this pr do?
Extract


listOverview
component.Like the pics show, the list in
setProperties
andmultiInput
is the same ui except the itemRender.So, we can extract
listOverview
and through sending renderFunciton to render different item list.Define the elements as styledComponents
Depends on new design, there are 4 types styled compoments. The element components can change the color by props.
Span

SingleLineDiv

MultiLineDiv

BorderedDiv

LinkBtn

setProperties
,ChoiceInput
with elements.LinkBtn
(elements) indialogRef
node.What's next?
Add templateElement into element libs.
Refactor
formCard
to support new design.(Ze is doing)Combine with the layout pr written by ze.
Rewrite the node ui with new design.
Task Item
fixes #1701
Screenshots