x-ui-design 1.0.6 → 1.0.8
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.
|
@@ -588,7 +588,7 @@ const Select = ({
|
|
|
588
588
|
|
|
589
589
|
const title = typeof option === 'string' ? option : option?.children || option?.label || option?.value || null
|
|
590
590
|
|
|
591
|
-
return <div
|
|
591
|
+
return <div style={{ display: 'contents' }}>{title}</div>;
|
|
592
592
|
}, [extractedOptions, selected]) || selected || null;
|
|
593
593
|
|
|
594
594
|
const hasMaxTagCount = hasMode && (typeof maxTagCount === 'number' || maxTagCount === 'responsive');
|
package/package.json
CHANGED
package/src/app/page.tsx
CHANGED
|
@@ -9,13 +9,13 @@ import Tag from "../../lib/components/Select/Tag/Tag";
|
|
|
9
9
|
|
|
10
10
|
export default function Home() {
|
|
11
11
|
return (
|
|
12
|
-
<Select mode="tags"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
<Select mode="tags"
|
|
13
|
+
tagRender={(tagProps) => {
|
|
14
|
+
return <Tag {...tagProps}>{tagProps.value}</Tag>
|
|
15
|
+
}}
|
|
16
|
+
options={[{ value: 'tag_1', label: 'Tag 1' }]}
|
|
17
17
|
/>
|
|
18
|
-
|
|
18
|
+
// {/* <Option value={'tag_1'}>tag 1</Option> */}
|
|
19
19
|
// </Select>
|
|
20
20
|
)
|
|
21
21
|
}
|