Skip to content

Commit b31a07d

Browse files
author
yuqian
committed
feat: 解决图片链接获取不到问题
1 parent 00e2f80 commit b31a07d

9 files changed

+39
-19
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ npm install --save vue3-slide-verify
2626

2727
### 国内镜像地址 [gitee镜像地址](https://gitee.com/monoplasty/vue3-slide-verify)
2828

29+
### 学习交流
30+
31+
最近发现有的朋友给我发私信,但我没来的及回复,有兴趣的朋友可以加入社群交流学习:[669653069](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=GiifeVV_d3tA9sENmnilLUIIpr9JjQZ2&authKey=aQltsCgUSq0%2F5Yw8NpF%2B2Iz52DPpYFH2hJmH4I%2Fle1S%2FgnGl68QMiV6NGpxkXrcY&noverify=0&group_code=669653069)
32+
33+
<img src="./src/assets/669653069.jpg" alt="官方社区" width="160" />
34+
2935
### argument
3036

3137
| Param | Type | Describe | Version |
@@ -50,6 +56,9 @@ npm install --save vue3-slide-verify
5056
| again | Function | 检测到非人为操作滑动时触发的回调函数 | |
5157

5258
### 更新记录
59+
### V1.1.6
60+
- 修复图片链接失效问题,增加文档联系方式。
61+
5362
### V1.1.5
5463
- 修复在新版vue项目中,ts类型文件找不到的问题。
5564

dist/vue3-slide-verify.es.js

+9-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { reactive, ref, defineComponent, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, createCommentVNode, toDisplayString, pushScopeId, popScopeId } from "vue";
1+
import { reactive, ref, defineComponent, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, createCommentVNode, toDisplayString } from "vue";
22
const PI = Math.PI;
33
function sum(x, y) {
44
return x + y;
@@ -38,7 +38,7 @@ function getRandomNumberByRange(start, end) {
3838
}
3939
function getRandomImg(imgs) {
4040
const len = imgs.length;
41-
return len > 0 ? imgs[getRandomNumberByRange(0, len - 1)] : "https://source.unsplash.com/300x150/?book,library";
41+
return len > 0 ? imgs[getRandomNumberByRange(0, len - 1)] : "https://picsum.photos/300/150?image=" + getRandomNumberByRange(0, 1084);
4242
}
4343
function throttle(fn, interval, options = { leading: true, trailing: true }) {
4444
const { leading, trailing, resultCallback } = options;
@@ -319,14 +319,9 @@ const _sfc_main = defineComponent({
319319
};
320320
}
321321
});
322-
const _withScopeId = (n) => (pushScopeId("data-v-f61c42f2"), n = n(), popScopeId(), n);
323322
const _hoisted_1 = ["width", "height"];
324-
const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-refresh" }, null, -1));
325-
const _hoisted_3 = [
326-
_hoisted_2
327-
];
328-
const _hoisted_4 = ["width", "height"];
329-
const _hoisted_5 = { class: "slide-verify-slider-text" };
323+
const _hoisted_2 = ["width", "height"];
324+
const _hoisted_3 = { class: "slide-verify-slider-text" };
330325
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
331326
return openBlock(), createElementBlock("div", {
332327
id: "slideVerify",
@@ -346,13 +341,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
346341
key: 0,
347342
class: "slide-verify-refresh-icon",
348343
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.refresh && _ctx.refresh(...args))
349-
}, _hoisted_3)) : createCommentVNode("", true),
344+
}, _cache[5] || (_cache[5] = [
345+
createElementVNode("i", { class: "iconfont icon-refresh" }, null, -1)
346+
]))) : createCommentVNode("", true),
350347
createElementVNode("canvas", {
351348
ref: "block",
352349
width: _ctx.w,
353350
height: _ctx.h,
354351
class: "slide-verify-block"
355-
}, null, 8, _hoisted_4),
352+
}, null, 8, _hoisted_2),
356353
createElementVNode("div", {
357354
class: normalizeClass(["slide-verify-slider", {
358355
"container-active": _ctx.containerCls.containerActive,
@@ -377,7 +374,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
377374
}, null, 2)
378375
], 36)
379376
], 4),
380-
createElementVNode("span", _hoisted_5, toDisplayString(_ctx.sliderText), 1)
377+
createElementVNode("span", _hoisted_3, toDisplayString(_ctx.sliderText), 1)
381378
], 2)
382379
], 4);
383380
}

dist/vue3-slide-verify.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)