Blame view

node_modules/bootstrap-vue/src/components/form-textarea/package.json 4.56 KB
4cd4fd28   郭伟龙   feat: 初始化项目
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
  "name": "@bootstrap-vue/form-textarea",
  "version": "1.0.0",
  "meta": {
    "title": "Form Textarea",
    "description": "Create multi-line text inputs with support for auto height sizing, minimum and maximum number of rows, and contextual validation states.",
    "components": [
      {
        "component": "BFormTextarea",
        "aliases": [
          "BTextarea"
        ],
        "props": [
          {
            "prop": "ariaInvalid",
            "description": "Sets the 'aria-invalid' attribute with the specified value"
          },
          {
            "prop": "debounce",
            "version": "2.1.0",
            "description": "When set to a number of milliseconds greater than zero, will debounce the user input. Has no effect if prop 'lazy' is set"
          },
          {
            "prop": "formatter",
            "description": "Reference to a function for formatting the textarea"
          },
          {
            "prop": "lazy",
            "version": "2.1.0",
            "description": "When set, updates the v-model on 'change'/'blur' events instead of 'input'. Emulates the Vue '.lazy' v-model modifier"
          },
          {
            "prop": "lazyFormatter",
            "description": "When set, the textarea is formatted on blur instead of each keystroke (if there is a formatter specified)"
          },
          {
            "prop": "maxRows",
            "description": "The maximum number of rows to show. When provided, the textarea will grow (or shrink) to fit the content up to maximum rows"
          },
          {
            "prop": "noAutoShrink",
            "description": "When set, prevents the auto height textarea from shrinking to fit the content"
          },
          {
            "prop": "noResize",
            "description": "When set, disabled the browser's resize handle which prevents the user from changing the height of the textarea. Automatically set when in auto height mode"
          },
          {
            "prop": "number",
            "description": "When set attempts to convert the input value to a native number. Emulates the Vue '.number' v-model modifier"
          },
          {
            "prop": "rows",
            "description": "The minimum number of rows to display. Must be a value greater than 1"
          },
          {
            "prop": "size",
            "description": "Set the size of the component's appearance. 'sm', 'md' (default), or 'lg'"
          },
          {
            "prop": "trim",
            "description": "When set, trims any leading and trailing white space from the input value. Emulates the Vue '.trim' v-model modifier"
          },
          {
            "prop": "value",
            "description": "The current value of the textarea. Result will always be a string, except when the 'number' prop is used"
          },
          {
            "prop": "wrap",
            "description": "The value to place on the textarea's 'wrap' attribute. Controls how line break are returned"
          }
        ],
        "events": [
          {
            "event": "blur",
            "description": "Emitted after the textarea loses focus",
            "args": [
              {
                "arg": "event",
                "type": "FocusEvent",
                "description": "Native blur event (before any optional formatting occurs)"
              }
            ]
          },
          {
            "event": "change",
            "description": "Change event triggered by user interaction. Emitted after any formatting (not including 'trim' or 'number' props) and after the v-model is updated",
            "args": [
              {
                "arg": "value",
                "type": "String",
                "description": "Current value of the textarea"
              }
            ]
          },
          {
            "event": "input",
            "description": "Input event triggered by user interaction. Emitted after any formatting (not including 'trim' or 'number' props) and after the v-model is updated",
            "args": [
              {
                "arg": "value",
                "type": "String",
                "description": "Current value of textarea"
              }
            ]
          },
          {
            "event": "update",
            "description": "Emitted to update the v-model",
            "args": [
              {
                "arg": "value",
                "type": "String",
                "description": "Value of textarea, after any formatting. Not emitted if the value does not change"
              }
            ]
          }
        ]
      }
    ]
  }
}