From 9b34d7eff72d641ea8065a9812c83164a664fd84 Mon Sep 17 00:00:00 2001 From: kewcoder Date: Wed, 15 Nov 2023 00:23:22 +0700 Subject: [PATCH] run format --- .../src/Builder/DataTable/OcDataTable.vue | 4 +-- .../DataDisplay/Pagination/OcPagination.vue | 8 +++--- .../src/DataDisplay/Table/OcTableCell.vue | 4 +-- .../Accordion/OcAccordion.stories.js | 2 +- .../src/Disclosure/Tabs/OcTabs.vue | 4 +-- .../src/Elements/Header/OcTabToSelect.vue | 2 +- .../Elements/PageTitle/OcPrimaryActions.vue | 2 +- .../src/Form/Button/OcButton.vue | 6 ++-- .../src/Form/Calendar/OcCalendar.vue | 28 +++++++++---------- .../src/Form/Checkbox/OcCheckbox.vue | 8 +++--- .../OcCheckboxesGroup.stories.js | 2 +- .../CheckboxesGroup/OcCheckboxesGroup.vue | 2 +- .../ComplexDatePicker/OcComplexDatePicker.vue | 2 +- .../src/Form/LinkInput/OcLinkInput.vue | 2 +- .../src/Form/PhoneInput/OcPhoneInput.vue | 6 ++-- .../src/Form/Select/OcSelect.vue | 6 ++-- .../Form/SingleFileUpload/ModalCropper.vue | 4 ++- .../SingleFileUpload/SingleFileUpload.vue | 2 +- .../src/Form/Slider/OcSlider.vue | 2 +- .../src/Form/TextEditor/QuillEditor.js | 4 +-- .../src/Form/TextEditor/snow.css | 20 ++++++++++--- .../src/Form/TimePicker/OcTimePicker.vue | 4 +-- .../src/Form/TimePicker/OcTimePopup.vue | 22 +++++++-------- .../src/Overlay/Popper/OcPopper.vue | 4 +-- .../src/Overlay/Tooltip/OcTooltip.vue | 5 ++-- packages/@orchidui-vue/src/Theme/OcTheme.vue | 2 +- .../src/composables/uploadFileProgress.js | 8 +++--- 27 files changed, 90 insertions(+), 75 deletions(-) diff --git a/packages/@orchidui-vue/src/Builder/DataTable/OcDataTable.vue b/packages/@orchidui-vue/src/Builder/DataTable/OcDataTable.vue index df906c5cf..9ec3e5643 100644 --- a/packages/@orchidui-vue/src/Builder/DataTable/OcDataTable.vue +++ b/packages/@orchidui-vue/src/Builder/DataTable/OcDataTable.vue @@ -230,8 +230,8 @@ const displayFilterData = computed(() => { !filterOptions ? 'w-full justify-end' : isSearchExpanded - ? 'md:w-fit w-full' - : '' + ? 'md:w-fit w-full' + : '' " > { return [ ...Array.from( { length: Math.min(totalVisible - 1, props.maxPage) }, - (_, index) => index + 1 + (_, index) => index + 1, ), "...", props.maxPage, @@ -51,7 +51,7 @@ const pagination = computed(() => { "...", ...Array.from( { length: totalVisible - 1 }, - (_, index) => props.maxPage - (totalVisible - 2) + index + (_, index) => props.maxPage - (totalVisible - 2) + index, ), ]; } @@ -76,7 +76,7 @@ const pagination = computed(() => { @click=" $emit( 'update:modelValue', - modelValue > 1 ? modelValue - 1 : modelValue + modelValue > 1 ? modelValue - 1 : modelValue, ) " /> @@ -106,7 +106,7 @@ const pagination = computed(() => { @click=" $emit( 'update:modelValue', - modelValue < Number(maxPage) ? modelValue + 1 : Number(maxPage) + modelValue < Number(maxPage) ? modelValue + 1 : Number(maxPage), ) " /> diff --git a/packages/@orchidui-vue/src/DataDisplay/Table/OcTableCell.vue b/packages/@orchidui-vue/src/DataDisplay/Table/OcTableCell.vue index 70e057406..c4c01bf15 100644 --- a/packages/@orchidui-vue/src/DataDisplay/Table/OcTableCell.vue +++ b/packages/@orchidui-vue/src/DataDisplay/Table/OcTableCell.vue @@ -102,8 +102,8 @@ const copyToClipboard = async (text) => { isSelected ? 'block' : isSimple - ? '' - : 'md:hidden group-hover/row:block' + ? '' + : 'md:hidden group-hover/row:block' " @update:model-value="$emit('selected')" /> diff --git a/packages/@orchidui-vue/src/Disclosure/Accordion/OcAccordion.stories.js b/packages/@orchidui-vue/src/Disclosure/Accordion/OcAccordion.stories.js index e94a01473..ed4a8c949 100644 --- a/packages/@orchidui-vue/src/Disclosure/Accordion/OcAccordion.stories.js +++ b/packages/@orchidui-vue/src/Disclosure/Accordion/OcAccordion.stories.js @@ -28,7 +28,7 @@ export const OcAccordion = { const isOpen = ref(false); watch( () => args.isExpandable, - (val) => (isOpen.value = args.isDisabled ? false : val) + (val) => (isOpen.value = args.isDisabled ? false : val), ); return { isOpen, args }; }, diff --git a/packages/@orchidui-vue/src/Disclosure/Tabs/OcTabs.vue b/packages/@orchidui-vue/src/Disclosure/Tabs/OcTabs.vue index 09dadce6b..c9030fd61 100644 --- a/packages/@orchidui-vue/src/Disclosure/Tabs/OcTabs.vue +++ b/packages/@orchidui-vue/src/Disclosure/Tabs/OcTabs.vue @@ -32,8 +32,8 @@ const isPillVariant = computed(() => props.variant === "pills"); ? 'bg-oc-gray-200 text-oc-text-500' : 'border-oc-primary-500 text-oc-text-500' : isPillVariant - ? 'text-oc-text-400' - : 'border-transparent text-oc-text-400', + ? 'text-oc-text-400' + : 'border-transparent text-oc-text-400', ]" @click="$emit('update:modelValue', tab.value)" > diff --git a/packages/@orchidui-vue/src/Elements/Header/OcTabToSelect.vue b/packages/@orchidui-vue/src/Elements/Header/OcTabToSelect.vue index ea741c82f..30875e238 100644 --- a/packages/@orchidui-vue/src/Elements/Header/OcTabToSelect.vue +++ b/packages/@orchidui-vue/src/Elements/Header/OcTabToSelect.vue @@ -12,7 +12,7 @@ const props = defineProps({ }); const isDropdownOpened = ref(false); const activeMenu = computed(() => - props.menus.find((menu) => menu.value === props.modelValue) + props.menus.find((menu) => menu.value === props.modelValue), );