omi/components/o-icon
dntzhang 885e5e8950 chore(omiu): fix OIcon docs error 2021-06-26 17:07:31 +08:00
..
demos/js-demo publish(@omiu/o-icon) 2020-04-28 18:48:58 +08:00
scripts chore: remove of doc-gen result 2020-04-30 09:17:17 +08:00
src publish(@omiu/o-icon) 2020-04-28 18:48:58 +08:00
README.md chore(omiu): fix OIcon docs error 2021-06-26 17:07:31 +08:00
package.json publish(@omiu/o-icon) 2020-04-28 18:48:58 +08:00
tsconfig.json publish(@omiu/o-icon) 2020-04-28 18:48:58 +08:00

README.md

OIcon

SVG Icon

Import

import '@omiu/o-icon'

Or use script tag to ref it.

<script src="https://unpkg.com/@omiu/o-icon"></script>

Usage

<o-icon></o-icon>

API

Props

{
  path?: string,
  paths?: object,
  view?: number,
  scale?: number,
  color?: string,
  rotate?: boolean
}

默认属性

{
  view: 1024,
  scale: 2
)