add eventlistener to cells

This commit is contained in:
2018-10-19 17:34:51 +08:00
parent 5199d4e44e
commit 6a7d803dae
7 changed files with 298 additions and 151 deletions

View File

@@ -10,26 +10,6 @@
<body>
<div id='designer'>
<div id='table-creator'>
<label>列数</label> <input id='totalCol' type="text" value='10'> <br>
<label>行数</label> <input id='totalRow' type="text" value='10'> <br>
<button id='submitRowCol'>创建表格</button>
</div>
<div id='cell-info'>
<label>颜色</label> <input type="text" name='color'>
<label>单元Id</label> <input type="text" name='cellId'>
<label>字体</label> <input type="text" name='font'>
<label>字体大小</label> <input type="text" name='fontSize'>
<label>颜色</label> <input type="text" name='fontColor'>
<label>加粗</label> <input type="text" name='fontWeight'>
<label>斜体</label> <input type="text" name='fontStyle'>
<label>下划线</label> <input type="text" name='textDecoration'>
<label>边框</label> <input type="text" name='border'>
<label>背景颜色</label> <input type="text" name='backgroundColor'>
<label>位置</label> <input type="text" name='textAlign'>
<button id='update'>更新</button>
</div>
</div>
<div id='app'>
@@ -38,6 +18,15 @@
</div>
<div id='cntnr'>
<ul id='items'>
<li id='delete-table'>删除表格</li>
<li id='delete-current-row'>删除当前行</li>
<li id='insert-top-row'>上插入行</li>
</ul>
</div>