From cf3e478e14323d70153d7ffc133317ca13316069 Mon Sep 17 00:00:00 2001 From: bplok20010 Date: Wed, 24 Jun 2020 21:25:58 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.1=20ts=E7=B1=BB=E5=9E=8B=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/asset-manifest.json | 4 ++-- docs/index.html | 2 +- ...{index.387855a9.chunk.css => index.9db466e2.chunk.css} | 0 .../{index.387855a9.chunk.js => index.9db466e2.chunk.js} | 0 package.json | 2 +- src/index.tsx | 8 ++++---- 7 files changed, 9 insertions(+), 9 deletions(-) rename docs/static/css/{index.387855a9.chunk.css => index.9db466e2.chunk.css} (100%) rename docs/static/js/{index.387855a9.chunk.js => index.9db466e2.chunk.js} (100%) diff --git a/README.md b/README.md index 7369991..29a3b31 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ export default () => ### Interfaces ```ts -export interface TreeProps { +export interface TreeBasicProps { /** 样式前缀 */ prefixCls: string; /** 样式名称 */ diff --git a/docs/asset-manifest.json b/docs/asset-manifest.json index 422fdc9..1fb8af0 100644 --- a/docs/asset-manifest.json +++ b/docs/asset-manifest.json @@ -1,6 +1,6 @@ { - "index.css": "static/css/index.387855a9.chunk.css", - "index.js": "static/js/index.387855a9.chunk.js", + "index.css": "static/css/index.9db466e2.chunk.css", + "index.js": "static/js/index.9db466e2.chunk.js", "runtime-index.js": "static/js/runtime-index.92eae014.js", "static/js/2.e9b6bfc8.chunk.js": "static/js/2.e9b6bfc8.chunk.js", "index.html": "index.html" diff --git a/docs/index.html b/docs/index.html index d596933..01caa02 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1 +1 @@ -Tree Basic
\ No newline at end of file +Tree Basic
\ No newline at end of file diff --git a/docs/static/css/index.387855a9.chunk.css b/docs/static/css/index.9db466e2.chunk.css similarity index 100% rename from docs/static/css/index.387855a9.chunk.css rename to docs/static/css/index.9db466e2.chunk.css diff --git a/docs/static/js/index.387855a9.chunk.js b/docs/static/js/index.9db466e2.chunk.js similarity index 100% rename from docs/static/js/index.387855a9.chunk.js rename to docs/static/js/index.9db466e2.chunk.js diff --git a/package.json b/package.json index 2a7d2b9..4a64c4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-widget-tree-basic", - "version": "1.0.0", + "version": "1.0.1", "description": "tree-basic", "main": "cjs/index.js", "module": "esm/index.js", diff --git a/src/index.tsx b/src/index.tsx index e93c192..0c9fea8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -43,7 +43,7 @@ export interface LoadRenderProps { data: T; } -export interface TreeProps { +export interface TreeBasicProps { /** 样式前缀 */ prefixCls: string; /** 样式名称 */ @@ -87,7 +87,7 @@ export interface TreeState { expandedMap: Record; } -export class TreeBasic extends React.Component, TreeState> { +export class TreeBasic extends React.Component, TreeState> { static defaultProps = { prefixCls: "rw-tree", rootId: null, @@ -104,14 +104,14 @@ export class TreeBasic extends React.Component, TreeS rootComponent: "div", }; - static getDerivedStateFromProps(nextProps: TreeProps) { + static getDerivedStateFromProps(nextProps: TreeBasicProps) { return { expandedIds: nextProps.expandedIds, expandedMap: toMarked(nextProps.expandedIds || []), }; } - constructor(props: TreeProps) { + constructor(props: TreeBasicProps) { super(props); this.state = {