From 2d28fe49085f615ad0fce4643b23f2e03e32dca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Fri, 2 Jun 2023 18:43:30 +0300 Subject: [PATCH] Refactor #3965 - For Picklist --- components/lib/orderlist/BaseOrderList.vue | 4 +- components/lib/picklist/BasePickList.vue | 166 +++++++++++++++++ components/lib/picklist/PickList.d.ts | 5 + components/lib/picklist/PickList.vue | 205 +++++---------------- 4 files changed, 217 insertions(+), 163 deletions(-) create mode 100644 components/lib/picklist/BasePickList.vue diff --git a/components/lib/orderlist/BaseOrderList.vue b/components/lib/orderlist/BaseOrderList.vue index f45aacd9b..6cd926bfc 100644 --- a/components/lib/orderlist/BaseOrderList.vue +++ b/components/lib/orderlist/BaseOrderList.vue @@ -62,10 +62,10 @@ const classes = { ] }; -const { load: loadStyle } = useStyle(styles, { id: 'primevue_organizationchart_style', manual: true }); +const { load: loadStyle } = useStyle(styles, { id: 'primevue_orderlist_style', manual: true }); export default { - name: 'BaseOrganizationChart', + name: 'BaseOrderList', extends: BaseComponent, props: { modelValue: { diff --git a/components/lib/picklist/BasePickList.vue b/components/lib/picklist/BasePickList.vue new file mode 100644 index 000000000..2ac4a262f --- /dev/null +++ b/components/lib/picklist/BasePickList.vue @@ -0,0 +1,166 @@ + diff --git a/components/lib/picklist/PickList.d.ts b/components/lib/picklist/PickList.d.ts index 16de1cca7..715944e6a 100755 --- a/components/lib/picklist/PickList.d.ts +++ b/components/lib/picklist/PickList.d.ts @@ -340,6 +340,11 @@ export interface PickListProps { * @type {PickListPassThroughOptions} */ pt?: PickListPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/picklist/PickList.vue b/components/lib/picklist/PickList.vue index a05710dd7..06384759c 100755 --- a/components/lib/picklist/PickList.vue +++ b/components/lib/picklist/PickList.vue @@ -1,6 +1,6 @@