chore: update

This commit is contained in:
xiaoxian521 2024-03-27 10:18:32 +08:00
parent 6565c3fb17
commit bf5a0e89c7
27 changed files with 52 additions and 45 deletions

View File

@ -1,5 +1,5 @@
import reAnimateSelector from "./src/index.vue";
import { withInstall } from "@pureadmin/utils"; import { withInstall } from "@pureadmin/utils";
import reAnimateSelector from "./src/index.vue";
/** [animate.css](https://animate.style/) 选择器组件 */ /** [animate.css](https://animate.style/) 选择器组件 */
export const ReAnimateSelector = withInstall(reAnimateSelector); export const ReAnimateSelector = withInstall(reAnimateSelector);

View File

@ -1,5 +1,5 @@
import reBarcode from "./src/index.vue";
import { withInstall } from "@pureadmin/utils"; import { withInstall } from "@pureadmin/utils";
import reBarcode from "./src/index.vue";
/** 条形码组件 */ /** 条形码组件 */
export const ReBarcode = withInstall(reBarcode); export const ReBarcode = withInstall(reBarcode);

View File

@ -1,10 +1,10 @@
import { import {
defineComponent,
reactive,
computed,
watch, watch,
unref,
computed,
reactive,
onMounted, onMounted,
unref defineComponent
} from "vue"; } from "vue";
import { countToProps } from "./props"; import { countToProps } from "./props";
import { isNumber } from "@pureadmin/utils"; import { isNumber } from "@pureadmin/utils";

View File

@ -1,5 +1,6 @@
import type { PropType } from "vue"; import type { PropType } from "vue";
import propTypes from "@/utils/propTypes"; import propTypes from "@/utils/propTypes";
export const countToProps = { export const countToProps = {
startVal: propTypes.number.def(0), startVal: propTypes.number.def(0),
endVal: propTypes.number.def(2020), endVal: propTypes.number.def(2020),

View File

@ -1,9 +1,9 @@
import "./rebound.css"; import "./rebound.css";
import { import {
defineComponent,
ref, ref,
unref, unref,
onBeforeMount, onBeforeMount,
defineComponent,
onBeforeUnmount onBeforeUnmount
} from "vue"; } from "vue";
import { reboundProps } from "./props"; import { reboundProps } from "./props";

View File

@ -1,5 +1,6 @@
import type { PropType } from "vue"; import type { PropType } from "vue";
import propTypes from "@/utils/propTypes"; import propTypes from "@/utils/propTypes";
export const reboundProps = { export const reboundProps = {
delay: propTypes.number.def(1), delay: propTypes.number.def(1),
blur: propTypes.number.def(2), blur: propTypes.number.def(2),

View File

@ -6,10 +6,10 @@ import { useEventListener } from "@vueuse/core";
import { longpress } from "@/directives/longpress"; import { longpress } from "@/directives/longpress";
import { useTippy, directive as tippy } from "vue-tippy"; import { useTippy, directive as tippy } from "vue-tippy";
import { import {
type PropType,
ref, ref,
unref, unref,
computed, computed,
type PropType,
onMounted, onMounted,
onUnmounted, onUnmounted,
defineComponent defineComponent

View File

@ -1,10 +1,10 @@
<script setup lang="ts"> <script setup lang="ts">
import { import {
closeDialog,
dialogStore,
type EventType, type EventType,
type ButtonProps, type ButtonProps,
type DialogOptions type DialogOptions,
closeDialog,
dialogStore
} from "./index"; } from "./index";
import { ref, computed } from "vue"; import { ref, computed } from "vue";
import { isFunction } from "@pureadmin/utils"; import { isFunction } from "@pureadmin/utils";

View File

@ -1,5 +1,5 @@
import "./index.css"; import "./index.css";
import { h, defineComponent, type Component } from "vue"; import { type Component, h, defineComponent } from "vue";
export interface attrsType { export interface attrsType {
width?: string; width?: string;

View File

@ -1,6 +1,6 @@
import { defineComponent, ref } from "vue";
import propTypes from "@/utils/propTypes";
import "./filpper.css"; import "./filpper.css";
import propTypes from "@/utils/propTypes";
import { defineComponent, ref } from "vue";
const props = { const props = {
// front paper text // front paper text

View File

@ -1,6 +1,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, unref, nextTick, onUnmounted } from "vue";
import flippers from "./filpper"; import flippers from "./filpper";
import { ref, unref, nextTick, onUnmounted } from "vue";
const timer = ref(null); const timer = ref(null);
const flipObjs = ref([]); const flipObjs = ref([]);

View File

@ -1,10 +1,10 @@
import { import {
type PropType,
ref, ref,
unref, unref,
watch, watch,
nextTick, nextTick,
computed, computed,
type PropType,
defineComponent defineComponent
} from "vue"; } from "vue";
import "./index.scss"; import "./index.scss";

View File

@ -1,6 +1,12 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, ref, unref, nextTick } from "vue"; import {
import type { CSSProperties, PropType } from "vue"; type PropType,
type CSSProperties,
ref,
unref,
nextTick,
computed
} from "vue";
import { import {
tryOnMounted, tryOnMounted,
tryOnUnmounted, tryOnUnmounted,

View File

@ -1,13 +1,13 @@
import "./index.css";
import { import {
defineComponent, unref,
computed, computed,
nextTick, nextTick,
onBeforeMount, onBeforeMount,
getCurrentInstance, defineComponent,
unref getCurrentInstance
} from "vue"; } from "vue";
import { addClass, removeClass, toggleClass } from "@pureadmin/utils"; import { addClass, removeClass, toggleClass } from "@pureadmin/utils";
import "./index.css";
const stayClass = "stay"; //鼠标点击 const stayClass = "stay"; //鼠标点击
const activeClass = "hs-on"; //鼠标移动上去 const activeClass = "hs-on"; //鼠标移动上去

View File

@ -1,6 +1,6 @@
import { defineComponent, ref, unref, computed, type PropType } from "vue";
import resizer from "./resizer";
import "./index.css"; import "./index.css";
import resizer from "./resizer";
import { type PropType, defineComponent, ref, unref, computed } from "vue";
export interface ContextProps { export interface ContextProps {
minPercent: number; minPercent: number;

View File

@ -1,5 +1,5 @@
import { computed, unref, defineComponent } from "vue";
import "./resizer.css"; import "./resizer.css";
import { computed, unref, defineComponent } from "vue";
export default defineComponent({ export default defineComponent({
name: "Resizer", name: "Resizer",

View File

@ -1,6 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { h, onMounted, ref, useSlots } from "vue"; import { h, onMounted, ref, useSlots } from "vue";
import { useTippy, type TippyOptions } from "vue-tippy"; import { type TippyOptions, useTippy } from "vue-tippy";
const props = defineProps({ const props = defineProps({
// //

View File

@ -1,8 +1,7 @@
// 参考https://www.npmjs.com/package/element-tree-line (主要是替换需要通过函数传参的方式去注册组件并添加更好的类型支持并移除this.$scopedSlots在3.x中,将所有this.$scopedSlots替换为this.$slots) // 参考https://www.npmjs.com/package/element-tree-line (主要是替换需要通过函数传参的方式去注册组件并添加更好的类型支持并移除this.$scopedSlots在3.x中,将所有this.$scopedSlots替换为this.$slots)
import { isFunction } from "@pureadmin/utils";
import { h, defineComponent } from "vue";
import type { PropType } from "vue";
import "./index.scss"; import "./index.scss";
import { isFunction } from "@pureadmin/utils";
import { type PropType, h, defineComponent } from "vue";
import type { import type {
TreeNode, TreeNode,
TreeData, TreeData,

View File

@ -1,6 +1,6 @@
import type { El } from "typeit/dist/types"; import type { El } from "typeit/dist/types";
import TypeIt, { type Options as TypeItOptions } from "typeit"; import TypeIt, { type Options as TypeItOptions } from "typeit";
import { ref, defineComponent, onMounted, type PropType } from "vue"; import { type PropType, ref, defineComponent, onMounted } from "vue";
// 打字机效果组件(配置项详情请查阅 https://www.typeitjs.com/docs/vanilla/usage#options // 打字机效果组件(配置项详情请查阅 https://www.typeitjs.com/docs/vanilla/usage#options
export default defineComponent({ export default defineComponent({

View File

@ -1,5 +1,5 @@
import type { App } from "vue";
import axios from "axios"; import axios from "axios";
import type { App } from "vue";
let config: object = {}; let config: object = {};
const { VITE_PUBLIC_PATH } = import.meta.env; const { VITE_PUBLIC_PATH } = import.meta.env;

View File

@ -1,9 +1,9 @@
import { import {
isFunction,
isObject,
isArray, isArray,
throttle,
debounce, debounce,
throttle isObject,
isFunction
} from "@pureadmin/utils"; } from "@pureadmin/utils";
import { useEventListener } from "@vueuse/core"; import { useEventListener } from "@vueuse/core";
import type { Directive, DirectiveBinding } from "vue"; import type { Directive, DirectiveBinding } from "vue";

View File

@ -56,7 +56,7 @@ const onPrint = () => {
</template> </template>
<div <div
v-loading="loading" v-loading="loading"
class="h-[calc(100vh-239px)]" class="h-[calc(100vh-295px)]"
:element-loading-text="t('status.pureLoad')" :element-loading-text="t('status.pureLoad')"
> >
<div class="flex justify-between items-center h-9"> <div class="flex justify-between items-center h-9">

View File

@ -126,9 +126,7 @@ onBeforeUnmount(() => {
<el-button plain @click="clear">清除整页水印</el-button> <el-button plain @click="clear">清除整页水印</el-button>
</el-space> </el-space>
<el-divider /> <div ref="local" class="w-1/2 h-[200px] border border-sky-500 mt-4" />
<div ref="local" class="w-1/2 h-[200px] border border-sky-500" />
<el-space wrap class="mt-6"> <el-space wrap class="mt-6">
<el-button <el-button
@ -196,8 +194,9 @@ onBeforeUnmount(() => {
<el-button plain @click="clearLocal">清除局部水印</el-button> <el-button plain @click="clearLocal">清除局部水印</el-button>
</el-space> </el-space>
<el-divider /> <div
ref="preventLocal"
<div ref="preventLocal" class="w-1/2 h-[200px] border border-indigo-500" /> class="w-1/2 h-[200px] border border-indigo-500 mt-4"
/>
</el-card> </el-card>
</template> </template>

View File

@ -64,7 +64,7 @@ const settingTB: ContextProps = reactive({
<style lang="scss" scoped> <style lang="scss" scoped>
.split-pane { .split-pane {
width: 100%; width: 100%;
height: calc(100vh - 260px); height: calc(100vh - 300px);
font-size: 50px; font-size: 50px;
text-align: center; text-align: center;
border: 1px solid #e5e6eb; border: 1px solid #e5e6eb;

View File

@ -89,7 +89,7 @@ const activities = [
placement="bottom" placement="bottom"
> >
<div class="message"> <div class="message">
vue-pure-admin 是一款开源免费且开箱即用的中后台管理系统模版 vue-pure-admin {{ activities.length - index }}个版本发布啦
</div> </div>
</el-timeline-item> </el-timeline-item>
</el-timeline> </el-timeline>

View File

@ -92,7 +92,7 @@ onMounted(() => {
</script> </script>
<template> <template>
<el-scrollbar max-height="calc(100vh - 90px)" class="content"> <el-scrollbar max-height="calc(100vh - 120px)" class="content">
<Waterfall :list="list" v-bind="options"> <Waterfall :list="list" v-bind="options">
<template #item="{ item, url, index }"> <template #item="{ item, url, index }">
<div <div
@ -139,6 +139,7 @@ onMounted(() => {
<el-backtop <el-backtop
title="回到顶部" title="回到顶部"
:right="35" :right="35"
:bottom="50"
:visibility-height="400" :visibility-height="400"
target=".content .el-scrollbar__wrap" target=".content .el-scrollbar__wrap"
> >

View File

@ -115,7 +115,7 @@ onMounted(() => {
<style scoped> <style scoped>
#turbo { #turbo {
width: 100%; width: 100%;
height: 70vh; height: 65vh;
} }
.logic-flow-view { .logic-flow-view {