mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
fix: update @pureadmin/utils
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { withInstall } from "/@/utils";
|
||||
import reBarcode from "./src/index.vue";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 条形码组件 */
|
||||
export const ReBarcode = withInstall(reBarcode);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { withInstall } from "/@/utils";
|
||||
import reNormalCountTo from "./src/normal";
|
||||
import reboundCountTo from "./src/rebound";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 普通数字动画组件 */
|
||||
const ReNormalCountTo = withInstall(reNormalCountTo);
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
unref
|
||||
} from "vue";
|
||||
import { countToProps } from "./props";
|
||||
import { isNumber } from "/@/utils/is";
|
||||
import { isNumber } from "@pureadmin/utils";
|
||||
|
||||
export default defineComponent({
|
||||
name: "ReNormalCountTo",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import reCropper from "./src";
|
||||
import { withInstall } from "/@/utils";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 图片裁剪组件 */
|
||||
export const ReCropper = withInstall(reCropper);
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
PropType
|
||||
} from "vue";
|
||||
import { templateRef } from "@vueuse/core";
|
||||
import { useAttrs } from "/@/utils/useAttrs";
|
||||
import { useAttrs } from "@pureadmin/utils";
|
||||
|
||||
import Cropper from "cropperjs";
|
||||
import "cropperjs/dist/cropper.css";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import reFlop from "./src/index.vue";
|
||||
import { withInstall } from "/@/utils";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 时间翻牌组件 */
|
||||
export const ReFlop = withInstall(reFlop);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { withInstall } from "/@/utils";
|
||||
import control from "./src/Control.vue";
|
||||
import nodePanel from "./src/NodePanel.vue";
|
||||
import dataDialog from "./src/DataDialog.vue";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** LogicFlow流程图-控制面板 */
|
||||
const Control = withInstall(control);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { withInstall } from "/@/utils";
|
||||
import reImageVerify from "./src/index.vue";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 图形验证码组件 */
|
||||
export const ReImageVerify = withInstall(reImageVerify);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import amap from "./src/Amap.vue";
|
||||
import { withInstall } from "/@/utils";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 高德地图组件 */
|
||||
export const Amap = withInstall(amap);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { reactive, getCurrentInstance, onBeforeMount, onUnmounted } from "vue";
|
||||
import { deviceDetection } from "/@/utils/deviceDetection";
|
||||
import { deviceDetection } from "@pureadmin/utils";
|
||||
import AMapLoader from "@amap/amap-jsapi-loader";
|
||||
import { mapJson } from "/@/api/mock";
|
||||
import car from "/@/assets/car.png";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import reQrcode from "./src/index";
|
||||
import { withInstall } from "/@/utils";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 二维码组件 */
|
||||
export const ReQrcode = withInstall(reQrcode);
|
||||
|
||||
@@ -8,8 +8,8 @@ import {
|
||||
defineComponent
|
||||
} from "vue";
|
||||
import "./index.scss";
|
||||
import { isString } from "/@/utils/is";
|
||||
import { cloneDeep } from "lodash-unified";
|
||||
import { isString } from "@pureadmin/utils";
|
||||
import { propTypes } from "/@/utils/propTypes";
|
||||
import { IconifyIconOffline } from "../../ReIcon";
|
||||
import QRCode, { QRCodeRenderersOptions } from "qrcode";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { withInstall } from "/@/utils";
|
||||
import reSeamlessScroll from "./src/index.vue";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 无缝滚动组件 */
|
||||
export const ReSeamlessScroll = withInstall(reSeamlessScroll);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import reSelector from "./src";
|
||||
import { withInstall } from "/@/utils";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** 选择器组件 */
|
||||
export const ReSelector = withInstall(reSelector);
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
getCurrentInstance,
|
||||
unref
|
||||
} from "vue";
|
||||
import { addClass, removeClass, toggleClass } from "/@/utils/operate";
|
||||
import { addClass, removeClass, toggleClass } from "@pureadmin/utils";
|
||||
import "./index.css";
|
||||
|
||||
const stayClass = "stay"; //鼠标点击
|
||||
@@ -254,23 +254,32 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
addClass(
|
||||
instance.refs["hsdiv" + props.HsKey + item[0]],
|
||||
instance.refs["hsdiv" + props.HsKey + item[0]] as Element,
|
||||
activeClass,
|
||||
stayClass
|
||||
);
|
||||
|
||||
addClass(instance.refs["hstd" + props.HsKey + item[0]], bothLeftSides);
|
||||
|
||||
addClass(
|
||||
instance.refs["hsdiv" + props.HsKey + item[1]],
|
||||
instance.refs["hstd" + props.HsKey + item[0]] as Element,
|
||||
bothLeftSides
|
||||
);
|
||||
|
||||
addClass(
|
||||
instance.refs["hsdiv" + props.HsKey + item[1]] as Element,
|
||||
activeClass,
|
||||
stayClass
|
||||
);
|
||||
|
||||
addClass(instance.refs["hstd" + props.HsKey + item[1]], bothRightSides);
|
||||
addClass(
|
||||
instance.refs["hstd" + props.HsKey + item[1]] as Element,
|
||||
bothRightSides
|
||||
);
|
||||
|
||||
while (item[1] >= item[0]) {
|
||||
addClass(instance.refs["hstd" + props.HsKey + item[0]], inRange);
|
||||
addClass(
|
||||
instance.refs["hstd" + props.HsKey + item[0]] as Element,
|
||||
inRange
|
||||
);
|
||||
item[0]++;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import tableProBar from "./src/bar";
|
||||
import { withInstall } from "/@/utils";
|
||||
import { withInstall } from "@pureadmin/utils";
|
||||
|
||||
/** table-crud组件 */
|
||||
export const TableProBar = withInstall(tableProBar);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// 参考https://www.npmjs.com/package/element-tree-line (主要是替换需要通过函数传参的方式去注册组件,并添加更好的类型支持,并移除this.$scopedSlots,在3.x中,将所有this.$scopedSlots替换为this.$slots)
|
||||
import { isFunction } from "/@/utils/is";
|
||||
import { isFunction } from "@pureadmin/utils";
|
||||
import { h, defineComponent } from "vue";
|
||||
import type { PropType } from "vue";
|
||||
import "./index.scss";
|
||||
|
||||
Reference in New Issue
Block a user