@rc-component/tree-select 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +22 -0
- package/README.md +140 -0
- package/assets/icons.png +0 -0
- package/assets/index.less +2 -0
- package/assets/loading.gif +0 -0
- package/assets/minus.gif +0 -0
- package/assets/select.less +3 -0
- package/assets/tree.less +3 -0
- package/dist/223.90c7e648.async.js +3 -0
- package/dist/338.a2a48f3b.async.js +15 -0
- package/dist/338.e8c51481.chunk.css +5 -0
- package/dist/404.html +20 -0
- package/dist/439.67bede3f.async.js +137 -0
- package/dist/929.df8dd03f.async.js +32 -0
- package/dist/demo/basic/index.html +20 -0
- package/dist/demo/big-data/index.html +20 -0
- package/dist/demo/controlled/index.html +20 -0
- package/dist/demo/custom-icons/index.html +20 -0
- package/dist/demo/debug/index.html +20 -0
- package/dist/demo/disable/index.html +20 -0
- package/dist/demo/dynamic/index.html +20 -0
- package/dist/demo/field-names/index.html +20 -0
- package/dist/demo/filter/index.html +20 -0
- package/dist/demo/form/index.html +20 -0
- package/dist/demo/mutiple-with-max-count/index.html +20 -0
- package/dist/demo/tree-node-label-prop/index.html +20 -0
- package/dist/demo/width/index.html +20 -0
- package/dist/demos.f221b577.async.js +1 -0
- package/dist/docs__demo__basic.md.bcb0edb7.async.js +1 -0
- package/dist/docs__demo__big-data.md.8783cd6b.async.js +1 -0
- package/dist/docs__demo__controlled.md.e65ef7d7.async.js +1 -0
- package/dist/docs__demo__custom-icons.md.d53bf2f9.async.js +1 -0
- package/dist/docs__demo__debug.md.099ad226.async.js +1 -0
- package/dist/docs__demo__disable.md.6ba57652.async.js +1 -0
- package/dist/docs__demo__dynamic.md.f7559890.async.js +1 -0
- package/dist/docs__demo__fieldNames.md.16131d9f.async.js +1 -0
- package/dist/docs__demo__filter.md.02527db4.async.js +1 -0
- package/dist/docs__demo__form.md.6b77dffe.async.js +1 -0
- package/dist/docs__demo__mutiple-with-maxCount.md.7268d4ad.async.js +1 -0
- package/dist/docs__demo__treeNodeLabelProp.md.24709916.async.js +1 -0
- package/dist/docs__demo__width.md.24bfecd6.async.js +1 -0
- package/dist/docs__index.md.a6e45331.async.js +1 -0
- package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.f56a0670.async.js +1 -0
- package/dist/index.html +20 -0
- package/dist/meta__docs.255fc42b.chunk.css +1 -0
- package/dist/meta__docs.dbf04b66.async.js +3359 -0
- package/dist/nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css +1 -0
- package/dist/nm__dumi__dist__client__pages__404.ca2add38.async.js +1 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.29e9ef8f.async.js +1 -0
- package/dist/nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css +1 -0
- package/dist/nm__dumi__theme-default__layouts__DocLayout__index.8ed833d7.async.js +1 -0
- package/dist/preload_helper.d41c4da0.js +1 -0
- package/dist/umi.4f47b921.js +124 -0
- package/dist/umi.8faca2de.css +1 -0
- package/dist/~demos/:id/index.html +20 -0
- package/dist/~demos/docs-demo-basic-demo-basic/index.html +20 -0
- package/dist/~demos/docs-demo-big-data-demo-big-data/index.html +20 -0
- package/dist/~demos/docs-demo-controlled-demo-controlled/index.html +20 -0
- package/dist/~demos/docs-demo-custom-icons-demo-custom-icons/index.html +20 -0
- package/dist/~demos/docs-demo-debug-demo-debug/index.html +20 -0
- package/dist/~demos/docs-demo-disable-demo-disable/index.html +20 -0
- package/dist/~demos/docs-demo-dynamic-demo-dynamic/index.html +20 -0
- package/dist/~demos/docs-demo-field-names-demo-fieldnames/index.html +20 -0
- package/dist/~demos/docs-demo-filter-demo-filter/index.html +20 -0
- package/dist/~demos/docs-demo-form-demo-form/index.html +20 -0
- package/dist/~demos/docs-demo-mutiple-with-max-count-demo-mutiple-with-maxcount/index.html +20 -0
- package/dist/~demos/docs-demo-tree-node-label-prop-demo-treenodelabelprop/index.html +20 -0
- package/dist/~demos/docs-demo-width-demo-width/index.html +20 -0
- package/es/LegacyContext.d.ts +24 -0
- package/es/LegacyContext.js +3 -0
- package/es/OptionList.d.ts +8 -0
- package/es/OptionList.js +351 -0
- package/es/TreeNode.d.ts +9 -0
- package/es/TreeNode.js +5 -0
- package/es/TreeSelect.d.ts +65 -0
- package/es/TreeSelect.js +507 -0
- package/es/TreeSelectContext.d.ts +25 -0
- package/es/TreeSelectContext.js +3 -0
- package/es/hooks/useCache.d.ts +7 -0
- package/es/hooks/useCache.js +32 -0
- package/es/hooks/useCheckedKeys.d.ts +5 -0
- package/es/hooks/useCheckedKeys.js +21 -0
- package/es/hooks/useDataEntities.d.ts +7 -0
- package/es/hooks/useDataEntities.js +26 -0
- package/es/hooks/useFilterTreeData.d.ts +8 -0
- package/es/hooks/useFilterTreeData.js +33 -0
- package/es/hooks/useRefFunc.d.ts +5 -0
- package/es/hooks/useRefFunc.js +14 -0
- package/es/hooks/useTreeData.d.ts +7 -0
- package/es/hooks/useTreeData.js +52 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +5 -0
- package/es/interface.d.ts +57 -0
- package/es/interface.js +1 -0
- package/es/utils/legacyUtil.d.ts +5 -0
- package/es/utils/legacyUtil.js +120 -0
- package/es/utils/strategyUtil.d.ts +7 -0
- package/es/utils/strategyUtil.js +25 -0
- package/es/utils/valueUtil.d.ts +11 -0
- package/es/utils/valueUtil.js +30 -0
- package/es/utils/warningPropsUtil.d.ts +5 -0
- package/es/utils/warningPropsUtil.js +30 -0
- package/lib/LegacyContext.d.ts +24 -0
- package/lib/LegacyContext.js +11 -0
- package/lib/OptionList.d.ts +8 -0
- package/lib/OptionList.js +359 -0
- package/lib/TreeNode.d.ts +9 -0
- package/lib/TreeNode.js +11 -0
- package/lib/TreeSelect.d.ts +65 -0
- package/lib/TreeSelect.js +516 -0
- package/lib/TreeSelectContext.d.ts +25 -0
- package/lib/TreeSelectContext.js +11 -0
- package/lib/hooks/useCache.d.ts +7 -0
- package/lib/hooks/useCache.js +41 -0
- package/lib/hooks/useCheckedKeys.d.ts +5 -0
- package/lib/hooks/useCheckedKeys.js +29 -0
- package/lib/hooks/useDataEntities.d.ts +7 -0
- package/lib/hooks/useDataEntities.js +36 -0
- package/lib/hooks/useFilterTreeData.d.ts +8 -0
- package/lib/hooks/useFilterTreeData.js +41 -0
- package/lib/hooks/useRefFunc.d.ts +5 -0
- package/lib/hooks/useRefFunc.js +21 -0
- package/lib/hooks/useTreeData.d.ts +7 -0
- package/lib/hooks/useTreeData.js +60 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +35 -0
- package/lib/interface.d.ts +57 -0
- package/lib/interface.js +5 -0
- package/lib/utils/legacyUtil.d.ts +5 -0
- package/lib/utils/legacyUtil.js +131 -0
- package/lib/utils/strategyUtil.d.ts +7 -0
- package/lib/utils/strategyUtil.js +32 -0
- package/lib/utils/valueUtil.d.ts +11 -0
- package/lib/utils/valueUtil.js +41 -0
- package/lib/utils/warningPropsUtil.d.ts +5 -0
- package/lib/utils/warningPropsUtil.js +37 -0
- package/package.json +89 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.dumi-default-not-found{display:flex;flex-direction:column;height:65vh;align-items:center;justify-content:center}.dumi-default-not-found>h1{position:relative;margin:24px 0;color:#e4e9ec;font-size:78px;font-weight:700;text-shadow:-1px -1px 0 #d0d5d8}[data-prefers-color=dark] .dumi-default-not-found>h1{color:#2a353c;text-shadow:-1px -1px 0 #1c2022}.dumi-default-not-found>a{color:#1677ff}[data-prefers-color=dark] .dumi-default-not-found>a{color:#0053c8}.dumi-default-not-found>a:not(:hover){text-decoration:none}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_rc_component_tree_select=self.webpackChunk_rc_component_tree_select||[]).push([[65],{80562:function(o,n,e){e.r(n),e.d(n,{default:function(){return u}});var t=e(37825),a=e(96162),l=function(){var r=(0,t.YB)(),c=(0,t.bU)();return a.createElement("div",{className:"dumi-default-not-found"},a.createElement("h1",null,r.formatMessage({id:"404.title"})),a.createElement(t.rU,{to:"base"in c?c.base:"/",replace:!0},r.formatMessage({id:"404.back"})," \u2192"))},u=l}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_rc_component_tree_select=self.webpackChunk_rc_component_tree_select||[]).push([[9],{6314:function(L,c,e){e.r(c),e.d(c,{default:function(){return E}});var t=e(37825),n=e(96162),D=e(45e3),g=function(){var O=(0,t.UO)(),o=O.id,a=(0,t.FO)(o),R=(0,D.m)({id:o,component:a.component,renderOpts:a.renderOpts}),h=R.canvasRef,i=a||{},m=i.component,d=i.renderOpts,r=(0,t.kw)(o),s=r.node,v=r.setSource,u=r.error,l=r.loading,w=s||(d!=null&&d.renderer?(0,n.createElement)("div",{ref:h}):m&&(0,n.createElement)(m));return(0,n.useEffect)(function(){var f=function(p){p.data.type==="dumi.liveDemo.setSource"&&v(p.data.value)};return window.addEventListener("message",f),function(){return window.removeEventListener("message",f)}},[v]),(0,n.useEffect)(function(){!l&&(u||s)&&window.postMessage({type:"dumi.liveDemo.compileDone",value:{err:u}})},[u,s,l]),w},E=g}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body{margin:0;padding:0}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_rc_component_tree_select=self.webpackChunk_rc_component_tree_select||[]).push([[519],{21511:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(21447)},22432:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(83192)},15437:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(69177)},10463:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(73082)},12773:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(11536)},78411:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(44890)},96589:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(72111)},67834:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(69275)},91032:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(52389)},2088:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(40738)},16479:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(72857)},99224:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(1373)},24144:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(86732)},29450:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(69698)},81220:function(n,e,_){_.d(e,{ZP:function(){return t.ZP}});var t=_(94204)},33722:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(66753)},31173:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(2405)},95280:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(72184)},7232:function(n,e,_){_.d(e,{Z:function(){return t.Z}});var t=_(29240)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"@rc-component/tree-select","b":"webpack","f":[["nm__dumi__dist__client__pages__Demo__index.578aa5c0.chunk.css",9],["nm__dumi__dist__client__pages__Demo__index.29e9ef8f.async.js",9],["nm__dumi__dist__client__pages__404.8b85f2d9.chunk.css",65],["nm__dumi__dist__client__pages__404.ca2add38.async.js",65],["docs__demo__basic.md.bcb0edb7.async.js",166],["docs__demo__controlled.md.e65ef7d7.async.js",222],["docs__demo__disable.md.6ba57652.async.js",227],["docs__demo__custom-icons.md.d53bf2f9.async.js",245],["338.e8c51481.chunk.css",338],["338.a2a48f3b.async.js",338],["nm__dumi__theme-default__layouts__DocLayout__index.8ed833d7.async.js",519],["docs__demo__filter.md.02527db4.async.js",595],["docs__demo__dynamic.md.f7559890.async.js",599],["docs__demo__fieldNames.md.16131d9f.async.js",618],["docs__demo__treeNodeLabelProp.md.24709916.async.js",652],["docs__demo__width.md.24bfecd6.async.js",783],["docs__demo__big-data.md.8783cd6b.async.js",827],["docs__demo__debug.md.099ad226.async.js",889],["docs__demo__mutiple-with-maxCount.md.7268d4ad.async.js",902],["dumi__tmp-production__dumi__theme__ContextWrapper.f56a0670.async.js",923],["docs__index.md.a6e45331.async.js",935],["docs__demo__form.md.6b77dffe.async.js",943]],"r":{"/*":[2,3,8,9,10,19],"/":[20,8,9,10,19],"/~demos/:id":[0,1,19],"/demo/mutiple-with-max-count":[18,8,9,10,19],"/demo/tree-node-label-prop":[14,8,9,10,19],"/demo/custom-icons":[7,8,9,10,19],"/demo/controlled":[5,8,9,10,19],"/demo/field-names":[13,8,9,10,19],"/demo/big-data":[16,8,9,10,19],"/demo/disable":[6,8,9,10,19],"/demo/dynamic":[12,8,9,10,19],"/demo/filter":[11,8,9,10,19],"/demo/basic":[4,8,9,10,19],"/demo/debug":[17,8,9,10,19],"/demo/width":[15,8,9,10,19],"/demo/form":[21,8,9,10,19]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}();
|