diff --git a/components/lib/tristatecheckbox/BaseTriStateCheckbox.vue b/components/lib/tristatecheckbox/BaseTriStateCheckbox.vue new file mode 100644 index 000000000..92478ea89 --- /dev/null +++ b/components/lib/tristatecheckbox/BaseTriStateCheckbox.vue @@ -0,0 +1,75 @@ + diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.d.ts b/components/lib/tristatecheckbox/TriStateCheckbox.d.ts index 5dde0de83..5cc2104c0 100755 --- a/components/lib/tristatecheckbox/TriStateCheckbox.d.ts +++ b/components/lib/tristatecheckbox/TriStateCheckbox.d.ts @@ -138,6 +138,11 @@ export interface TriStateCheckboxProps { * @type {TriStateCheckboxPassThroughOptions} */ pt?: TriStateCheckboxPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** @@ -147,15 +152,30 @@ export interface TriStateCheckboxSlots { /** * Custom check icon template. */ - checkicon(): VNode[]; + checkicon(scope: { + /** + * Style class of the icon. + */ + class: string; + }): VNode[]; /** * Custom uncheck icon template. */ - uncheckicon(): VNode[]; + uncheckicon(scope: { + /** + * Style class of the icon. + */ + class: string; + }): VNode[]; /** * Custom nullable icon template. */ - nullableicon(): VNode[]; + nullableicon(scope: { + /** + * Style class of the icon. + */ + class: string; + }): VNode[]; } /** diff --git a/components/lib/tristatecheckbox/TriStateCheckbox.vue b/components/lib/tristatecheckbox/TriStateCheckbox.vue index d22027461..45e77e857 100755 --- a/components/lib/tristatecheckbox/TriStateCheckbox.vue +++ b/components/lib/tristatecheckbox/TriStateCheckbox.vue @@ -1,6 +1,6 @@