需要开发 IM
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
<script setup>
|
||||
const props = defineProps()
|
||||
const props = defineProps({
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: '请输入内容'
|
||||
}
|
||||
})
|
||||
|
||||
const placeholderStyle = `font-family: PingFang SC, PingFang SC; font-weight: 500; color: #666666; font-size: 24rpx; font-style: normal; text-transform: none;`
|
||||
|
||||
@@ -19,7 +24,7 @@
|
||||
<input
|
||||
v-model="name"
|
||||
:placeholder-style="placeholderStyle"
|
||||
placeholder="请输入内容"
|
||||
:placeholder="props.placeholder"
|
||||
class="search-box"
|
||||
/>
|
||||
<button class="search-btn">搜索</button>
|
||||
|
||||
Reference in New Issue
Block a user