Commit Graph

681 Commits

Author SHA1 Message Date
Yanzhen Yu
351ad47255 component: avatar 2022-03-01 17:51:43 +08:00
Yanzhen Yu
eab659f2fa component: divider 2022-03-01 17:51:43 +08:00
Yanzhen Yu
c9b1d0de29 use sunmao editor as playground 2022-03-01 17:51:43 +08:00
Yanzhen Yu
11d4b64d0a upgrade sunmao-ui 2022-03-01 17:51:43 +08:00
Yanzhen Yu
ebebe8af66 impl Input component 2022-03-01 17:51:43 +08:00
Yanzhen Yu
b74bee8117 impl Dropdown and Space components 2022-03-01 17:51:42 +08:00
Yanzhen Yu
df2cba12be impl menu component 2022-03-01 17:51:42 +08:00
Yanzhen Yu
4b630cbf55 impl simple select 2022-03-01 17:51:42 +08:00
Yanzhen Yu
b024400c90 impl image component 2022-03-01 17:51:42 +08:00
Yanzhen Yu
ede3c1964e impl layout components 2022-03-01 17:51:42 +08:00
Yanzhen Yu
c819032bd4 rename typegen props 2022-03-01 17:51:42 +08:00
Yanzhen Yu
56ddc6527c add props schema typegen 2022-03-01 17:51:42 +08:00
Yanzhen Yu
8718df4598 init arco-lib 2022-03-01 17:51:42 +08:00
Yanzhen Yu
5cf68fe60c first commit 2022-03-01 17:51:42 +08:00
yz-yu
6c67c735a7
Merge pull request #315 from webzard-io/fix/warning
fix the warning in console when create a new component
2022-02-28 18:14:36 +08:00
Bowen Tan
370c73c496 fix the warning in console when create a new component 2022-02-28 17:24:14 +08:00
Bowen Tan
8256c8ef8b fix the bug that expression will re-eval everytime after store updating 2022-02-28 16:18:53 +08:00
Bowen Tan
339be0fb41 add generic type for eval functions 2022-02-25 15:49:41 +08:00
yz-yu
d19d665e2b
Merge pull request #307 from webzard-io/feat/event-payload
Make sure event handler is called in sync order and with the lateset state.
2022-02-25 14:16:06 +08:00
Bowen Tan
fe7a719211 convert proxy to raw object in deepEvalAndWatch & fix examples 2022-02-25 13:59:43 +08:00
Bowen Tan
a6b765d34f eval handler before send event to keep the hanlder is the latest 2022-02-24 18:04:23 +08:00
Bowen Tan
9bb7fba7b3 fix: event is async when wait.time is 0 2022-02-24 18:03:31 +08:00
Bowen Tan
3c93faf1b8 fix: the deepeval watch method generates mutable object 2022-02-24 18:03:31 +08:00
MrWindlike
c46dfb102b feat: support tab to change form focus
make tab key down in the compact expression editor to change form focus
2022-02-24 16:05:27 +08:00
MrWindlike
b8bb57f188 feat: set max height for ExpressionWidget 2022-02-24 15:59:39 +08:00
yz-yu
82104673c2
Merge pull request #299 from webzard-io/feat/datasource
feat: improve datasource[fix #289]
2022-02-24 14:23:35 +08:00
tanbowensg
2636bd8a8f
Merge pull request #293 from webzard-io/feat/property-classification
feat: add a preset order to property categories
2022-02-24 13:44:38 +08:00
MrWindlike
bb573e9a80 fix: change the conditions to show expression btn
don't show button when schema type is `array` or `object`
2022-02-24 11:50:02 +08:00
MrWindlike
83fefbfd1d chore: expose setCode from ExpressionEditor 2022-02-24 11:43:00 +08:00
xzdry
d982fb098a feat: add and export PRESET_PROPERTY_CATEGORY 2022-02-24 10:27:14 +08:00
Bowen Tan
bb997b2ac2 fix: cannot save changes from code mode 2022-02-23 15:00:55 +08:00
yz-yu
f0099ab245
Merge pull request #300 from webzard-io/fix/component-tree
fix component tree bug and improve interaction
2022-02-23 13:48:25 +08:00
xzdry
33a4ed2592 Merge branch 'main' of github.com:webzard-io/sunmao-ui into feat/property-classification 2022-02-23 10:47:54 +08:00
MrWindlike
f8875ec486 fix: improve KeyValueEditor style
make the height of `StringField` input in the `KeyValueEditor` fixed
2022-02-22 14:26:56 +08:00
Bowen Tan
1a23dde524 fix: component should not be drop to its self or children 2022-02-22 14:16:11 +08:00
MrWindlike
8e5f079d7b fix(editor): change prop defaultCode to code for ExpressionEditor 2022-02-22 13:01:26 +08:00
MrWindlike
2667383969 feat(editor): improve datasource and event form
support expression input and schema filed for datasource and event form
2022-02-22 12:06:33 +08:00
Bowen Tan
ea42b336cc feat: If you drag a component after an expanded component, this component will be append to its child. 2022-02-22 11:19:37 +08:00
Yanzhen Yu
28f556de09 fix tsconfig to emit declaration files 2022-02-22 11:14:08 +08:00
Yanzhen Yu
1c0d843240 improve the expression parser
By introducing a looking ahead algorithm,
now we can correctly parse expressions like:
{{{a: 1}}}
2022-02-21 19:49:31 +08:00
yz-yu
29b315e403
Merge pull request #295 from webzard-io/yz-patch
small changes
2022-02-21 19:47:47 +08:00
Yanzhen Yu
473458abe3 export local storage manager 2022-02-21 19:13:43 +08:00
Bowen Tan
6b5c170691 Support coping component to root level when no component is selected. 2022-02-21 18:18:03 +08:00
Bowen Tan
315f4945ad fix typo 2022-02-21 18:04:20 +08:00
Bowen Tan
abeccd45b4 fix the bug that a component cannot be copied multiple times 2022-02-21 17:54:25 +08:00
Yanzhen Yu
04ec9e6845 remove plain button component 2022-02-21 15:35:13 +08:00
MrWindlike
0a7e91e8c8 Merge branch 'main' of https://github.com/webzard-io/sunmao-ui into feat/datasource 2022-02-21 14:06:17 +08:00
xzdry
0a2b2fa3b6 feat: add a preset order to property categories 2022-02-21 13:42:41 +08:00
MrWindlike
b0eb0921e2 fix(editor): prevent API and state form keyboard events to accidentally trigger operation shortcut 2022-02-21 11:22:56 +08:00
MrWindlike
da29f5a8cd fix(runtime): remove executing trait from useState 2022-02-21 10:15:22 +08:00