1.7.2 • Published 1 year ago

@x.render/render-link v1.7.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@x.render/render-link

英文文档

描述

Link 是基础的链接组件,功能同 a 标签。

安装

$ npm install @x.render/render-link --save

属性

属性类型默认值必填描述
onClickfunction-false节点被点击之后触发
hrefstring-true跳转目标地址

使用

import Link from "@x.render/render-link";
import Text from "@x.render/render-text";
const App = () => {
  return (
    <Link
      href={"//www.taobao.com"}
      onClick={(e) => {
        console.log(e);
      }}
    >
      <Text
        style={{
          fontSize: 14,
          color: "#333333",
        }}
      >
        点击跳转
      </Text>
    </Link>
  );
};
export default App;
1.7.2

1 year ago

1.2.0

1 year ago

1.3.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago