Button.js

This commit is contained in:
tengge1 2019-04-28 19:40:51 +08:00
parent b1bca54009
commit 0f966d9c1f
9 changed files with 20 additions and 5 deletions

View File

@ -611,4 +611,5 @@ L_DATA_SOURCE_MANAGE = '数据源管理';
L_SIDEBAR = '侧边栏Demo';
L_PANEL = '面板Demo';
L_BAR_CHART = '条形图Demo';
L_TWO_D = '二维';
L_TWO_D = '二维';
L_BUTTON = '按钮';

View File

@ -28,7 +28,7 @@ TwoDMenu.prototype.render = function () {
children: [{
xtype: 'div',
cls: 'option',
html: 'Button',
html: L_BUTTON,
onClick: this.addButton.bind(this),
}]
}]

View File

@ -610,4 +610,5 @@ Object.assign(window, {
L_PANEL: 'Panel Demo',
L_BAR_CHART: 'Bar Chart Demo',
L_TWO_D: '2D',
L_BUTTON: 'Button',
});

View File

@ -0,0 +1,13 @@
const svgNS = 'http://www.w3.org/2000/svg';
/**
* 按钮
* @param {*} parent
*/
function Button(parent) {
var g = document.createElementNS(svgNS, 'g');
var rect = document.createElement();
}
export default Button;

View File

@ -1,4 +1,4 @@
import Component from '../Component';
import Component from './Component';
/**
* 条形图

View File

@ -1,4 +1,4 @@
import Component from '../Component';
import Component from './Component';
/**
* 面板

View File

@ -1,4 +1,4 @@
import Component from '../Component';
import Component from './Component';
/**
* 侧边栏