diff --git a/components/doc/picklist/basicdoc.js b/components/doc/picklist/basicdoc.js index 5443f0184e..fa73e86b8f 100644 --- a/components/doc/picklist/basicdoc.js +++ b/components/doc/picklist/basicdoc.js @@ -35,7 +35,7 @@ export function BasicDoc(props) { const code = { basic: ` - `, javascript: ` @@ -74,7 +74,7 @@ export default function BasicDemo() { return (
-
); @@ -129,7 +129,7 @@ export default function BasicDemo() { return (
-
); @@ -162,7 +162,18 @@ export default function BasicDemo() {

- +
diff --git a/components/doc/picklist/filterdoc.js b/components/doc/picklist/filterdoc.js index 0465abf2d3..f340ee105d 100644 --- a/components/doc/picklist/filterdoc.js +++ b/components/doc/picklist/filterdoc.js @@ -35,7 +35,7 @@ export function FilterDoc(props) { const code = { basic: ` - `, @@ -75,7 +75,7 @@ export default function FilterDemo() { return (
-
@@ -131,7 +131,7 @@ export default function FilterDemo() { return (
-
@@ -166,6 +166,7 @@ export default function FilterDemo() {
-
); diff --git a/components/lib/picklist/picklist.d.ts b/components/lib/picklist/picklist.d.ts index 2b5684dd1e..ada61bbb95 100755 --- a/components/lib/picklist/picklist.d.ts +++ b/components/lib/picklist/picklist.d.ts @@ -408,7 +408,7 @@ export interface PickListProps { /** * Name of the field that uniquely identifies the a record in the data. */ - dataKey?: string | undefined; + dataKey: string; /** * The breakpoint to define the maximum width boundary when responsiveness is enabled. * @defaultValue '960px'.