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,154 @@
1
+ ## VirtualList 虚拟列表
2
+
3
+ 在前端的业务开发中,前期可能的数据量可能是比较少的。但随着项目不断的运行,数据量的增加就会给前端的网页带来较差的体验。为提高用户操作体验,特在element组件库中集成虚拟列表来供大家使用。
4
+
5
+ ### 基础用法
6
+ 基础的虚拟列表。
7
+
8
+ :::demo
9
+ ```html
10
+ <div>
11
+ <el-virtual-list key-field="value" :items="list" :item-size="100" ref="virtualScroller"
12
+ style="height: 240px" class="scroller-list">
13
+ <template slot-scope="{item, index, active}">
14
+ <div class="scroller-list-item">
15
+ <el-image
16
+ style="width: 90px; height: 90px"
17
+ :src="index % 2 ? url2 : url"
18
+ fit="cover"
19
+ lazy
20
+ ></el-image>
21
+ <div class="scroller-list-item-text">&nbsp;<el-link type="primary">{{item.label}}</el-link> 下标: {{index}}</div></div>
22
+ </template>
23
+ </el-virtual-list>
24
+ </div>
25
+
26
+ <script>
27
+
28
+ export default {
29
+ data() {
30
+ return {
31
+ items: [],
32
+ url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
33
+ url2: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'
34
+ };
35
+ },
36
+ computed: {
37
+ list () {
38
+ return this.items
39
+ },
40
+ },
41
+ mounted () {
42
+ this.$nextTick(this.generateItems)
43
+ },
44
+ methods: {
45
+ generateItems(){
46
+ this.items = Array(1000)
47
+ .fill(1)
48
+ .map((_, index) => {
49
+ return {
50
+ value: index + "A",
51
+ label: index * 10 + "",
52
+ };
53
+ });
54
+ }
55
+ }
56
+ };
57
+ </script>
58
+ ```
59
+ :::
60
+
61
+ ### 方向
62
+ 基础的水平虚拟列表。
63
+
64
+ :::demo
65
+ ```html
66
+ <div>
67
+ <el-virtual-list key-field="value" :items="list" :item-size="100" ref="virtualScroller"
68
+ style="height: 240px" class="scroller-list-horizontal" direction="horizontal">
69
+ <template slot-scope="{item, index, active}">
70
+ <div class="scroller-list-item">
71
+ <el-image
72
+ style="width: 90px; height: 90px"
73
+ :src="index % 2 ? url2 : url"
74
+ fit="cover"
75
+ lazy
76
+ ></el-image>
77
+ <div class="scroller-list-item-text"><el-link type="primary">{{item.label}}</el-link><br> 下标: {{index}}</div></div>
78
+ </template>
79
+ </el-virtual-list>
80
+ </div>
81
+
82
+ <script>
83
+
84
+ export default {
85
+ data() {
86
+ return {
87
+ items: [],
88
+ url: 'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg',
89
+ url2: 'https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg'
90
+ };
91
+ },
92
+ computed: {
93
+ list () {
94
+ return this.items
95
+ },
96
+ },
97
+ mounted () {
98
+ this.$nextTick(this.generateItems)
99
+ },
100
+ methods: {
101
+ generateItems(){
102
+ this.items = Array(1000)
103
+ .fill(1)
104
+ .map((_, index) => {
105
+ return {
106
+ value: index + "A",
107
+ label: index * 10 + "",
108
+ };
109
+ });
110
+ }
111
+ }
112
+ };
113
+ </script>
114
+ ```
115
+ :::
116
+
117
+ ### Attribute
118
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
119
+ |---------- |-------------- |---------- |-------------------------------- |-------- |
120
+ | items | 展示数据 | array | — | [] |
121
+ | direction | 滚动方向 | string | vertical, horizontal | 'vertical' |
122
+ | itemSize | 每一项元素的高度,需要设置这个高度 | number | — | null |
123
+ | gridItems | 网格的形式展示 | number | — | null |
124
+ | itemSecondarySize | 设置gridItems时,网格中项目的像素大小(垂直模式下的宽度,水平模式下的高度) | number | — | null |
125
+ | minItemSize | 如果项目的高度(或水平模式下的宽度)未知,则使用的最小大小 | Number, String | — | null |
126
+ | sizeField | 用于在可变大小模式下获取项目大小的字段 | string | — | 'size' |
127
+ | typeField | 用于区分列表中不同类型组件的字段 | string | — | 'type' |
128
+ | keyField | 用于标识项目和优化管理渲染视图的字段 | string | — | 'id' |
129
+ | pageMode | 启用页面模式 | boolean | — | false |
130
+ | prerender | 为服务器端渲染(SSR)渲染固定数量的项目 | number | — | 0 |
131
+ | buffer | 要添加到滚动可见区域边缘以开始渲染更远项目的像素量 | number | — | 200 |
132
+ | emitUpdate | 每次更新虚拟滚动条内容时发出'更新'事件(可能会影响性能)。 | boolean | — | false |
133
+ | updateInterval | 滚动后检查视图更新的时间间隔(毫秒)。设置为0时,将在下一个动画帧中选中。 | number | — | 0 |
134
+ | listClass | list集合的class类 | string, object, array | — | '' |
135
+ | itemClass | item项的class类 | string, object, array | — | '' |
136
+ | listTag | list集合的标签 | string | - | 'div' |
137
+ | itemTag | item项的标签 | string | — | 'div' |
138
+
139
+ ### Slot
140
+ | name | 说明 |
141
+ |------|--------|
142
+ | item | 展示中的元素个体 |
143
+ | index | 返回每个元素在 items 中的位置 index |
144
+ | active | 元素是否处于 active 状态 |
145
+
146
+ ### Methods
147
+ | 方法名 | 说明 | 参数 |
148
+ |----------- |-------------- | -- |
149
+ | resize | 当滚动条的大小改变时发出 | — |
150
+ | visible | 当滚动条认为自己在页面中可见时发出 | - |
151
+ | hidden | 当滚动条隐藏在页面中时发出 | — |
152
+ | update | 仅当emitUpdate属性为true时,才会在每次更新视图时发出 | startIndex, endIndex, visibleStartIndex, visibleEndIndex |
153
+ | scroll-start | 当渲染开始时发出 | — |
154
+ | scroll-end | 在渲染完成时发出 | — |
@@ -0,0 +1,243 @@
1
+ ## VirtualSelectTree 虚拟下拉树
2
+
3
+ 当选项数据量过多时,使用虚拟下拉菜单展示并选择内容。
4
+
5
+ ### 单选+可清空
6
+ 适用广泛的基础单选,主要传入 options 数据源。
7
+
8
+ :::demo
9
+ ```html
10
+ <div>
11
+ <el-button type="text" @click="dialogVisible = true">点击打开 Dialog</el-button>
12
+
13
+ <el-dialog
14
+ title="提示"
15
+ :visible.sync="dialogVisible"
16
+ width="30%"
17
+ top="400px">
18
+ <el-virtual-select-tree :props="{
19
+ label: 'fullName',
20
+ value: 'id',
21
+ children: 'children',
22
+ disabled: 'disabled',
23
+ }" filterable style="width: 100%" v-model="value" :options="items" clearable placeholder="基础用法" />
24
+ <span slot="footer" class="dialog-footer">
25
+ <el-button @click="dialogVisible = false">取 消</el-button>
26
+ <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
27
+ </span>
28
+ </el-dialog>
29
+
30
+ </div>
31
+
32
+ <script>
33
+ export default {
34
+ data() {
35
+ return {
36
+ dialogVisible: false,
37
+ items: [],
38
+ value: "0-9-0-1"
39
+ };
40
+ },
41
+ created(){
42
+ setTimeout(()=>{
43
+ this.items = [{"fullName":"顶级节点","hasChildren":true,"id":"0","children":[{"id":"1762669651030937600","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1762669651030937600","companyCode":"SJLHT","companyType":null,"companyTypeName":"","shortName":"","fullName":"设计联合体","phone":null,"createdDate":"2024-02-28 10:42:48","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"SJLHT","description":"","propertyJson":{"shortName":"","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":0,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1750701295431647232","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1750701295431647232","companyCode":"GXLQ","companyType":null,"companyTypeName":"","shortName":"","fullName":"广西路桥工程集团有限公司","phone":null,"createdDate":"2024-01-26 10:04:50","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"GXLQ","description":"","propertyJson":{"shortName":"","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":0,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1704678803321708544","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704678803321708544","companyCode":"HBGX","companyType":null,"companyTypeName":"","shortName":"环北公司","fullName":"环北部湾广西水资源配置有限公司","phone":null,"createdDate":"2023-09-21 10:07:53","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"HBGX","description":"","propertyJson":{"shortName":"环北公司","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":1,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1704679790744756224","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704679790744756224","companyCode":"GXSDY","companyType":null,"companyTypeName":"","shortName":"广西水电设计院","fullName":"广西壮族自治区水利电力勘测设计研究院有限责任公司","phone":null,"createdDate":"2023-09-21 10:11:48","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"GXSDY","description":"","propertyJson":{"shortName":"广西水电设计院","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":201,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null,"children":null},{"id":"1704679889751302144","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704679889751302144","companyCode":"ZSZJSJY","companyType":null,"companyTypeName":"","shortName":"中水珠江设计院","fullName":"中水珠江规划勘测设计有限公司","phone":null,"createdDate":"2023-09-21 10:12:12","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"ZSZJSJY","description":"","propertyJson":{"shortName":"中水珠江设计院","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":202,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1704679394215256064","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704679394215256064","companyCode":"YJGSJLDW","companyType":null,"companyTypeName":"","shortName":"应急监理","fullName":"应急供水工程施工监理单位","phone":null,"createdDate":"2023-09-21 10:10:14","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"YJGSJLDW","description":"","propertyJson":{"shortName":"应急监理","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":301,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1704679121916846080","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704679121916846080","companyCode":"ZGAN","companyType":null,"companyTypeName":"","shortName":"中国安能","fullName":"中国安能集团第一工程局有限公司","phone":null,"createdDate":"2023-09-21 10:09:09","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"ZGAN","description":"","propertyJson":{"shortName":"中国安能","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":401,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1704679200467771392","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704679200467771392","companyCode":"ZTSJ","companyType":null,"companyTypeName":"","shortName":"中铁十局","fullName":"中铁十局集团有限公司","phone":null,"createdDate":"2023-09-21 10:09:27","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"ZTSJ","description":"","propertyJson":{"shortName":"中铁十局","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":402,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1704679302456467456","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1704679302456467456","companyCode":"ZTSBJ","companyType":null,"companyTypeName":"","shortName":"中铁十八局","fullName":"中铁十八局集团有限公司","phone":null,"createdDate":"2023-09-21 10:09:52","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"ZTSBJ","description":"","propertyJson":{"shortName":"中铁十八局","webSite":"","industry":"","foundedTime":"","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":""},"sortCode":403,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null},{"id":"1712678114101850112","parentId":"0","parentIds":null,"level":null,"hasChildren":false,"relationId":"1712678114101850112","companyCode":"HBJGXMZ","companyType":null,"companyTypeName":"","shortName":"建管项目组","fullName":"环北建管系统研发项目组","phone":null,"createdDate":"2023-10-13 11:54:17","createdBy":null,"lastModifiedDate":null,"lastModifiedBy":null,"enabled":true,"deleted":null,"sort":null,"remark":null,"enCode":"HBJGXMZ","description":"","propertyJson":{"shortName":"建管项目组","webSite":"","industry":"","foundedTime":"1697126400000","address":"","managerName":"","managerTelePhone":"","managerMobilePhone":"","manageEmail":"","bankName":"","bankAccount":"","businessscope":"","enterpriseNature":"","fax":"","telePhone":"18260860662"},"sortCode":9999,"icon":null,"createdByName":null,"lastModifiedByName":null,"unitId":null,"bidId":null,"bidName":null,"addType":null,"bidCategoryName":null,"unitType":null,"associatedCompanies":null,"thirdPartyCode":null,"treeUniqueIdentifier":null,"isConsortium":null,"consortiumMember":null}]}]
44
+ },2000)
45
+ }
46
+ };
47
+ </script>
48
+ ```
49
+ :::
50
+
51
+ ### 单选+可清空+可搜索
52
+ 适用广泛的基础单选,主要传入 options 数据源。
53
+
54
+ :::demo
55
+ ```html
56
+ <div>
57
+ <el-virtual-select-tree style="width: 100%" v-model="value" filterable :options="items" clearable placeholder="基础用法" />
58
+ </div>
59
+
60
+ <script>
61
+ function dig(path = '0', level = 2) {
62
+ const list = [];
63
+ for (let i = 0; i < 10; i += 1) {
64
+ const key = `${path}-${i}`;
65
+ const treeNode = {
66
+ label: key + '-'+ Math.round( Math.random()*1000),
67
+ id: key
68
+ };
69
+ if (level > 0) {
70
+ treeNode.children = dig(key, level - 1);
71
+ }
72
+ list.push(treeNode);
73
+ }
74
+ return list;
75
+ }
76
+ export default {
77
+ data() {
78
+ return {
79
+ items: dig(),
80
+ value: ""
81
+ };
82
+ },
83
+ };
84
+ </script>
85
+ ```
86
+ :::
87
+
88
+ ### 多选 collapse-tags 可清空
89
+ 适用广泛的基础多选,主要传入 options 数据源。
90
+
91
+ :::demo
92
+ ```html
93
+ <div>
94
+ <el-virtual-select-tree style="width: 100%" multiple collapse-tags v-model="value" :options="items" clearable placeholder="基础用法" />
95
+ </div>
96
+
97
+ <script>
98
+ function dig(path = '0', level = 2) {
99
+ const list = [];
100
+ for (let i = 0; i < 10; i += 1) {
101
+ const key = `${path}-${i}`;
102
+ const treeNode = {
103
+ label: key + '这是label',
104
+ id: key
105
+ };
106
+ if (level > 0) {
107
+ treeNode.children = dig(key, level - 1);
108
+ }
109
+ list.push(treeNode);
110
+ }
111
+ return list;
112
+ }
113
+ export default {
114
+ data() {
115
+ return {
116
+ items: dig(),
117
+ value: ""
118
+ };
119
+ },
120
+ };
121
+ </script>
122
+ ```
123
+ :::
124
+
125
+ ### 多选 可清空
126
+ 适用广泛的基础多选,主要传入 options 数据源。
127
+
128
+ :::demo
129
+ ```html
130
+ <div>
131
+ <el-virtual-select-tree style="width: 100%" multiple v-model="value" :options="items" clearable placeholder="基础用法" />
132
+ </div>
133
+
134
+ <script>
135
+ function dig(path = '0', level = 2) {
136
+ const list = [];
137
+ for (let i = 0; i < 10; i += 1) {
138
+ const key = `${path}-${i}`;
139
+ const treeNode = {
140
+ label: key + '这是label',
141
+ id: key
142
+ };
143
+ if (level > 0) {
144
+ treeNode.children = dig(key, level - 1);
145
+ }
146
+ list.push(treeNode);
147
+ }
148
+ return list;
149
+ }
150
+ export default {
151
+ data() {
152
+ return {
153
+ items: dig(),
154
+ value: ""
155
+ };
156
+ },
157
+ };
158
+ </script>
159
+ ```
160
+ :::
161
+
162
+ ### 多选 collapse-tags 可清空 搜索
163
+ 适用广泛的基础多选,主要传入 options 数据源。
164
+
165
+ :::demo
166
+ ```html
167
+ <div>
168
+ <el-virtual-select-tree style="width: 100%" multiple collapse-tags filterable v-model="value" :options="items" clearable placeholder="基础用法" />
169
+ </div>
170
+
171
+ <script>
172
+ function dig(path = '0', level = 2) {
173
+ const list = [];
174
+ for (let i = 0; i < 10; i += 1) {
175
+ const key = `${path}-${i}`;
176
+ const treeNode = {
177
+ label: key + '-'+ Math.round( Math.random()*1000),
178
+ id: key
179
+ };
180
+ if (level > 0) {
181
+ treeNode.children = dig(key, level - 1);
182
+ }
183
+ list.push(treeNode);
184
+ }
185
+ return list;
186
+ }
187
+ export default {
188
+ data() {
189
+ return {
190
+ items: dig(),
191
+ value: ""
192
+ };
193
+ },
194
+ };
195
+ </script>
196
+ ```
197
+ :::
198
+
199
+ ### 多选 搜素 可清空
200
+ 适用广泛的基础多选,主要传入 options 数据源。
201
+
202
+ :::demo
203
+ ```html
204
+ <div>
205
+ {{value}}
206
+ <el-virtual-select-tree style="width: 100%" multiple filterable v-model="value" :options="items" clearable placeholder="基础用法" />
207
+ </div>
208
+
209
+ <script>
210
+ function dig(path = '0', level = 2) {
211
+ const list = [];
212
+ for (let i = 0; i < 10; i += 1) {
213
+ const key = `${path}-${i}`;
214
+ const treeNode = {
215
+ label: key + '-'+ Math.round( Math.random()*1000),
216
+ id: key
217
+ };
218
+ if (level > 0) {
219
+ treeNode.children = dig(key, level - 1);
220
+ }
221
+ list.push(treeNode);
222
+ }
223
+ return list;
224
+ }
225
+ export default {
226
+ data() {
227
+ return {
228
+ items: dig(),
229
+ value: ""
230
+ };
231
+ },
232
+ };
233
+ </script>
234
+ ```
235
+ :::
236
+
237
+ <div style="height: 500px;"></div>
238
+ <br>
239
+ <br>
240
+ <br>
241
+ <br>
242
+ <br>
243
+ <br>