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.
Files changed (107) hide show
  1. package/cache/json/affix.json +43 -0
  2. package/cache/json/alert.json +61 -0
  3. package/cache/json/anchor-link.json +19 -0
  4. package/cache/json/anchor.json +60 -0
  5. package/cache/json/auto-complete.json +206 -0
  6. package/cache/json/avatar-group.json +52 -0
  7. package/cache/json/avatar.json +102 -0
  8. package/cache/json/back-top.json +53 -0
  9. package/cache/json/badge.json +73 -0
  10. package/cache/json/blockquote.json +14 -0
  11. package/cache/json/breadcrumb-item.json +34 -0
  12. package/cache/json/breadcrumb.json +14 -0
  13. package/cache/json/button-group.json +26 -0
  14. package/cache/json/button.json +196 -0
  15. package/cache/json/calendar.json +38 -0
  16. package/cache/json/card.json +165 -0
  17. package/cache/json/carousel.json +197 -0
  18. package/cache/json/cascader.json +314 -0
  19. package/cache/json/checkbox-group.json +49 -0
  20. package/cache/json/checkbox.json +86 -0
  21. package/cache/json/code.json +54 -0
  22. package/cache/json/collapse-item.json +37 -0
  23. package/cache/json/collapse-transition.json +21 -0
  24. package/cache/json/collapse.json +73 -0
  25. package/cache/json/color-picker.json +159 -0
  26. package/cache/json/config-provider.json +90 -0
  27. package/cache/json/countdown.json +40 -0
  28. package/cache/json/data-table.json +384 -0
  29. package/cache/json/descriptions.json +93 -0
  30. package/cache/json/dialog.json +161 -0
  31. package/cache/json/divider.json +33 -0
  32. package/cache/json/drawer-content.json +81 -0
  33. package/cache/json/drawer.json +220 -0
  34. package/cache/json/dropdown.json +111 -0
  35. package/cache/json/dynamic-input.json +100 -0
  36. package/cache/json/dynamic-tags.json +129 -0
  37. package/cache/json/element.json +14 -0
  38. package/cache/json/empty.json +42 -0
  39. package/cache/json/equation.json +25 -0
  40. package/cache/json/flex.json +53 -0
  41. package/cache/json/float-button.json +101 -0
  42. package/cache/json/form-item.json +171 -0
  43. package/cache/json/form.json +115 -0
  44. package/cache/json/gradient-text.json +33 -0
  45. package/cache/json/grid-item.json +28 -0
  46. package/cache/json/grid.json +67 -0
  47. package/cache/json/heatmap.json +118 -0
  48. package/cache/json/highlight.json +52 -0
  49. package/cache/json/icon-wrapper.json +33 -0
  50. package/cache/json/icon.json +31 -0
  51. package/cache/json/image-group.json +83 -0
  52. package/cache/json/image-preview.json +58 -0
  53. package/cache/json/image.json +121 -0
  54. package/cache/json/input-number.json +203 -0
  55. package/cache/json/input.json +226 -0
  56. package/cache/json/list.json +35 -0
  57. package/cache/json/loading-bar-provider.json +31 -0
  58. package/cache/json/log.json +88 -0
  59. package/cache/json/marquee.json +21 -0
  60. package/cache/json/mention.json +193 -0
  61. package/cache/json/menu.json +228 -0
  62. package/cache/json/message-provider.json +60 -0
  63. package/cache/json/modal-provider.json +14 -0
  64. package/cache/json/modal.json +141 -0
  65. package/cache/json/notification-provider.json +54 -0
  66. package/cache/json/number-animation.json +61 -0
  67. package/cache/json/p.json +18 -0
  68. package/cache/json/page-header.json +31 -0
  69. package/cache/json/pagination.json +188 -0
  70. package/cache/json/popconfirm.json +52 -0
  71. package/cache/json/popover.json +241 -0
  72. package/cache/json/popselect.json +78 -0
  73. package/cache/json/progress.json +150 -0
  74. package/cache/json/radio-group.json +52 -0
  75. package/cache/json/rate.json +78 -0
  76. package/cache/json/result.json +49 -0
  77. package/cache/json/scrollbar.json +71 -0
  78. package/cache/json/select.json +358 -0
  79. package/cache/json/skeleton.json +72 -0
  80. package/cache/json/slider.json +143 -0
  81. package/cache/json/space.json +94 -0
  82. package/cache/json/spin.json +69 -0
  83. package/cache/json/split.json +116 -0
  84. package/cache/json/statistic.json +26 -0
  85. package/cache/json/step.json +38 -0
  86. package/cache/json/steps.json +61 -0
  87. package/cache/json/switch.json +86 -0
  88. package/cache/json/tab-pane.json +51 -0
  89. package/cache/json/tab.json +25 -0
  90. package/cache/json/table.json +54 -0
  91. package/cache/json/tabs.json +188 -0
  92. package/cache/json/tag.json +108 -0
  93. package/cache/json/text.json +73 -0
  94. package/cache/json/thing.json +62 -0
  95. package/cache/json/time-picker.json +237 -0
  96. package/cache/json/time.json +52 -0
  97. package/cache/json/timeline-item.json +56 -0
  98. package/cache/json/timeline.json +42 -0
  99. package/cache/json/transfer.json +151 -0
  100. package/cache/json/tree-select.json +384 -0
  101. package/cache/json/tree.json +421 -0
  102. package/cache/json/upload-trigger.json +14 -0
  103. package/cache/json/upload.json +312 -0
  104. package/cache/json/watermark.json +193 -0
  105. package/dist/server.js +213851 -0
  106. package/dist/server.js.map +1 -0
  107. package/package.json +42 -0
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "NScrollbar",
3
+ "tag": "n-scrollbar",
4
+ "description": "看起来好看点,但是我能保证这个没有原生滚动条可靠。",
5
+ "props": [
6
+ {
7
+ "name": "content-class",
8
+ "type": "string",
9
+ "description": "内容 div 的类名",
10
+ "required": false
11
+ },
12
+ {
13
+ "name": "content-style",
14
+ "type": "string",
15
+ "description": "内容 div 的 style",
16
+ "required": false
17
+ },
18
+ {
19
+ "name": "size",
20
+ "type": "number",
21
+ "description": "滚动条的大小",
22
+ "required": false
23
+ },
24
+ {
25
+ "name": "trigger",
26
+ "type": "string",
27
+ "description": "显示滚动条的时机,`'none'` 表示一直显示",
28
+ "required": false,
29
+ "default": "hover",
30
+ "options": [
31
+ "hover",
32
+ "none"
33
+ ]
34
+ },
35
+ {
36
+ "name": "x-scrollable",
37
+ "type": "boolean",
38
+ "description": "是否可以横向滚动",
39
+ "required": false,
40
+ "default": false
41
+ },
42
+ {
43
+ "name": "x-placement",
44
+ "type": "string",
45
+ "description": "横向滚动时滚动条的位置",
46
+ "required": false,
47
+ "default": "bottom",
48
+ "options": [
49
+ "top",
50
+ "bottom"
51
+ ]
52
+ },
53
+ {
54
+ "name": "y-placement",
55
+ "type": "string",
56
+ "description": "纵向滚动时滚动条的位置",
57
+ "required": false,
58
+ "default": "right",
59
+ "options": [
60
+ "left",
61
+ "right"
62
+ ]
63
+ },
64
+ {
65
+ "name": "on-scroll",
66
+ "type": "(e: Event) => void",
67
+ "description": "滚动的回调",
68
+ "required": false
69
+ }
70
+ ]
71
+ }
@@ -0,0 +1,358 @@
1
+ {
2
+ "name": "NSelect",
3
+ "tag": "n-select",
4
+ "description": "选点啥!",
5
+ "props": [
6
+ {
7
+ "name": "consistent-menu-width",
8
+ "type": "boolean",
9
+ "description": "菜单宽度是否和选择触发器一致,设为 `false` 会使 `virtual-scroll` 失效",
10
+ "required": false,
11
+ "default": true
12
+ },
13
+ {
14
+ "name": "children-field",
15
+ "type": "string",
16
+ "description": "选项组 children 的字段名",
17
+ "required": false,
18
+ "default": "children"
19
+ },
20
+ {
21
+ "name": "clearable",
22
+ "type": "boolean",
23
+ "description": "是否可清空",
24
+ "required": false,
25
+ "default": false
26
+ },
27
+ {
28
+ "name": "clear-filter-after-select",
29
+ "type": "boolean",
30
+ "description": "是否在可过滤和多选的情况下选中一个选项后保留当前的搜索关键词",
31
+ "required": false,
32
+ "default": true
33
+ },
34
+ {
35
+ "name": "default-value",
36
+ "type": "Array<string",
37
+ "description": "非受控模式下的默认值",
38
+ "required": false,
39
+ "default": null
40
+ },
41
+ {
42
+ "name": "disabled",
43
+ "type": "boolean",
44
+ "description": "是否禁用",
45
+ "required": false,
46
+ "default": false
47
+ },
48
+ {
49
+ "name": "ellipsis-tag-popover-props",
50
+ "type": "PopoverProps",
51
+ "description": "选中选项过多省略显示时,预览弹出 `popover` 的属性",
52
+ "required": false
53
+ },
54
+ {
55
+ "name": "fallback-option",
56
+ "type": "false",
57
+ "description": "在传入的选项中没有对应当前值的选项时,这个值应该对应的选项。如果设为 `false`,不会为找不到对应选项的值生成回退选项也不会显示它,未在选项中的值会被视为不合法,操作过程中会被组件清除掉",
58
+ "required": false,
59
+ "default": "value => ({ label: '' + value, value })"
60
+ },
61
+ {
62
+ "name": "filterable",
63
+ "type": "boolean",
64
+ "description": "是否可以过滤",
65
+ "required": false,
66
+ "default": false
67
+ },
68
+ {
69
+ "name": "filter",
70
+ "type": "(pattern: string, option: object) => boolean",
71
+ "description": "过滤器函数",
72
+ "required": false,
73
+ "default": "一个简单的字符串搜索算法"
74
+ },
75
+ {
76
+ "name": "ignore-composition",
77
+ "type": "boolean",
78
+ "description": "忽略输入法 Composition 状态,默认情况下 `filter` 在输入法输入的过程中不会触发",
79
+ "required": false,
80
+ "default": true
81
+ },
82
+ {
83
+ "name": "input-props",
84
+ "type": "InputHTMLAttributes",
85
+ "description": "触发器中 input 元素的属性,只在可过滤时有意义",
86
+ "required": false
87
+ },
88
+ {
89
+ "name": "keyboard",
90
+ "type": "boolean",
91
+ "description": "是否支持键盘操作",
92
+ "required": false,
93
+ "default": true
94
+ },
95
+ {
96
+ "name": "label-field",
97
+ "type": "string",
98
+ "description": "选项 label 的字段名",
99
+ "required": false,
100
+ "default": "label"
101
+ },
102
+ {
103
+ "name": "loading",
104
+ "type": "boolean",
105
+ "description": "是否为加载状态",
106
+ "required": false,
107
+ "default": false
108
+ },
109
+ {
110
+ "name": "max-tag-count",
111
+ "type": "string",
112
+ "description": "多选标签的最大显示数量,`responsive` 会将所有标签保持在一行",
113
+ "required": false,
114
+ "options": [
115
+ "responsive"
116
+ ]
117
+ },
118
+ {
119
+ "name": "menu-props",
120
+ "type": "HTMLAttributes",
121
+ "description": "菜单的 DOM 属性",
122
+ "required": false
123
+ },
124
+ {
125
+ "name": "menu-size",
126
+ "type": "string",
127
+ "description": "菜单的尺寸",
128
+ "required": false,
129
+ "default": "medium",
130
+ "options": [
131
+ "tiny",
132
+ "small",
133
+ "medium",
134
+ "large"
135
+ ]
136
+ },
137
+ {
138
+ "name": "multiple",
139
+ "type": "boolean",
140
+ "description": "是否为多选",
141
+ "required": false,
142
+ "default": false
143
+ },
144
+ {
145
+ "name": "node-props",
146
+ "type": "(option: SelectOption",
147
+ "description": "选项的 DOM 属性生成函数",
148
+ "required": false
149
+ },
150
+ {
151
+ "name": "options",
152
+ "type": "Array<SelectOption",
153
+ "description": "配置选项内容,详情见 SelectOption Properties",
154
+ "required": false,
155
+ "default": []
156
+ },
157
+ {
158
+ "name": "placeholder",
159
+ "type": "string",
160
+ "description": "提示信息",
161
+ "required": false,
162
+ "default": "请选择' (i18n)"
163
+ },
164
+ {
165
+ "name": "placement",
166
+ "type": "string",
167
+ "description": "菜单的弹出位置",
168
+ "required": false,
169
+ "default": "bottom-start",
170
+ "options": [
171
+ "top-start",
172
+ "top",
173
+ "top-end",
174
+ "right-start",
175
+ "right",
176
+ "right-end",
177
+ "bottom-start",
178
+ "bottom",
179
+ "bottom-end",
180
+ "left-start",
181
+ "left",
182
+ "left-end"
183
+ ]
184
+ },
185
+ {
186
+ "name": "remote",
187
+ "type": "boolean",
188
+ "description": "是否要异步获取选项。注意如果设定了,那么 `filter` 和 `tag` 都不会对 `options` 生效。这个时候你在全权控制 `options`",
189
+ "required": false,
190
+ "default": false
191
+ },
192
+ {
193
+ "name": "render-label",
194
+ "type": "(option: SelectOption",
195
+ "description": "选项标签渲染函数",
196
+ "required": false
197
+ },
198
+ {
199
+ "name": "render-option",
200
+ "type": "(info: { node: VNode, option: SelectOption",
201
+ "description": "选项的渲染函数",
202
+ "required": false
203
+ },
204
+ {
205
+ "name": "render-tag",
206
+ "type": "(props: { option: SelectBaseOption, handleClose: () => void }) => VNodeChild",
207
+ "description": "控制标签的渲染",
208
+ "required": false
209
+ },
210
+ {
211
+ "name": "reset-menu-on-options-change",
212
+ "type": "boolean",
213
+ "description": "是否在选项变化时重置菜单状态,例如滚动状态",
214
+ "required": false,
215
+ "default": true
216
+ },
217
+ {
218
+ "name": "scrollbar-props",
219
+ "type": "ScrollbarProps",
220
+ "description": "属性参考 [Scrollbar props](scrollbar#Scrollbar-Props)",
221
+ "required": false
222
+ },
223
+ {
224
+ "name": "show",
225
+ "type": "boolean",
226
+ "description": "是否展示菜单",
227
+ "required": false
228
+ },
229
+ {
230
+ "name": "show-arrow",
231
+ "type": "boolean",
232
+ "description": "是否展示箭头",
233
+ "required": false,
234
+ "default": true
235
+ },
236
+ {
237
+ "name": "show-checkmark",
238
+ "type": "boolean",
239
+ "description": "是否展示对勾",
240
+ "required": false,
241
+ "default": true
242
+ },
243
+ {
244
+ "name": "show-on-focus",
245
+ "type": "boolean",
246
+ "description": "聚焦时是否展示菜单",
247
+ "required": false,
248
+ "default": false
249
+ },
250
+ {
251
+ "name": "size",
252
+ "type": "string",
253
+ "description": "组件尺寸",
254
+ "required": false,
255
+ "default": "medium",
256
+ "options": [
257
+ "tiny",
258
+ "small",
259
+ "medium",
260
+ "large"
261
+ ]
262
+ },
263
+ {
264
+ "name": "status",
265
+ "type": "string",
266
+ "description": "验证状态",
267
+ "required": false,
268
+ "options": [
269
+ "success",
270
+ "warning",
271
+ "error"
272
+ ]
273
+ },
274
+ {
275
+ "name": "tag",
276
+ "type": "boolean",
277
+ "description": "是否可以创建新的选项,需要和 `filterable` 一起使用",
278
+ "required": false,
279
+ "default": false
280
+ },
281
+ {
282
+ "name": "to",
283
+ "type": "string",
284
+ "description": "菜单的容器节点,`false` 会待在原地",
285
+ "required": false,
286
+ "default": "body"
287
+ },
288
+ {
289
+ "name": "value",
290
+ "type": "Array<string",
291
+ "description": "受控模式下的值",
292
+ "required": false
293
+ },
294
+ {
295
+ "name": "value-field",
296
+ "type": "string",
297
+ "description": "选项 value 的字段名",
298
+ "required": false,
299
+ "default": "value"
300
+ },
301
+ {
302
+ "name": "virtual-scroll",
303
+ "type": "boolean",
304
+ "description": "是否启用虚拟滚动",
305
+ "required": false,
306
+ "default": true
307
+ },
308
+ {
309
+ "name": "on-blur",
310
+ "type": "() => void",
311
+ "description": "`blur` 时执行的回调",
312
+ "required": false
313
+ },
314
+ {
315
+ "name": "on-clear",
316
+ "type": "() => void",
317
+ "description": "`clear` 时执行的回调",
318
+ "required": false
319
+ },
320
+ {
321
+ "name": "on-create",
322
+ "type": "(label: string) => SelectOption",
323
+ "description": "在输入内容时如何创���一个选项。注意 `filter` 对这个生成的选项同样会生效。同时确保这个选项和其他选项的 `value` 不要有重复,应该和 `tag` 属性一起被使用",
324
+ "required": false,
325
+ "default": "label => ({ label, value: label })"
326
+ },
327
+ {
328
+ "name": "on-focus",
329
+ "type": "() => void",
330
+ "description": "`focus` 时执行的回调",
331
+ "required": false
332
+ },
333
+ {
334
+ "name": "on-scroll",
335
+ "type": "(e: ScrollEvent) => void",
336
+ "description": "滚动时执行的回调",
337
+ "required": false
338
+ },
339
+ {
340
+ "name": "on-search",
341
+ "type": "(value: string) => void",
342
+ "description": "搜索时执行的回调",
343
+ "required": false
344
+ },
345
+ {
346
+ "name": "on-update:show",
347
+ "type": "(show: boolean) => void",
348
+ "description": "菜单打开状态变化的回调",
349
+ "required": false
350
+ },
351
+ {
352
+ "name": "on-update:value",
353
+ "type": "(value: Array",
354
+ "description": "值更新时执行的回调",
355
+ "required": false
356
+ }
357
+ ]
358
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "NSkeleton",
3
+ "tag": "n-skeleton",
4
+ "description": "可以闪的占位符。",
5
+ "props": [
6
+ {
7
+ "name": "text",
8
+ "type": "boolean",
9
+ "description": "文本骨架",
10
+ "required": false,
11
+ "default": false
12
+ },
13
+ {
14
+ "name": "round",
15
+ "type": "boolean",
16
+ "description": "圆角骨架",
17
+ "required": false,
18
+ "default": false
19
+ },
20
+ {
21
+ "name": "circle",
22
+ "type": "boolean",
23
+ "description": "圆形骨架",
24
+ "required": false,
25
+ "default": false
26
+ },
27
+ {
28
+ "name": "height",
29
+ "type": "string",
30
+ "description": "骨架高度",
31
+ "required": false
32
+ },
33
+ {
34
+ "name": "width",
35
+ "type": "string",
36
+ "description": "骨架宽度",
37
+ "required": false
38
+ },
39
+ {
40
+ "name": "size",
41
+ "type": "string",
42
+ "description": "骨架大小",
43
+ "required": false,
44
+ "options": [
45
+ "small",
46
+ "medium",
47
+ "large"
48
+ ]
49
+ },
50
+ {
51
+ "name": "repeat",
52
+ "type": "string",
53
+ "description": "重复次数",
54
+ "required": false,
55
+ "default": 1
56
+ },
57
+ {
58
+ "name": "animated",
59
+ "type": "boolean",
60
+ "description": "是否启用动画",
61
+ "required": false,
62
+ "default": true
63
+ },
64
+ {
65
+ "name": "sharp",
66
+ "type": "boolean",
67
+ "description": "是否显示为直角骨架",
68
+ "required": false,
69
+ "default": true
70
+ }
71
+ ]
72
+ }
@@ -0,0 +1,143 @@
1
+ {
2
+ "name": "NSlider",
3
+ "tag": "n-slider",
4
+ "description": "就我所知,这东西一般就用来控制音量。",
5
+ "props": [
6
+ {
7
+ "name": "default-value",
8
+ "type": "number",
9
+ "description": "默认值",
10
+ "required": false,
11
+ "default": null
12
+ },
13
+ {
14
+ "name": "disabled",
15
+ "type": "boolean",
16
+ "description": "是否禁用",
17
+ "required": false,
18
+ "default": false
19
+ },
20
+ {
21
+ "name": "format-tooltip",
22
+ "type": "(value: number) => string",
23
+ "description": "格式化 tooltip",
24
+ "required": false
25
+ },
26
+ {
27
+ "name": "keyboard",
28
+ "type": "boolean",
29
+ "description": "是否可键盘控制",
30
+ "required": false,
31
+ "default": true
32
+ },
33
+ {
34
+ "name": "marks",
35
+ "type": "{ [markValue: number]: string",
36
+ "description": "Slider 上的标记",
37
+ "required": false
38
+ },
39
+ {
40
+ "name": "max",
41
+ "type": "number",
42
+ "description": "最大值",
43
+ "required": false,
44
+ "default": 100
45
+ },
46
+ {
47
+ "name": "min",
48
+ "type": "number",
49
+ "description": "最小值",
50
+ "required": false,
51
+ "default": 0
52
+ },
53
+ {
54
+ "name": "placement",
55
+ "type": "string",
56
+ "description": "Tooltip 的弹出位置",
57
+ "required": false,
58
+ "options": [
59
+ "top-start",
60
+ "top",
61
+ "top-end",
62
+ "right-start",
63
+ "right",
64
+ "right-end",
65
+ "bottom-start",
66
+ "bottom",
67
+ "bottom-end",
68
+ "left-start",
69
+ "left",
70
+ "left-end"
71
+ ]
72
+ },
73
+ {
74
+ "name": "range",
75
+ "type": "boolean",
76
+ "description": "是否选择范围值",
77
+ "required": false,
78
+ "default": false
79
+ },
80
+ {
81
+ "name": "reverse",
82
+ "type": "boolean",
83
+ "description": "是否倒转轨道",
84
+ "required": false,
85
+ "default": false
86
+ },
87
+ {
88
+ "name": "show-tooltip",
89
+ "type": "boolean",
90
+ "description": "是否一直显示 tooltip,仅对非 range 生��",
91
+ "required": false,
92
+ "default": false
93
+ },
94
+ {
95
+ "name": "step",
96
+ "type": "string",
97
+ "description": "步长",
98
+ "required": false,
99
+ "default": 1,
100
+ "options": [
101
+ "mark"
102
+ ]
103
+ },
104
+ {
105
+ "name": "tooltip",
106
+ "type": "boolean",
107
+ "description": "是否展示 tooltip",
108
+ "required": false,
109
+ "default": true
110
+ },
111
+ {
112
+ "name": "vertical",
113
+ "type": "boolean",
114
+ "description": "是否启用垂直模式",
115
+ "required": false,
116
+ "default": false
117
+ },
118
+ {
119
+ "name": "value",
120
+ "type": "number",
121
+ "description": "值",
122
+ "required": false
123
+ },
124
+ {
125
+ "name": "on-update:value",
126
+ "type": "(value: number",
127
+ "description": "值更新的回调",
128
+ "required": false
129
+ },
130
+ {
131
+ "name": "on-dragstart",
132
+ "type": "() => void",
133
+ "description": "开始拖拽的回调函数",
134
+ "required": false
135
+ },
136
+ {
137
+ "name": "on-dragend",
138
+ "type": "() => void",
139
+ "description": "拖拽结束的回调函数",
140
+ "required": false
141
+ }
142
+ ]
143
+ }