chore(deps): update

This commit is contained in:
xiaoxian521 2023-05-22 23:50:13 +08:00
parent fe50a3618f
commit 93ad811036
3 changed files with 2588 additions and 5965 deletions

View File

@ -105,9 +105,9 @@
"autoprefixer": "^10.4.14",
"cloc": "^2.11.0",
"cssnano": "^6.0.1",
"eslint": "^8.40.0",
"eslint": "^8.41.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.13.0",
"eslint-plugin-vue": "^9.14.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"picocolors": "^1.0.0",
@ -120,7 +120,7 @@
"rimraf": "^5.0.1",
"rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.62.1",
"sass-loader": "^13.2.2",
"sass-loader": "^13.3.0",
"stylelint": "^15.6.2",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^4.0.0",
@ -134,7 +134,7 @@
"stylelint-scss": "^5.0.0",
"svgo": "^3.0.2",
"tailwindcss": "^3.3.2",
"terser": "^5.17.4",
"terser": "^5.17.5",
"typescript": "^5.0.4",
"vite": "^4.3.8",
"vite-plugin-cdn-import": "^0.3.5",

8520
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -51,20 +51,21 @@ let startPosX = null;
let isHover = false;
let ease = "ease-in";
// eslint-disable-next-line vue/no-setup-props-destructure
const { classOption } = props;
if (classOption["key"] === undefined) {
classOption["key"] = 0;
if (props.classOption["key"] === undefined) {
// eslint-disable-next-line vue/no-mutating-props
props.classOption["key"] = 0;
}
const wrap = templateRef<HTMLElement | null>(`wrap${classOption["key"]}`, null);
const wrap = templateRef<HTMLElement | null>(
`wrap${props.classOption["key"]}`,
null
);
const slotList = templateRef<HTMLElement | null>(
`slotList${classOption["key"]}`,
`slotList${props.classOption["key"]}`,
null
);
const realBox = templateRef<HTMLElement | null>(
`realBox${classOption["key"]}`,
`realBox${props.classOption["key"]}`,
null
);
@ -107,7 +108,7 @@ const defaultOption = computed(() => {
const options = computed(() => {
// @ts-expect-error
return copyObj({}, unref(defaultOption), classOption);
return copyObj({}, unref(defaultOption), props.classOption);
});
const leftSwitchClass = computed(() => {
@ -495,7 +496,7 @@ defineExpose({
</script>
<template>
<div :ref="'wrap' + classOption['key']">
<div :ref="'wrap' + props.classOption['key']">
<div
:style="leftSwitch"
v-if="navigation"
@ -513,7 +514,7 @@ defineExpose({
<slot name="right-switch" />
</div>
<div
:ref="'realBox' + classOption['key']"
:ref="'realBox' + props.classOption['key']"
:style="pos"
@mouseenter="enter"
@mouseleave="leave"
@ -522,7 +523,7 @@ defineExpose({
@touchend="touchEnd"
@mousewheel.passive="wheel"
>
<div :ref="'slotList' + classOption['key']" :style="float">
<div :ref="'slotList' + props.classOption['key']" :style="float">
<slot />
</div>
<div v-html="copyHtml" :style="float" />