From 876b65d260bea307a2d2d105d8cdf84e07c9d9b6 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Sat, 27 Jan 2024 05:53:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BC=80=E5=8F=91=E6=97=B6?= =?UTF-8?q?=E7=89=B9=E6=AE=8Astring=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/image/image-format.uvue | 4 ++-- pages/component/image/image-path.uvue | 6 +++--- pages/component/image/image.uvue | 2 +- pages/component/input/input.uvue | 2 +- pages/template/drop-card/drop-card@old.uvue | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pages/component/image/image-format.uvue b/pages/component/image/image-format.uvue index 508c9fcc..9139671b 100644 --- a/pages/component/image/image-format.uvue +++ b/pages/component/image/image-format.uvue @@ -97,8 +97,8 @@ type ImageFormat = { format : string - src : string - errorImage ?: string | null + src : string.ImageURIString + errorImage ?: string.ImageURIString | null } diff --git a/pages/component/image/image-path.uvue b/pages/component/image/image-path.uvue index bc740f99..1cfa7506 100644 --- a/pages/component/image/image-path.uvue +++ b/pages/component/image/image-path.uvue @@ -28,7 +28,7 @@ data() { return { title: 'image-path', - outsideStaticPath: './logo.png', + outsideStaticPath: './logo.png' as string.ImageURIString, outsideStaticErrorPath: null as string | null, data: [ { @@ -101,8 +101,8 @@ } type ImagePath = { - src : string - errorImage ?: string | null + src : string.ImageURIString + errorImage ?: string.ImageURIString | null description : string } diff --git a/pages/component/image/image.uvue b/pages/component/image/image.uvue index 40fcd61f..64a5accb 100644 --- a/pages/component/image/image.uvue +++ b/pages/component/image/image.uvue @@ -25,7 +25,7 @@ data() { return { title: 'image', - imageSrc: "/static/test-image/logo.png", + imageSrc: "/static/test-image/logo.png" as string.ImageURIString, loadError: false } }, diff --git a/pages/component/input/input.uvue b/pages/component/input/input.uvue index 7bc96624..bb444764 100644 --- a/pages/component/input/input.uvue +++ b/pages/component/input/input.uvue @@ -259,7 +259,7 @@ inputPassword: true, inputTypeTel: "tel", inputPlaceHolderStyle: "color:red", - inputPlaceHolderClass: "uni-input-placeholder-class", + inputPlaceHolderClass: "uni-input-placeholder-class" as string.ClassString , inputMaxLengthValue: "", onMaxLengthInputValue: "", inputMaxLengthFocus: false, diff --git a/pages/template/drop-card/drop-card@old.uvue b/pages/template/drop-card/drop-card@old.uvue index d709e4bb..52671949 100644 --- a/pages/template/drop-card/drop-card@old.uvue +++ b/pages/template/drop-card/drop-card@old.uvue @@ -32,7 +32,7 @@ '/static/template/drop-card/1.jpg', '/static/template/drop-card/2.jpg', '/static/template/drop-card/3.jpg' - ] + ] as string.ImageURIString[] } }, computed: { -- GitLab