@kne/super-select 0.1.21 → 0.1.23
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/README.md +17 -9
- package/dist/index.js +50 -716
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +38 -704
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -439,16 +439,24 @@ const options = [
|
|
|
439
439
|
const BaseExample = () => {
|
|
440
440
|
return (
|
|
441
441
|
<Space wrap>
|
|
442
|
-
<SelectTree
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
labelKey="name"
|
|
446
|
-
/>
|
|
442
|
+
<SelectTree options={options} valueKey="id" labelKey="name" />
|
|
443
|
+
|
|
444
|
+
<SelectTree single options={options} valueKey="id" labelKey="name" />
|
|
447
445
|
|
|
448
|
-
<SelectTree
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
446
|
+
<SelectTree
|
|
447
|
+
name="tree"
|
|
448
|
+
label="树选择"
|
|
449
|
+
options={[
|
|
450
|
+
{
|
|
451
|
+
value: '1',
|
|
452
|
+
label: '父节点'
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: '2',
|
|
456
|
+
label: '子节点',
|
|
457
|
+
parentId: '1'
|
|
458
|
+
}
|
|
459
|
+
]}
|
|
452
460
|
/>
|
|
453
461
|
</Space>
|
|
454
462
|
);
|