naive-ui-language-server 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cache/json/affix.json +43 -0
- package/cache/json/alert.json +61 -0
- package/cache/json/anchor-link.json +19 -0
- package/cache/json/anchor.json +60 -0
- package/cache/json/auto-complete.json +206 -0
- package/cache/json/avatar-group.json +52 -0
- package/cache/json/avatar.json +102 -0
- package/cache/json/back-top.json +53 -0
- package/cache/json/badge.json +73 -0
- package/cache/json/blockquote.json +14 -0
- package/cache/json/breadcrumb-item.json +34 -0
- package/cache/json/breadcrumb.json +14 -0
- package/cache/json/button-group.json +26 -0
- package/cache/json/button.json +196 -0
- package/cache/json/calendar.json +38 -0
- package/cache/json/card.json +165 -0
- package/cache/json/carousel.json +197 -0
- package/cache/json/cascader.json +314 -0
- package/cache/json/checkbox-group.json +49 -0
- package/cache/json/checkbox.json +86 -0
- package/cache/json/code.json +54 -0
- package/cache/json/collapse-item.json +37 -0
- package/cache/json/collapse-transition.json +21 -0
- package/cache/json/collapse.json +73 -0
- package/cache/json/color-picker.json +159 -0
- package/cache/json/config-provider.json +90 -0
- package/cache/json/countdown.json +40 -0
- package/cache/json/data-table.json +384 -0
- package/cache/json/descriptions.json +93 -0
- package/cache/json/dialog.json +161 -0
- package/cache/json/divider.json +33 -0
- package/cache/json/drawer-content.json +81 -0
- package/cache/json/drawer.json +220 -0
- package/cache/json/dropdown.json +111 -0
- package/cache/json/dynamic-input.json +100 -0
- package/cache/json/dynamic-tags.json +129 -0
- package/cache/json/element.json +14 -0
- package/cache/json/empty.json +42 -0
- package/cache/json/equation.json +25 -0
- package/cache/json/flex.json +53 -0
- package/cache/json/float-button.json +101 -0
- package/cache/json/form-item.json +171 -0
- package/cache/json/form.json +115 -0
- package/cache/json/gradient-text.json +33 -0
- package/cache/json/grid-item.json +28 -0
- package/cache/json/grid.json +67 -0
- package/cache/json/heatmap.json +118 -0
- package/cache/json/highlight.json +52 -0
- package/cache/json/icon-wrapper.json +33 -0
- package/cache/json/icon.json +31 -0
- package/cache/json/image-group.json +83 -0
- package/cache/json/image-preview.json +58 -0
- package/cache/json/image.json +121 -0
- package/cache/json/input-number.json +203 -0
- package/cache/json/input.json +226 -0
- package/cache/json/list.json +35 -0
- package/cache/json/loading-bar-provider.json +31 -0
- package/cache/json/log.json +88 -0
- package/cache/json/marquee.json +21 -0
- package/cache/json/mention.json +193 -0
- package/cache/json/menu.json +228 -0
- package/cache/json/message-provider.json +60 -0
- package/cache/json/modal-provider.json +14 -0
- package/cache/json/modal.json +141 -0
- package/cache/json/notification-provider.json +54 -0
- package/cache/json/number-animation.json +61 -0
- package/cache/json/p.json +18 -0
- package/cache/json/page-header.json +31 -0
- package/cache/json/pagination.json +188 -0
- package/cache/json/popconfirm.json +52 -0
- package/cache/json/popover.json +241 -0
- package/cache/json/popselect.json +78 -0
- package/cache/json/progress.json +150 -0
- package/cache/json/radio-group.json +52 -0
- package/cache/json/rate.json +78 -0
- package/cache/json/result.json +49 -0
- package/cache/json/scrollbar.json +71 -0
- package/cache/json/select.json +358 -0
- package/cache/json/skeleton.json +72 -0
- package/cache/json/slider.json +143 -0
- package/cache/json/space.json +94 -0
- package/cache/json/spin.json +69 -0
- package/cache/json/split.json +116 -0
- package/cache/json/statistic.json +26 -0
- package/cache/json/step.json +38 -0
- package/cache/json/steps.json +61 -0
- package/cache/json/switch.json +86 -0
- package/cache/json/tab-pane.json +51 -0
- package/cache/json/tab.json +25 -0
- package/cache/json/table.json +54 -0
- package/cache/json/tabs.json +188 -0
- package/cache/json/tag.json +108 -0
- package/cache/json/text.json +73 -0
- package/cache/json/thing.json +62 -0
- package/cache/json/time-picker.json +237 -0
- package/cache/json/time.json +52 -0
- package/cache/json/timeline-item.json +56 -0
- package/cache/json/timeline.json +42 -0
- package/cache/json/transfer.json +151 -0
- package/cache/json/tree-select.json +384 -0
- package/cache/json/tree.json +421 -0
- package/cache/json/upload-trigger.json +14 -0
- package/cache/json/upload.json +312 -0
- package/cache/json/watermark.json +193 -0
- package/dist/server.js +213851 -0
- package/dist/server.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NImage",
|
|
3
|
+
"tag": "n-image",
|
|
4
|
+
"description": "预览一下。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "alt",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "图片说明",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "fallback-src",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "图片加载失败时显示的地址",
|
|
16
|
+
"required": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "height",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "图片高度",
|
|
22
|
+
"required": false
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "img-props",
|
|
26
|
+
"type": "ImgHTMLAttributes",
|
|
27
|
+
"description": "组件中 img 元素的属性",
|
|
28
|
+
"required": false
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "lazy",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "是否让图片进入视口再加载,单独使用将设置为[HTMLImageElement.loading](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading) 的属性值;也可配合 `intersection-observer-options` 配置实现懒加载",
|
|
34
|
+
"required": false,
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "intersection-observer-options",
|
|
39
|
+
"type": "{ root?: Element",
|
|
40
|
+
"description": "`lazy=true` 时 intersection observer 观测的配置",
|
|
41
|
+
"required": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "object-fit",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "图片在容器内的的适应类型",
|
|
47
|
+
"required": false,
|
|
48
|
+
"default": "fill",
|
|
49
|
+
"options": [
|
|
50
|
+
"fill",
|
|
51
|
+
"contain",
|
|
52
|
+
"cover",
|
|
53
|
+
"none",
|
|
54
|
+
"scale-down"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "preview-src",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "预览图片的图片地址",
|
|
61
|
+
"required": false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "preview-disabled",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "是否禁用单击图像预览",
|
|
67
|
+
"required": false,
|
|
68
|
+
"default": false
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "previewed-img-props",
|
|
72
|
+
"type": "HTMLAttributes",
|
|
73
|
+
"description": "预览图片时 img 元素的属性",
|
|
74
|
+
"required": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "render-toolbar",
|
|
78
|
+
"type": "(props: { nodes: { prev: VNode, next: VNode, rotateCounterclockwise: VNode, rotateClockwise: VNode, resizeToOriginalSize: VNode, zoomOut: VNode, zoomIn: VNode, download: VNode, close: VNode } }) => VNodeChild",
|
|
79
|
+
"description": "工具栏的渲染函数",
|
|
80
|
+
"required": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "show-toolbar",
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "图片放大后是否展示底部工具栏",
|
|
86
|
+
"required": false,
|
|
87
|
+
"default": true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "show-toolbar-tooltip",
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"description": "是否展示工具栏的提示",
|
|
93
|
+
"required": false,
|
|
94
|
+
"default": false
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "src",
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "图片来源",
|
|
100
|
+
"required": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "width",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"description": "图片宽度",
|
|
106
|
+
"required": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "on-error",
|
|
110
|
+
"type": "(e: Event) => void",
|
|
111
|
+
"description": "图片加载失败执行的回调",
|
|
112
|
+
"required": false
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "on-load",
|
|
116
|
+
"type": "(e: Event) => void",
|
|
117
|
+
"description": "图片加载完成执行的回调",
|
|
118
|
+
"required": false
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NInputNumber",
|
|
3
|
+
"tag": "n-input-number",
|
|
4
|
+
"description": "输入数字就用它。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "autofocus",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "是否自动获取焦点",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "bordered",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "是否有边框",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "button-placement",
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "加减按钮的位置",
|
|
24
|
+
"required": false,
|
|
25
|
+
"default": "right",
|
|
26
|
+
"options": [
|
|
27
|
+
"both",
|
|
28
|
+
"right"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "clearable",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "是否可清空",
|
|
35
|
+
"required": false,
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "default-value",
|
|
40
|
+
"type": "number",
|
|
41
|
+
"description": "非受控模式下的默认值",
|
|
42
|
+
"required": false,
|
|
43
|
+
"default": null
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "disabled",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "是否禁用",
|
|
49
|
+
"required": false,
|
|
50
|
+
"default": false
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "format",
|
|
54
|
+
"type": "(value: number",
|
|
55
|
+
"description": "格式化值的方法,设定后会禁用 `update-value-on-input`",
|
|
56
|
+
"required": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "input-props",
|
|
60
|
+
"type": "InputHTMLAttributes",
|
|
61
|
+
"description": "组件内部 input 元素的属性,[在这里查看原生属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input)。注意:`input-props` 不会覆盖内部 input 元素的已经存在的属性(除了 `type`)",
|
|
62
|
+
"required": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "keyboard",
|
|
66
|
+
"type": "{ ArrowUp?: boolean, ArrowDown?: boolean }",
|
|
67
|
+
"description": "控制允许的键盘操作,属性值设为 `false` 的时候会禁用对应的键盘操作",
|
|
68
|
+
"required": false,
|
|
69
|
+
"default": {}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "loading",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "是否展示加载图标,设为非 `undefined` 会占据空间",
|
|
75
|
+
"required": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "max",
|
|
79
|
+
"type": "number",
|
|
80
|
+
"description": "最大值",
|
|
81
|
+
"required": false
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "min",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"description": "最小值",
|
|
87
|
+
"required": false
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "parse",
|
|
91
|
+
"type": "(input: string) => number",
|
|
92
|
+
"description": "解析输入的字符串,设定后会禁用 `update-value-on-input`",
|
|
93
|
+
"required": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "placeholder",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "提示信息",
|
|
99
|
+
"required": false,
|
|
100
|
+
"default": "请输入"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "precision",
|
|
104
|
+
"type": "number",
|
|
105
|
+
"description": "数值保留的精度值,设定后会禁用 `update-value-on-input`",
|
|
106
|
+
"required": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "readonly",
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"description": "是否只读",
|
|
112
|
+
"required": false,
|
|
113
|
+
"default": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "round",
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"description": "输入框是否圆角",
|
|
119
|
+
"required": false
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "show-button",
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"description": "是否有按钮",
|
|
125
|
+
"required": false,
|
|
126
|
+
"default": true
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "size",
|
|
130
|
+
"type": "string",
|
|
131
|
+
"description": "输入框大小",
|
|
132
|
+
"required": false,
|
|
133
|
+
"default": "medium",
|
|
134
|
+
"options": [
|
|
135
|
+
"tiny",
|
|
136
|
+
"small",
|
|
137
|
+
"medium",
|
|
138
|
+
"large"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "status",
|
|
143
|
+
"type": "string",
|
|
144
|
+
"description": "验证状态",
|
|
145
|
+
"required": false,
|
|
146
|
+
"options": [
|
|
147
|
+
"success",
|
|
148
|
+
"warning",
|
|
149
|
+
"error"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "step",
|
|
154
|
+
"type": "number",
|
|
155
|
+
"description": "每次改变步数,可以为小数",
|
|
156
|
+
"required": false,
|
|
157
|
+
"default": 1
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "update-value-on-input",
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"description": "在输入的过程中,在输入值合法的情况下,是否改变值",
|
|
163
|
+
"required": false,
|
|
164
|
+
"default": true
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "validator",
|
|
168
|
+
"type": "(value) => boolean",
|
|
169
|
+
"description": "设置自定义验证",
|
|
170
|
+
"required": false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "value",
|
|
174
|
+
"type": "number",
|
|
175
|
+
"description": "受控模式下的值",
|
|
176
|
+
"required": false
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "on-blur",
|
|
180
|
+
"type": "(event: FocusEvent) => void",
|
|
181
|
+
"description": "移除焦点的回调",
|
|
182
|
+
"required": false
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "on-clear",
|
|
186
|
+
"type": "() => void",
|
|
187
|
+
"description": "点击清空按钮时的回调",
|
|
188
|
+
"required": false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "on-focus",
|
|
192
|
+
"type": "(event: FocusEvent) => void",
|
|
193
|
+
"description": "获取焦点的回调",
|
|
194
|
+
"required": false
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "on-update:value",
|
|
198
|
+
"type": "(value: number",
|
|
199
|
+
"description": "组件值发生变化的回调",
|
|
200
|
+
"required": false
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NInput",
|
|
3
|
+
"tag": "n-input",
|
|
4
|
+
"description": "很多年前,人们还在用打孔纸卡输入。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "allow-input",
|
|
8
|
+
"type": "(value: string) => false",
|
|
9
|
+
"description": "校验当前的输入是否合法,如果返回 `false` 输入框便不会响应此次的输入",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "autofocus",
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "是否自动获取焦点",
|
|
16
|
+
"required": false,
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "autosize",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"description": "自适应内容高度,只对 `type=\"textarea\"` 有效,可传入对象,如 `{ minRows: 1, maxRows: 3 }`",
|
|
23
|
+
"required": false,
|
|
24
|
+
"default": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "clearable",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"description": "是否可清空",
|
|
30
|
+
"required": false,
|
|
31
|
+
"default": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "default-value",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "输入框默认值",
|
|
37
|
+
"required": false,
|
|
38
|
+
"default": null
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "count-graphemes",
|
|
42
|
+
"type": "(value: string) => number",
|
|
43
|
+
"description": "计算输入的字数。如果设定了,那么原生的 `maxlength` 和 `minlength` 属性将不再被使用",
|
|
44
|
+
"required": false
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "disabled",
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"description": "是否禁用",
|
|
50
|
+
"required": false,
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "input-props",
|
|
55
|
+
"type": "InputHTMLAttributes",
|
|
56
|
+
"description": "Input 组件内部 input 元素的属性,对 `pair` 类型不生效,[在这里查看原生属性](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input)。注意:input-props 不会覆盖内部 input 元素的已经存在的属性(除了 `type`)",
|
|
57
|
+
"required": false
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "loading",
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"description": "是否展示加载图标,设为非 `undefined` 会占据空间",
|
|
63
|
+
"required": false
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "maxlength",
|
|
67
|
+
"type": "number",
|
|
68
|
+
"description": "最大输入长度",
|
|
69
|
+
"required": false
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "minlength",
|
|
73
|
+
"type": "number",
|
|
74
|
+
"description": "最小输入长度",
|
|
75
|
+
"required": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "pair",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"description": "是否输入成对的值",
|
|
81
|
+
"required": false,
|
|
82
|
+
"default": false
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "passively-activated",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "是否被动激活输入框",
|
|
88
|
+
"required": false,
|
|
89
|
+
"default": false
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "placeholder",
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "文本输入的占位符。如果 `pair` 是 `true`,`placeholder`是一个数组",
|
|
95
|
+
"required": false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "readonly",
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"description": "是否只读",
|
|
101
|
+
"required": false,
|
|
102
|
+
"default": false
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "render-count",
|
|
106
|
+
"type": "(props: { value: string }) => void",
|
|
107
|
+
"description": "字数统计的渲染函数",
|
|
108
|
+
"required": false
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "round",
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"description": "输入框是否圆角",
|
|
114
|
+
"required": false,
|
|
115
|
+
"default": false
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "rows",
|
|
119
|
+
"type": "number",
|
|
120
|
+
"description": "输入框行数,对 type=\"textarea\" 有效",
|
|
121
|
+
"required": false,
|
|
122
|
+
"default": 3
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "separator",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "成对输入框中间的分隔符",
|
|
128
|
+
"required": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "show-count",
|
|
132
|
+
"type": "boolean",
|
|
133
|
+
"description": "是否显示字数统计",
|
|
134
|
+
"required": false,
|
|
135
|
+
"default": false
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "show-password-on",
|
|
139
|
+
"type": "string",
|
|
140
|
+
"description": "显示密码的时机",
|
|
141
|
+
"required": false,
|
|
142
|
+
"options": [
|
|
143
|
+
"click",
|
|
144
|
+
"mousedown"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "size",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "输入框尺寸",
|
|
151
|
+
"required": false,
|
|
152
|
+
"default": "medium",
|
|
153
|
+
"options": [
|
|
154
|
+
"tiny",
|
|
155
|
+
"small",
|
|
156
|
+
"medium",
|
|
157
|
+
"large"
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "status",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"description": "验证状态",
|
|
164
|
+
"required": false,
|
|
165
|
+
"options": [
|
|
166
|
+
"success",
|
|
167
|
+
"warning",
|
|
168
|
+
"error"
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "type",
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "输入框类型",
|
|
175
|
+
"required": false,
|
|
176
|
+
"default": "text",
|
|
177
|
+
"options": [
|
|
178
|
+
"text",
|
|
179
|
+
"password",
|
|
180
|
+
"textarea"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "value",
|
|
185
|
+
"type": "string",
|
|
186
|
+
"description": "文本输入的值。如果 `pair` 是 `true`,`value` 是一个数组",
|
|
187
|
+
"required": false
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "on-blur",
|
|
191
|
+
"type": "() => void",
|
|
192
|
+
"description": "输入框失去焦点时触发",
|
|
193
|
+
"required": false
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "on-change",
|
|
197
|
+
"type": "(value: string",
|
|
198
|
+
"description": "原生 change 事件触发时触发",
|
|
199
|
+
"required": false
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "on-clear",
|
|
203
|
+
"type": "() => void",
|
|
204
|
+
"description": "输入框点击清空按钮时触发",
|
|
205
|
+
"required": false
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "on-focus",
|
|
209
|
+
"type": "() => void",
|
|
210
|
+
"description": "输入框获得焦点时触发",
|
|
211
|
+
"required": false
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "on-input",
|
|
215
|
+
"type": "(value: string",
|
|
216
|
+
"description": "输入框在用户输入时触发",
|
|
217
|
+
"required": false
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "on-update:value",
|
|
221
|
+
"type": "(value: string",
|
|
222
|
+
"description": "输入框值 change 时触发",
|
|
223
|
+
"required": false
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NList",
|
|
3
|
+
"tag": "n-list",
|
|
4
|
+
"description": "想让列表看起来优雅真的挺难的。但是也不能不做这个组件啊。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "bordered",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "是否显示边框",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "clickable",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "列表项是否有可点击样式",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "hoverable",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "列表项是否有悬浮样式",
|
|
24
|
+
"required": false,
|
|
25
|
+
"default": false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "show-divider",
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "是否显示标项之间的分割线",
|
|
31
|
+
"required": false,
|
|
32
|
+
"default": true
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NLoadingBarProvider",
|
|
3
|
+
"tag": "n-loading-bar-provider",
|
|
4
|
+
"description": "焦虑的安慰剂,疗效尚可。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "container-class",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "加载条容器的类名",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "container-style",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "加载条容器的样式",
|
|
16
|
+
"required": false
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "loading-bar-style",
|
|
20
|
+
"type": "{ loading?: string",
|
|
21
|
+
"description": "加载条样式",
|
|
22
|
+
"required": false
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "to",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "加载条的挂载位置",
|
|
28
|
+
"required": false
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|