Skip to content

Commit

Permalink
Fix: Demo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrogenous committed Jan 18, 2024
1 parent 8ea7aa4 commit 72f7515
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/doc/contextmenu/templatedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function TemplateDoc(props) {
const cm = useRef(null);

const itemTemplate = (item) => (
<a className="flex align-items-center px-3 py-2 hover:bg-cyan-50 cursor-pointer">
<a className="flex align-items-center px-3 py-2 cursor-pointer">
<span className={item.icon} />
<span className="ml-2">{item.label}</span>
<Badge className="ml-auto" value={item.badge} />
Expand Down
2 changes: 1 addition & 1 deletion components/doc/menubar/templatedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default function TemplateDemo() {
Custom content can be placed inside the menubar using the <i>start</i> and <i>end</i> properties.
</p>
</DocSectionText>
<div className="card relative z-2">
<div className="card relative">
<Menubar model={items} start={start} end={end} />
</div>
<DocSectionCode code={code} />
Expand Down
2 changes: 1 addition & 1 deletion components/doc/treeselect/checkboxdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ export default function CheckboxDemo() {
In checkbox selection mode, value binding should be a key-value pair where key is the node key and value is an object that has <i>checked</i> and <i>partialChecked</i> properties to represent the checked state of a node obje to
indicate selection.
</p>
<DocSectionCode code={introCode} hideToggleCode import hideCodeSandbox hideStackBlitz />
</DocSectionText>
<DocSectionCode code={introCode} hideToggleCode import hideCodeSandbox hideStackBlitz />
<div className="card flex justify-content-center">
<TreeSelect
value={selectedNodeKeys}
Expand Down
2 changes: 1 addition & 1 deletion components/doc/treeselect/multipledoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ export default function MultipleDemo() {
with disabling the <i>metaKeySelection</i> property. Note that in touch enabled devices, TreeSelect always ignores metaKey.
</p>
<p>In multiple selection mode, value binding should be a key-value pair where key is the node key and value is a boolean to indicate selection.</p>
<DocSectionCode code={introCode} hideToggleCode import hideCodeSandbox hideStackBlitz />
</DocSectionText>
<DocSectionCode code={introCode} hideToggleCode import hideCodeSandbox hideStackBlitz />
<div className="card flex justify-content-center">
<TreeSelect value={selectedNodeKeys} onChange={(e) => setSelectedNodeKeys(e.value)} options={nodes} metaKeySelection={false} className="md:w-20rem w-full" selectionMode="multiple" placeholder="Select Items"></TreeSelect>
</div>
Expand Down

0 comments on commit 72f7515

Please sign in to comment.