Git Product home page Git Product logo

searchui's Introduction

searchUI 🔍

  • 微信小程序优雅的搜索框

特性

  • 不吹不黑-我们的界面UI还是蛮漂亮的
  • 支持搜索历史
  • 支持搜索历史(记录)缓存
  • 支持热门搜索
  • 支持删除搜索记录、清空搜索记录

##计划

  1. searchUI 2.0 将封装为组件的方式,替代template模板方式,耦合性更好,方便引用

效果

输入状态效果 全部展开效果

使用

1.将component下的wxSearch放入项目中

2.引入wxSearch的方法

```js
	import * as wxSearch from '../../component/wxSearch/wxSearch';

	onLoad: function (options) {
    	//初始渲染-读取storage的历史记录
    	wxSearch.init(this)
  	}
```

3.引入wxSearch的模板文件

```js
	<import src="/component/wxSearch/wxSearch"></import>

	<template is="wxSearch" data="{{...tabData}}"></template>
```

4.引入wxSearch的样式文件

```js
	@import '../../component/wxSearch/wxSearch'
```

说明

  • 使用WXML提供的template,来做组件的封装

  • 不定期更新,围绕易用性和可扩展性提升优化

  • 喜欢请start,您的支持就是我的动力…

  • 项目地址: https://github.com/mrzhang90/searchUI

searchui's People

Contributors

mrzhang90 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.