提交 876b65d2 编写于 作者: W wanganxp

完善开发时特殊string类型

上级 3e5dc43e
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
type ImageFormat = { type ImageFormat = {
format : string format : string
src : string src : string.ImageURIString
errorImage ?: string | null errorImage ?: string.ImageURIString | null
} }
</script> </script>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
data() { data() {
return { return {
title: 'image-path', title: 'image-path',
outsideStaticPath: './logo.png', outsideStaticPath: './logo.png' as string.ImageURIString,
outsideStaticErrorPath: null as string | null, outsideStaticErrorPath: null as string | null,
data: [ data: [
{ {
...@@ -101,8 +101,8 @@ ...@@ -101,8 +101,8 @@
} }
type ImagePath = { type ImagePath = {
src : string src : string.ImageURIString
errorImage ?: string | null errorImage ?: string.ImageURIString | null
description : string description : string
} }
</script> </script>
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
data() { data() {
return { return {
title: 'image', title: 'image',
imageSrc: "/static/test-image/logo.png", imageSrc: "/static/test-image/logo.png" as string.ImageURIString,
loadError: false loadError: false
} }
}, },
......
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
inputPassword: true, inputPassword: true,
inputTypeTel: "tel", inputTypeTel: "tel",
inputPlaceHolderStyle: "color:red", inputPlaceHolderStyle: "color:red",
inputPlaceHolderClass: "uni-input-placeholder-class", inputPlaceHolderClass: "uni-input-placeholder-class" as string.ClassString ,
inputMaxLengthValue: "", inputMaxLengthValue: "",
onMaxLengthInputValue: "", onMaxLengthInputValue: "",
inputMaxLengthFocus: false, inputMaxLengthFocus: false,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
'/static/template/drop-card/1.jpg', '/static/template/drop-card/1.jpg',
'/static/template/drop-card/2.jpg', '/static/template/drop-card/2.jpg',
'/static/template/drop-card/3.jpg' '/static/template/drop-card/3.jpg'
] ] as string.ImageURIString[]
} }
}, },
computed: { computed: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册