diff --git a/docs/pro-editor/demos/realtimeCollaboration/SessionForm.tsx b/docs/pro-editor/demos/realtimeCollaboration/SessionForm.tsx index 39cd9d49..96c067bf 100644 --- a/docs/pro-editor/demos/realtimeCollaboration/SessionForm.tsx +++ b/docs/pro-editor/demos/realtimeCollaboration/SessionForm.tsx @@ -33,7 +33,7 @@ export const SessionForm: React.FC = ({ open, onCreate, onCanc }); }} > -
+ = ({ open, onCreate, onCanc label="Color" rules={[{ required: true, message: 'Please select your color' }]} > - +
diff --git a/docs/pro-editor/demos/realtimeCollaboration/demo.tsx b/docs/pro-editor/demos/realtimeCollaboration/demo.tsx index 3edb659e..fc0d0a6e 100644 --- a/docs/pro-editor/demos/realtimeCollaboration/demo.tsx +++ b/docs/pro-editor/demos/realtimeCollaboration/demo.tsx @@ -45,14 +45,16 @@ const Container = () => { return ( - + {user ? null : ( + + )} > renders normal.tsx correctly 1`] = ` exports[` > renders index.tsx correctly 1`] = `
`; - -.emotion-1 .ant-tree-directory .ant-tree-switcher, -.emotion-1 .ant-tree-directory .ant-tree-iconEle { - line-height: 32px!important; -} - -.emotion-1 .ant-tree-directory .ant-tree-node-content-wrapper { - display: -webkit-inline-box; - display: -webkit-inline-flex; - display: -ms-inline-flexbox; - display: inline-flex; - padding-left: 0; - line-height: 32px!important; -} - -.emotion-1 .ant-tree-directory .ant-tree-title { - -webkit-flex: 1; - -ms-flex: 1; - flex: 1; -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode { - cursor: pointer; -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode::before { - border: 1px solid rgba(5, 5, 5, 0.06); - border-radius: 4px; -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode:hover .ant-tree-switcher { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode:hover .ant-tree-node-content-wrapper { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode:hover::before { - background: rgba(0, 0, 0, 0.02); - border-color: #1677ff; - box-shadow: 0 0 3px 0 #1677ff; -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode .ant-tree-switcher-noop { - cursor: pointer; -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode .ant-tree-switcher { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode-selected::before { - background: #ffffff; - border: 2 solid #1677ff; -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-1 .ant-tree-directory .ant-tree-treenode-selected .ant-tree-node-content-wrapper { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-1 .ant-tree-directory .ant-tree-indent-unit { - width: 12px; -} - -.emotion-2 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; - width: 100%; -} - -.emotion-3 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - gap: 8px; -} - -.emotion-5 { - max-width: 120px; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - color: rgba(0, 0, 0, 0.25); - font-size: 10px; -} - -.emotion-6 { - padding: 4px; -} - -.emotion-6 .ant-segmented-item { - margin-right: 4px; - color: rgba(0, 0, 0, 0.45); - border-radius: 2px; -} - -.emotion-6 .ant-segmented-item:hover { - color: rgba(0, 0, 0, 0.65); -} - -.emotion-6 .ant-segmented-item:last-child { - margin-right: 0; -} - -.emotion-6 .ant-segmented-item-selected { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-6 .ant-segmented-item-selected:hover { - color: rgba(0, 0, 0, 0.88); -} - -.emotion-6 .ant-segmented-item-label { - min-height: auto; - padding: 2px 7px; - line-height: unset; -} - -
-
-
-
- -
- -
-
-`; - exports[` > renders basic.tsx correctly 1`] = ` .emotion-0 { color: rgba(0, 0, 0, 0.65);