{"id":13430108,"url":"https://github.com/icindy/wxSearch","last_synced_at":"2025-03-16T05:30:29.948Z","repository":{"id":75520606,"uuid":"73915345","full_name":"icindy/wxSearch","owner":"icindy","description":"wxSearch-微信小程序优雅的搜索框","archived":false,"fork":false,"pushed_at":"2018-12-16T17:23:51.000Z","size":280,"stargazers_count":531,"open_issues_count":9,"forks_count":160,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-02-12T10:05:02.020Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/icindy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-11-16T11:52:11.000Z","updated_at":"2024-02-12T10:05:02.726Z","dependencies_parsed_at":"2023-06-06T18:00:25.352Z","dependency_job_id":null,"html_url":"https://github.com/icindy/wxSearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icindy%2FwxSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icindy%2FwxSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icindy%2FwxSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icindy%2FwxSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icindy","download_url":"https://codeload.github.com/icindy/wxSearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:00:50.070Z","updated_at":"2025-03-16T05:30:29.930Z","avatar_url":"https://github.com/icindy.png","language":"JavaScript","funding_links":[],"categories":["组件","UI组件","开发阶段"],"sub_categories":["小程序组件"],"readme":"# wxSearch\n\n- 🔍 微信小程序优雅的搜索框\n\n## 来源\n\n## wxParse信息\n\n* 版本号`0.1`\n* github地址: [https://github.com/icindy/wxSearch](https://github.com/icindy/wxSearch)\n\n##  开发信息\n\n[微信小程序开发论坛](http://weappdev.com)\n垂直微信小程序开发交流社区\n\n![小码消息](images/qr.PNG)\n\n## 特性\n\n\n- [x] 支持自定义热门key\n- [x] 支持搜索历史\n- [x] 支持搜索建议\n- [x] 支持搜索历史（记录）缓存\n\n## 效果\n\n![wxSearch效果gif1](screenshoot/wxSearch1.gif)\n![wxSearch效果gif2](screenshoot/wxSearch2.gif)\n\n## 使用\n\n＊ 引入\n```\n// 模版引入\n\u003cimport src=\"/wxSearch/wxSearch.wxml\"/\u003e\n\u003ctemplate is=\"wxSearch\" data=\"{{wxSearchData}}\"/\u003e\n// wxss中引入\n@import \"/wxSearch/wxSearch.wxss\";\n```\n＊ 使用\n\n```\n//wxSearch 暴漏的接口\n\nmodule.exports = {\n    init: init,\n    initColor: initColors,\n    initMindKeys: initMindKeys,\n    wxSearchInput: wxSearchInput,\n    wxSearchFocus: wxSearchFocus,\n    wxSearchBlur: wxSearchBlur,\n    wxSearchKeyTap: wxSearchKeyTap,\n    wxSearchAddHisKey:wxSearchAddHisKey,\n    wxSearchDeleteKey:wxSearchDeleteKey,\n    wxSearchDeleteAll:wxSearchDeleteAll,\n    wxSearchHiddenPancel:wxSearchHiddenPancel\n}\n\n```\n\n```\n//初始化\nonLoad: function () {\n    console.log('onLoad')\n    var that = this\n    //初始化的时候渲染wxSearchdata 第二个为你的search高度\n    WxSearch.init(that,43,['weappdev','小程序','wxParse','wxSearch','wxNotification']);\n    WxSearch.initMindKeys(['weappdev.com','微信小程序开发','微信开发','微信小程序']);\n},\n\n```\n\n```\nwxSearchFn: function(e){\n    var that = this\n    WxSearch.wxSearchAddHisKey(that);\n    \n  },\n  wxSearchInput: function(e){\n    var that = this\n    WxSearch.wxSearchInput(e,that);\n  },\n  wxSerchFocus: function(e){\n    var that = this\n    WxSearch.wxSearchFocus(e,that);\n  },\n  wxSearchBlur: function(e){\n    var that = this\n    WxSearch.wxSearchBlur(e,that);\n  },\n  wxSearchKeyTap:function(e){\n    var that = this\n    WxSearch.wxSearchKeyTap(e,that);\n  },\n  wxSearchDeleteKey: function(e){\n    var that = this\n    WxSearch.wxSearchDeleteKey(e,that);\n  },\n  wxSearchDeleteAll: function(e){\n    var that = this;\n    WxSearch.wxSearchDeleteAll(that);\n  },\n  wxSearchTap: function(e){\n    var that = this\n    WxSearch.wxSearchHiddenPancel(that);\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficindy%2FwxSearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficindy%2FwxSearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficindy%2FwxSearch/lists"}