Commit dc4630e1 by 高源

表格添加types属性值

parent 6499c6e8
......@@ -239,7 +239,7 @@ export default {
// 遍历 Xpaths
for (let i = 0; i < _this.Xpaths.length; i++) {
// _this.Xpaths[i].name = 'ID' + i
_this.table.newCell(_this.Xpaths[i].xpath, _this.Xpaths[i].name, _this.Xpaths[i].type, _this.Xpaths[i].title)
_this.table.newCell(_this.Xpaths[i].xpath, _this.Xpaths[i].name, _this.Xpaths[i].type,_this.Xpaths[i].typeOptions, _this.Xpaths[i].title)
}
_this.table.verify()
_this.table.name = _this.tableName
......
......@@ -14,9 +14,9 @@ function table () {
* 新生成一个单元格
* @param {any} xpath
*/
this.newCell = function (xpath, name, type, title) {
this.newCell = function (xpath, name, type, types,title) {
_isVerified = false;//加入了
let newCell = new cell(xpath, name, type, title);
let newCell = new cell(xpath, name, type,types, title);
this.cells.push(newCell);
}
/**
......@@ -102,7 +102,7 @@ function table () {
* @param {string} type 元素取值类型,文本,链接,元素路径(点击动作用)
* @param {string} title 标题信息
*/
function cell (xpath, name, type, title) {
function cell (xpath, name, type,types, title) {
/**当前单元格的绝对路径,存入Action时有用 */
this.xpath = xpath;
/**当前单元格存储数据时的属性名 */
......@@ -110,7 +110,7 @@ function cell (xpath, name, type, title) {
/**单元格取值类型, 文本,链接,元素路径(点击动作用)*/
this.type = type;
/**当前单元格所具备的可以操作的类型集合 */
this.types = [];
this.types = types;
/** 单元格在表上的表头信息*/
this.title = title;
/**当表结构验证成功后,正确的表绝对路径,不包含下标 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment