ant-design-vue
Version:
An enterprise-class UI design language and Vue-based implementation
34 lines (32 loc) • 698 B
JavaScript
import TouchFeedback from '../index';
import './simple.less';
export default {
render: function render() {
var h = arguments[0];
return h(
'div',
{ style: { marginBottom: 12 } },
[h(
TouchFeedback,
{
attrs: { activeClassName: 'active', activeStyle: { color: 'red' } }
},
[h(
'div',
{
'class': 'normal',
style: {
backgroundColor: 'yellow'
},
on: {
'click': function click() {
return console.log('click div');
}
}
},
['click to active']
)]
)]
);
}
};