From b64f42683d6917045229735bd112171018147cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Wed, 24 May 2023 15:53:29 +0300 Subject: [PATCH] Refactor #3965 - For Terminal --- components/lib/terminal/BaseTerminal.vue | 67 ++++++++++++++++++++++++ components/lib/terminal/Terminal.d.ts | 5 ++ components/lib/terminal/Terminal.vue | 55 ++++--------------- 3 files changed, 82 insertions(+), 45 deletions(-) create mode 100644 components/lib/terminal/BaseTerminal.vue diff --git a/components/lib/terminal/BaseTerminal.vue b/components/lib/terminal/BaseTerminal.vue new file mode 100644 index 000000000..46e061190 --- /dev/null +++ b/components/lib/terminal/BaseTerminal.vue @@ -0,0 +1,67 @@ + diff --git a/components/lib/terminal/Terminal.d.ts b/components/lib/terminal/Terminal.d.ts index 52de7c213..ff3384c21 100755 --- a/components/lib/terminal/Terminal.d.ts +++ b/components/lib/terminal/Terminal.d.ts @@ -100,6 +100,11 @@ export interface TerminalProps { * @type {TerminalPassThroughOptions} */ pt?: TerminalPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/terminal/Terminal.vue b/components/lib/terminal/Terminal.vue index 28ae532ac..7bc5b8f04 100755 --- a/components/lib/terminal/Terminal.vue +++ b/components/lib/terminal/Terminal.vue @@ -1,37 +1,27 @@ - -