From 1950d500eac1ab952efcf482b530cd3f783563cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Fri, 2 Jun 2023 12:10:49 +0300 Subject: [PATCH] Refactor #3965 - Refactor on OrderList --- components/lib/orderlist/BaseOrderList.vue | 146 +++++++++++++++ components/lib/orderlist/OrderList.d.ts | 5 + components/lib/orderlist/OrderList.vue | 195 +++++---------------- 3 files changed, 191 insertions(+), 155 deletions(-) create mode 100644 components/lib/orderlist/BaseOrderList.vue diff --git a/components/lib/orderlist/BaseOrderList.vue b/components/lib/orderlist/BaseOrderList.vue new file mode 100644 index 000000000..f45aacd9b --- /dev/null +++ b/components/lib/orderlist/BaseOrderList.vue @@ -0,0 +1,146 @@ + diff --git a/components/lib/orderlist/OrderList.d.ts b/components/lib/orderlist/OrderList.d.ts index 0d276f0fb..b09fa54d6 100755 --- a/components/lib/orderlist/OrderList.d.ts +++ b/components/lib/orderlist/OrderList.d.ts @@ -211,6 +211,11 @@ export interface OrderListProps { * @type {OrderListPassThroughOptions} */ pt?: OrderListPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/orderlist/OrderList.vue b/components/lib/orderlist/OrderList.vue index 3d47ea5cf..b8dec5b11 100755 --- a/components/lib/orderlist/OrderList.vue +++ b/components/lib/orderlist/OrderList.vue @@ -1,29 +1,29 @@