Skip to content

Commit

Permalink
docs: 📝 demo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer95 committed Dec 15, 2024
1 parent 8e7748c commit 20a30b3
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docs/demos/base.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import DSlateAntd from '@dslate/antd';
import DSlateSemi from '@dslate/semi';
import React, { useState } from 'react';
import React, { useEffect, useState } from 'react';
import type { Descendant } from 'slate';

export default () => {
Expand All @@ -18,6 +18,10 @@ export default () => {
},
]);

useEffect(() => {
console.log(value1);
}, [value1]);

return (
<>
<DSlateAntd
Expand Down
144 changes: 141 additions & 3 deletions docs/demos/display-mode.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import { Editable } from '@dslate/component';
import { Editable, registerElement } from '@dslate/component';
import { ConfigProvider, DSlateCore } from '@dslate/core';

import DefaultPlugin from '@dslate/plugin';
import React, { useState } from 'react';

import React, { PropsWithChildren, useState } from 'react';
import type { Descendant } from 'slate';
import styled from 'styled-components';

const NAMESPACE = Symbol('display');

const DisplayOnly = ({ children }: PropsWithChildren<{}>) => <>{children}</>;

registerElement('tooltip', DisplayOnly, NAMESPACE);
registerElement('popover', DisplayOnly, NAMESPACE);

const ResetStyleBox = styled.div`
.dslate-editable {
min-height: 400px !important;
Expand Down Expand Up @@ -43,6 +50,59 @@ const ResetStyleBox = styled.div`
}
}
}
.resize-handle-wrapper {
> div {
&::after {
display: block;
width: 14px;
height: 14px;
margin: 3px;
background-color: #1890ff;
border-radius: 7px;
content: '';
}
}
}
.dslate-img-element {
position: relative;
display: inline-block;
border: 1px solid transparent;
&:hover {
border-color: fade(#1890ff, 20%);
}
&.selected {
border-color: transparent;
}
&-drag {
border: 1px solid #1890ff;
visibility: hidden;
&.selected {
visibility: visible;
}
.size-content {
display: none;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
color: #ffffff;
background-color: rgba(0, 0, 0, 0.5);
}
&.draging {
.size-content {
display: flex;
}
}
}
}
`;
export default () => {
const [value, setValue] = useState<Descendant[]>([
Expand Down Expand Up @@ -74,6 +134,82 @@ export default () => {
paragraphType: 'h3',
'line-height': 1.5,
},
{
type: 'paragraph',
paragraphType: 'h3',
'line-height': 1.5,
children: [
{
text: '',
},
],
},
{
type: 'paragraph',
paragraphType: 'h3',
'line-height': 1.5,
children: [
{
text: 'link: ',
},
{
type: 'link',
children: [
{
text: 'www.baidu.com',
},
],
href: 'https://www.baidu.com',
},
{
text: ' ',
},
],
},
{
type: 'paragraph',
paragraphType: 'h3',
'line-height': 1.5,
children: [
{
text: '',
},
],
},
{
type: 'paragraph',
paragraphType: 'h3',
'line-height': 1.5,
children: [
{
text: 'img: ',
},
{
type: 'img',
url: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGYAAABjCAYAAABpEnXRAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAZqADAAQAAAABAAAAYwAAAABJp5KWAAAno0lEQVR4Ae19C5Re11XePvd/P+Y9mhmNpNHoYUuybDVxLAw40BrMw6SJk0XjJlmQAqskhDRA06Q0KA9RauLaKU3aBQnQLGhWm6YmQOxC1zIhiZcLTowt46dkWe/HaB6a98z//u89/b597v31S1YimbkjWWvpWHfOveee5/723meffc79LXI9XKfAdQpcp8B1ClynwHUKXKfAdQpcp8B1ClynwHUKXKfAdQqco4Ad3ztql/9w8FzKtX1nru3ui9jFvf124YZDpnNrl6TXiSzun5GB1AZj7qxey2O7poGxE3sHbPDGUyY/mBa/LpLbJGI8keVjVemf6zPmreVrFRyM4toM9vh9a0VuPWVyA2kJaqIX2cxakeKmrMz0zlj7pcK1OTqRaxIYe2rPOpt7wwnJ9KfFQlJ8AGNxNcvABRoswJVfn5WzozN26neL1yI41xww9tDe9ZK+45hJ9aQkaAMlaACgihiAYn0A40OL5Qcz1m6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V67TRjn5bU8gN9j8W5er7c0dv7+j9jf6f4rsvNfyXy/X+lKnBT8jv4BgAAAABJRU5ErkJggg==',
children: [
{
text: '',
},
],
imgHeight: 99,
imgWidth: 102,
},
{
text: '',
},
],
},
{
type: 'paragraph',
paragraphType: 'h3',
'line-height': 1.5,
children: [
{
text: '',
},
],
},
]);

return (
Expand All @@ -83,9 +219,11 @@ export default () => {
plugins: Object.values(DefaultPlugin),
locale: '',
locales: [],
namespace: NAMESPACE,
}}
>
<DSlateCore
disabled
value={value}
onChange={function (value: Descendant[]): void {
// do nothing...
Expand Down

0 comments on commit 20a30b3

Please sign in to comment.