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 @@ - + { diff --git a/src/views/flow-chart/index.vue b/src/views/flow-chart/index.vue index c0506b802..030fcee88 100644 --- a/src/views/flow-chart/index.vue +++ b/src/views/flow-chart/index.vue @@ -115,7 +115,7 @@ onMounted(() => {