From e0b7838863ae606f2b00bf2ca2be0efe1fc1d75c Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 25 May 2023 14:06:54 +0100 Subject: [PATCH 1/2] Cosmetics --- .eslintrc.js | 3 ++- components/lib/badge/BaseBadge.vue | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 985964755..49e4b8a51 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -92,7 +92,8 @@ module.exports = { { blankLine: 'always', prev: 'block', next: '*' }, { blankLine: 'always', prev: '*', next: 'block' }, { blankLine: 'always', prev: 'block-like', next: '*' }, - { blankLine: 'always', prev: '*', next: 'block-like' } + { blankLine: 'always', prev: '*', next: 'block-like' }, + { blankLine: 'always', prev: ['import'], next: ['const', 'let', 'var'] } ] } }; diff --git a/components/lib/badge/BaseBadge.vue b/components/lib/badge/BaseBadge.vue index 56e67048e..fb2b396a4 100644 --- a/components/lib/badge/BaseBadge.vue +++ b/components/lib/badge/BaseBadge.vue @@ -2,6 +2,7 @@ import BaseComponent from 'primevue/basecomponent'; import { useStyle } from 'primevue/usestyle'; import { ObjectUtils } from 'primevue/utils'; + const styles = ` .p-badge { display: inline-block; From ac5f6276378fb46cf32d24c7017a6240c9830033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Thu, 25 May 2023 16:22:28 +0300 Subject: [PATCH 2/2] Refactor #3965 - For Message --- components/lib/message/BaseMessage.vue | 107 +++++++++++++++++++++++++ components/lib/message/Message.d.ts | 5 ++ components/lib/message/Message.vue | 99 +++-------------------- 3 files changed, 122 insertions(+), 89 deletions(-) create mode 100644 components/lib/message/BaseMessage.vue diff --git a/components/lib/message/BaseMessage.vue b/components/lib/message/BaseMessage.vue new file mode 100644 index 000000000..43ed4e080 --- /dev/null +++ b/components/lib/message/BaseMessage.vue @@ -0,0 +1,107 @@ + diff --git a/components/lib/message/Message.d.ts b/components/lib/message/Message.d.ts index 099b4c88a..1f3e59038 100755 --- a/components/lib/message/Message.d.ts +++ b/components/lib/message/Message.d.ts @@ -111,6 +111,11 @@ export interface MessageProps { * @type {MessagePassThroughOptions} */ pt?: MessagePassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/message/Message.vue b/components/lib/message/Message.vue index 2727dd94f..24a787776 100755 --- a/components/lib/message/Message.vue +++ b/components/lib/message/Message.vue @@ -1,17 +1,17 @@ - -