acdr-ui/dist/dev/mp-weixin/components/Search.js.map

1 line
2.3 KiB
Plaintext

{"version":3,"file":"Search.js","sources":["../../../../src/components/Search.vue","../../../../uniComponent:/RDovQXBwL1dvcmsvYWRkci9hY2RyLXVpL3NyYy9jb21wb25lbnRzL1NlYXJjaC52dWU"],"sourcesContent":["<template>\n <view class=\"w-full h-full\">\n <wd-search\n v-model=\"value\"\n placeholder=\"搜索...\"\n cancel-txt=\"搜索\"\n @search=\"search\"\n @cancel=\"search\"\n >\n <template #prefix>\n <wd-popover mode=\"menu\" :content=\"menu\" @menuclick=\"changeSearchType\">\n <view class=\"search-type\">\n <text>{{ searchType }}</text>\n <wd-icon custom-class=\"icon-arrow\" name=\"fill-arrow-down\"></wd-icon>\n </view>\n </wd-popover>\n </template>\n </wd-search>\n </view>\n</template>\n\n<script lang=\"js\" setup>\nconst searchType = ref('全部')\nconst value = ref('')\nconst menu = ref([\n {\n content: '全部',\n },\n {\n content: '上门服务',\n },\n {\n content: '宠物陪伴',\n },\n {\n content: '宠物陪遛',\n },\n {\n content: '宠物商城',\n },\n])\n\n// 搜索结果\nconst search = ({ value }) => {}\n\n// 改变搜索值\nconst changeSearchType = ({ item, index }) => {\n searchType.value = item.content\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.search-type {\n position: relative;\n height: 30px;\n line-height: 30px;\n padding: 0 8px 0 16px;\n}\n.search-type::after {\n position: absolute;\n content: '';\n width: 1px;\n right: 0;\n top: 5px;\n bottom: 5px;\n background: rgba(0, 0, 0, 0.25);\n}\n.search-type {\n :deep(.icon-arrow) {\n display: inline-block;\n font-size: 20px;\n vertical-align: middle;\n }\n}\n.wd-search {\n background-color: #ff8261;\n}\n</style>\n","import Component from 'D:/App/Work/addr/acdr-ui/src/components/Search.vue'\nwx.createComponent(Component)"],"names":["ref","value"],"mappings":";;;;;;;;;;;;;;;;;AAsBA,UAAM,aAAaA,cAAG,IAAC,IAAI;AAC3B,UAAM,QAAQA,cAAG,IAAC,EAAE;AACpB,UAAM,OAAOA,cAAAA,IAAI;AAAA,MACf;AAAA,QACE,SAAS;AAAA,MACV;AAAA,MACD;AAAA,QACE,SAAS;AAAA,MACV;AAAA,MACD;AAAA,QACE,SAAS;AAAA,MACV;AAAA,MACD;AAAA,QACE,SAAS;AAAA,MACV;AAAA,MACD;AAAA,QACE,SAAS;AAAA,MACV;AAAA,IACH,CAAC;AAGD,UAAM,SAAS,CAAC,EAAE,OAAAC,OAAK,MAAO;AAAA,IAAE;AAGhC,UAAM,mBAAmB,CAAC,EAAE,MAAM,YAAY;AAC5C,iBAAW,QAAQ,KAAK;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;AC/CA,GAAG,gBAAgB,SAAS;"}