{"version":3,"file":"text-editor.mjs","sources":["../../../../../packages/components/text-editor/src/text-editor.ts"],"sourcesContent":["import { FORM_COMPONENT_PROPS } from '@element-ultra/shared'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nexport type ToolBarKeys =\n  | '|'\n  | 'blockquote'\n  | 'header1'\n  | 'header2'\n  | 'header3'\n  | 'bold'\n  | 'underline'\n  | 'italic'\n  | 'clearStyle'\n  | 'bgColor'\n  | 'color'\n  | 'through'\n  | 'bulletedList'\n  | 'numberedList'\n  | 'todo'\n  | 'justifyLeft'\n  | 'justifyRight'\n  | 'justifyCenter'\n  | 'insertLink'\n  | 'group-image'\n  | 'insertVideo'\n  | 'insertTable'\n  | 'codeBlock'\n  | 'undo'\n  | 'redo'\n  | 'fullScreen'\n\nexport const textEditorProps = {\n  ...FORM_COMPONENT_PROPS,\n  mode: {\n    type: String as PropType<'default' | 'simple'>,\n    default: 'default'\n  },\n\n  /** 指定移除的工具栏功能 */\n  exclude: {\n    type: Array as PropType<ToolBarKeys[]>\n  },\n\n  /** 指定包含的工具栏功能 */\n  include: {\n    type: Array as PropType<ToolBarKeys[]>\n  },\n\n  modelValue: {\n    type: String\n  },\n\n  placeholder: {\n    type: String,\n    default: '请输入内容'\n  }\n} as const\n\nexport type TextEditorProps = ExtractPropTypes<typeof textEditorProps>\n"],"names":[],"mappings":";;;AA+BO,MAAM,eAAkB,GAAA;AAAA,EAC7B,GAAG,oBAAA;AAAA,EACH,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,SAAA;AAAA,GACX;AAAA;AAAA,EAGA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,KAAA;AAAA,GACR;AAAA;AAAA,EAGA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,KAAA;AAAA,GACR;AAAA,EAEA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EAEA,WAAa,EAAA;AAAA,IACX,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,gCAAA;AAAA,GACX;AACF;;;;"}