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,100 @@
1
+ {
2
+ "name": "NDynamicInput",
3
+ "tag": "n-dynamic-input",
4
+ "description": "<!--single-column-->",
5
+ "props": [
6
+ {
7
+ "name": "create-button-props",
8
+ "type": "ButtonProps",
9
+ "description": "新建项按钮的属性",
10
+ "required": false
11
+ },
12
+ {
13
+ "name": "default-value",
14
+ "type": "unknown[]",
15
+ "description": "非受控模式下的默认值",
16
+ "required": false,
17
+ "default": []
18
+ },
19
+ {
20
+ "name": "disabled",
21
+ "type": "boolean",
22
+ "description": "是否禁用,对自定义内容无效",
23
+ "required": false,
24
+ "default": false
25
+ },
26
+ {
27
+ "name": "item-class",
28
+ "type": "string",
29
+ "description": "动态录入中每项的类名",
30
+ "required": false
31
+ },
32
+ {
33
+ "name": "item-style",
34
+ "type": "string",
35
+ "description": "动态录入中每项的样式",
36
+ "required": false
37
+ },
38
+ {
39
+ "name": "key-field",
40
+ "type": "string",
41
+ "description": "每一项的 key 值,会被用于列表渲染中",
42
+ "required": false
43
+ },
44
+ {
45
+ "name": "min",
46
+ "type": "number",
47
+ "description": "最少有几项内容",
48
+ "required": false,
49
+ "default": 0
50
+ },
51
+ {
52
+ "name": "max",
53
+ "type": "number",
54
+ "description": "最多有几项内容",
55
+ "required": false
56
+ },
57
+ {
58
+ "name": "preset",
59
+ "type": "string",
60
+ "description": "动态录入使用的预设,在不设定 `$slots.default` 的时候生效",
61
+ "required": false,
62
+ "default": "input",
63
+ "options": [
64
+ "input",
65
+ "pair"
66
+ ]
67
+ },
68
+ {
69
+ "name": "show-sort-button",
70
+ "type": "boolean",
71
+ "description": "是否显示排序按钮",
72
+ "required": false,
73
+ "default": false
74
+ },
75
+ {
76
+ "name": "value",
77
+ "type": "unknown[]",
78
+ "description": "受控模式下的值",
79
+ "required": false
80
+ },
81
+ {
82
+ "name": "on-create",
83
+ "type": "(index: number) => void",
84
+ "description": "点击添加按钮时的回调,如果设定则返回值会被用作新添加的初始值。其中 `index` 是创建内容将要被放置到的位置对应的数组索引,从 1(第二项)开始计算",
85
+ "required": false
86
+ },
87
+ {
88
+ "name": "on-remove",
89
+ "type": "(index: number) => void",
90
+ "description": "点击第 index 项删除按钮的回调",
91
+ "required": false
92
+ },
93
+ {
94
+ "name": "on-update:value",
95
+ "type": "(value: any) => void",
96
+ "description": "组件值发生变化的回调",
97
+ "required": false
98
+ }
99
+ ]
100
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "name": "NDynamicTags",
3
+ "tag": "n-dynamic-tags",
4
+ "description": "把标签变得可以输入。",
5
+ "props": [
6
+ {
7
+ "name": "closable",
8
+ "type": "boolean",
9
+ "description": "是否可关闭",
10
+ "required": false,
11
+ "default": true
12
+ },
13
+ {
14
+ "name": "color",
15
+ "type": "{ color?: string, borderColor?: string, textColor?: string }",
16
+ "description": "标签颜色,设置该项后 `type` 无效",
17
+ "required": false
18
+ },
19
+ {
20
+ "name": "default-value",
21
+ "type": "string[]",
22
+ "description": "非受控模式下的默认值",
23
+ "required": false,
24
+ "default": []
25
+ },
26
+ {
27
+ "name": "disabled",
28
+ "type": "boolean",
29
+ "description": "是否禁用",
30
+ "required": false,
31
+ "default": false
32
+ },
33
+ {
34
+ "name": "input-props",
35
+ "type": "InputProps",
36
+ "description": "内部 `n-input` 组件的属性",
37
+ "required": false
38
+ },
39
+ {
40
+ "name": "input-class",
41
+ "type": "string",
42
+ "description": "自定义输入框的类名",
43
+ "required": false
44
+ },
45
+ {
46
+ "name": "input-style",
47
+ "type": "string",
48
+ "description": "自定义输入框的样式",
49
+ "required": false
50
+ },
51
+ {
52
+ "name": "max",
53
+ "type": "number",
54
+ "description": "tag 的最大数量",
55
+ "required": false
56
+ },
57
+ {
58
+ "name": "round",
59
+ "type": "boolean",
60
+ "description": "是否圆角",
61
+ "required": false,
62
+ "default": false
63
+ },
64
+ {
65
+ "name": "render-tag",
66
+ "type": "((tag: string, index: number) => VNodeChild)",
67
+ "description": "自定义渲染 tag",
68
+ "required": false
69
+ },
70
+ {
71
+ "name": "size",
72
+ "type": "string",
73
+ "description": "尺寸大小",
74
+ "required": false,
75
+ "default": "medium",
76
+ "options": [
77
+ "small",
78
+ "medium",
79
+ "large"
80
+ ]
81
+ },
82
+ {
83
+ "name": "tag-class",
84
+ "type": "string",
85
+ "description": "自定义标签的类名",
86
+ "required": false
87
+ },
88
+ {
89
+ "name": "tag-style",
90
+ "type": "string",
91
+ "description": "自定义标签的样式",
92
+ "required": false
93
+ },
94
+ {
95
+ "name": "type",
96
+ "type": "string",
97
+ "description": "标签类型",
98
+ "required": false,
99
+ "default": "default",
100
+ "options": [
101
+ "default",
102
+ "primary",
103
+ "info",
104
+ "success",
105
+ "warning",
106
+ "error"
107
+ ]
108
+ },
109
+ {
110
+ "name": "value",
111
+ "type": "string[]",
112
+ "description": "受控模式下的值",
113
+ "required": false
114
+ },
115
+ {
116
+ "name": "on-create",
117
+ "type": "((label: string) => string)",
118
+ "description": "根据输入的值创造对应的选项",
119
+ "required": false,
120
+ "default": "label => label"
121
+ },
122
+ {
123
+ "name": "on-update:value",
124
+ "type": "((value: string[]) => void)",
125
+ "description": "组件值发生变化时的回调",
126
+ "required": false
127
+ }
128
+ ]
129
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "NElement",
3
+ "tag": "n-element",
4
+ "description": "Element 上面有很多 Naive UI 提供的主题变量。",
5
+ "props": [
6
+ {
7
+ "name": "tag",
8
+ "type": "string",
9
+ "description": "`n-element` 需要渲染为什么元素",
10
+ "required": false,
11
+ "default": "div"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "NEmpty",
3
+ "tag": "n-empty",
4
+ "description": "空<span style=\"opacity: 0;\">空如</span>也。",
5
+ "props": [
6
+ {
7
+ "name": "description",
8
+ "type": "string",
9
+ "description": "描述信息",
10
+ "required": false,
11
+ "default": "无数据"
12
+ },
13
+ {
14
+ "name": "show-description",
15
+ "type": "boolean",
16
+ "description": "是否展示描述信息",
17
+ "required": false,
18
+ "default": true
19
+ },
20
+ {
21
+ "name": "show-icon",
22
+ "type": "boolean",
23
+ "description": "是否展示图标",
24
+ "required": false,
25
+ "default": true
26
+ },
27
+ {
28
+ "name": "size",
29
+ "type": "string",
30
+ "description": "尺寸大小",
31
+ "required": false,
32
+ "default": "medium",
33
+ "options": [
34
+ "tiny",
35
+ "small",
36
+ "medium",
37
+ "large",
38
+ "huge"
39
+ ]
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "NEquation",
3
+ "tag": "n-equation",
4
+ "description": "没有人会想到一个组件库会有这种组件,但是作者的一位朋友需要这个。",
5
+ "props": [
6
+ {
7
+ "name": "katex",
8
+ "type": "object",
9
+ "description": "Katex",
10
+ "required": false
11
+ },
12
+ {
13
+ "name": "katex-options",
14
+ "type": "object",
15
+ "description": "Katex 公式的配置",
16
+ "required": false
17
+ },
18
+ {
19
+ "name": "value",
20
+ "type": "string",
21
+ "description": "Latex 格式的公式表达式",
22
+ "required": false
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "NFlex",
3
+ "tag": "n-flex",
4
+ "description": "自 `2.37.0` 开始提供。",
5
+ "props": [
6
+ {
7
+ "name": "align",
8
+ "type": "string",
9
+ "description": "垂直排列方式,参考 [align-items](https://developer.mozilla.org/zh-CN/docs/Web/CSS/align-items)",
10
+ "required": false
11
+ },
12
+ {
13
+ "name": "inline",
14
+ "type": "boolean",
15
+ "description": "是否为行内元素",
16
+ "required": false,
17
+ "default": false
18
+ },
19
+ {
20
+ "name": "justify",
21
+ "type": "string",
22
+ "description": "水平排列方式,参考 [justify-content](https://developer.mozilla.org/zh-CN/docs/Web/CSS/justify-content)",
23
+ "required": false,
24
+ "default": "start"
25
+ },
26
+ {
27
+ "name": "size",
28
+ "type": "string",
29
+ "description": "为数字时,是水平和垂直间距;为数组时,是 [水平间距, 垂直间距]",
30
+ "required": false,
31
+ "default": "medium",
32
+ "options": [
33
+ "small",
34
+ "medium",
35
+ "large"
36
+ ]
37
+ },
38
+ {
39
+ "name": "vertical",
40
+ "type": "boolean",
41
+ "description": "是否垂直布局",
42
+ "required": false,
43
+ "default": false
44
+ },
45
+ {
46
+ "name": "wrap",
47
+ "type": "boolean",
48
+ "description": "是否超出换行",
49
+ "required": false,
50
+ "default": true
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "NFloatButton",
3
+ "tag": "n-float-button",
4
+ "description": "跟 `Back Top` 很像,多一份颜值,多一份互动。",
5
+ "props": [
6
+ {
7
+ "name": "bottom",
8
+ "type": "number",
9
+ "description": "按钮的 CSS `bottom` 属性",
10
+ "required": false,
11
+ "default": 40
12
+ },
13
+ {
14
+ "name": "height",
15
+ "type": "number",
16
+ "description": "按钮的 CSS `height` 属性",
17
+ "required": false,
18
+ "default": 40
19
+ },
20
+ {
21
+ "name": "left",
22
+ "type": "number",
23
+ "description": "按钮的 CSS `left` 属性",
24
+ "required": false
25
+ },
26
+ {
27
+ "name": "menu-trigger",
28
+ "type": "string",
29
+ "description": "触发菜单显示的方式",
30
+ "required": false,
31
+ "options": [
32
+ "click",
33
+ "hover"
34
+ ]
35
+ },
36
+ {
37
+ "name": "position",
38
+ "type": "string",
39
+ "description": "按钮组的定位方式",
40
+ "required": false,
41
+ "default": "fixed",
42
+ "options": [
43
+ "relative",
44
+ "absolute",
45
+ "fixed"
46
+ ]
47
+ },
48
+ {
49
+ "name": "right",
50
+ "type": "number",
51
+ "description": "按钮的 CSS `right` 属性",
52
+ "required": false
53
+ },
54
+ {
55
+ "name": "shape",
56
+ "type": "string",
57
+ "description": "按钮的形状",
58
+ "required": false,
59
+ "default": "circle",
60
+ "options": [
61
+ "circle",
62
+ "square"
63
+ ]
64
+ },
65
+ {
66
+ "name": "show-menu",
67
+ "type": "boolean",
68
+ "description": "是否打开菜单",
69
+ "required": false
70
+ },
71
+ {
72
+ "name": "top",
73
+ "type": "number",
74
+ "description": "按钮的 CSS `top` 属性",
75
+ "required": false
76
+ },
77
+ {
78
+ "name": "type",
79
+ "type": "string",
80
+ "description": "按钮的类型",
81
+ "required": false,
82
+ "default": "default",
83
+ "options": [
84
+ "default",
85
+ "primary"
86
+ ]
87
+ },
88
+ {
89
+ "name": "width",
90
+ "type": "number",
91
+ "description": "按钮的 CSS `width` 属性",
92
+ "required": false
93
+ },
94
+ {
95
+ "name": "on-update:show-menu",
96
+ "type": "(value: boolean) => void",
97
+ "description": "菜单打开或者关闭的回调",
98
+ "required": false
99
+ }
100
+ ]
101
+ }
@@ -0,0 +1,171 @@
1
+ {
2
+ "name": "NFormItem",
3
+ "tag": "n-form-item",
4
+ "description": "<!--single-column-->",
5
+ "props": [
6
+ {
7
+ "name": "content-class",
8
+ "type": "string",
9
+ "description": "内容的类名",
10
+ "required": false
11
+ },
12
+ {
13
+ "name": "content-style",
14
+ "type": "string",
15
+ "description": "内容的样式",
16
+ "required": false
17
+ },
18
+ {
19
+ "name": "feedback",
20
+ "type": "string",
21
+ "description": "表项的反馈信息。不设为 `undefined` 时,会覆盖规则验证的结果",
22
+ "required": false
23
+ },
24
+ {
25
+ "name": "feedback-class",
26
+ "type": "string",
27
+ "description": "反馈校验竖向展示定位",
28
+ "required": false
29
+ },
30
+ {
31
+ "name": "feedback-style",
32
+ "type": "string",
33
+ "description": "反馈校验横向展示定位",
34
+ "required": false
35
+ },
36
+ {
37
+ "name": "first",
38
+ "type": "boolean",
39
+ "description": "是否只展示首个出错信息",
40
+ "required": false,
41
+ "default": false
42
+ },
43
+ {
44
+ "name": "ignore-path-change",
45
+ "type": "boolean",
46
+ "description": "通常 `path` 的改变会导致数据来源的变化,所以 naive-ui 会清空验证信息。如果不期望这个行为,可以将其置为 `true`",
47
+ "required": false,
48
+ "default": false
49
+ },
50
+ {
51
+ "name": "label",
52
+ "type": "string",
53
+ "description": "标签信息",
54
+ "required": false
55
+ },
56
+ {
57
+ "name": "label-align",
58
+ "type": "string",
59
+ "description": "标签的文本对齐方式。如果没有被设定,使用外层表单的 `label-align`",
60
+ "required": false,
61
+ "options": [
62
+ "left",
63
+ "right"
64
+ ]
65
+ },
66
+ {
67
+ "name": "label-placement",
68
+ "type": "string",
69
+ "description": "如果没有被设定,使用外层表单的 `label-placement`",
70
+ "required": false,
71
+ "options": [
72
+ "left",
73
+ "top"
74
+ ]
75
+ },
76
+ {
77
+ "name": "label-style",
78
+ "type": "CSSProperties",
79
+ "description": "标签的样式",
80
+ "required": false
81
+ },
82
+ {
83
+ "name": "label-props",
84
+ "type": "LabelHTMLAttributes",
85
+ "description": "标签元素的属性",
86
+ "required": false
87
+ },
88
+ {
89
+ "name": "label-width",
90
+ "type": "string",
91
+ "description": "如果没有被设定,使用外层表单的 `label-width`,`'auto'` 意味着 label width 会被自动调整",
92
+ "required": false,
93
+ "options": [
94
+ "auto"
95
+ ]
96
+ },
97
+ {
98
+ "name": "path",
99
+ "type": "string",
100
+ "description": "将值收集到外层表单 `model` 对象的路径",
101
+ "required": false
102
+ },
103
+ {
104
+ "name": "rule",
105
+ "type": "FormItemRule",
106
+ "description": "验证表项的规则,它会被通过 `rule-path` 从外层表单获取的规则合并来作为表项的验证规则。推荐还是在外层表单设置所有规则",
107
+ "required": false
108
+ },
109
+ {
110
+ "name": "rule-path",
111
+ "type": "string",
112
+ "description": "从外层表单的 `rules` 对象获取规则的路径。如果没有设定,使用表项的 `path` 代替",
113
+ "required": false
114
+ },
115
+ {
116
+ "name": "show-feedback",
117
+ "type": "boolean",
118
+ "description": "是否展示校验反馈",
119
+ "required": false,
120
+ "default": true
121
+ },
122
+ {
123
+ "name": "show-label",
124
+ "type": "boolean",
125
+ "description": "是否展示标签。如果没有被设定,使用外层 `n-form` 的 `show-label`",
126
+ "required": false,
127
+ "default": true
128
+ },
129
+ {
130
+ "name": "show-require-mark",
131
+ "type": "boolean",
132
+ "description": "是否展示必填的星号。如果没有被设定,使用外层 `n-form` 的 `show-require-mark`",
133
+ "required": false
134
+ },
135
+ {
136
+ "name": "require-mark-placement",
137
+ "type": "string",
138
+ "description": "必填的星号的位置���如果没有被设定,使用外层 `n-form` 的 `require-mark-placement`",
139
+ "required": false,
140
+ "default": "right",
141
+ "options": [
142
+ "left",
143
+ "right",
144
+ "right-hanging"
145
+ ]
146
+ },
147
+ {
148
+ "name": "size",
149
+ "type": "string",
150
+ "description": "尺寸",
151
+ "required": false,
152
+ "default": "medium",
153
+ "options": [
154
+ "small",
155
+ "medium",
156
+ "large"
157
+ ]
158
+ },
159
+ {
160
+ "name": "validation-status",
161
+ "type": "string",
162
+ "description": "表单的验证状态。不设为 `undefined`时,会覆盖规则验证的结果",
163
+ "required": false,
164
+ "options": [
165
+ "error",
166
+ "success",
167
+ "warning"
168
+ ]
169
+ }
170
+ ]
171
+ }