0.0.52 • Published 7 years ago

koala-ui v0.0.52

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

测试使用的 UI 框架,暂不建议使用..

添加合作人员,小芳

  • root-page

    z-root-page.homepage(:noHeader='false' background='red' title='首页')

  • view

    z-textarea(placeholder="placeholer1" :maxlength="140" initialValue="initialValue" :autofocus="true" @updateValue="updateValue")

    updateValue(value) {
      console.log(value)
    }
  • button

    z-button.button(@click='logic' :hasLoading="true" :loadingShow="loadingShow") title 可用 slot 两个,left 和 right

    如果设置了 hasLoading 则必须设置 loadingShow 来控制显示隐藏

    mounted() {
      setTimeout(() => {
        this.loadingShow = true
      }, 1000);
      setTimeout(() => {
        this.loadingShow = false
      }, 2000);
    }
  • list

    z-list(:items="items" @itemClick="itemClick") 如果不是自定义 slot,items 为字符串数组,若自定义,则省略

  • item

    item(:item="item") 若果不是自定义 slot,item 为字符串,若自定义,可省略

  • button

    z-button(@click="clickButton") 赞

  • header 配置

    默认红色背景 background: Vue.prototype.$headerBackground = 'blue'

  • textarea

    z-textarea(placeholder="placeholer1" :max="140" initialText="initialText" :autofocus="true")

  • message

    z-message(:show='messageShow' @close='messageShow=false' message='I\'m a Message' :time="1")
  • countdown

    <zCountdown class="countdown"
      waitText="获取验证码"
      second="秒"
      :time="time"
      :frequency="1"
      :min="0"
      @event="event" />
    methods: {
      // 回调,满足条件后启动计时器
      event(start) {
        console.log("event");
        start()
      }
    }
  • cascade-selector

    c-cascade-selector.cascade(:lists="lists"
      :autoHidden="true"
      :placeholder="placeholders.companyLocation"
      :currentShow="currentCity"
      showKey="name"
      valueKey="code"
      :floor="currentFloor"
      :itemClick="itemClick")
    methods: {
      itemClick(floorIndex, item, close) {
        this.ajax().then(res => {
          if(res) logic()
          else close()
        });
      }
    }
0.0.52

7 years ago

0.0.51

7 years ago

0.0.50

7 years ago

0.0.49

7 years ago

0.0.48

7 years ago

0.0.47

7 years ago

0.0.46

8 years ago

0.0.45

8 years ago

0.0.44

8 years ago

0.0.43

8 years ago

0.0.41

8 years ago

0.0.40

8 years ago

0.0.39

8 years ago

0.0.38

8 years ago

0.0.37

8 years ago

0.0.36

8 years ago

0.0.35

8 years ago

0.0.34

8 years ago

0.0.33

8 years ago

0.0.32

8 years ago

0.0.31

8 years ago

0.0.30

8 years ago

0.0.29

8 years ago

0.0.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25

8 years ago

0.0.24

8 years ago

0.0.23

8 years ago

0.0.22

8 years ago

0.0.21

8 years ago

0.0.20

8 years ago

0.0.19

8 years ago

0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago