vendor: amis 6.13.0 base (fork root)
This commit is contained in:
11
packages/amis-ui/examples/basic/Button.tsx
Normal file
11
packages/amis-ui/examples/basic/Button.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React from 'react';
|
||||
import {Button} from 'amis-ui';
|
||||
|
||||
export default function ButtonExamples() {
|
||||
return (
|
||||
<div className="wrapper">
|
||||
<p>示例: </p>
|
||||
<Button>Button</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
29
packages/amis-ui/examples/basic/OverflowTpl.tsx
Normal file
29
packages/amis-ui/examples/basic/OverflowTpl.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
import {OverflowTpl} from 'amis-ui';
|
||||
|
||||
export default function ButtonExamples() {
|
||||
return (
|
||||
<div className="wrapper">
|
||||
<div className="flex justify-items-start items-center">
|
||||
{[
|
||||
{text: 'Transforming business'},
|
||||
{
|
||||
text: "Innovating, creating, succeeding. Let's make a difference together."
|
||||
},
|
||||
{text: 'Bringing technology to the forefront'},
|
||||
{text: 'Driving change in the industry'},
|
||||
{text: 'Enriching the journey with'}
|
||||
].map((item, index) => (
|
||||
<div
|
||||
className="text-xs inline-flex items-center font-bold leading-sm uppercase px-3 py-1 bg-blue-200 text-blue-700 rounded-full"
|
||||
style={{maxWidth: '190px'}}
|
||||
>
|
||||
<OverflowTpl key={index} tooltip={item.text}>
|
||||
{item.text}
|
||||
</OverflowTpl>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user