Skip to content

Commit

Permalink
1,566th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Oct 4, 2024
1 parent 3bc0116 commit f0e9bdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 68 deletions.
67 changes: 1 addition & 66 deletions ui/src/components/rich-text-editor/RichTextEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,7 @@ onMounted(() => {
Image.configure({ allowBase64: true }).extend({
addAttributes() {
return {
src: {
default: null,
},
alt: {
default: null,
},
...this.parent?.(),
style: {
default: `${my1} width: auto; height: auto;`,
parseHTML: (element) => {
Expand All @@ -111,66 +106,6 @@ onMounted(() => {
: `${my1} ${element.style.cssText}`;
},
},
title: {
default: null,
},
loading: {
default: null,
},
srcset: {
default: null,
},
sizes: {
default: null,
},
crossorigin: {
default: null,
},
usemap: {
default: null,
},
ismap: {
default: null,
},
width: {
default: null,
},
height: {
default: null,
},
referrerpolicy: {
default: null,
},
longdesc: {
default: null,
},
decoding: {
default: null,
},
class: {
default: null,
},
id: {
default: null,
},
name: {
default: null,
},
draggable: {
default: true,
},
tabindex: {
default: null,
},
'aria-label': {
default: null,
},
'aria-labelledby': {
default: null,
},
'aria-describedby': {
default: null,
},
};
},
addNodeView() {
Expand Down
4 changes: 2 additions & 2 deletions ui/src/components/select/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import useScrollParent from '../../composables/scroll-parent/useScrollParent';
type Option = {
label: string;
value: string | number;
value: any;
};
// type OptionGroup = {
Expand Down Expand Up @@ -53,7 +53,7 @@ const props = withDefaults(
);
const emit = defineEmits<{
(evt: 'change', val?: Option['value'], opt?: Option): void;
<T extends Option>(evt: 'change', val?: T['value'], opt?: T): void;
(evt: 'blur'): void;
}>();
Expand Down

0 comments on commit f0e9bdc

Please sign in to comment.