Blame view

node_modules/mpvue-zanui/src/pages/zan_field/config.js 1.49 KB
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
  export default {
    // 基础类型输入框配置
    base: {
      asdname: {
        focus: true,
        title: '收货人',
        placeholder: '名字',
        componentId: 'name'
      },
      tel: {
        error: true,
        title: '联系电话',
        inputType: 'number',
        placeholder: '请输入手机号',
        componentId: 'tel'
      },
      address: {
        title: '详细地址',
        type: 'textarea',
        placeholder: '请输入详细地址',
        componentId: 'address'
      }
    },
    // 无标题输入框
    notitle: {
      placeholder: '请输入收货人姓名',
      componentId: 'notitle'
    },
    // 圆角输入框
    radius: {
      totalPrice: {
        right: true,
        mode: 'wrapped',
        title: '消费总额',
        inputType: 'number',
        placeholder: '询问收银员后输入',
        componentId: 'totalPrice'
      },
      excludePrice: {
        right: true,
        error: true,
        mode: 'wrapped',
        title: '不参与优惠金额',
        inputType: 'number',
        placeholder: '询问收银员后输入',
        componentId: 'excludePrice'
      },
      notitle: {
        mode: 'wrapped',
        inputType: 'number',
        placeholder: '请输入消费金额',
        componentId: 'notile-radius'
      }
    },
    // Form 中使用输入框
    form: {
      name1: {
        placeholder: '请输入收货人姓名',
        componentId: 'form:test:name'
      },
      tel: {
        name: 'tel',
        inputType: 'tel',
        placeholder: '请输入收货人手机号码',
        componentId: 'form:test:tel'
      }
    }
  }