Coder Social home page Coder Social logo

aliqin / atui Goto Github PK

View Code? Open in Web Editor NEW
670.0 46.0 64.0 88.93 MB

A Vue.js 2.0 UI Toolkit for Web

Home Page: https://aliqin.github.io/atui

License: MIT License

JavaScript 31.35% HTML 1.16% Shell 0.11% Vue 30.53% Less 36.84%
vue ui-kit vue-components javascript ui-components vue2 ui-toolkit

atui's Introduction

如果你有Vue组件建设经验,欢迎你加入我们一起完善ATUI

ATUI

Build Status codecov NPM download NPM version gzip size:JS gzip size:css license Gitter

A Vue.js 2.0 UI Toolkit for Web

require Vue.js >=v2.1.4


Install

$ npm install atui --save-dev

Quick Start

// css
import 'atui/dist/greater-blue.css'

// import atui
import atui from 'atui'

new Vue({
  components: {
    vButton: atui.Button,
    vDatePicker: atui.DatePicker
  }
})

// use as required
import vDatePicker from 'atui/lib/date-picker';
new Vue({
  components: {
    vDatePicker: vDatePicker
  }
})

use in browser

<script src="//unpkg.com/[email protected]"></script>
<script src="//unpkg.com/atui"></script>
<script>
  new Vue({
    components: {
      vButton: atui.Button
    }
  })
</script>

Roadmap

https://github.com/aliqin/atui/wiki/roadmap

License

MIT

Thanks

atui's People

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

atui's Issues

npm install atui --save It can't work

I created my project by vue-cli webpack template
and install atui .
npm install atui --save
Then I created a vue file

<template>
  <div>
    <Alert></Alert>
  </div>
</template>
<script>
  import atui from 'atui'
  export default{
    components: {
      Alert: atui.Alert
    }
  }
</script>

when I compiled the code , 2 warnings

warning in ./~/atui/dist/atui.js

Critical dependencies:
7:82-97 the request of a dependency is an expression

@ ./~/atui/dist/atui.js 7:82-97

warning in ./~/atui/dist/atuiFilter.js

Critical dependencies:
7:82-97 the request of a dependency is an expression

@ ./~/atui/dist/atuiFilter.js 7:82-97

And I use chrome open the url localhost:8080
1

2
It cant work .

表格自定义展示列

给表格添加自定义展示列,仅显示title,不显示内容,也不报错
default

`<style lang="less">
</style>

if dataSource is null, i will displayed
年龄:{{props.record.age}} 操作 <script> import atui from 'atui'; const dataSource = [{ key: '1', name: '胡彦斌 ', age: 321, address: '西湖区湖底公园1号' }, { key: '2', name: '胡彦祖', age: 422, address: '西湖区湖底公园1号' }]; const columns = [{ title: '姓名', dataIndex: 'name', key: 'name', }, { title: '年龄', dataIndex: 'age', key: 'age', }, { title: '住址', dataIndex: 'address', key: 'address', },{ title: '操作', key: 'operation' }]; export default { components: { vTable: atui.Table, vButton: atui.Button }, data() { return { dataSource:dataSource, columns:columns } }, created() { console.log('component c created !'); }, methods: { // } } </script>

`
相关版本:
"atui": "0.0.30",
"babel-preset-es2015": "^6.18.0",
"vue": "^2.1.10",
"vue-router": "^2.2.0",
"vueify-insert-css": "^1.0.0"

表格属性@row-click,处理方法传参问题

给表格设置

<v-table :data-source="stdDataSource" :columns="stdColumns" :row-selection="stdRowSelection" row-key="id" class="std-lib-content" @rowClick="trigLink(rowIndex,record)">`
trigLink (rowIndex, record){
	console.log(rowIndex);
	console.log(record);
//	baseItemToBeLinked[0]["link"] = record.name;
//	this.baseDataSource.splice(this.baseDataSource.indexOf(baseItemToBeLinked[0]), 1, baseItemToBeLinked[0]);
//	baseItemToBeLinked.pop();
},

两次打印都是undefined

English Version?

First of all, ATUI looks really good, and is much more lightweight than Element UI. It looks really well designed and considered.

But unfortunately there aren't any locales, currently. Is it planned to support English, and other languages? I would be happy to help out with bringing localisation to the library. I don't speak any Chinese, but I may be able to figure out many of the cases from context / other libraries localisation files.

Apologies to post this here and ignoring the issue guidelines, which are outlined in Chinese.

btnOkText options doesn't active.

ATUI版本

0.1.31

Vue 版本

2.5.13

操作系统版本 & 浏览器版本

windows chrome 60.0.3112.113

关键代码或在线demo(比如jsfiddle、codepen)

<v-button small v-on:click.native="deleteItem" >Delete Button</v-button>

the deleteItem function:

deleteItem: function(){
                atui.Modal.confirm({
                    title: 'Confirm the operation',
                    content: 'Are you sure to delete this item?',
                    onOk () {
                        console.log('sure')
                    },
                    btnOkText: 'sure',
                    btnCancelText: 'Meditation'
                })
            }

btnOkText的配置是不成功的,还是默认的 “确认”。

Trigger 触发器演示bug

46
当观看过关于Trigger 触发器并点过里面的那些演示之后,切换其他页面会有遗留,刷新也不会消失。

定制模板

请问团队有没有计划开发模板和脚手架,类似于dashboard那种。

Table组件的本地排序没效果

这是没实现吗?
sortAction (column, index, order) {
if (typeof column.sorter === 'function') {
// TODO:客户端排序
}
this.sorderOrder[index] = order
this.sorderOrder = Object.assign([], this.sorderOrder)
this.$emit('table-change', this.pagination, this.filters, {
field: column.dataIndex,
order: order
})
},

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.