From 5199d4e44ee9eed1a38217dafffb7af65d24b670 Mon Sep 17 00:00:00 2001 From: Maoqiang Zheng Date: Thu, 18 Oct 2018 17:35:01 +0800 Subject: [PATCH] start writing page --- copyoftemplateclass.ts | 10 +++---- index.html | 33 ++++++++++++++++----- src/script/TemplateClasses.ts | 48 ++++++++++++++++++++++++++++-- src/script/designerClasses.ts | 26 +++++++++++++--- src/script/main.ts | 56 +++++++++++++++++++++-------------- src/style/style.css | 24 ++++++++++----- 6 files changed, 149 insertions(+), 48 deletions(-) diff --git a/copyoftemplateclass.ts b/copyoftemplateclass.ts index 9e74404..e685dde 100644 --- a/copyoftemplateclass.ts +++ b/copyoftemplateclass.ts @@ -74,11 +74,11 @@ class Table { const inputElements = document.getElementsByClassName("cell-detail"); for (const key in instanceOfCell) { // type script error--------------------------- - for (const input of inputElements) { - if (key === input.name) { - instanceOfCell[key] = input.value; - } - } + // for (const input of inputElements) { + // if (key === input.name) { + // instanceOfCell[key] = input.value; + // } + // } } this.render(); diff --git a/index.html b/index.html index b51a41f..8f86667 100644 --- a/index.html +++ b/index.html @@ -9,16 +9,33 @@ -
-
-