Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提个关于datetime的开发建议 #48

Closed
85636682 opened this issue Mar 23, 2016 · 11 comments
Closed

提个关于datetime的开发建议 #48

85636682 opened this issue Mar 23, 2016 · 11 comments

Comments

@85636682
Copy link

提个关于datetime的开发建议(开个issue不是很对,说声对不起):
日期和时间不知道能不能也想year一样,添加一个min和max,好像日期,今天是15号,那15号之前的都不用显示了,好像时间,比如一个送货时间选择,只能选择8点到18点。

@airyland
Copy link
Owner

建议不错,也是常见的需求,后面会支持。

@85636682
Copy link
Author

谢谢,期待!

@85636682
Copy link
Author

@airyland 借问下,如何和vue-validator结合使用?文档好像没相关的说明

@airyland
Copy link
Owner

@85636682 因为每个form组件已经不是原生的input,textarea, 很难跟vue-validator很好地结合,因此有自带的 Validator组件,正在开发中。

@85636682
Copy link
Author

谢谢,明白!

@85636682
Copy link
Author

@airyland 再一个功能建议,是关于checkbox,radio,select的,绑定数据时,是不是应该有一个显示值和一个实际值呢?我看了你的源代码,好像两个值都是同一个value,这样不是很符合实际使用

@airyland
Copy link
Owner

@85636682 这个也有其他人提,会支持

@suhaotian
Copy link

👍

@airyland airyland added this to the 0.1.1 milestone Apr 16, 2016
@qiansimin88
Copy link

同求 如果这个功能开发完成可以 @一下 提醒一下吗

@exoticknight
Copy link

@85636682
我推荐你用vue-form,这样用:
组件里面,加一个隐藏 input,用v-form-ctrl标记,验证全在这个 input 上,vux 的组件只用于显示和交互

<group>
    <input v-form-ctrl v-model="model" :name="name" :required="isRequired" type="hidden">
    <datetime
        :value.sync="model"
        year-row="{value}年"
        month-row="{value}月"
        day-row="{value}日"
        format="YYYY-MM-DD"
        :placeholder="datum.tip"
        title=""
        confirm-text="确认"
        cancel-text="取消"></datetime>
</group>

@hubinjie
Copy link

hubinjie commented Sep 2, 2016

确实这类需求比较大,感谢@airyland 的VUX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants