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,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAffix",
|
|
3
|
+
"tag": "n-affix",
|
|
4
|
+
"description": "Affix 可以让内容在页面滚动的时候固定在一个位置,它和 `position: sticky` 有那么点像不过可以做更多事。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "bottom",
|
|
8
|
+
"type": "number",
|
|
9
|
+
"required": false
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "listen-to",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"required": false,
|
|
15
|
+
"default": "document"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "trigger-bottom",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"required": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "trigger-top",
|
|
24
|
+
"type": "number",
|
|
25
|
+
"required": false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "position",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": false,
|
|
31
|
+
"default": "fixed",
|
|
32
|
+
"options": [
|
|
33
|
+
"fixed",
|
|
34
|
+
"absolute"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "top",
|
|
39
|
+
"type": "number",
|
|
40
|
+
"required": false
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAlert",
|
|
3
|
+
"tag": "n-alert",
|
|
4
|
+
"description": "根据我的经验,这东西使用最频繁的场景是让你关掉 AdBlocks。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "bordered",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "alert 是否显示边框",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": true
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "closable",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "alert 信息是否可以关掉",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "show-icon",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "alert 是否展示 icon",
|
|
24
|
+
"required": false,
|
|
25
|
+
"default": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "title",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "alert 的 title 信息",
|
|
31
|
+
"required": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "type",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "alert 的类型",
|
|
37
|
+
"required": false,
|
|
38
|
+
"default": "default",
|
|
39
|
+
"options": [
|
|
40
|
+
"default",
|
|
41
|
+
"info",
|
|
42
|
+
"success",
|
|
43
|
+
"warning",
|
|
44
|
+
"error"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "on-after-leave",
|
|
49
|
+
"type": "Function",
|
|
50
|
+
"description": "alert 消失时执行的回调函数",
|
|
51
|
+
"required": false
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "on-close",
|
|
55
|
+
"type": "() => boolean",
|
|
56
|
+
"description": "点击 close icon 时执行的回调函数",
|
|
57
|
+
"required": false,
|
|
58
|
+
"default": "() => true"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAnchorLink",
|
|
3
|
+
"tag": "n-anchor-link",
|
|
4
|
+
"description": "<!--single-column-->",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "href",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "锚点链接",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "title",
|
|
14
|
+
"type": "stirng",
|
|
15
|
+
"description": "锚点标题",
|
|
16
|
+
"required": false
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAnchor",
|
|
3
|
+
"tag": "n-anchor",
|
|
4
|
+
"description": "<!--single-column-->",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "affix",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Anchor 是否像 Affix 一样展示,如果设定为 `true`,它还会接受 [Affix](affix#Affix-Props) 的 Props",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "bound",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "元素开始触发 anchor 的偏移量",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": 12
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "ignore-gap",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "如果设定为 `true`, 导航将显示在准确的 href 区域",
|
|
24
|
+
"required": false,
|
|
25
|
+
"default": false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "offset-target",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "计算偏移位置相对的元素或选择器。如果你滚动的不是整个文档而只是其中的一部分,那你有可能要设定这个",
|
|
31
|
+
"required": false,
|
|
32
|
+
"default": "document"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "show-rail",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"description": "是否展示侧面的轨道",
|
|
38
|
+
"required": false,
|
|
39
|
+
"default": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "show-background",
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "是否展示 link 的背景",
|
|
45
|
+
"required": false,
|
|
46
|
+
"default": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "type",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "Anchor 的风格,`'block'` 为块状风格,`'rail'` 为轨道风格",
|
|
52
|
+
"required": false,
|
|
53
|
+
"default": "rail",
|
|
54
|
+
"options": [
|
|
55
|
+
"rail",
|
|
56
|
+
"block"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAutoComplete",
|
|
3
|
+
"tag": "n-auto-complete",
|
|
4
|
+
"description": "用来当搜索提示或者类似的东西。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "append",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "选中后是否追加",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "blur-after-select",
|
|
15
|
+
"type": "boolean",
|
|
16
|
+
"description": "选中后是否 blur",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "bordered",
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "是否显示输入框边框",
|
|
24
|
+
"required": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "clear-after-select",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"description": "选中后是否清空",
|
|
30
|
+
"required": false,
|
|
31
|
+
"default": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "clearable",
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "自动填充是否支持可清除",
|
|
37
|
+
"required": false,
|
|
38
|
+
"default": false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "default-value",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "自动填充的默认值",
|
|
44
|
+
"required": false,
|
|
45
|
+
"default": null
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "disabled",
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "自动填充是否禁用",
|
|
51
|
+
"required": false,
|
|
52
|
+
"default": false
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "get-show",
|
|
56
|
+
"type": "(value: string) => boolean",
|
|
57
|
+
"description": "根据输入值在聚焦的状态中决定是否显示菜单",
|
|
58
|
+
"required": false
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "input-props",
|
|
62
|
+
"type": "InputHTMLAttributes",
|
|
63
|
+
"description": "自动填充中 input 元素的属性",
|
|
64
|
+
"required": false
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "loading",
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "是否展示加载状态",
|
|
70
|
+
"required": false,
|
|
71
|
+
"default": false
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "menu-props",
|
|
75
|
+
"type": "HTMLAttributes",
|
|
76
|
+
"description": "菜单的 DOM 属性",
|
|
77
|
+
"required": false
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "options",
|
|
81
|
+
"type": "Array<string",
|
|
82
|
+
"description": "自动填充的自定义选项",
|
|
83
|
+
"required": false,
|
|
84
|
+
"default": []
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "placeholder",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"description": "自动填充的提示信息",
|
|
90
|
+
"required": false,
|
|
91
|
+
"default": "请输入"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "placement",
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "自动填充的弹出位置",
|
|
97
|
+
"required": false,
|
|
98
|
+
"default": "bottom-start",
|
|
99
|
+
"options": [
|
|
100
|
+
"top-start",
|
|
101
|
+
"top",
|
|
102
|
+
"top-end",
|
|
103
|
+
"right-start",
|
|
104
|
+
"right",
|
|
105
|
+
"right-end",
|
|
106
|
+
"bottom-start",
|
|
107
|
+
"bottom",
|
|
108
|
+
"bottom-end",
|
|
109
|
+
"left-start",
|
|
110
|
+
"left",
|
|
111
|
+
"left-end"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "render-label",
|
|
116
|
+
"type": "(option: SelectOption",
|
|
117
|
+
"description": "选项标签渲染函数",
|
|
118
|
+
"required": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "render-option",
|
|
122
|
+
"type": "(info: { node: VNode, option: SelectOption",
|
|
123
|
+
"description": "选项的渲染函数",
|
|
124
|
+
"required": false
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "scrollbar-props",
|
|
128
|
+
"type": "ScrollbarProps",
|
|
129
|
+
"description": "See [Scrollbar props](scrollbar#Scrollbar-Props)",
|
|
130
|
+
"required": false
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "show-empty",
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"description": "在没有选项的时候是否展示菜单",
|
|
136
|
+
"required": false,
|
|
137
|
+
"default": false
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "size",
|
|
141
|
+
"type": "string",
|
|
142
|
+
"description": "自动填充的尺寸大小",
|
|
143
|
+
"required": false,
|
|
144
|
+
"default": "medium",
|
|
145
|
+
"options": [
|
|
146
|
+
"small",
|
|
147
|
+
"medium",
|
|
148
|
+
"large"
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "status",
|
|
153
|
+
"type": "string",
|
|
154
|
+
"description": "验证状态",
|
|
155
|
+
"required": false,
|
|
156
|
+
"options": [
|
|
157
|
+
"success",
|
|
158
|
+
"warning",
|
|
159
|
+
"error"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "to",
|
|
164
|
+
"type": "string",
|
|
165
|
+
"description": "菜单的容器节点,`false` 会待在原地",
|
|
166
|
+
"required": false,
|
|
167
|
+
"default": "body"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "value",
|
|
171
|
+
"type": "string",
|
|
172
|
+
"description": "自动填充的数据用户可控",
|
|
173
|
+
"required": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "z-index",
|
|
177
|
+
"type": "number",
|
|
178
|
+
"description": "菜单的 z-index",
|
|
179
|
+
"required": false
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "on-blur",
|
|
183
|
+
"type": "(event: FocusEvent) => void",
|
|
184
|
+
"description": "blur 时触发的回调函数",
|
|
185
|
+
"required": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "on-focus",
|
|
189
|
+
"type": "(event: FocusEvent) => void",
|
|
190
|
+
"description": "focus 时触发的回调函数",
|
|
191
|
+
"required": false
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "on-select",
|
|
195
|
+
"type": "(value: string) => void",
|
|
196
|
+
"description": "select 选中时触发的回调函数",
|
|
197
|
+
"required": false
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "on-update:value",
|
|
201
|
+
"type": "(value: string",
|
|
202
|
+
"description": "可控数据更新时触发的回调函数",
|
|
203
|
+
"required": false
|
|
204
|
+
}
|
|
205
|
+
]
|
|
206
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAvatarGroup",
|
|
3
|
+
"tag": "n-avatar-group",
|
|
4
|
+
"description": "在互联网上,没有人知道你是 \\*\\*\\* 。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "expand-on-hover",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "悬停时展开",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "max",
|
|
15
|
+
"type": "number",
|
|
16
|
+
"description": "组内头像显示的最大个数",
|
|
17
|
+
"required": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "max-style",
|
|
21
|
+
"type": "Object",
|
|
22
|
+
"description": "溢出标识的样式",
|
|
23
|
+
"required": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "options",
|
|
27
|
+
"type": "Array<T extends AvatarGroupOption = AvatarGroupOption>",
|
|
28
|
+
"description": "头像组的选项",
|
|
29
|
+
"required": false,
|
|
30
|
+
"default": []
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "size",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "头像的尺寸",
|
|
36
|
+
"required": false,
|
|
37
|
+
"default": "medium",
|
|
38
|
+
"options": [
|
|
39
|
+
"small",
|
|
40
|
+
"medium",
|
|
41
|
+
"large"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "vertical",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"description": "组内头像是否垂直排列",
|
|
48
|
+
"required": false,
|
|
49
|
+
"default": false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NAvatar",
|
|
3
|
+
"tag": "n-avatar",
|
|
4
|
+
"description": "在互联网上,没有人知道你是 \\*\\*\\* 。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "bordered",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "头像是否带边框",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "color",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "头像的背景色",
|
|
17
|
+
"required": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "fallback-src",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "头像加载失败时显示的图片的地址",
|
|
23
|
+
"required": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "img-props",
|
|
27
|
+
"type": "ImgHTMLAttributes",
|
|
28
|
+
"description": "组件中 img 元素的属性",
|
|
29
|
+
"required": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "intersection-observer-options",
|
|
33
|
+
"type": "{ root?: Element",
|
|
34
|
+
"description": "`lazy=true` 时 intersection observer 观测的配置",
|
|
35
|
+
"required": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "lazy",
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"description": "是否让图片进入视口再加载,单独使用将设置为[HTMLImageElement.loading](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/loading) 的属性值;也可配合 `intersection-observer-options` 配置实现懒加载",
|
|
41
|
+
"required": false,
|
|
42
|
+
"default": false
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "object-fit",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "头像的图片在容器内的的适应类型",
|
|
48
|
+
"required": false,
|
|
49
|
+
"default": "fill",
|
|
50
|
+
"options": [
|
|
51
|
+
"fill",
|
|
52
|
+
"contain",
|
|
53
|
+
"cover",
|
|
54
|
+
"none",
|
|
55
|
+
"scale-down"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "render-fallback",
|
|
60
|
+
"type": "() => VNodeChild",
|
|
61
|
+
"description": "加载失败的��染函数",
|
|
62
|
+
"required": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "render-placeholder",
|
|
66
|
+
"type": "() => VNodeChild",
|
|
67
|
+
"description": "占位的渲染函数",
|
|
68
|
+
"required": false
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "round",
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"description": "头像是否圆形",
|
|
74
|
+
"required": false,
|
|
75
|
+
"default": false
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "size",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "头像的尺寸",
|
|
81
|
+
"required": false,
|
|
82
|
+
"default": "medium",
|
|
83
|
+
"options": [
|
|
84
|
+
"small",
|
|
85
|
+
"medium",
|
|
86
|
+
"large"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "src",
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "头像的地址",
|
|
93
|
+
"required": false
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "on-error",
|
|
97
|
+
"type": "(e: Event) => void",
|
|
98
|
+
"description": "头像的图片加载失败执行的回调",
|
|
99
|
+
"required": false
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NBackTop",
|
|
3
|
+
"tag": "n-back-top",
|
|
4
|
+
"description": "<!--single-column-->",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "bottom",
|
|
8
|
+
"type": "number",
|
|
9
|
+
"description": "BackTop 距离页面底部的高度",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": 40
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "listen-to",
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "监听滚动的元素,如果为 `undefined` 会监听距离最近的一个可滚动的祖先节点",
|
|
17
|
+
"required": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "right",
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "BackTop 距离页面右侧的宽度",
|
|
23
|
+
"required": false,
|
|
24
|
+
"default": 40
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "show",
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"description": "是否显示 BackTop(受控)",
|
|
30
|
+
"required": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "to",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "BackTop 渲染的容器节点",
|
|
36
|
+
"required": false,
|
|
37
|
+
"default": "body"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "visibility-height",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"description": "滚动时触发显示回到顶部的高度",
|
|
43
|
+
"required": false,
|
|
44
|
+
"default": 180
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "on-update:show",
|
|
48
|
+
"type": "(value: boolean) => void",
|
|
49
|
+
"description": "BackTop 的 show 改变时触发事件",
|
|
50
|
+
"required": false
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NBadge",
|
|
3
|
+
"tag": "n-badge",
|
|
4
|
+
"description": "我敢说你肯定见过这玩意而且知道怎么用它。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "color",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "标记的颜色",
|
|
10
|
+
"required": false
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "dot",
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "标记是否显示为点",
|
|
16
|
+
"required": false,
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "max",
|
|
21
|
+
"type": "number",
|
|
22
|
+
"description": "标记最大数来处理溢出情况",
|
|
23
|
+
"required": false
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "offset",
|
|
27
|
+
"type": "[string",
|
|
28
|
+
"description": "距默认位置左侧、上方的偏移量",
|
|
29
|
+
"required": false
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "processing",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"description": "标记显示进度",
|
|
35
|
+
"required": false,
|
|
36
|
+
"default": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "show-zero",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "标记为 0 时是否显示",
|
|
42
|
+
"required": false,
|
|
43
|
+
"default": false
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "show",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "标记受控显示",
|
|
49
|
+
"required": false,
|
|
50
|
+
"default": true
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "type",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "标记显示类型",
|
|
56
|
+
"required": false,
|
|
57
|
+
"default": "default",
|
|
58
|
+
"options": [
|
|
59
|
+
"default",
|
|
60
|
+
"success",
|
|
61
|
+
"error",
|
|
62
|
+
"warning",
|
|
63
|
+
"info"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "value",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "标记数量",
|
|
70
|
+
"required": false
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "NBlockquote",
|
|
3
|
+
"tag": "n-blockquote",
|
|
4
|
+
"description": "Naive UI 提供了常用 HTML 标签的一些基本样式,以及对文本渲染提供帮助的组件。",
|
|
5
|
+
"props": [
|
|
6
|
+
{
|
|
7
|
+
"name": "align-text",
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "文本对齐",
|
|
10
|
+
"required": false,
|
|
11
|
+
"default": false
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
}
|