Commit d9d71884 authored by 田功镭's avatar 田功镭

*)modify docs

parent 4c5dd8bd
/**
* @title 按钮类型
*/
import { Button } from 'amos-framework';
const ButtonType = () => {
return (
<div>
<Button>默认</Button>
<Button type="minor">次要</Button>
</div>
);
};
/**
* @title 按钮尺寸
*/
import { Button } from 'amos-framework';
const ButtonSize = () => {
return (
<div>
<Button size="lg">大尺寸</Button>
<Button>默认</Button>
<Button size="sm">小尺寸</Button>
</div>
);
};
/**
* @title 图标按钮
* @desc 如果需要自定义图标位置,结合使用 Icon 组件
*/
import { Button } from 'amos-framework';
const ButtonIcon = () => {
return (
<div>
<Button icon="plus">添加</Button>
<Button icon="align-left" />
</div>
);
};
/**
* @title 圆形按钮
*/
import { Button } from 'amos-framework';
const ButtonCircle = () => {
return (
<div>
<Button icon="plus" circle />
<Button circle></Button>
</div>
);
};
/**
* @title transparent
* @desc 文字颜色继承父级,背景透明
*/
import { Button } from 'amos-framework';
const ButtonTransparent = () => {
return (
<div>
<Button icon="plus" transparent />
<Button icon="align-left" transparent />
</div>
);
};
/**
* @title 不可用的
*/
import { Button } from 'amos-framework';
const ButtonDisabled = () => {
return (
<div>
<Button disabled>不可用</Button>
<Button icon="plus" disabled />
</div>
);
};
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>amos-framework docs</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
......@@ -16,10 +16,6 @@ const __ENV__ = tools.trim(process.env.NODE_ENV);
// 👻可修改
// ------------------------------------------------------
const alias = {
MODEL: __dirname + '/src/model',
UTILS: __dirname + '/src/utils',
CONSTS: __dirname + '/src/consts',
_MOCK: __dirname + '/src/_mock'
};
// ------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment