UNPKG

unique-interface

Version:

无UI组件库

50 lines (49 loc) 1.35 kB
export default { name: 'ui-table', template: require("./index.html"), props: { }, data: function(){ return { x: 'hehe', names: ['a', 'b', 'c', 'd'] }; }, // inject: { // RootMenu: { default: function(){ return false; } }, // SubMenu: { default: function(){ return false; } } // }, provide: function(){ return { Table: this }; }, // render: function(h){ // var _this = this; // return h('table', { // class: { // 'ui-table': true // } // }, [ // h('colgroup', [ // h('col'), // h('col'), // h('col'), // ]), // h('thead', [ // h('tr', [ // h('th', ['test']), // h('th', ['test']), // h('th', ['test']), // ]), // ]), // h('tbody', [0,1,2,3].map(function(num){ // return h('tr', [ // h('td', [num + ' test']), // h('td', (_this.$slots.default || []).concat(_this.$scopedSlots.default(_this))), // h('td', ['test']), // ]) // })) // ]); // }, methods: { } }