From c65a690d4e217960e5dfb55b9ade584d9c40ee87 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 30 Jul 2022 20:16:25 +0800 Subject: [PATCH 1/5] fix(gui-v2): set color in style instead of safelisting --- packages/nc-gui-v2/components/cell/Rating.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/nc-gui-v2/components/cell/Rating.vue b/packages/nc-gui-v2/components/cell/Rating.vue index 0893d50bff..ead4b002e6 100644 --- a/packages/nc-gui-v2/components/cell/Rating.vue +++ b/packages/nc-gui-v2/components/cell/Rating.vue @@ -36,13 +36,9 @@ const localState = computed({ From 0652d5c0b1589127f7a95fdcf2b1357e7ef5967d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sun, 31 Jul 2022 12:24:51 +0800 Subject: [PATCH 2/5] chore(gui-v2): add AAlert & ARate --- packages/nc-gui-v2/components.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 692c3f667c..cc2fc7ce06 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -7,6 +7,7 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { + AAlert: typeof import('ant-design-vue/es')['Alert'] AAnchorLink: typeof import('ant-design-vue/es')['AnchorLink'] AAutoComplete: typeof import('ant-design-vue/es')['AutoComplete'] AButton: typeof import('ant-design-vue/es')['Button'] @@ -35,6 +36,7 @@ declare module '@vue/runtime-core' { AMenuItemGroup: typeof import('ant-design-vue/es')['MenuItemGroup'] AModal: typeof import('ant-design-vue/es')['Modal'] APagination: typeof import('ant-design-vue/es')['Pagination'] + ARate: typeof import('ant-design-vue/es')['Rate'] ARow: typeof import('ant-design-vue/es')['Row'] ASelect: typeof import('ant-design-vue/es')['Select'] ASelectOption: typeof import('ant-design-vue/es')['SelectOption'] From 4a39ed524760ac3634fb3f034c471893d98c7be8 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sun, 31 Jul 2022 12:25:21 +0800 Subject: [PATCH 3/5] feat(gui-v2): use A-Rate & integrate with column?.meta --- packages/nc-gui-v2/components/cell/Rating.vue | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/packages/nc-gui-v2/components/cell/Rating.vue b/packages/nc-gui-v2/components/cell/Rating.vue index ead4b002e6..5daf8c00a9 100644 --- a/packages/nc-gui-v2/components/cell/Rating.vue +++ b/packages/nc-gui-v2/components/cell/Rating.vue @@ -1,8 +1,11 @@