Giter Site home page Giter Site logo

xiaoyann / iakit Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 7.0 467 KB

无依赖 mini 组件库,只封装了 alert, toast, loading, actionSheet 等使用频率较高的组件。适用于类似 H5 活动页的简单移动端项目,不必为了使用这些组件而引入一个大而全的 UI 库和框架。

License: MIT License

CSS 20.69% JavaScript 79.31%
alert actionsheet toast loading mobile components uikit

iakit's People

Contributors

xiaoyann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

iakit's Issues

想请教一下封装思路

你的代码我只看了一个 alert,里面用的构造函数,以我目前的水平看的并不是很懂;
截止目前为止,我写了2年半的,每次写新页面的时候,常常因为要用一个 日期控件,下拉控件,或者alert什么的 要引入一整个库,但事实上,我需要的只是那几个常用的组件而已;然而,我并不懂 picker的滚动封装原理,而且没有整体封装思路,所以,就没有形成自己的控件库;

以上,是我想要请教封装思路的原因,我也想自己做一套常用的方法库,自己维护,自己更新,适用于自己的公司;

然而,我缺少一个整体的思路;我只看了你的 Alert.js源代码,其他的没有看,我猜想,你其他的js估计是一个风格;

大概是 建立构造函数,构造函数需要各种参数方法,这些参数方法单独提取出来,独立写成函数,return给 构造函数;

我目前的水平 只能从你的源代码中 读出这些东西;

那么最后,我想请教的是:按照你封装的思路,能不能给出一个类似流程图一样的东西,方法步骤图,这样一步一步走下去,可以做成一个库;我想借鉴一下;

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.