Blame view

node_modules/bootstrap-vue/src/components/form-file/package.json 4.39 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
123
124
125
126
127
128
129
130
131
{
  "name": "@bootstrap-vue/form-file",
  "version": "1.0.0",
  "meta": {
    "title": "Form File",
    "description": "Customized, cross-browser consistent, file input control that supports single file, multiple files, and directory upload.",
    "components": [
      {
        "component": "BFormFile",
        "aliases": [
          "BFile"
        ],
        "props": [
          {
            "prop": "accept",
            "description": "Value to set on the file input's `accept` attribute"
          },
          {
            "prop": "browseText",
            "description": "Text content for the file browse button"
          },
          {
            "prop": "capture",
            "description": "When set, will instruction the browser to use the devices camera (if supported)"
          },
          {
            "prop": "directory",
            "description": "Enable `directory` mode (on browsers that support it)"
          },
          {
            "prop": "dropPlaceholder",
            "description": "Text to display as the placeholder when files are being dragged and it's allowed to drop them"
          },
          {
            "prop": "fileNameFormatter",
            "description": "Method to format the file names for display. Refer to the docs for details"
          },
          {
            "prop": "multiple",
            "description": "When set, will allow multiple files to be selected. `v-model` will be an array"
          },
          {
            "prop": "noDrop",
            "description": "Disable drag and drop mode"
          },
          {
            "prop": "noDropPlaceholder",
            "description": "Text to display as the placeholder when files are being dragged and it isn't allowed to drop them"
          },
          {
            "prop": "noTraverse",
            "description": "Wether to returns files as a flat array when in `directory` mode"
          },
          {
            "prop": "placeholder",
            "description": "Sets the `placeholder` attribute value on the form control"
          },
          {
            "prop": "value",
            "description": "The current value of the file input. Will be a single `File` object or an array of `File` objects (if `multiple` or `directory` is set). Can be set to `null`, or an empty array to reset the file input"
          }
        ],
        "slots": [
          {
            "name": "drop-placeholder",
            "description": "Placeholder content when files are about to be dropped. Defaults to value of `drop-placeholder` prop",
            "scope": [
              {
                "prop": "allowed",
                "type": "Boolean",
                "description": "Wether its currently allowed to drop files"
              }
            ]
          },
          {
            "name": "file-name",
            "description": "Scoped slot for formatting the file names",
            "scope": [
              {
                "prop": "files",
                "type": "Array",
                "description": "Flat array of `File` objects"
              },
              {
                "prop": "filesTraversed",
                "type": "Array",
                "description": "Array of arrays of `File` objects when in `directory` mode"
              },
              {
                "prop": "names",
                "type": "Array",
                "description": "Flat array of file names (strings)"
              }
            ]
          },
          {
            "name": "placeholder",
            "description": "Placeholder content, when no files selected. Defaults to `placeholder` prop value"
          }
        ],
        "events": [
          {
            "event": "change",
            "description": "Original change event of the input",
            "args": [
              {
                "arg": "event",
                "type": "Event",
                "description": "Native change event object"
              }
            ]
          },
          {
            "event": "input",
            "description": "Updates the `v-model` value (see docs for more details)",
            "args": [
              {
                "arg": "file",
                "type": [
                  "File",
                  "Array"
                ],
                "description": "Will be a single File object in single mode or an array of File objects in multiple mode"
              }
            ]
          }
        ]
      }
    ]
  }
}