|
@@ -74,14 +74,15 @@ app.use(Icon);
|
|
|
<template>
|
|
<template>
|
|
|
<nut-searchbar v-model="searchValue">
|
|
<nut-searchbar v-model="searchValue">
|
|
|
<template v-slot:leftin>
|
|
<template v-slot:leftin>
|
|
|
- <nut-icon size="14" name="search2"></nut-icon>
|
|
|
|
|
|
|
+ <Search2 />
|
|
|
</template>
|
|
</template>
|
|
|
</nut-searchbar>
|
|
</nut-searchbar>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { toRefs, reactive } from 'vue';
|
|
import { toRefs, reactive } from 'vue';
|
|
|
- import { Icon } from '@nutui/nutui';
|
|
|
|
|
|
|
+ import { Search2 } from '@nutui/icons-vue-taro';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: { Search2 },
|
|
|
setup() {
|
|
setup() {
|
|
|
const state = reactive({
|
|
const state = reactive({
|
|
|
searchValue: ""
|
|
searchValue: ""
|
|
@@ -178,23 +179,24 @@ app.use(Icon);
|
|
|
<template>
|
|
<template>
|
|
|
<nut-searchbar v-model="searchValue">
|
|
<nut-searchbar v-model="searchValue">
|
|
|
<template v-slot:leftout>
|
|
<template v-slot:leftout>
|
|
|
- <nut-icon @click="clickLeft" size="20" name="left"></nut-icon>
|
|
|
|
|
|
|
+ <Left @click="clickLeft" />
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:leftin>
|
|
<template v-slot:leftin>
|
|
|
- <nut-icon size="14" name="search2"></nut-icon>
|
|
|
|
|
|
|
+ <Search2 />
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:rightin>
|
|
<template v-slot:rightin>
|
|
|
- <nut-icon size="20" name="photograph"></nut-icon>
|
|
|
|
|
|
|
+ <Photograph />
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:rightout>
|
|
<template v-slot:rightout>
|
|
|
- <nut-icon size="20" name="message"></nut-icon>
|
|
|
|
|
|
|
+ <Message />
|
|
|
</template>
|
|
</template>
|
|
|
</nut-searchbar>
|
|
</nut-searchbar>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { toRefs, reactive } from 'vue';
|
|
import { toRefs, reactive } from 'vue';
|
|
|
- import { Icon } from '@nutui/nutui';
|
|
|
|
|
|
|
+ import { Search2, Left, Photograph, Message } from '@nutui/icons-vue-taro';
|
|
|
export default {
|
|
export default {
|
|
|
|
|
+ components: { Search2, Left, Photograph, Message },
|
|
|
setup() {
|
|
setup() {
|
|
|
const state = reactive({
|
|
const state = reactive({
|
|
|
searchValue: ""
|
|
searchValue: ""
|