yuang-framework-ui-pc 1.1.39 → 1.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/yu-slider-captcha-dialog/SliderCaptcha.d.ts +6 -6
- package/es/yu-slider-captcha-dialog/SliderCaptcha.js +4 -4
- package/es/yu-slider-captcha-dialog/index.d.ts +4 -4
- package/es/yu-slider-captcha-dialog/index.js +8 -9
- package/lib/yu-slider-captcha-dialog/SliderCaptcha.cjs +3 -3
- package/lib/yu-slider-captcha-dialog/SliderCaptcha.d.ts +6 -6
- package/lib/yu-slider-captcha-dialog/index.cjs +7 -8
- package/lib/yu-slider-captcha-dialog/index.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
blockLength?: number;
|
|
3
3
|
blockRadius?: number;
|
|
4
4
|
canvasWidth?: number;
|
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
14
|
sliderHint: string;
|
|
15
15
|
accuracy: number;
|
|
16
16
|
imageList: any;
|
|
17
|
-
}
|
|
17
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
success: (data: Object) => void;
|
|
19
19
|
fail: (data: Object) => void;
|
|
20
20
|
close: () => void;
|
|
@@ -34,11 +34,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
34
34
|
sliderHint: string;
|
|
35
35
|
accuracy: number;
|
|
36
36
|
imageList: any;
|
|
37
|
-
}>>> & {
|
|
38
|
-
onClose?: (() => any) | undefined;
|
|
37
|
+
}>>> & Readonly<{
|
|
39
38
|
onSuccess?: ((data: Object) => any) | undefined;
|
|
39
|
+
onClose?: (() => any) | undefined;
|
|
40
40
|
onFail?: ((data: Object) => any) | undefined;
|
|
41
|
-
}
|
|
41
|
+
}>, {
|
|
42
42
|
blockLength: number;
|
|
43
43
|
blockRadius: number;
|
|
44
44
|
canvasWidth: number;
|
|
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
46
|
sliderHint: string;
|
|
47
47
|
accuracy: number;
|
|
48
48
|
imageList: string[];
|
|
49
|
-
}, {}>;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
export default _default;
|
|
51
51
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
52
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, nextTick,
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, createElementBlock, openBlock, createElementVNode, createTextVNode, createVNode, unref, normalizeStyle, createCommentVNode, normalizeClass, toDisplayString, createBlock } from "vue";
|
|
2
2
|
import { http } from "yuang-framework-ui-common/lib/config/httpConfig";
|
|
3
3
|
import { RefreshRight, CircleClose } from "@element-plus/icons-vue";
|
|
4
4
|
import { SliderArrowStatic, SliderArrowSlide } from "../icons";
|
|
@@ -54,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
54
|
getCaptcha();
|
|
55
55
|
};
|
|
56
56
|
const getCaptcha = () => {
|
|
57
|
-
http.get("/sso-api/
|
|
57
|
+
http.get("/sso-api/core/framework-captcha/getSliderCaptcha", { params: {} }).then((res) => {
|
|
58
58
|
key.value = res.data.data.key;
|
|
59
59
|
block.value.src = res.data.data.blockSrc;
|
|
60
60
|
block.value.style.top = res.data.data.blockY + "px";
|
|
@@ -147,7 +147,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
147
147
|
key: key.value,
|
|
148
148
|
captcha: moveLength
|
|
149
149
|
};
|
|
150
|
-
http.get("/sso-api/
|
|
150
|
+
http.get("/sso-api/core/framework-captcha/validateSliderCaptcha", { params }).then((res) => {
|
|
151
151
|
verifySuccessEvent();
|
|
152
152
|
setTimeout(() => {
|
|
153
153
|
emit("success", { key: key.value, value: moveLength });
|
|
@@ -209,7 +209,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
209
209
|
return (_ctx, _cache) => {
|
|
210
210
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
211
211
|
createElementVNode("div", _hoisted_2, [
|
|
212
|
-
createTextVNode(" 完成拼图验证 "),
|
|
212
|
+
_cache[0] || (_cache[0] = createTextVNode(" 完成拼图验证 ")),
|
|
213
213
|
createElementVNode("div", {
|
|
214
214
|
onClick: refresh,
|
|
215
215
|
class: "yu-slider-captcha-refresh-icon"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
2
|
showSliderCaptcha: () => void;
|
|
3
3
|
hideSliderCaptcha: () => void;
|
|
4
|
-
validateResult: import('vue').Ref<boolean>;
|
|
4
|
+
validateResult: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
success: (data: Object) => void;
|
|
7
7
|
fail: (data: Object) => void;
|
|
8
8
|
close: () => void;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
10
|
-
onClose?: (() => any) | undefined;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
11
10
|
onSuccess?: ((data: Object) => any) | undefined;
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
12
|
onFail?: ((data: Object) => any) | undefined;
|
|
13
|
-
}, {}, {}>;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref,
|
|
1
|
+
import { defineComponent, ref, createElementBlock, createCommentVNode, openBlock, createElementVNode, createVNode } from "vue";
|
|
2
2
|
import SliderCaptcha from "./SliderCaptcha";
|
|
3
3
|
const _hoisted_1 = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "yu-slider-captcha-dialog"
|
|
6
6
|
};
|
|
7
|
-
const _hoisted_2 =
|
|
8
|
-
const _hoisted_3 = { class: "yu-slider-captcha-dialog-
|
|
9
|
-
const _hoisted_4 = { class: "yu-slider-captcha
|
|
10
|
-
const _hoisted_5 = { class: "yu-slider-captcha" };
|
|
7
|
+
const _hoisted_2 = { class: "yu-slider-captcha-dialog-wrapper" };
|
|
8
|
+
const _hoisted_3 = { class: "yu-slider-captcha-dialog yu-slider-captcha-slide-up" };
|
|
9
|
+
const _hoisted_4 = { class: "yu-slider-captcha" };
|
|
11
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
11
|
...{ name: "YuSliderCaptchaDialog" },
|
|
13
12
|
__name: "index",
|
|
@@ -43,10 +42,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
43
42
|
});
|
|
44
43
|
return (_ctx, _cache) => {
|
|
45
44
|
return isShowSliderCaptcha.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
46
|
-
|
|
47
|
-
createElementVNode("div",
|
|
48
|
-
createElementVNode("div",
|
|
49
|
-
createElementVNode("div",
|
|
45
|
+
_cache[0] || (_cache[0] = createElementVNode("div", { class: "yu-slider-captcha-dialog-modal" }, null, -1)),
|
|
46
|
+
createElementVNode("div", _hoisted_2, [
|
|
47
|
+
createElementVNode("div", _hoisted_3, [
|
|
48
|
+
createElementVNode("div", _hoisted_4, [
|
|
50
49
|
createVNode(SliderCaptcha, {
|
|
51
50
|
ref: "sliderCaptcha",
|
|
52
51
|
onSuccess: handleSuccess,
|
|
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
55
55
|
getCaptcha();
|
|
56
56
|
};
|
|
57
57
|
const getCaptcha = () => {
|
|
58
|
-
httpConfig.http.get("/sso-api/
|
|
58
|
+
httpConfig.http.get("/sso-api/core/framework-captcha/getSliderCaptcha", { params: {} }).then((res) => {
|
|
59
59
|
key.value = res.data.data.key;
|
|
60
60
|
block.value.src = res.data.data.blockSrc;
|
|
61
61
|
block.value.style.top = res.data.data.blockY + "px";
|
|
@@ -148,7 +148,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
148
|
key: key.value,
|
|
149
149
|
captcha: moveLength
|
|
150
150
|
};
|
|
151
|
-
httpConfig.http.get("/sso-api/
|
|
151
|
+
httpConfig.http.get("/sso-api/core/framework-captcha/validateSliderCaptcha", { params }).then((res) => {
|
|
152
152
|
verifySuccessEvent();
|
|
153
153
|
setTimeout(() => {
|
|
154
154
|
emit("success", { key: key.value, value: moveLength });
|
|
@@ -210,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
210
210
|
return (_ctx, _cache) => {
|
|
211
211
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
212
212
|
vue.createElementVNode("div", _hoisted_2, [
|
|
213
|
-
vue.createTextVNode(" 完成拼图验证 "),
|
|
213
|
+
_cache[0] || (_cache[0] = vue.createTextVNode(" 完成拼图验证 ")),
|
|
214
214
|
vue.createElementVNode("div", {
|
|
215
215
|
onClick: refresh,
|
|
216
216
|
class: "yu-slider-captcha-refresh-icon"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
blockLength?: number;
|
|
3
3
|
blockRadius?: number;
|
|
4
4
|
canvasWidth?: number;
|
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
14
|
sliderHint: string;
|
|
15
15
|
accuracy: number;
|
|
16
16
|
imageList: any;
|
|
17
|
-
}
|
|
17
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
success: (data: Object) => void;
|
|
19
19
|
fail: (data: Object) => void;
|
|
20
20
|
close: () => void;
|
|
@@ -34,11 +34,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
34
34
|
sliderHint: string;
|
|
35
35
|
accuracy: number;
|
|
36
36
|
imageList: any;
|
|
37
|
-
}>>> & {
|
|
38
|
-
onClose?: (() => any) | undefined;
|
|
37
|
+
}>>> & Readonly<{
|
|
39
38
|
onSuccess?: ((data: Object) => any) | undefined;
|
|
39
|
+
onClose?: (() => any) | undefined;
|
|
40
40
|
onFail?: ((data: Object) => any) | undefined;
|
|
41
|
-
}
|
|
41
|
+
}>, {
|
|
42
42
|
blockLength: number;
|
|
43
43
|
blockRadius: number;
|
|
44
44
|
canvasWidth: number;
|
|
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
46
|
sliderHint: string;
|
|
47
47
|
accuracy: number;
|
|
48
48
|
imageList: string[];
|
|
49
|
-
}, {}>;
|
|
49
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
export default _default;
|
|
51
51
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
52
52
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -5,10 +5,9 @@ const _hoisted_1 = {
|
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "yu-slider-captcha-dialog"
|
|
7
7
|
};
|
|
8
|
-
const _hoisted_2 =
|
|
9
|
-
const _hoisted_3 = { class: "yu-slider-captcha-dialog-
|
|
10
|
-
const _hoisted_4 = { class: "yu-slider-captcha
|
|
11
|
-
const _hoisted_5 = { class: "yu-slider-captcha" };
|
|
8
|
+
const _hoisted_2 = { class: "yu-slider-captcha-dialog-wrapper" };
|
|
9
|
+
const _hoisted_3 = { class: "yu-slider-captcha-dialog yu-slider-captcha-slide-up" };
|
|
10
|
+
const _hoisted_4 = { class: "yu-slider-captcha" };
|
|
12
11
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
12
|
...{ name: "YuSliderCaptchaDialog" },
|
|
14
13
|
__name: "index",
|
|
@@ -44,10 +43,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
43
|
});
|
|
45
44
|
return (_ctx, _cache) => {
|
|
46
45
|
return isShowSliderCaptcha.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
47
|
-
|
|
48
|
-
vue.createElementVNode("div",
|
|
49
|
-
vue.createElementVNode("div",
|
|
50
|
-
vue.createElementVNode("div",
|
|
46
|
+
_cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "yu-slider-captcha-dialog-modal" }, null, -1)),
|
|
47
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
48
|
+
vue.createElementVNode("div", _hoisted_3, [
|
|
49
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
51
50
|
vue.createVNode(SliderCaptcha, {
|
|
52
51
|
ref: "sliderCaptcha",
|
|
53
52
|
onSuccess: handleSuccess,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
2
|
showSliderCaptcha: () => void;
|
|
3
3
|
hideSliderCaptcha: () => void;
|
|
4
|
-
validateResult: import('vue').Ref<boolean>;
|
|
4
|
+
validateResult: import('vue').Ref<boolean, boolean>;
|
|
5
5
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
6
|
success: (data: Object) => void;
|
|
7
7
|
fail: (data: Object) => void;
|
|
8
8
|
close: () => void;
|
|
9
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
10
|
-
onClose?: (() => any) | undefined;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
11
10
|
onSuccess?: ((data: Object) => any) | undefined;
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
12
|
onFail?: ((data: Object) => any) | undefined;
|
|
13
|
-
}, {}, {}>;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuang-framework-ui-pc",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.40",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite --host --config vite.global.ts --mode dev",
|
|
@@ -188,6 +188,6 @@
|
|
|
188
188
|
"repository": "",
|
|
189
189
|
"license": "",
|
|
190
190
|
"dependencies": {
|
|
191
|
-
"yuang-framework-ui-common": "^1.0.
|
|
191
|
+
"yuang-framework-ui-common": "^1.0.61"
|
|
192
192
|
}
|
|
193
193
|
}
|