Skip to content

Commit

Permalink
fix: typo fullSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
ydhn committed Jan 6, 2025
1 parent 2bc5788 commit 87fece2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const quill = new Quill('#editor', {
| attribute | description | type | default |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------- |
| full | if set `true`. width max will be 100% | `boolean` | `false` |
| fullSwtich | enable to choose insert a full width table | `boolean` | `true` |
| fullSwitch | enable to choose insert a full width table | `boolean` | `true` |
| texts | the text used to create the table | `TableTextOptions` | `defaultTexts` |
| customSelect | display a custom select to custom row and column number add a table. module provides default selector `defaultCustomSelect` | `(tableModule: TableUp, picker: Picker) => Promise<HTMLElement> \| HTMLElement` | - |
| customBtn | display a custom button to custom row and column number add a table. it only when use `defaultCustomSelect` will effect | `boolean` | `false` |
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ export class TableUp {
customBtn: false,
texts: this.resolveTexts(options.texts || {}),
full: false,
fullSwtich: true,
fullSwitch: true,
icon: icons.table,
selectionOptions: {},
alignOptions: {},
Expand Down Expand Up @@ -575,7 +575,7 @@ export class TableUp {
dom.classList.add('ql-custom-select');
this.selector = await customSelect(this, picker);
dom.appendChild(this.selector);
if (this.options.fullSwtich) {
if (this.options.fullSwitch) {
const bem = createBEM('creator');
const isFulllLabel = document.createElement('label');
isFulllLabel.classList.add(bem.be('checkbox'));
Expand Down
2 changes: 1 addition & 1 deletion src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export interface TableTextOptions extends TableCreatorTextOptions {
export interface TableUpOptions {
customSelect?: (tableModule: TableUp, picker: QuillThemePicker) => Promise<HTMLElement> | HTMLElement;
full: boolean;
fullSwtich: boolean;
fullSwitch: boolean;
customBtn: boolean;
texts: TableTextOptions;
icon: string;
Expand Down

0 comments on commit 87fece2

Please sign in to comment.