Coder Social home page Coder Social logo

webui4angular's Introduction

WebUI4Angular

a set of components with angularjs, which includes Datagrid,tree,dialog,progress,tilelist,tabset,dividedbox,imageview and so on.

参照了UI Bootstrap等组件的写法,主要对指令进行了自己的封装,我们希望通过angular的指令编写一套类似flex的声明式UI组件,使得页面代码更加简洁,可读性更强。

#Quickstart 组件demo在线演示

#Setup & Install 安装: npm install

运行构建:gulp build

构建清理:gulp clean

运行测试:gulp test

生成文档:gulp doc

webui4angular's People

Contributors

wi4angular avatar

Stargazers

 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  avatar  avatar

webui4angular's Issues

camerascanner

camerascanner组件在没有摄像头时应该提示下没有检测到设备比较好

tree 数据源中children为空数组[],被解析成undefined

发现(两种情况):
1、在controller中直接定义数据源
$scope.treeData = [
{
name: 'aaa',
children: []
},
{
name: 'bbb',
children: []
}
];
log中打印出来的children是Array[0]
2、在$timeout或者post请求等回调函数内
数据源:
$scope.treeData = [
{
name: 'aaa',
children: []
},
{
name: 'bbb',
children: []
}
];
log中打印出来的children是undefined
并且加上了tree相关的hover属性。

调试结果:
a、打印源码中$watch dataprovider 数据源
发现:newVal与执行过transData函数后的数据源是已经被转换了的

b、打断点执行到treeService也是直接跳过(看不到传入的值与返回值,这边不知道是不是我没找到)

实在不知道哪边对数据源进行操作了~~

问:
这个空数组变成undefined 是json转hash导致的吗?这边如何做可以改成长度为0的空数组,不要变成undefined(~ ̄▽ ̄)~

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.