airyland / vux

Mobile UI Components based on Vue & WeUI
https://vux.li
MIT License
17.59k stars 3.71k forks source link

XDialog 组件不解析 dialog-style #1337

Closed sausager closed 7 years ago

sausager commented 7 years ago

20170428115311

如上图,根据官方 Demo 修改自定义 x-dialog 样式,但是 x-dialog 不接收 dialog-style 。

VUX更新到2.2.1,官网 Demo 正常。

复现代码:

<template>
    <x-dialog v-model="dialog" hide-on-blur :dialog-style="dialogStyle">
        <p style="color:#000;text-align:center;" @click="dialog = !dialog">
            <span style="font-size:30px;">
                HELLO WORLD
            </span>
        </p>
    </x-dialog>
</template>

<script>
import { XDialog } from 'vux';

export default {
    components: {
        XDialog
    },
    data() {
        return {
            dialog: true,
            dialogStyle: {'backgroundColor':'red'}
        }
    }
}
</script>
airyland commented 7 years ago

Sorry, 文档忘注明了,支持该属性的版本未发布。明后天发布。 https://vux.li/#/zh-CN/changes