Commit Graph

194 Commits

Author SHA1 Message Date
Bowen Tan
a259fbd729 add remove event trait 2021-10-20 16:14:24 +08:00
Bowen Tan
8a5a57d335 improve component form style 2021-10-20 15:32:44 +08:00
Bowen Tan
bba8919c6b use formik implement event form 2021-10-20 14:46:24 +08:00
Bowen Tan
3763fbe46e fix style bug 2021-10-20 10:43:34 +08:00
Bowen Tan
abb0a9d175 can add event trait 2021-10-20 10:28:48 +08:00
Chu Bin
a99262d1ea fix: replace initProps to render field 2021-10-19 18:33:40 +08:00
Chu Bin
0b66372bec feat: modify nested properties & traits 2021-10-19 15:50:36 +08:00
tanbowensg
61d86f6cc8
Merge pull request #92 from Yuyz0112/main
introduce CodeMirror to implement code editors
2021-10-19 10:21:41 +08:00
Bowen Tan
454e8b8c43 add placeholder when drag component to grid 2021-10-19 10:15:24 +08:00
Yanzhen Yu
52359f7d29 make state editor read only 2021-10-19 00:20:05 +08:00
Yanzhen Yu
3be10c22a7 introduce CodeMirror to implement code editors 2021-10-19 00:14:44 +08:00
Bowen Tan
81f2239076 render modal in custom container in editor 2021-10-18 18:06:41 +08:00
Bowen Tan
be279c0079 can drop component on root 2021-10-18 15:46:48 +08:00
Bowen Tan
e7e479f32d change default slot name to 'content' 2021-10-18 13:58:40 +08:00
Bowen Tan
7198022b1e add drop style 2021-10-18 13:40:44 +08:00
Bowen Tan
7ab90ca6ec structure tree can toggle show children & hide slotName 2021-10-18 11:22:58 +08:00
Bowen Tan
259db6be0f can add component to root 2021-10-18 11:22:57 +08:00
Bowen Tan
45753ee0af refactor structureTree 2021-10-18 11:22:13 +08:00
Bowen Tan
ef869d5ad6 Merge branch 'main' into feat/style
# Conflicts:
#	packages/editor/src/components/ComponentForm/ComponentForm.tsx
#	packages/editor/src/components/Editor.tsx
#	packages/editor/src/operations/AppModelManager.ts
2021-10-18 11:06:09 +08:00
Yanzhen Yu
688b23b058 improve Editor UI and add Editor headaer 2021-10-17 17:28:49 +08:00
Yanzhen Yu
d210160c21 improve component list UI 2021-10-17 16:04:38 +08:00
Yanzhen Yu
9f6724ff91 fix property generation and improve default id format 2021-10-16 20:45:24 +08:00
Bowen Tan
73ecc54b31 hover and select component will not cause app rerender 2021-10-15 18:08:31 +08:00
Bowen Tan
8244bb122f fix form checkboxGroup and radioGroup bug 2021-10-15 18:00:43 +08:00
Bowen Tan
7489707c08 improve form style 2021-10-15 18:00:43 +08:00
Bowen Tan
3d15554f74 improve table style 2021-10-15 18:00:43 +08:00
Bowen Tan
09129a2ab0 add datasource and support edit trait properties 2021-10-15 18:00:42 +08:00
Bowen Tan
040b778229 fix some components style 2021-10-15 18:00:42 +08:00
Bowen Tan
d73f46269f fix text bug 2021-10-15 18:00:42 +08:00
Bowen Tan
56bed840ae highlight selectedComponent in structure tree 2021-10-15 18:00:42 +08:00
Bowen Tan
288886ce63 improve componentId generate method 2021-10-15 18:00:42 +08:00
Bowen Tan
90d52adb71 fix image size bug 2021-10-15 18:00:42 +08:00
Bowen Tan
b95b5177bf use pseudo element implement hover border 2021-10-15 18:00:42 +08:00
Bowen Tan
eceec4b4c6 add grid bg and use react-resize-detector 2021-10-15 18:00:42 +08:00
Bowen Tan
522c85bc2a add hover component style 2021-10-15 18:00:42 +08:00
Bowen Tan
6e394ad3c1 change event trait property 2021-10-15 14:13:38 +08:00
Bowen Tan
f3d6d9b76e add exampleSize metadata 2021-10-15 10:17:57 +08:00
Bowen Tan
09cf22f5c4 change button event 'click' to 'onClick' 2021-10-15 10:17:57 +08:00
Bowen Tan
111ebf79de update spec 2021-10-15 10:17:57 +08:00
Bowen Tan
6a67a3a787 add keyboard event 2021-10-14 10:01:36 +08:00
Bowen Tan
6b51cde840 support drag componen to tree to create 2021-10-12 10:57:26 +08:00
Bowen Tan
6da304e286 decouple use appModel 2021-10-12 10:57:26 +08:00
Bowen Tan
f131a5e3b7 defaultProperties -> exampleProperties 2021-10-11 17:37:14 +08:00
Bowen Tan
141af3ffd6 add defaultProperties for components 2021-10-11 17:07:26 +08:00
Bowen Tan
90f6fc6c2d add metadata 2021-10-11 17:07:26 +08:00
Bowen Tan
634e1f063a support choose component in view 2021-10-11 15:49:38 +08:00
Bowen Tan
cb713bd477 rename mModules to services 2021-09-30 15:59:33 +08:00
Bowen Tan
42449ef130 button support grid 2021-09-30 14:45:42 +08:00
Bowen Tan
2d237e5da7 implement create component by drag into grid 2021-09-30 13:42:56 +08:00
Bowen Tan
8f649099d9 add gridCallbacks 2021-09-30 13:42:56 +08:00