pit-docs-mcp 1.0.2

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 (203) hide show
  1. package/README.md +180 -0
  2. package/dist/codegen.d.ts +5 -0
  3. package/dist/codegen.d.ts.map +1 -0
  4. package/dist/codegen.js +112 -0
  5. package/dist/constants.d.ts +6 -0
  6. package/dist/constants.d.ts.map +1 -0
  7. package/dist/constants.js +10 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +115 -0
  11. package/dist/resources.d.ts +3 -0
  12. package/dist/resources.d.ts.map +1 -0
  13. package/dist/resources.js +80 -0
  14. package/dist/tools.d.ts +3 -0
  15. package/dist/tools.d.ts.map +1 -0
  16. package/dist/tools.js +258 -0
  17. package/dist/utils.d.ts +26 -0
  18. package/dist/utils.d.ts.map +1 -0
  19. package/dist/utils.js +198 -0
  20. package/docs/codegen/pit-simplify-web.md +686 -0
  21. package/docs/pitBusinessUi/README.md +102 -0
  22. package/docs/pitBusinessUi/add-date-picker.md +57 -0
  23. package/docs/pitBusinessUi/add-operation.md +64 -0
  24. package/docs/pitBusinessUi/batch-download.md +44 -0
  25. package/docs/pitBusinessUi/bill-tree-dialog.md +82 -0
  26. package/docs/pitBusinessUi/collapse.md +88 -0
  27. package/docs/pitBusinessUi/date-time-picker.md +74 -0
  28. package/docs/pitBusinessUi/design-report-explain.md +47 -0
  29. package/docs/pitBusinessUi/dialog.md +89 -0
  30. package/docs/pitBusinessUi/dic-radio.md +67 -0
  31. package/docs/pitBusinessUi/dic.md +78 -0
  32. package/docs/pitBusinessUi/document-preview.md +54 -0
  33. package/docs/pitBusinessUi/drawer.md +67 -0
  34. package/docs/pitBusinessUi/editor.md +63 -0
  35. package/docs/pitBusinessUi/expand-search-form.md +65 -0
  36. package/docs/pitBusinessUi/file-preview.md +56 -0
  37. package/docs/pitBusinessUi/flow-table-status.md +47 -0
  38. package/docs/pitBusinessUi/icon-box.md +74 -0
  39. package/docs/pitBusinessUi/image-preview.md +55 -0
  40. package/docs/pitBusinessUi/image.md +53 -0
  41. package/docs/pitBusinessUi/input-formatter.md +100 -0
  42. package/docs/pitBusinessUi/input-number.md +47 -0
  43. package/docs/pitBusinessUi/input-select.md +68 -0
  44. package/docs/pitBusinessUi/input.md +56 -0
  45. package/docs/pitBusinessUi/jm-preview.md +47 -0
  46. package/docs/pitBusinessUi/json-editor.md +71 -0
  47. package/docs/pitBusinessUi/loading-btn.md +64 -0
  48. package/docs/pitBusinessUi/monaco.md +82 -0
  49. package/docs/pitBusinessUi/money-input.md +59 -0
  50. package/docs/pitBusinessUi/pagination.md +70 -0
  51. package/docs/pitBusinessUi/password-strength.md +59 -0
  52. package/docs/pitBusinessUi/positive-number.md +63 -0
  53. package/docs/pitBusinessUi/preview-image.md +62 -0
  54. package/docs/pitBusinessUi/preview-office.md +50 -0
  55. package/docs/pitBusinessUi/preview.md +57 -0
  56. package/docs/pitBusinessUi/quill.md +52 -0
  57. package/docs/pitBusinessUi/runflow-btn.md +52 -0
  58. package/docs/pitBusinessUi/search-date-picker.md +60 -0
  59. package/docs/pitBusinessUi/select-bid-list.md +66 -0
  60. package/docs/pitBusinessUi/select-color.md +38 -0
  61. package/docs/pitBusinessUi/select-contract-tree.md +41 -0
  62. package/docs/pitBusinessUi/select-dept.md +38 -0
  63. package/docs/pitBusinessUi/select-project-unit.md +48 -0
  64. package/docs/pitBusinessUi/select-section-tree.md +45 -0
  65. package/docs/pitBusinessUi/select-section.md +66 -0
  66. package/docs/pitBusinessUi/select-string.md +60 -0
  67. package/docs/pitBusinessUi/select-system-unit.md +41 -0
  68. package/docs/pitBusinessUi/select-user-by-role.md +51 -0
  69. package/docs/pitBusinessUi/switch.md +43 -0
  70. package/docs/pitBusinessUi/table-contract.md +66 -0
  71. package/docs/pitBusinessUi/table-operation.md +81 -0
  72. package/docs/pitBusinessUi/table.md +75 -0
  73. package/docs/pitBusinessUi/tag.md +86 -0
  74. package/docs/pitBusinessUi/textarea.md +65 -0
  75. package/docs/pitBusinessUi/transfer-direct.md +57 -0
  76. package/docs/pitBusinessUi/transfer-user-project.md +78 -0
  77. package/docs/pitBusinessUi/transfer.md +68 -0
  78. package/docs/pitBusinessUi/tree-lazy.md +72 -0
  79. package/docs/pitBusinessUi/tree-select-name.md +59 -0
  80. package/docs/pitBusinessUi/tree-select-plus.md +106 -0
  81. package/docs/pitBusinessUi/tree-select.md +86 -0
  82. package/docs/pitBusinessUi/upload-avatar.md +60 -0
  83. package/docs/pitBusinessUi/upload-file-dialog.md +86 -0
  84. package/docs/pitBusinessUi/upload-file.md +77 -0
  85. package/docs/pitBusinessUi/upload-list-card.md +62 -0
  86. package/docs/pitBusinessUi/upload-table.md +77 -0
  87. package/docs/pitBusinessUi/user-transform.md +72 -0
  88. package/docs/pitBusinessUi/utils.md +272 -0
  89. package/docs/pitBusinessUtils/README.md +144 -0
  90. package/docs/pitBusinessUtils/auth.md +170 -0
  91. package/docs/pitBusinessUtils/clipboard.md +72 -0
  92. package/docs/pitBusinessUtils/filePreview.md +60 -0
  93. package/docs/pitBusinessUtils/formValidate.md +75 -0
  94. package/docs/pitBusinessUtils/generateTitle.md +49 -0
  95. package/docs/pitBusinessUtils/get-page-title.md +65 -0
  96. package/docs/pitBusinessUtils/i18n.md +130 -0
  97. package/docs/pitBusinessUtils/jwks.md +82 -0
  98. package/docs/pitBusinessUtils/oss.md +391 -0
  99. package/docs/pitBusinessUtils/passwordValidate.md +120 -0
  100. package/docs/pitBusinessUtils/pit.md +496 -0
  101. package/docs/pitBusinessUtils/print.md +126 -0
  102. package/docs/pitBusinessUtils/request.md +137 -0
  103. package/docs/pitBusinessUtils/scroll-to.md +68 -0
  104. package/docs/pitBusinessUtils/utils.md +762 -0
  105. package/docs/pitBusinessUtils/validate.md +224 -0
  106. package/docs/pitElementUi/alert.md +238 -0
  107. package/docs/pitElementUi/avatar.md +147 -0
  108. package/docs/pitElementUi/backtop.md +60 -0
  109. package/docs/pitElementUi/badge.md +120 -0
  110. package/docs/pitElementUi/base-tabs.md +73 -0
  111. package/docs/pitElementUi/border.md +135 -0
  112. package/docs/pitElementUi/breadcrumb.md +44 -0
  113. package/docs/pitElementUi/button.md +301 -0
  114. package/docs/pitElementUi/calendar.md +66 -0
  115. package/docs/pitElementUi/card.md +170 -0
  116. package/docs/pitElementUi/carousel.md +212 -0
  117. package/docs/pitElementUi/cascader.md +1966 -0
  118. package/docs/pitElementUi/checkbox.md +283 -0
  119. package/docs/pitElementUi/collapse.md +131 -0
  120. package/docs/pitElementUi/color-picker.md +123 -0
  121. package/docs/pitElementUi/color.md +244 -0
  122. package/docs/pitElementUi/container.md +240 -0
  123. package/docs/pitElementUi/custom-theme.md +131 -0
  124. package/docs/pitElementUi/date-picker.md +448 -0
  125. package/docs/pitElementUi/datetime-picker.md +254 -0
  126. package/docs/pitElementUi/descriptions.md +191 -0
  127. package/docs/pitElementUi/dialog-header.md +53 -0
  128. package/docs/pitElementUi/dialog.md +239 -0
  129. package/docs/pitElementUi/divider.md +61 -0
  130. package/docs/pitElementUi/drawer.md +307 -0
  131. package/docs/pitElementUi/dropdown.md +308 -0
  132. package/docs/pitElementUi/empty.md +61 -0
  133. package/docs/pitElementUi/font-family.md +90 -0
  134. package/docs/pitElementUi/form-base.md +1239 -0
  135. package/docs/pitElementUi/form-item-checkbox-group.md +48 -0
  136. package/docs/pitElementUi/form-item-date.md +60 -0
  137. package/docs/pitElementUi/form-item-dic.md +18 -0
  138. package/docs/pitElementUi/form-item-editor.md +16 -0
  139. package/docs/pitElementUi/form-item-input-money.md +19 -0
  140. package/docs/pitElementUi/form-item-input-number.md +20 -0
  141. package/docs/pitElementUi/form-item-input.md +18 -0
  142. package/docs/pitElementUi/form-item-radio-group.md +21 -0
  143. package/docs/pitElementUi/form-item-select.md +21 -0
  144. package/docs/pitElementUi/form-item-switch.md +15 -0
  145. package/docs/pitElementUi/form-item-textarea.md +20 -0
  146. package/docs/pitElementUi/form-item-tree-select.md +27 -0
  147. package/docs/pitElementUi/form-item-upload-card.md +18 -0
  148. package/docs/pitElementUi/form-item-upload.md +1 -0
  149. package/docs/pitElementUi/form-two.md +102 -0
  150. package/docs/pitElementUi/form.md +952 -0
  151. package/docs/pitElementUi/i18n.md +228 -0
  152. package/docs/pitElementUi/icon-custom.md +99 -0
  153. package/docs/pitElementUi/icon-line-custom.md +12 -0
  154. package/docs/pitElementUi/icon.md +28 -0
  155. package/docs/pitElementUi/image.md +178 -0
  156. package/docs/pitElementUi/infiniteScroll.md +87 -0
  157. package/docs/pitElementUi/input-number.md +197 -0
  158. package/docs/pitElementUi/input-select.md +1 -0
  159. package/docs/pitElementUi/input.md +800 -0
  160. package/docs/pitElementUi/installation.md +9 -0
  161. package/docs/pitElementUi/layout-column.md +376 -0
  162. package/docs/pitElementUi/layout-tree.md +715 -0
  163. package/docs/pitElementUi/layout.md +354 -0
  164. package/docs/pitElementUi/link.md +66 -0
  165. package/docs/pitElementUi/loading.md +208 -0
  166. package/docs/pitElementUi/menu.md +403 -0
  167. package/docs/pitElementUi/message-box.md +326 -0
  168. package/docs/pitElementUi/message.md +219 -0
  169. package/docs/pitElementUi/notification.md +311 -0
  170. package/docs/pitElementUi/page-header.md +40 -0
  171. package/docs/pitElementUi/pagination.md +200 -0
  172. package/docs/pitElementUi/popconfirm.md +60 -0
  173. package/docs/pitElementUi/popover.md +167 -0
  174. package/docs/pitElementUi/progress.md +178 -0
  175. package/docs/pitElementUi/quickstart.md +290 -0
  176. package/docs/pitElementUi/radio.md +211 -0
  177. package/docs/pitElementUi/rate.md +135 -0
  178. package/docs/pitElementUi/result.md +76 -0
  179. package/docs/pitElementUi/select-tree.md +661 -0
  180. package/docs/pitElementUi/select.md +586 -0
  181. package/docs/pitElementUi/skeleton.md +316 -0
  182. package/docs/pitElementUi/slider.md +237 -0
  183. package/docs/pitElementUi/steps.md +154 -0
  184. package/docs/pitElementUi/switch.md +142 -0
  185. package/docs/pitElementUi/table.md +4023 -0
  186. package/docs/pitElementUi/tabs.md +303 -0
  187. package/docs/pitElementUi/tag.md +203 -0
  188. package/docs/pitElementUi/time-picker.md +199 -0
  189. package/docs/pitElementUi/timeline.md +154 -0
  190. package/docs/pitElementUi/tooltip.md +177 -0
  191. package/docs/pitElementUi/transfer.md +249 -0
  192. package/docs/pitElementUi/transition.md +155 -0
  193. package/docs/pitElementUi/tree.md +1157 -0
  194. package/docs/pitElementUi/typography.md +151 -0
  195. package/docs/pitElementUi/upload-table.md +39 -0
  196. package/docs/pitElementUi/upload.md +392 -0
  197. package/docs/pitElementUi/virtual-list.md +154 -0
  198. package/docs/pitElementUi/virtual-select-tree.md +243 -0
  199. package/docs/pitElementUi/virtual-select.md +451 -0
  200. package/docs/pitElementUi/virtual-table-column.md +1 -0
  201. package/docs/pitElementUi/virtual-table.md +490 -0
  202. package/docs/pitElementUi/virtual-tree.md +119 -0
  203. package/package.json +33 -0
@@ -0,0 +1,490 @@
1
+ ## VirtualTable 表格
2
+
3
+ ### 基础表格,基于模板方式使用非常简单、便捷
4
+
5
+ :::demo
6
+
7
+ ```html
8
+
9
+ <div>
10
+ <div>
11
+ <el-button @click="allAlign = 'left'">居左</el-button>
12
+ <el-button @click="allAlign = 'center'">居中</el-button>
13
+ <el-button @click="allAlign = 'right'">居右</el-button>
14
+ </div>
15
+ <br>
16
+ <el-virtual-table :data="tableData" :align="allAlign">
17
+ <el-virtual-table-column type="seq" width="60"></el-virtual-table-column>
18
+ <el-virtual-table-column field="name" title="Name"></el-virtual-table-column>
19
+ <el-virtual-table-column field="sex" title="Sex"></el-virtual-table-column>
20
+ <el-virtual-table-column field="age" title="Age"></el-virtual-table-column>
21
+ </el-virtual-table>
22
+ </div>
23
+
24
+ <script>
25
+ export default {
26
+ data() {
27
+ return {
28
+ allAlign: null,
29
+ tableData: [
30
+ {id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', age: 28, address: 'test abc'},
31
+ {id: 10002, name: 'Test2', role: 'Test', sex: 'Women', age: 22, address: 'Guangzhou'},
32
+ {id: 10003, name: 'Test3', role: 'PM', sex: 'Man', age: 32, address: 'Shanghai'},
33
+ {id: 10004, name: 'Test4', role: 'Designer', sex: 'Women', age: 24, address: 'Shanghai'}
34
+ ]
35
+ };
36
+ },
37
+ };
38
+ </script>
39
+ ```
40
+
41
+ :::
42
+
43
+ ### 基础表格,基于模板方式使用非常简单、便捷
44
+
45
+ :::demo
46
+
47
+ ```html
48
+
49
+ <div>
50
+ <el-virtual-table :data="tableData" :align="allAlign" stripe>
51
+ <el-virtual-table-column type="seq" width="60"></el-virtual-table-column>
52
+ <el-virtual-table-column field="name" title="Name"></el-virtual-table-column>
53
+ <el-virtual-table-column field="sex" title="Sex"></el-virtual-table-column>
54
+ <el-virtual-table-column field="age" title="Age"></el-virtual-table-column>
55
+ </el-virtual-table>
56
+ </div>
57
+
58
+ <script>
59
+ export default {
60
+ data() {
61
+ return {
62
+ allAlign: null,
63
+ tableData: [
64
+ {id: 10001, name: 'Test1', role: 'Develop', sex: 'Man', age: 28, address: 'test abc'},
65
+ {id: 10002, name: 'Test2', role: 'Test', sex: 'Women', age: 22, address: 'Guangzhou'},
66
+ {id: 10003, name: 'Test3', role: 'PM', sex: 'Man', age: 32, address: 'Shanghai'},
67
+ {id: 10004, name: 'Test4', role: 'Designer', sex: 'Women', age: 24, address: 'Shanghai'}
68
+ ]
69
+ };
70
+ },
71
+ };
72
+ </script>
73
+ ```
74
+
75
+ :::
76
+
77
+ ### 虚拟表格
78
+
79
+ :::demo
80
+
81
+ ```html
82
+
83
+ <div>
84
+ <div>
85
+ <el-button @click="allAlign = 'left'">居左</el-button>
86
+ <el-button @click="allAlign = 'center'">居中</el-button>
87
+ <el-button @click="allAlign = 'right'">居右</el-button>
88
+ </div>
89
+ <br>
90
+ <el-virtual-table border :align="allAlign" highlight-hover-row ref="xTable1"
91
+ height="300"
92
+ :scroll-y="{
93
+ mode: 'wheel',
94
+ gt: 20
95
+ }"
96
+ row-id="id">
97
+ <el-virtual-table-column type="checkbox" width="60"></el-virtual-table-column>
98
+ <el-virtual-table-column type="seq" width="60"></el-virtual-table-column>
99
+ <el-virtual-table-column field="name" title="Name"></el-virtual-table-column>
100
+ <el-virtual-table-column field="sex" title="Sex"></el-virtual-table-column>
101
+ <el-virtual-table-column field="age" title="Age"></el-virtual-table-column>
102
+ </el-virtual-table>
103
+ </div>
104
+
105
+ <script>
106
+ export default {
107
+ data() {
108
+ return {
109
+ allAlign: null,
110
+ };
111
+ },
112
+ mounted() {
113
+ this.$nextTick(() => {
114
+ const $table = this.$refs.xTable1
115
+ this.mockList(3000).then(data => {
116
+ if ($table) {
117
+ $table.loadData(data)
118
+ }
119
+ })
120
+ })
121
+ },
122
+ methods: {
123
+ mockList(size) {
124
+ return new Promise(resolve => {
125
+ const list = []
126
+ for (let index = 0; index < size; index++) {
127
+ list.push({
128
+ id: index,
129
+ name: `名称${index}`,
130
+ sex: '0',
131
+ num: 123,
132
+ age: 18,
133
+ num2: 234,
134
+ rate: 3,
135
+ address: 'shenzhen'
136
+ })
137
+ }
138
+ resolve(list)
139
+ })
140
+ }
141
+ }
142
+ };
143
+ </script>
144
+ ```
145
+
146
+ :::
147
+
148
+ ### 虚拟树表格
149
+
150
+ :::demo
151
+
152
+ ```html
153
+
154
+ <div>
155
+ <div>
156
+ <el-button @click="$refs.xTable.setAllTreeExpand(true)">展开所有</el-button>
157
+ <el-button @click="$refs.xTable.setAllTreeExpand(false)">收起所有</el-button>
158
+ </div>
159
+ <br>
160
+ <el-virtual-table show-overflow
161
+ height="500"
162
+ ref="xTable"
163
+ :tree-config="{transform: true, rowField: 'id', parentField: 'parentId'}"
164
+ :scroll-y="{gt: 20}"
165
+ :data="tableData">
166
+ <el-virtual-table-column type="checkbox" width="60"></el-virtual-table-column>
167
+ <el-virtual-table-column field="name" title="Name" tree-node></el-virtual-table-column>
168
+ <el-virtual-table-column field="size" title="Size"></el-virtual-table-column>
169
+ <el-virtual-table-column field="type" title="Type"></el-virtual-table-column>
170
+ <el-virtual-table-column field="date" title="Date"></el-virtual-table-column>
171
+ </el-virtual-table>
172
+ </div>
173
+
174
+ <script>
175
+ export default {
176
+ data() {
177
+ return {
178
+ allAlign: null,
179
+ tableData: [
180
+ {
181
+ id: 110000,
182
+ parentId: null,
183
+ name: 'vxe-table test abc1',
184
+ type: 'mp3',
185
+ size: 1024,
186
+ date: '2020-08-01'
187
+ },
188
+ {
189
+ id: 111000,
190
+ parentId: 110000,
191
+ name: 'vxe-table test abc2',
192
+ type: 'html',
193
+ size: 600,
194
+ date: '2021-04-01'
195
+ },
196
+ {
197
+ id: 111100,
198
+ parentId: 111000,
199
+ name: 'vxe-table test abc3',
200
+ type: 'html',
201
+ size: 600,
202
+ date: '2021-04-01'
203
+ },
204
+ {
205
+ id: 111110,
206
+ parentId: 111100,
207
+ name: 'vxe-table test abc4',
208
+ type: 'html',
209
+ size: 600,
210
+ date: '2021-04-01'
211
+ },
212
+ {
213
+ id: 111111,
214
+ parentId: 111110,
215
+ name: 'vxe-table test abc5',
216
+ type: 'html',
217
+ size: 600,
218
+ date: '2021-04-01'
219
+ },
220
+ {
221
+ id: 111112,
222
+ parentId: 111110,
223
+ name: 'vxe-table test abc6',
224
+ type: 'html',
225
+ size: 600,
226
+ date: '2021-04-01'
227
+ },
228
+ {id: 120000, parentId: null, name: 'Test7', type: 'mp4', size: null, date: '2021-04-01'},
229
+ {id: 121000, parentId: 120000, name: 'Test8', type: 'avi', size: 1024, date: '2020-03-01'},
230
+ {
231
+ id: 121100,
232
+ parentId: 121000,
233
+ name: 'vxe-table test abc9',
234
+ type: 'html',
235
+ size: 600,
236
+ date: '2021-04-01'
237
+ },
238
+ {
239
+ id: 121200,
240
+ parentId: 121000,
241
+ name: 'vxe-table test abc10',
242
+ type: 'avi',
243
+ size: null,
244
+ date: '2021-04-01'
245
+ },
246
+ {
247
+ id: 121300,
248
+ parentId: 121000,
249
+ name: 'vxe-table test abc11',
250
+ type: 'txt',
251
+ size: 25,
252
+ date: '2021-10-01'
253
+ },
254
+ {id: 121310, parentId: 121300, name: 'Test12', type: 'pdf', size: 512, date: '2020-01-01'},
255
+ {id: 121320, parentId: 121310, name: 'Test13', type: 'js', size: 1024, date: '2021-06-01'},
256
+ {id: 130000, parentId: null, name: 'Test14', type: 'xlsx', size: 2048, date: '2020-11-01'},
257
+ {id: 140000, parentId: null, name: 'vue 从入门到精通15', type: 'avi', size: 224, date: '2020-10-01'},
258
+ {id: 141000, parentId: 140000, name: 'Test16', type: 'js', size: 1024, date: '2021-06-01'},
259
+ {id: 142000, parentId: 140000, name: 'Test17', type: 'js', size: 1024, date: '2021-06-01'},
260
+ {id: 143000, parentId: 140000, name: 'Test78', type: 'js', size: 1024, date: '2021-06-01'},
261
+ {id: 150000, parentId: null, name: 'vue 从入门到精通19', type: 'avi', size: 224, date: '2020-10-01'},
262
+ {id: 160000, parentId: null, name: 'vue 从入门到精通20', type: 'avi', size: 224, date: '2020-10-01'},
263
+ {id: 161000, parentId: 160000, name: 'Test21', type: 'js', size: 1024, date: '2021-06-01'},
264
+ {id: 162000, parentId: 160000, name: 'Test22', type: 'js', size: 1024, date: '2021-06-01'},
265
+ {id: 163000, parentId: 160000, name: 'Test23', type: 'js', size: 1024, date: '2021-06-01'},
266
+ {id: 163100, parentId: 164000, name: 'Test24', type: 'js', size: 1024, date: '2021-06-01'},
267
+ {id: 163200, parentId: 164000, name: 'Test25', type: 'js', size: 1024, date: '2021-06-01'},
268
+ {id: 163300, parentId: 164000, name: 'Test26', type: 'js', size: 1024, date: '2021-06-01'},
269
+ {id: 163400, parentId: 164000, name: 'Test27', type: 'js', size: 1024, date: '2021-06-01'},
270
+ {id: 163500, parentId: 164000, name: 'Test28', type: 'js', size: 1024, date: '2021-06-01'},
271
+ {
272
+ id: 163600,
273
+ parentId: 164000,
274
+ name: 'vxe-table test abc29',
275
+ type: 'js',
276
+ size: 1024,
277
+ date: '2021-06-01'
278
+ },
279
+ {id: 164000, parentId: 160000, name: 'Test30', type: 'js', size: 1024, date: '2021-06-01'},
280
+ {id: 164100, parentId: 164000, name: 'Test31', type: 'js', size: 1024, date: '2021-06-01'},
281
+ {id: 164200, parentId: 164000, name: 'Test32', type: 'js', size: 1024, date: '2021-06-01'},
282
+ {
283
+ id: 164300,
284
+ parentId: 164000,
285
+ name: 'vxe-table test abc33',
286
+ type: 'js',
287
+ size: 1024,
288
+ date: '2021-06-01'
289
+ },
290
+ {id: 164400, parentId: 164000, name: 'Test34', type: 'js', size: 1024, date: '2021-06-01'},
291
+ {id: 164500, parentId: 164000, name: 'Test35', type: 'js', size: 1024, date: '2021-06-01'},
292
+ {id: 164600, parentId: 164000, name: 'Test36', type: 'js', size: 1024, date: '2021-06-01'},
293
+ {id: 164700, parentId: 164000, name: 'Test37', type: 'js', size: 1024, date: '2021-06-01'},
294
+ {id: 164800, parentId: 164000, name: 'Test38', type: 'js', size: 1024, date: '2021-06-01'},
295
+ {
296
+ id: 164900,
297
+ parentId: 164000,
298
+ name: 'vxe-table test abc40',
299
+ type: 'js',
300
+ size: 1024,
301
+ date: '2021-06-01'
302
+ },
303
+ {id: 165000, parentId: 160000, name: 'Test41', type: 'js', size: 1024, date: '2021-06-01'},
304
+ {id: 166000, parentId: 160000, name: 'Test42', type: 'js', size: 1024, date: '2021-06-01'},
305
+ {id: 167000, parentId: 160000, name: 'Test43', type: 'js', size: 1024, date: '2021-06-01'},
306
+ {id: 168000, parentId: 160000, name: 'Test44', type: 'js', size: 1024, date: '2021-06-01'},
307
+ {id: 169000, parentId: 160000, name: 'Test45', type: 'js', size: 1024, date: '2021-06-01'},
308
+ {id: 170000, parentId: null, name: 'vue 从入门到精通46', type: 'avi', size: 224, date: '2020-10-01'},
309
+ {id: 180000, parentId: null, name: 'vue 从入门到精通47', type: 'avi', size: 224, date: '2020-10-01'},
310
+ {id: 181000, parentId: 180000, name: 'Test48', type: 'js', size: 1024, date: '2021-06-01'},
311
+ {id: 182000, parentId: 180000, name: 'Test49', type: 'js', size: 1024, date: '2021-06-14'},
312
+ {id: 184000, parentId: 180000, name: 'Test50', type: 'js', size: 1024, date: '2021-06-23'},
313
+ {id: 185000, parentId: 180000, name: 'Test51', type: 'js', size: 1024, date: '2021-06-11'},
314
+ {id: 186000, parentId: 180000, name: 'Test52', type: 'js', size: 1024, date: '2021-06-01'},
315
+ {id: 190000, parentId: null, name: 'vue 从入门到精通53', type: 'avi', size: 224, date: '2020-10-01'},
316
+ {id: 191000, parentId: 190000, name: 'Test54', type: 'js', size: 1024, date: '2021-06-04'},
317
+ {id: 192000, parentId: 190000, name: 'Test55', type: 'js', size: 1024, date: '2021-06-01'},
318
+ {id: 193000, parentId: 190000, name: 'Test56', type: 'js', size: 1024, date: '2021-06-03'},
319
+ {id: 194000, parentId: 190000, name: 'Test57', type: 'js', size: 1024, date: '2021-06-01'},
320
+ {id: 200000, parentId: null, name: 'vue 从入门到精通58', type: 'avi', size: 224, date: '2020-10-01'},
321
+ {id: 201000, parentId: 200000, name: 'Test59', type: 'js', size: 1024, date: '2021-06-01'},
322
+ {id: 202000, parentId: 200000, name: 'Test60', type: 'js', size: 1024, date: '2021-06-01'},
323
+ {id: 203000, parentId: 200000, name: 'Test61', type: 'js', size: 1024, date: '2021-06-01'},
324
+ {id: 204000, parentId: 200000, name: 'Test62', type: 'js', size: 1024, date: '2021-06-01'},
325
+ {id: 205000, parentId: 200000, name: 'Test63', type: 'js', size: 1024, date: '2021-06-01'},
326
+ {id: 206000, parentId: 200000, name: 'Test64', type: 'js', size: 1024, date: '2021-06-01'},
327
+ {id: 210000, parentId: null, name: 'vue 从入门到精通65', type: 'avi', size: 224, date: '2020-10-01'},
328
+ {id: 220000, parentId: null, name: 'vue 从入门到精通66', type: 'avi', size: 224, date: '2020-10-01'},
329
+ {
330
+ id: 230000,
331
+ parentId: null,
332
+ name: 'vxe-table test abc67',
333
+ type: 'avi',
334
+ size: 224,
335
+ date: '2020-10-01'
336
+ },
337
+ {id: 240000, parentId: null, name: 'vue 从入门到精通68', type: 'avi', size: 224, date: '2020-10-01'},
338
+ {id: 250000, parentId: null, name: 'vue 从入门到精通69', type: 'avi', size: 224, date: '2020-01-01'},
339
+ {id: 251000, parentId: 250000, name: 'Test70', type: 'js', size: 1024, date: '2021-06-01'},
340
+ {id: 252000, parentId: 250000, name: 'Test71', type: 'js', size: 1024, date: '2021-08-02'},
341
+ {id: 253000, parentId: 250000, name: 'Test72', type: 'js', size: 1024, date: '2021-06-01'},
342
+ {id: 254000, parentId: 250000, name: 'Test73', type: 'js', size: 1024, date: '2021-06-03'},
343
+ {id: 254100, parentId: 254000, name: 'Test74', type: 'js', size: 1024, date: '2021-06-01'},
344
+ {
345
+ id: 254200,
346
+ parentId: 254000,
347
+ name: 'vxe-table test abc75',
348
+ type: 'js',
349
+ size: 1024,
350
+ date: '2021-06-01'
351
+ },
352
+ {id: 254300, parentId: 254000, name: 'Test76', type: 'js', size: 1024, date: '2021-06-01'},
353
+ {id: 254310, parentId: 254300, name: 'Test76', type: 'js', size: 1024, date: '2021-06-01'},
354
+ {id: 254320, parentId: 254300, name: 'Test78', type: 'js', size: 1024, date: '2021-06-01'},
355
+ {id: 254321, parentId: 254320, name: 'Test79', type: 'js', size: 1024, date: '2021-06-01'},
356
+ {id: 254322, parentId: 254320, name: 'Test80', type: 'js', size: 1024, date: '2021-06-01'},
357
+ {
358
+ id: 254323,
359
+ parentId: 254320,
360
+ name: 'vxe-table test abc81',
361
+ type: 'js',
362
+ size: 1024,
363
+ date: '2021-06-01'
364
+ },
365
+ {id: 254324, parentId: 254320, name: 'Test82', type: 'js', size: 1024, date: '2021-06-01'},
366
+ {id: 254325, parentId: 254320, name: 'Test83', type: 'js', size: 1024, date: '2021-06-01'},
367
+ {id: 254326, parentId: 254320, name: 'Test84', type: 'js', size: 1024, date: '2021-06-07'},
368
+ {id: 254327, parentId: 254320, name: 'Test85', type: 'js', size: 1024, date: '2021-06-01'},
369
+ {id: 254330, parentId: 254300, name: 'Test86', type: 'js', size: 1024, date: '2021-06-01'},
370
+ {
371
+ id: 254340,
372
+ parentId: 254300,
373
+ name: 'vxe-table test abc87',
374
+ type: 'js',
375
+ size: 1024,
376
+ date: '2021-06-01'
377
+ },
378
+ {id: 254350, parentId: 254300, name: 'Test88', type: 'js', size: 1024, date: '2021-06-01'},
379
+ {id: 254360, parentId: 254300, name: 'Test89', type: 'js', size: 1024, date: '2021-06-01'},
380
+ {
381
+ id: 254370,
382
+ parentId: 254300,
383
+ name: 'vxe-table test abc90',
384
+ type: 'js',
385
+ size: 1024,
386
+ date: '2021-06-01'
387
+ },
388
+ {id: 254400, parentId: 254000, name: 'Test91', type: 'js', size: 1024, date: '2021-06-01'},
389
+ {id: 254500, parentId: 254000, name: 'Test92', type: 'js', size: 1024, date: '2021-06-01'},
390
+ {
391
+ id: 254600,
392
+ parentId: 254000,
393
+ name: 'vxe-table test abc93',
394
+ type: 'js',
395
+ size: 1024,
396
+ date: '2021-06-01'
397
+ },
398
+ {id: 255000, parentId: 250000, name: 'Test94', type: 'js', size: 1024, date: '2021-06-01'},
399
+ {id: 256000, parentId: 250000, name: 'Test95', type: 'js', size: 1024, date: '2021-06-08'},
400
+ {id: 257000, parentId: 250000, name: 'Test96', type: 'js', size: 1024, date: '2021-06-01'},
401
+ {id: 258000, parentId: 250000, name: 'Test97', type: 'js', size: 1024, date: '2021-06-01'},
402
+ {id: 260000, parentId: null, name: 'vue 从入门到精通98', type: 'avi', size: 224, date: '2020-10-06'},
403
+ {id: 261000, parentId: 260000, name: 'vue 从入门到精通99', type: 'avi', size: 224, date: '2020-10-01'},
404
+ {id: 261100, parentId: 261000, name: 'vue 从入门到精通100', type: 'avi', size: 224, date: '2020-10-01'},
405
+ {id: 261200, parentId: 261000, name: 'vue 从入门到精通101', type: 'avi', size: 224, date: '2020-10-04'},
406
+ {id: 262000, parentId: 260000, name: 'vue 从入门到精通102', type: 'avi', size: 224, date: '2020-10-01'},
407
+ {
408
+ id: 262100,
409
+ parentId: 262000,
410
+ name: 'vxe-table test abc103',
411
+ type: 'avi',
412
+ size: 224,
413
+ date: '2020-10-01'
414
+ },
415
+ {id: 262200, parentId: 262000, name: 'vue 从入门到精通104', type: 'avi', size: 224, date: '2020-10-03'},
416
+ {id: 262300, parentId: 262000, name: 'vue 从入门到精通105', type: 'avi', size: 224, date: '2020-10-01'},
417
+ {id: 263000, parentId: 260000, name: 'vue 从入门到精通106', type: 'avi', size: 224, date: '2020-10-01'},
418
+ {
419
+ id: 264000,
420
+ parentId: 260000,
421
+ name: 'vxe-table test abc107',
422
+ type: 'avi',
423
+ size: 224,
424
+ date: '2020-10-01'
425
+ },
426
+ {id: 270000, parentId: null, name: 'vue 从入门到精通108', type: 'avi', size: 224, date: '2020-10-01'},
427
+ {id: 280000, parentId: null, name: 'vue 从入门到精通109', type: 'avi', size: 224, date: '2020-09-01'},
428
+ {
429
+ id: 290000,
430
+ parentId: null,
431
+ name: 'vxe-table test abc110',
432
+ type: 'avi',
433
+ size: 224,
434
+ date: '2020-10-01'
435
+ },
436
+ {id: 300000, parentId: null, name: 'vue 从入门到精通111', type: 'avi', size: 224, date: '2020-10-01'},
437
+ {id: 310000, parentId: null, name: 'vue 从入门到精通112', type: 'avi', size: 224, date: '2020-10-01'},
438
+ {id: 320000, parentId: null, name: 'vue 从入门到精通113', type: 'avi', size: 224, date: '2020-10-01'},
439
+ {id: 321000, parentId: 320000, name: 'vue 从入门到精通114', type: 'avi', size: 224, date: '2020-10-01'},
440
+ {id: 322000, parentId: 320000, name: 'vue 从入门到精通115', type: 'avi', size: 224, date: '2020-10-01'},
441
+ {id: 323000, parentId: 320000, name: 'vue 从入门到精通116', type: 'avi', size: 224, date: '2020-10-01'},
442
+ {id: 324000, parentId: 320000, name: 'vue 从入门到精通117', type: 'avi', size: 224, date: '2020-10-01'},
443
+ {
444
+ id: 325000,
445
+ parentId: 320000,
446
+ name: 'vxe-table test abc118',
447
+ type: 'avi',
448
+ size: 224,
449
+ date: '2020-10-01'
450
+ },
451
+ {id: 326000, parentId: 320000, name: 'vue 从入门到精通119', type: 'avi', size: 224, date: '2020-10-01'},
452
+ {id: 327000, parentId: 320000, name: 'vue 从入门到精通120', type: 'avi', size: 224, date: '2020-10-01'},
453
+ {id: 328000, parentId: 320000, name: 'vue 从入门到精通121', type: 'avi', size: 224, date: '2020-10-01'},
454
+ {id: 329000, parentId: 320000, name: 'vue 从入门到精通122', type: 'avi', size: 224, date: '2020-10-01'},
455
+ {
456
+ id: 329100,
457
+ parentId: 329000,
458
+ name: 'vxe-table test abc123',
459
+ type: 'avi',
460
+ size: 224,
461
+ date: '2020-10-01'
462
+ },
463
+ {id: 329200, parentId: 329000, name: 'vue 从入门到精通124', type: 'avi', size: 224, date: '2020-10-01'},
464
+ {id: 329300, parentId: 329000, name: 'vue 从入门到精通125', type: 'avi', size: 224, date: '2020-10-01'},
465
+ {id: 329400, parentId: 329000, name: 'vue 从入门到精通125', type: 'avi', size: 224, date: '2020-10-01'},
466
+ {id: 329500, parentId: 329000, name: 'vue 从入门到精通126', type: 'avi', size: 224, date: '2020-10-01'},
467
+ {id: 329600, parentId: 329000, name: 'vue 从入门到精通127', type: 'avi', size: 224, date: '2020-10-01'},
468
+ {id: 329700, parentId: 329000, name: 'vue 从入门到精通128', type: 'avi', size: 224, date: '2020-10-01'},
469
+ {id: 329800, parentId: 329000, name: 'vue 从入门到精通129', type: 'avi', size: 224, date: '2020-10-01'},
470
+ {
471
+ id: 329810,
472
+ parentId: 329800,
473
+ name: 'vxe-table test abc130',
474
+ type: 'avi',
475
+ size: 224,
476
+ date: '2020-10-01'
477
+ },
478
+ {id: 329820, parentId: 329800, name: 'vue 从入门到精通131', type: 'avi', size: 224, date: '2020-10-01'},
479
+ {id: 329830, parentId: 329800, name: 'vue 从入门到精通132', type: 'avi', size: 224, date: '2020-10-01'},
480
+ {id: 329840, parentId: 329800, name: 'vue 从入门到精通133', type: 'avi', size: 224, date: '2020-10-01'},
481
+ {id: 330000, parentId: null, name: 'vue 从入门到精通134', type: 'avi', size: 224, date: '2020-10-01'},
482
+ {id: 331000, parentId: null, name: 'vue 从入门到精通135', type: 'avi', size: 224, date: '2020-10-01'}
483
+ ]
484
+ };
485
+ },
486
+ };
487
+ </script>
488
+ ```
489
+
490
+ :::
@@ -0,0 +1,119 @@
1
+ ## virtualTree 虚拟树
2
+
3
+ 用于FormBase选项卡切换,用于点击切换不同功能状态。
4
+
5
+ :::demo 在 Form 组件中,每一个表单域由一个 Form-Item 组件构成,表单域中可以放置各种类型的表单控件,包括 Input、Select、Checkbox、Radio、Switch、DatePicker、TimePicker
6
+ ```html
7
+ <div>
8
+ <el-button type="colour-10" @click="add">赋值</el-button>
9
+ </div>
10
+ <br>
11
+ <el-input-select v-model="value1" :clearable="true" @change-select="changeSelect" @change-view="changeView"></el-input-select>
12
+
13
+ <script>
14
+ export default {
15
+ data() {
16
+ return {
17
+ value1: ""
18
+
19
+ };
20
+ },
21
+ methods: {
22
+ add(){
23
+ this.value1 = '1234'
24
+ },
25
+ changeSelect(){
26
+ alert("选择")
27
+ },
28
+ changeView(){
29
+ alert("查看")
30
+ }
31
+ }
32
+ };
33
+ </script>
34
+ ```
35
+ :::
36
+
37
+ :::demo 在 Form 组件中,每一个表单域由一个 Form-Item 组件构成,表单域中可以放置各种类型的表单控件,包括 Input、Select、Checkbox、Radio、Switch、DatePicker、TimePicker
38
+ ```html
39
+ <div>
40
+ <el-button type="colour-10" @click="add">赋值</el-button>
41
+ <el-button type="colour-10" @click="add1">隐藏选择按钮</el-button>
42
+ </div>
43
+ <br>
44
+ <el-input-select style="width: 100%" v-model="value1" :clearable="true" :disabled="disabled"></el-input-select>
45
+
46
+ <script>
47
+ export default {
48
+ data() {
49
+ return {
50
+ value1: "",
51
+ disabled: false
52
+ };
53
+ },
54
+ methods: {
55
+ add(){
56
+ this.value1 = '1234'
57
+ },
58
+ add1(){
59
+ this.disabled = !this.disabled
60
+ }
61
+ }
62
+ };
63
+ </script>
64
+ ```
65
+ :::
66
+
67
+ :::demo 在 Form 组件中,每一个表单域由一个 Form-Item 组件构成,表单域中可以放置各种类型的表单控件,包括 Input、Select、Checkbox、Radio、Switch、DatePicker、TimePicker
68
+ ```html
69
+ <div style="height: 200px;"><el-virtual-tree :data="data" /></div>
70
+
71
+ <script>
72
+ export default {
73
+ data() {
74
+ return {
75
+ data: [{
76
+ label: '一级 1',
77
+ children: [{
78
+ label: '二级 1-1',
79
+ children: [{
80
+ label: '三级 1-1-1'
81
+ }]
82
+ }]
83
+ }, {
84
+ label: '一级 2',
85
+ children: [{
86
+ label: '二级 2-1',
87
+ children: [{
88
+ label: '三级 2-1-1'
89
+ }]
90
+ }, {
91
+ label: '二级 2-2',
92
+ children: [{
93
+ label: '三级 2-2-1'
94
+ }]
95
+ }]
96
+ }, {
97
+ label: '一级 3',
98
+ children: [{
99
+ label: '二级 3-1',
100
+ children: [{
101
+ label: '三级 3-1-1'
102
+ }]
103
+ }, {
104
+ label: '二级 3-2',
105
+ children: [{
106
+ label: '三级 3-2-1'
107
+ }]
108
+ }]
109
+ }],
110
+
111
+ };
112
+ },
113
+ methods: {
114
+
115
+ }
116
+ };
117
+ </script>
118
+ ```
119
+ :::
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "pit-docs-mcp",
3
+ "version": "1.0.2",
4
+ "description": "MCP server for pitBusinessUi, pitElementUi, and pitBusinessUtils internal Vue component documentation",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "pit-docs-mcp": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "docs"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "start": "node dist/index.js",
17
+ "dev": "tsx src/index.ts"
18
+ },
19
+ "keywords": ["mcp", "docs", "vue", "pit"],
20
+ "license": "MIT",
21
+ "engines": {
22
+ "node": ">=18"
23
+ },
24
+ "dependencies": {
25
+ "@modelcontextprotocol/sdk": "^1.0.0",
26
+ "zod": "^3.23.0"
27
+ },
28
+ "devDependencies": {
29
+ "@types/node": "^20.0.0",
30
+ "tsx": "^4.0.0",
31
+ "typescript": "^5.0.0"
32
+ }
33
+ }