diff --git a/package.json b/package.json
index d148a7a..c6f967b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cool-unix",
- "version": "8.0.18",
+ "version": "8.0.19",
"license": "MIT",
"scripts": {
"build-ui": "node ./uni_modules/cool-ui/scripts/generate-types.js",
diff --git a/pages.json b/pages.json
index 8e99252..22866f1 100644
--- a/pages.json
+++ b/pages.json
@@ -429,6 +429,12 @@
"style": {
"navigationBarTitleText": "SVG 图标"
}
+ },
+ {
+ "path": "other/slide-verify",
+ "style": {
+ "navigationBarTitleText": "SlideVerify 滑动验证"
+ }
}
]
},
diff --git a/pages/demo/other/slide-verify.uvue b/pages/demo/other/slide-verify.uvue
new file mode 100644
index 0000000..3f8b7d8
--- /dev/null
+++ b/pages/demo/other/slide-verify.uvue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/home.uvue b/pages/index/home.uvue
index 694f9c9..4b5a9c4 100644
--- a/pages/index/home.uvue
+++ b/pages/index/home.uvue
@@ -438,6 +438,11 @@ const data = computed- (() => {
label: "SVG",
icon: "bubble-chart-line",
path: "/pages/demo/other/svg"
+ },
+ {
+ label: "SlideVerify",
+ icon: "contract-right-fill",
+ path: "/pages/demo/other/slide-verify"
}
]
}
diff --git a/uni_modules/cool-ui/components/cl-slide-verify/cl-slide-verify.uvue b/uni_modules/cool-ui/components/cl-slide-verify/cl-slide-verify.uvue
new file mode 100644
index 0000000..96b92e8
--- /dev/null
+++ b/uni_modules/cool-ui/components/cl-slide-verify/cl-slide-verify.uvue
@@ -0,0 +1,501 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentText }}
+
+
+
+
+
+
+
+
+
diff --git a/uni_modules/cool-ui/components/cl-slide-verify/props.ts b/uni_modules/cool-ui/components/cl-slide-verify/props.ts
new file mode 100644
index 0000000..e09ff60
--- /dev/null
+++ b/uni_modules/cool-ui/components/cl-slide-verify/props.ts
@@ -0,0 +1,28 @@
+import type { PassThroughProps } from "../../types";
+
+export type ClSlideVerifyPassThrough = {
+ className?: string;
+ track?: PassThroughProps;
+ image?: PassThroughProps;
+ progress?: PassThroughProps;
+ slider?: PassThroughProps;
+ icon?: PassThroughProps;
+ text?: PassThroughProps;
+ label?: PassThroughProps;
+};
+
+export type ClSlideVerifyProps = {
+ className?: string;
+ pt?: ClSlideVerifyPassThrough;
+ modelValue?: boolean;
+ mode?: "slide" | "image";
+ size?: number;
+ disabled?: boolean;
+ imageUrl?: string;
+ imageSize?: any;
+ angleThreshold?: number;
+ text?: string;
+ successText?: string;
+ showFail?: boolean;
+ failText?: string;
+};
diff --git a/uni_modules/cool-ui/index.d.ts b/uni_modules/cool-ui/index.d.ts
index 65e51eb..d28ffe5 100644
--- a/uni_modules/cool-ui/index.d.ts
+++ b/uni_modules/cool-ui/index.d.ts
@@ -55,6 +55,7 @@ import type { ClSelectTimeProps, ClSelectTimePassThrough } from "./components/cl
import type { ClSelectTriggerProps, ClSelectTriggerPassThrough } from "./components/cl-select-trigger/props";
import type { ClSignProps, ClSignPassThrough } from "./components/cl-sign/props";
import type { ClSkeletonProps, ClSkeletonPassThrough } from "./components/cl-skeleton/props";
+import type { ClSlideVerifyProps, ClSlideVerifyPassThrough } from "./components/cl-slide-verify/props";
import type { ClSliderProps, ClSliderPassThrough } from "./components/cl-slider/props";
import type { ClStickyProps } from "./components/cl-sticky/props";
import type { ClSwitchProps, ClSwitchPassThrough } from "./components/cl-switch/props";
@@ -127,6 +128,7 @@ declare module "vue" {
"cl-select-trigger": (typeof import('./components/cl-select-trigger/cl-select-trigger.uvue')['default']) & import('vue').DefineComponent;
"cl-sign": (typeof import('./components/cl-sign/cl-sign.uvue')['default']) & import('vue').DefineComponent;
"cl-skeleton": (typeof import('./components/cl-skeleton/cl-skeleton.uvue')['default']) & import('vue').DefineComponent;
+ "cl-slide-verify": (typeof import('./components/cl-slide-verify/cl-slide-verify.uvue')['default']) & import('vue').DefineComponent;
"cl-slider": (typeof import('./components/cl-slider/cl-slider.uvue')['default']) & import('vue').DefineComponent;
"cl-sticky": (typeof import('./components/cl-sticky/cl-sticky.uvue')['default']) & import('vue').DefineComponent;
"cl-switch": (typeof import('./components/cl-switch/cl-switch.uvue')['default']) & import('vue').DefineComponent;