DeferredContent, Editor, VirtualScroller theming tabs added

pull/4243/head
Tuğçe Küçükoğlu 2023-08-04 14:39:10 +03:00
parent 2bd77e1b21
commit 3f673307b6
10 changed files with 128 additions and 22 deletions

View File

@ -0,0 +1,27 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>DeferredContent Theming</h1>
</div>
<DocSections :docs="docs" />
</div>
<DocSectionNav :docs="docs" />
</template>
<script>
import StyledDoc from './StyledDoc.vue';
export default {
data() {
return {
docs: [
{
id: 'styled',
label: 'Styled',
component: StyledDoc
}
]
};
}
};
</script>

View File

@ -0,0 +1,29 @@
<template>
<DocSectionText v-bind="$attrs">
<p>Theming is implemented with the pass through properties in unstyled mode. Example below demonstrates the built-in Tailwind theme.</p>
</DocSectionText>
<DocSectionCode :code="code" :dependencies="{ quill: '1.3.7' }" component="Editor" embedded />
</template>
<script>
export default {
data() {
return {
code: {
composition: `
<template>
<div class="card">
<Editor v-model="value" editorStyle="height: 320px" />
</div>
</template>
<script setup>
import { ref } from "vue";
const value = ref('');
<\/script>`
}
};
}
};
</script>

View File

@ -0,0 +1,33 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>Editor Theming</h1>
</div>
<DocSections :docs="docs" />
</div>
<DocSectionNav :docs="docs" />
</template>
<script>
import StyledDoc from './StyledDoc.vue';
import UnstyledDoc from './UnstyledDoc.vue';
export default {
data() {
return {
docs: [
{
id: 'styled',
label: 'Styled',
component: StyledDoc
},
{
id: 'unstyled',
label: 'Unstyled',
component: UnstyledDoc
}
]
};
}
};
</script>

View File

@ -0,0 +1,27 @@
<template>
<div class="doc-main">
<div class="doc-intro">
<h1>VirtualScroller Theming</h1>
</div>
<DocSections :docs="docs" />
</div>
<DocSectionNav :docs="docs" />
</template>
<script>
import StyledDoc from './StyledDoc.vue';
export default {
data() {
return {
docs: [
{
id: 'styled',
label: 'Styled',
component: StyledDoc
}
]
};
}
};
</script>

View File

@ -6,6 +6,7 @@
:componentDocs="docs" :componentDocs="docs"
:apiDocs="['DeferredContent']" :apiDocs="['DeferredContent']"
:ptTabComponent="ptComponent" :ptTabComponent="ptComponent"
:themingDocs="themingDoc"
/> />
</template> </template>
@ -14,8 +15,8 @@ import AccessibilityDoc from '@/doc/deferredcontent/AccessibilityDoc.vue';
import BasicDoc from '@/doc/deferredcontent/BasicDoc.vue'; import BasicDoc from '@/doc/deferredcontent/BasicDoc.vue';
import DataTableDoc from '@/doc/deferredcontent/DataTableDoc.vue'; import DataTableDoc from '@/doc/deferredcontent/DataTableDoc.vue';
import ImportDoc from '@/doc/deferredcontent/ImportDoc.vue'; import ImportDoc from '@/doc/deferredcontent/ImportDoc.vue';
import StyleDoc from '@/doc/deferredcontent/StyleDoc.vue';
import PTComponent from '@/doc/deferredcontent/pt/index.vue'; import PTComponent from '@/doc/deferredcontent/pt/index.vue';
import ThemingDoc from '@/doc/deferredcontent/theming/index.vue';
export default { export default {
data() { data() {
@ -36,18 +37,14 @@ export default {
label: 'DataTable', label: 'DataTable',
component: DataTableDoc component: DataTableDoc
}, },
{
id: 'style',
label: 'Style',
component: StyleDoc
},
{ {
id: 'accessibility', id: 'accessibility',
label: 'Accessibility', label: 'Accessibility',
component: AccessibilityDoc component: AccessibilityDoc
} }
], ],
ptComponent: PTComponent ptComponent: PTComponent,
themingDoc: ThemingDoc
}; };
} }
}; };

View File

@ -1,5 +1,5 @@
<template> <template>
<DocComponent title="Vue Editor Component" header="Editor" description="Editor is rich text editor component based on Quill." :componentDocs="docs" :apiDocs="['Editor']" :ptTabComponent="ptComponent" /> <DocComponent title="Vue Editor Component" header="Editor" description="Editor is rich text editor component based on Quill." :componentDocs="docs" :apiDocs="['Editor']" :ptTabComponent="ptComponent" :themingDocs="themingDoc" />
</template> </template>
<script> <script>
@ -8,10 +8,10 @@ import BasicDoc from '@/doc/editor/BasicDoc.vue';
import ImportDoc from '@/doc/editor/ImportDoc.vue'; import ImportDoc from '@/doc/editor/ImportDoc.vue';
import QuillDoc from '@/doc/editor/QuillDoc.vue'; import QuillDoc from '@/doc/editor/QuillDoc.vue';
import ReadOnlyDoc from '@/doc/editor/ReadOnlyDoc.vue'; import ReadOnlyDoc from '@/doc/editor/ReadOnlyDoc.vue';
import StyleDoc from '@/doc/editor/StyleDoc.vue';
import TemplateDoc from '@/doc/editor/TemplateDoc.vue'; import TemplateDoc from '@/doc/editor/TemplateDoc.vue';
import VeeValidateDoc from '@/doc/editor/form/VeeValidateDoc.vue'; import VeeValidateDoc from '@/doc/editor/form/VeeValidateDoc.vue';
import PTComponent from '@/doc/editor/pt/index.vue'; import PTComponent from '@/doc/editor/pt/index.vue';
import ThemingDoc from '@/doc/editor/theming/index.vue';
export default { export default {
data() { data() {
@ -54,18 +54,14 @@ export default {
} }
] ]
}, },
{
id: 'style',
label: 'Style',
component: StyleDoc
},
{ {
id: 'accessibility', id: 'accessibility',
label: 'Accessibility', label: 'Accessibility',
component: AccessibilityDoc component: AccessibilityDoc
} }
], ],
ptComponent: PTComponent ptComponent: PTComponent,
themingDoc: ThemingDoc
}; };
} }
}; };

View File

@ -6,6 +6,7 @@
:componentDocs="docs" :componentDocs="docs"
:apiDocs="['VirtualScroller']" :apiDocs="['VirtualScroller']"
:ptTabComponent="ptComponent" :ptTabComponent="ptComponent"
:themingDocs="themingDoc"
/> />
</template> </template>
@ -18,8 +19,8 @@ import HorizontalDoc from '@/doc/virtualscroller/HorizontalDoc';
import ImportDoc from '@/doc/virtualscroller/ImportDoc'; import ImportDoc from '@/doc/virtualscroller/ImportDoc';
import LazyDoc from '@/doc/virtualscroller/LazyDoc'; import LazyDoc from '@/doc/virtualscroller/LazyDoc';
import LoadingDoc from '@/doc/virtualscroller/LoadingDoc'; import LoadingDoc from '@/doc/virtualscroller/LoadingDoc';
import StyleDoc from '@/doc/virtualscroller/StyleDoc';
import PTComponent from '@/doc/virtualscroller/pt/index.vue'; import PTComponent from '@/doc/virtualscroller/pt/index.vue';
import ThemingDoc from '@/doc/virtualscroller/theming/index.vue';
export default { export default {
data() { data() {
@ -60,18 +61,14 @@ export default {
label: 'Lazy', label: 'Lazy',
component: LazyDoc component: LazyDoc
}, },
{
id: 'style',
label: 'Style',
component: StyleDoc
},
{ {
id: 'accessibility', id: 'accessibility',
label: 'Accessibility', label: 'Accessibility',
component: AccessibilityDoc component: AccessibilityDoc
} }
], ],
ptComponent: PTComponent ptComponent: PTComponent,
themingDoc: ThemingDoc
}; };
} }
}; };