picker-color

picker-color 颜色选择器

介绍

颜色选择器

使用方式

import '../../components/picker-color/picker-color.stml'

代码示例

<picker-color :show="show" oncallback="callback" onhide="hide"></picker-color>

API

props 属性

参数 说明 类型 默认
show 显示隐藏 Boolean false

Events事件

事件名称 说明 回调参数
oncallback 确定回调 {{"color":"#999999"}
onhide 隐藏回调 {show:false}

案例

<script>
import '../../components/picker-color/picker-color.stml'

export default {
    name: "tpl",
    data() {
        return {
            show: false,
            color: ''
        };
    },
    methods: {
        onclick() {
            this.data.show = true;
        },
        callback(e){
            this.data.color = e.detail.color;
            this.hide();
        },
        hide(){
            this.data.show = false;
        }
    },
}
</script>

帮助说明/联系方式

如需修改或修改样式请查看components下对应的stml,如需要更多自定义功能或反馈与BUG,可联系QQ:910547462

是否仍需要帮助? 请保持联络!
最后更新于 2024/04/24