3.2.5 • Published 3 months ago

@dsaco/rc v3.2.5

Weekly downloads
2
License
ISC
Repository
github
Last release
3 months ago
安装

cnpm i -S @dsaco/rc

引入
import { Button } from '@dsaco/rc';
// 按需加载
// import Button from '@dsaco/rc/lib/Button';

import '@dsaco/rc/lib/styles.css'
options

Button

属性说明类型默认值
type类型ripple、ripple
theme主题primary、secondary-
link按钮背景透明booleanfalse
outline是否边框形式booleanfalse
disabled是否禁用booleanfalse
rippleColorripple模式下,自定义主题的涟漪颜色rgbargba(0, 0, 0, 0.25)
import { Button } from '@dsaco/rc';
import '@dsaco/rc/lib/styles.css';
<Button>default</Button>
<Button link>default link</Button>
<Button outline>default outline</Button>

<Button theme="primary">primary</Button>
<Button theme="primary" link>
    primary link
</Button>
<Button theme="primary" outline>
    primary outline
</Button>

<Button theme="secondary">secondary</Button>
<Button theme="secondary" link>
    secondary link
</Button>
<Button theme="secondary" outline>
    secondary outline
</Button>

自定义样式

$ds-button-theme: (
	'primary': #2196f3,
	'secondary': #e10050,
	'purple': purple,
);
@import '~@dsaco/rc/lib/Button/style.scss';
<Button theme="purple">自定义颜色</Button>
<Button theme="purple" link rippleColor="rgba(0, 255, 255, .25)">
    自定义颜色 link
</Button>
<Button theme="purple" outline rippleColor="rgba(255, 0, 128, .25)">
    自定义颜色 outline
</Button>
3.2.5

3 months ago

3.2.4

3 months ago

3.2.2

3 months ago

3.2.1

3 months ago

3.2.0

3 months ago

3.2.3

3 months ago

3.1.50

3 months ago

3.1.49

3 months ago

3.1.47

3 months ago

3.1.46

3 months ago

3.1.48

3 months ago

3.1.45

4 months ago

3.1.44

4 months ago

3.1.43

4 months ago

3.1.42

4 months ago

3.1.34

4 months ago

3.1.36

4 months ago

3.1.35

4 months ago

3.1.38

4 months ago

3.1.37

4 months ago

3.1.39

4 months ago

3.1.30

4 months ago

3.1.32

4 months ago

3.1.31

4 months ago

3.1.41

4 months ago

3.1.40

4 months ago

3.1.27

4 months ago

3.1.29

4 months ago

3.1.28

4 months ago

3.1.25

4 months ago

3.1.24

4 months ago

3.1.26

4 months ago

3.1.23

4 months ago

3.1.22

4 months ago

3.1.21

4 months ago

3.1.20

4 months ago

3.1.14

4 months ago

3.1.16

4 months ago

3.1.15

4 months ago

3.1.18

4 months ago

3.1.17

4 months ago

3.1.19

4 months ago

3.1.12

8 months ago

3.1.11

10 months ago

3.1.13

8 months ago

3.1.10

10 months ago

3.1.9

10 months ago

3.1.8

10 months ago

3.1.3

10 months ago

3.1.2

10 months ago

3.1.1

10 months ago

3.1.7

10 months ago

3.1.6

10 months ago

3.1.5

10 months ago

3.1.4

10 months ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago