@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 CHANGED
@@ -439,16 +439,24 @@ const options = [
439
439
  const BaseExample = () => {
440
440
  return (
441
441
  <Space wrap>
442
- <SelectTree
443
- options={options}
444
- valueKey="id"
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 single
449
- options={options}
450
- valueKey="id"
451
- labelKey="name"
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
  );