From bf5a0e89c731da5e402339d252d6c51832d4b44f Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Wed, 27 Mar 2024 10:18:32 +0800 Subject: [PATCH] chore: update --- src/components/ReAnimateSelector/index.ts | 2 +- src/components/ReBarcode/index.ts | 2 +- src/components/ReCountTo/src/normal/index.tsx | 8 ++++---- src/components/ReCountTo/src/normal/props.ts | 1 + src/components/ReCountTo/src/rebound/index.tsx | 2 +- src/components/ReCountTo/src/rebound/props.ts | 1 + src/components/ReCropper/src/index.tsx | 2 +- src/components/ReDialog/index.vue | 6 +++--- src/components/ReFlicker/index.ts | 2 +- src/components/ReFlop/src/filpper.tsx | 4 ++-- src/components/ReFlop/src/index.vue | 2 +- src/components/ReQrcode/src/index.tsx | 2 +- src/components/ReSeamlessScroll/src/index.vue | 10 ++++++++-- src/components/ReSelector/src/index.tsx | 8 ++++---- src/components/ReSplitPane/index.tsx | 4 ++-- src/components/ReSplitPane/resizer.tsx | 2 +- src/components/ReText/src/index.vue | 2 +- src/components/ReTreeLine/index.ts | 5 ++--- src/components/ReTypeit/src/index.tsx | 2 +- src/config/index.ts | 2 +- src/directives/optimize/index.ts | 6 +++--- src/views/able/pdf.vue | 2 +- src/views/able/watermark.vue | 11 +++++------ src/views/components/split-pane.vue | 2 +- src/views/components/timeline.vue | 2 +- src/views/components/waterfall/index.vue | 3 ++- src/views/flow-chart/index.vue | 2 +- 27 files changed, 52 insertions(+), 45 deletions(-) diff --git a/src/components/ReAnimateSelector/index.ts b/src/components/ReAnimateSelector/index.ts index 8b0293cd6..87c9008bd 100644 --- a/src/components/ReAnimateSelector/index.ts +++ b/src/components/ReAnimateSelector/index.ts @@ -1,5 +1,5 @@ -import reAnimateSelector from "./src/index.vue"; import { withInstall } from "@pureadmin/utils"; +import reAnimateSelector from "./src/index.vue"; /** [animate.css](https://animate.style/) 选择器组件 */ export const ReAnimateSelector = withInstall(reAnimateSelector); diff --git a/src/components/ReBarcode/index.ts b/src/components/ReBarcode/index.ts index 1568b58d2..ad098485d 100644 --- a/src/components/ReBarcode/index.ts +++ b/src/components/ReBarcode/index.ts @@ -1,5 +1,5 @@ -import reBarcode from "./src/index.vue"; import { withInstall } from "@pureadmin/utils"; +import reBarcode from "./src/index.vue"; /** 条形码组件 */ export const ReBarcode = withInstall(reBarcode); diff --git a/src/components/ReCountTo/src/normal/index.tsx b/src/components/ReCountTo/src/normal/index.tsx index 5c7a06c71..ec3248491 100644 --- a/src/components/ReCountTo/src/normal/index.tsx +++ b/src/components/ReCountTo/src/normal/index.tsx @@ -1,10 +1,10 @@ import { - defineComponent, - reactive, - computed, watch, + unref, + computed, + reactive, onMounted, - unref + defineComponent } from "vue"; import { countToProps } from "./props"; import { isNumber } from "@pureadmin/utils"; diff --git a/src/components/ReCountTo/src/normal/props.ts b/src/components/ReCountTo/src/normal/props.ts index 142fd3a11..f04c2f5e2 100644 --- a/src/components/ReCountTo/src/normal/props.ts +++ b/src/components/ReCountTo/src/normal/props.ts @@ -1,5 +1,6 @@ import type { PropType } from "vue"; import propTypes from "@/utils/propTypes"; + export const countToProps = { startVal: propTypes.number.def(0), endVal: propTypes.number.def(2020), diff --git a/src/components/ReCountTo/src/rebound/index.tsx b/src/components/ReCountTo/src/rebound/index.tsx index ad16f7a6c..ff6c224d3 100644 --- a/src/components/ReCountTo/src/rebound/index.tsx +++ b/src/components/ReCountTo/src/rebound/index.tsx @@ -1,9 +1,9 @@ import "./rebound.css"; import { - defineComponent, ref, unref, onBeforeMount, + defineComponent, onBeforeUnmount } from "vue"; import { reboundProps } from "./props"; diff --git a/src/components/ReCountTo/src/rebound/props.ts b/src/components/ReCountTo/src/rebound/props.ts index f3dcdc87c..8b0491afb 100644 --- a/src/components/ReCountTo/src/rebound/props.ts +++ b/src/components/ReCountTo/src/rebound/props.ts @@ -1,5 +1,6 @@ import type { PropType } from "vue"; import propTypes from "@/utils/propTypes"; + export const reboundProps = { delay: propTypes.number.def(1), blur: propTypes.number.def(2), diff --git a/src/components/ReCropper/src/index.tsx b/src/components/ReCropper/src/index.tsx index 2cf8da5ea..826ffd0a9 100644 --- a/src/components/ReCropper/src/index.tsx +++ b/src/components/ReCropper/src/index.tsx @@ -6,10 +6,10 @@ import { useEventListener } from "@vueuse/core"; import { longpress } from "@/directives/longpress"; import { useTippy, directive as tippy } from "vue-tippy"; import { + type PropType, ref, unref, computed, - type PropType, onMounted, onUnmounted, defineComponent diff --git a/src/components/ReDialog/index.vue b/src/components/ReDialog/index.vue index 15b6c1073..e7fb2f108 100644 --- a/src/components/ReDialog/index.vue +++ b/src/components/ReDialog/index.vue @@ -1,10 +1,10 @@