1.0.1 • Published 6 years ago

fw-components v1.0.1

Weekly downloads
35
License
BSD
Repository
-
Last release
6 years ago

Financial Workshop React components

Usage

抽象出了公共组件, 方便其它项目使用.

创建临时DOM节点

createTemporaryDOMNode

    import { createTemporaryDOMNode } from 'fw-components'

    let id = '_this_is_a_global_element',
        node = createTemporaryDOMNode(id);

警告弹出框

showAlert

    import { showAlert } from 'fw-components'

    showAlert('Test').then(()=> {
        // until user click confirm button, go next step
    })

showAlert

展示一个警告框

  • showLoading

  • hideLoading

  • showToast

弹出提示框(2s后自动隐藏)

showToast

    import { showToast } from 'fw-components'

    showToast('Test').then(()=> {
        // until toast disappeared go next step
    })
   

showToast

滑动组图

BannerGroup

    import { BannerGroup } from 'fw-components'

    // jsx
    <BannerGroup images={[img1, img2, img3]}/>
   

BannerGroup

选择省市县

showAreaSelector

    import { showAreaSelector } from 'fw-components/react/area-selector'

    showAreaSelector(['北京', '北京市', '朝阳区'], false)
        .then(data => {
            console.log(...data) // => 辽宁省, 沈阳市, 皇姑区
        })
   

showAreaSelector(selected, autoComplete)

  • selected : 已选择地区
  • autoComplete : 是否在选择完最后一个地区后, 自动完成当前交互并返回结果

showAreaSelector

1.0.1

6 years ago

1.0.0

6 years ago

0.9.0

6 years ago

0.8.6

6 years ago

0.8.5

6 years ago

0.8.4

6 years ago

0.8.3

6 years ago

0.8.2

6 years ago

0.8.1

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.2

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago