) {
+ if (!window.confirm('sure to delete?')) {
+ return;
+ }
+ e.stopPropagation();
+ }
+
+ render() {
+ const customLabel = (
+ operations:
+ Edit
+
+ this.onDel(e)}>Delete
+ );
+ return (
+
simple
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+ }
+}
diff --git a/rc-tree/tsconfig.json b/rc-tree/tsconfig.json
new file mode 100644
index 0000000000..3af3996eaf
--- /dev/null
+++ b/rc-tree/tsconfig.json
@@ -0,0 +1,26 @@
+{
+ "compilerOptions": {
+ "module": "commonjs",
+ "lib": [
+ "es6",
+ "dom"
+ ],
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "noUnusedParameters": true,
+ "noUnusedLocals": true,
+ "strictNullChecks": true,
+ "baseUrl": "../",
+ "jsx": "react",
+ "typeRoots": [
+ "../"
+ ],
+ "types": [],
+ "noEmit": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.d.ts",
+ "rc-tree-tests.tsx"
+ ]
+}
diff --git a/rc-tree/tslint.json b/rc-tree/tslint.json
new file mode 100644
index 0000000000..377cc837d4
--- /dev/null
+++ b/rc-tree/tslint.json
@@ -0,0 +1 @@
+{ "extends": "../tslint.json" }