|
@@ -1,5 +1,6 @@
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
+// import './assets/css/index.less'
|
|
import AgileTCEditor from './kityminderEditor';
|
|
import AgileTCEditor from './kityminderEditor';
|
|
import { FromChooseItem, ModalTip } from './index'
|
|
import { FromChooseItem, ModalTip } from './index'
|
|
// import t from './index'
|
|
// import t from './index'
|
|
@@ -19,6 +20,11 @@ class App extends React.Component {
|
|
this.setState({ show });
|
|
this.setState({ show });
|
|
}, 100);
|
|
}, 100);
|
|
};
|
|
};
|
|
|
|
+ onDel() {
|
|
|
|
+ this.setState({
|
|
|
|
+ tab: 2
|
|
|
|
+ })
|
|
|
|
+ }
|
|
render() {
|
|
render() {
|
|
const { tab } = this.state;
|
|
const { tab } = this.state;
|
|
let content = null;
|
|
let content = null;
|
|
@@ -28,19 +34,20 @@ class App extends React.Component {
|
|
title = {'删除确认'}
|
|
title = {'删除确认'}
|
|
content = {`删除用例集将会一并删除它的子用例集和用例,是否确定删除?`}
|
|
content = {`删除用例集将会一并删除它的子用例集和用例,是否确定删除?`}
|
|
onClose = {() => {
|
|
onClose = {() => {
|
|
- setDelModel(false)
|
|
|
|
|
|
+ // setDelModel(false)
|
|
}}
|
|
}}
|
|
- onOk = {(e) => onDel(e)}
|
|
|
|
|
|
+ onOk = {(e) => this.onDel(e)}
|
|
/>
|
|
/>
|
|
} else {
|
|
} else {
|
|
- content = <FromChooseItem
|
|
|
|
|
|
+ content = <FromChooseItem
|
|
renderFormList={[
|
|
renderFormList={[
|
|
{
|
|
{
|
|
- name: '描述',
|
|
|
|
|
|
+ name: '步骤描述',
|
|
colSpan: 24,
|
|
colSpan: 24,
|
|
- key: 'remark',
|
|
|
|
- type: 'textarea',
|
|
|
|
- placeholder: '请填写描述'
|
|
|
|
|
|
+ key: 'stepDescription',
|
|
|
|
+ type: 'editor',
|
|
|
|
+ required: true,
|
|
|
|
+ placeholder: '请输入用例操作步骤',
|
|
}
|
|
}
|
|
]}
|
|
]}
|
|
valueData={{}}
|
|
valueData={{}}
|
|
@@ -48,11 +55,14 @@ class App extends React.Component {
|
|
onChange={(key, value) => console.log(111)}
|
|
onChange={(key, value) => console.log(111)}
|
|
/>;
|
|
/>;
|
|
}
|
|
}
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.onDel()
|
|
|
|
+ }, 2000)
|
|
return (
|
|
return (
|
|
<div>
|
|
<div>
|
|
<Button onClick={() => this.handleClick(1, false)}>1</Button>
|
|
<Button onClick={() => this.handleClick(1, false)}>1</Button>
|
|
<button onClick={() => this.handleClick(2, true)}>2</button>
|
|
<button onClick={() => this.handleClick(2, true)}>2</button>
|
|
- <div>{content}</div>
|
|
|
|
|
|
+ <div style={{width: '900px'}}>{content}</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
}
|
|
}
|