hbte-saas-ui 0.0.1 → 1.0.1

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 (128) hide show
  1. package/package.json +8 -2
  2. package/.browserslistrc +0 -3
  3. package/.editorconfig +0 -7
  4. package/.env.development +0 -1
  5. package/.env.lib +0 -1
  6. package/.eslintrc.js +0 -14
  7. package/.prettierrc +0 -3
  8. package/babel.config.js +0 -3
  9. package/docs/.vuepress/config.js +0 -23
  10. package/docs/.vuepress/styles/index.styl +0 -4
  11. package/docs/AdvQuery.md +0 -26
  12. package/docs/CustomQuery.md +0 -21
  13. package/docs/EditArea.md +0 -16
  14. package/docs/FilterDrop.md +0 -29
  15. package/docs/FullTable.md +0 -68
  16. package/docs/Pagination.md +0 -22
  17. package/docs/QueryForm.md +0 -27
  18. package/docs/README.md +0 -17
  19. package/docs/Table.md +0 -58
  20. package/docs/ToolGroup.md +0 -32
  21. package/examples/App.vue +0 -97
  22. package/examples/image/hb-image-viewer/3k.jpg +0 -0
  23. package/examples/image/hb-image-viewer/a.jpg +0 -0
  24. package/examples/image/hb-image-viewer/b.jpg +0 -0
  25. package/examples/main.js +0 -39
  26. package/examples/mock/authority.js +0 -1108
  27. package/examples/mock/dept.js +0 -4001
  28. package/examples/mock/fulltable.js +0 -407
  29. package/examples/mock/organizeData.js +0 -18965
  30. package/examples/router/index.js +0 -111
  31. package/examples/views/ElementCpTest.vue +0 -299
  32. package/examples/views/Fragment.vue +0 -196
  33. package/examples/views/HBAdvQuery.vue +0 -150
  34. package/examples/views/HBAuthority.vue +0 -339
  35. package/examples/views/HBDialog.vue +0 -39
  36. package/examples/views/HBEditarea.vue +0 -350
  37. package/examples/views/HBFilterDrop.vue +0 -72
  38. package/examples/views/HBFloatFooter.vue +0 -42
  39. package/examples/views/HBFullTable.vue +0 -751
  40. package/examples/views/HBImageViewer.vue +0 -57
  41. package/examples/views/HBNavMenu.vue +0 -37
  42. package/examples/views/HBOrganizeDialog.vue +0 -133
  43. package/examples/views/HBPagination.vue +0 -80
  44. package/examples/views/HBSelectVague.vue +0 -57
  45. package/examples/views/HBToolgroup.vue +0 -29
  46. package/examples/views/HBTopBar.vue +0 -16
  47. package/packages/adv-query/index.js +0 -5
  48. package/packages/adv-query/src/main.vue +0 -294
  49. package/packages/area-select/index.js +0 -7
  50. package/packages/area-select/src/main.vue +0 -37
  51. package/packages/authority/index.js +0 -5
  52. package/packages/authority/src/main.vue +0 -606
  53. package/packages/config.js +0 -3
  54. package/packages/custom-query/index.js +0 -5
  55. package/packages/custom-query/src/main.vue +0 -80
  56. package/packages/dialog/index.js +0 -7
  57. package/packages/dialog/src/main.vue +0 -176
  58. package/packages/edit-area/index.js +0 -13
  59. package/packages/edit-area/src/config.js +0 -3
  60. package/packages/edit-area/src/main.vue +0 -304
  61. package/packages/edit-area/src/simulateEvent.js +0 -219
  62. package/packages/filter-drop/index.js +0 -6
  63. package/packages/filter-drop/src/main.vue +0 -107
  64. package/packages/float-footer/index.js +0 -7
  65. package/packages/float-footer/src/main.vue +0 -40
  66. package/packages/fragment/index.js +0 -7
  67. package/packages/fragment/src/main.vue +0 -74
  68. package/packages/fragment/src/old.vue +0 -144
  69. package/packages/full-table/index.js +0 -6
  70. package/packages/full-table/src/config.js +0 -14
  71. package/packages/full-table/src/main.vue +0 -141
  72. package/packages/image-viewer/index.js +0 -8
  73. package/packages/image-viewer/src/main.js +0 -14
  74. package/packages/image-viewer/src/main.vue +0 -138
  75. package/packages/image-viewer/src/svg/cancel.svg +0 -2
  76. package/packages/image-viewer/src/svg/delete.svg +0 -2
  77. package/packages/image-viewer/src/svg/download.svg +0 -2
  78. package/packages/image-viewer/src/svg/rotate.svg +0 -77
  79. package/packages/image-viewer/src/svg/scaledown.svg +0 -71
  80. package/packages/image-viewer/src/svg/scaleup.svg +0 -72
  81. package/packages/index.js +0 -43
  82. package/packages/nav-menu/index.js +0 -7
  83. package/packages/nav-menu/src/main.vue +0 -277
  84. package/packages/organize-dialog/index.js +0 -5
  85. package/packages/organize-dialog/src/main.vue +0 -427
  86. package/packages/pagination/index.js +0 -6
  87. package/packages/pagination/src/main.vue +0 -145
  88. package/packages/query-form/index.js +0 -5
  89. package/packages/query-form/src/main.vue +0 -142
  90. package/packages/select-vague/index.js +0 -5
  91. package/packages/select-vague/src/main.vue +0 -80
  92. package/packages/table/index.js +0 -5
  93. package/packages/table/src/main.vue +0 -265
  94. package/packages/theme-chalk/adv-query.scss +0 -107
  95. package/packages/theme-chalk/authority.scss +0 -103
  96. package/packages/theme-chalk/common/elementCover.scss +0 -722
  97. package/packages/theme-chalk/common/flex.scss +0 -66
  98. package/packages/theme-chalk/common/global.scss +0 -147
  99. package/packages/theme-chalk/common/reset.scss +0 -92
  100. package/packages/theme-chalk/common/var.scss +0 -46
  101. package/packages/theme-chalk/custom-query.scss +0 -10
  102. package/packages/theme-chalk/dialog.scss +0 -9
  103. package/packages/theme-chalk/edit-area.scss +0 -119
  104. package/packages/theme-chalk/filter-drop.scss +0 -81
  105. package/packages/theme-chalk/float-footer.scss +0 -14
  106. package/packages/theme-chalk/fonts/iconfont.ttf +0 -0
  107. package/packages/theme-chalk/fragment.scss +0 -51
  108. package/packages/theme-chalk/full-table.scss +0 -40
  109. package/packages/theme-chalk/icon.scss +0 -96
  110. package/packages/theme-chalk/image-viewer.scss +0 -94
  111. package/packages/theme-chalk/images/company-logo--default.png +0 -0
  112. package/packages/theme-chalk/images/nodata.png +0 -0
  113. package/packages/theme-chalk/images/user-logo--default.png +0 -0
  114. package/packages/theme-chalk/index.scss +0 -21
  115. package/packages/theme-chalk/nav-menu.scss +0 -205
  116. package/packages/theme-chalk/organize-dialog.scss +0 -170
  117. package/packages/theme-chalk/pagination.scss +0 -91
  118. package/packages/theme-chalk/select.scss +0 -8
  119. package/packages/theme-chalk/table.scss +0 -102
  120. package/packages/theme-chalk/tool-group.scss +0 -105
  121. package/packages/theme-chalk/top-bar.scss +0 -195
  122. package/packages/tool-group/index.js +0 -13
  123. package/packages/tool-group/src/config.js +0 -40
  124. package/packages/tool-group/src/main.vue +0 -93
  125. package/packages/top-bar/index.js +0 -7
  126. package/packages/top-bar/src/main.vue +0 -280
  127. package/public/index.html +0 -20
  128. package/vue.config.js +0 -6
@@ -1,407 +0,0 @@
1
- /**
2
- * 将接口模拟为函数,模拟接口对参数的处理
3
- */
4
- const baseData = {
5
- tableData: [
6
- {
7
- name: "用户a",
8
- id: "1",
9
- code: "123,456",
10
- company: "未知公司1",
11
- addr: "地址1",
12
- addrId: "a",
13
- date: "2022-01-01",
14
- remark: "未知说明",
15
- open: false,
16
- size: "small",
17
- color: "红,绿",
18
- edit1: "文本1",
19
- edit2: ["2"],
20
- edit2Label: ["值2"],
21
- edit3: "",
22
- daterange: "2020-01-02,2020-03-05",
23
- },
24
- {
25
- name: "用户b",
26
- id: "2",
27
- code: "123,456",
28
- company: "未知公司2",
29
- addr: "地址1",
30
- addrId: "a",
31
- date: "2022-01-01",
32
- remark: "未知说明",
33
- open: false,
34
- size: "small",
35
- color: "红,绿",
36
- edit1: "文本1",
37
- edit2: ["2"],
38
- edit2Label: ["值2"],
39
- edit3: "",
40
- daterange: "2020-01-02,2020-03-05",
41
- },
42
- {
43
- name: "用户c",
44
- id: "3",
45
- code: "123,456",
46
- company: "未知公司3",
47
- addr: "地址1",
48
- addrId: "a",
49
- date: "2022-01-01",
50
- remark: "未知说明",
51
- open: false,
52
- size: "small",
53
- color: "红,绿",
54
- edit1: "文本1",
55
- edit2: ["2"],
56
- edit2Label: ["值2"],
57
- edit3: "",
58
- daterange: "2020-01-02,2020-03-05",
59
- },
60
- {
61
- name: "用户d",
62
- id: "4",
63
- code: "123,456",
64
- company: "未知公司4",
65
- addr: "地址1",
66
- addrId: "a",
67
- date: "2022-01-01",
68
- remark: "未知说明",
69
- open: false,
70
- size: "small",
71
- color: "红,绿",
72
- edit1: "文本1",
73
- edit2: ["2"],
74
- edit2Label: ["值2"],
75
- edit3: "",
76
- daterange: "2020-01-02,2020-03-05",
77
- },
78
- {
79
- name: "用户e",
80
- id: "5",
81
- code: "123,456",
82
- company: "未知公司5",
83
- addr: "地址1",
84
- addrId: "a",
85
- date: "2022-01-01",
86
- remark: "未知说明",
87
- open: false,
88
- size: "small",
89
- color: "红,绿",
90
- edit1: "文本1",
91
- edit2: ["2"],
92
- edit2Label: ["值2"],
93
- edit3: "",
94
- daterange: "2020-01-02,2020-03-05",
95
- },
96
- {
97
- name: "用户f",
98
- id: "6",
99
- code: "123,456",
100
- company: "未知公司6",
101
- addr: "地址1",
102
- addrId: "a",
103
- date: "2022-01-01",
104
- remark: "未知说明",
105
- open: false,
106
- size: "small",
107
- color: "红,绿",
108
- edit1: "文本1",
109
- edit2: ["2"],
110
- edit2Label: ["值2"],
111
- edit3: "",
112
- daterange: "2020-01-02,2020-03-05",
113
- },
114
- {
115
- name: "用户g",
116
- id: "7",
117
- code: "123,456",
118
- company: "未知公司7",
119
- addr: "地址1",
120
- addrId: "a",
121
- date: "2022-01-01",
122
- remark: "未知说明",
123
- open: false,
124
- size: "small",
125
- color: "红,绿",
126
- edit1: "文本1",
127
- edit2: ["2"],
128
- edit2Label: ["值2"],
129
- edit3: "",
130
- daterange: "2020-01-02,2020-03-05",
131
- },
132
- {
133
- name: "用户名",
134
- id: "8",
135
- code: "123,456",
136
- company: "未知公司8",
137
- addr: "地址1",
138
- addrId: "a",
139
- date: "2022-01-01",
140
- remark: "未知说明",
141
- open: false,
142
- size: "small",
143
- color: "红,绿",
144
- edit1: "文本1",
145
- edit2: ["2"],
146
- edit2Label: ["值2"],
147
- edit3: "",
148
- daterange: "2020-01-02,2020-03-05",
149
- },
150
- {
151
- name: "用户名",
152
- id: "9",
153
- code: "123,456",
154
- company: "未知公司9",
155
- addr: "地址1",
156
- addrId: "a",
157
- date: "2022-01-01",
158
- remark: "未知说明",
159
- open: false,
160
- size: "small",
161
- color: "红,绿",
162
- edit1: "文本1",
163
- edit2: ["2"],
164
- edit2Label: ["值2"],
165
- edit3: "",
166
- daterange: "2020-01-02,2020-03-05",
167
- },
168
- {
169
- name: "用户名",
170
- id: "10",
171
- code: "123,456",
172
- company: "未知公司10",
173
- addr: "地址1",
174
- addrId: "a",
175
- date: "2022-01-01",
176
- remark: "未知说明",
177
- open: false,
178
- size: "small",
179
- color: "红,绿",
180
- edit1: "文本1",
181
- edit2: ["2"],
182
- edit2Label: ["值2"],
183
- edit3: "",
184
- daterange: "2020-01-02,2020-03-05",
185
- },
186
- {
187
- name: "用户名",
188
- id: "11",
189
- code: "123,456",
190
- company: "未知公司11",
191
- addr: "地址1",
192
- addrId: "a",
193
- date: "2022-01-01",
194
- remark: "未知说明",
195
- open: false,
196
- size: "small",
197
- color: "红,绿",
198
- edit1: "文本1",
199
- edit2: ["2"],
200
- edit2Label: ["值2"],
201
- edit3: "",
202
- daterange: "2020-01-02,2020-03-05",
203
- },
204
- {
205
- name: "用户名",
206
- id: "12",
207
- code: "123,456",
208
- company: "未知公司12",
209
- addr: "地址1",
210
- addrId: "a",
211
- date: "2022-01-01",
212
- remark: "未知说明",
213
- open: false,
214
- size: "small",
215
- color: "红,绿",
216
- edit1: "文本1",
217
- edit2: ["2"],
218
- edit2Label: ["值2"],
219
- edit3: "",
220
- daterange: "2020-01-02,2020-03-05",
221
- },
222
- {
223
- name: "用户名",
224
- id: "13",
225
- code: "123,456",
226
- company: "未知公司13",
227
- addr: "地址1",
228
- addrId: "a",
229
- date: "2022-01-01",
230
- remark: "未知说明",
231
- open: false,
232
- size: "small",
233
- color: "红,绿",
234
- edit1: "文本1",
235
- edit2: ["2"],
236
- edit2Label: ["值2"],
237
- edit3: "",
238
- daterange: "2020-01-02,2020-03-05",
239
- },
240
- {
241
- name: "用户名",
242
- id: "14",
243
- code: "123,456",
244
- company: "未知公司14",
245
- addr: "地址1",
246
- addrId: "a",
247
- date: "2022-01-01",
248
- remark: "未知说明",
249
- open: false,
250
- size: "small",
251
- color: "红,绿",
252
- edit1: "文本1",
253
- edit2: ["2"],
254
- edit2Label: ["值2"],
255
- edit3: "",
256
- daterange: "2020-01-02,2020-03-05",
257
- },
258
- {
259
- name: "用户名",
260
- id: "15",
261
- code: "123,456",
262
- company: "未知公司15",
263
- addr: "地址1",
264
- addrId: "a",
265
- date: "2022-01-01",
266
- remark: "未知说明",
267
- open: false,
268
- size: "small",
269
- color: "红,绿",
270
- edit1: "文本1",
271
- edit2: ["2"],
272
- edit2Label: ["值2"],
273
- edit3: "",
274
- daterange: "2020-01-02,2020-03-05",
275
- },
276
- {
277
- name: "用户名",
278
- id: "16",
279
- code: "123,456",
280
- company: "未知公司16",
281
- addr: "地址1",
282
- addrId: "a",
283
- date: "2022-01-01",
284
- remark: "未知说明",
285
- open: false,
286
- size: "small",
287
- color: "红,绿",
288
- edit1: "文本1",
289
- edit2: ["2"],
290
- edit2Label: ["值2"],
291
- edit3: "",
292
- daterange: "2020-01-02,2020-03-05",
293
- },
294
- {
295
- name: "用户名",
296
- id: "17",
297
- code: "123,456",
298
- company: "未知公司17",
299
- addr: "地址1",
300
- addrId: "a",
301
- date: "2022-01-01",
302
- remark: "未知说明",
303
- open: false,
304
- size: "small",
305
- color: "红,绿",
306
- edit1: "文本1",
307
- edit2: ["2"],
308
- edit2Label: ["值2"],
309
- edit3: "",
310
- daterange: "2020-01-02,2020-03-05",
311
- },
312
- {
313
- name: "用户名",
314
- id: "18",
315
- code: "123,456",
316
- company: "未知公司18",
317
- addr: "地址1",
318
- addrId: "a",
319
- date: "2022-01-01",
320
- remark: "未知说明",
321
- open: false,
322
- size: "small",
323
- color: "红,绿",
324
- edit1: "文本1",
325
- edit2: ["2"],
326
- edit2Label: ["值2"],
327
- edit3: "",
328
- daterange: "2020-01-02,2020-03-05",
329
- },
330
- {
331
- name: "用户名",
332
- id: "19",
333
- code: "123,456",
334
- company: "未知公司19",
335
- addr: "地址1",
336
- addrId: "a",
337
- date: "2022-01-01",
338
- remark: "未知说明",
339
- open: false,
340
- size: "small",
341
- color: "红,绿",
342
- edit1: "文本1",
343
- edit2: ["2"],
344
- edit2Label: ["值2"],
345
- edit3: "",
346
- daterange: "2020-01-02,2020-03-05",
347
- },
348
- {
349
- name: "用户名",
350
- id: "20",
351
- code: "123,456",
352
- company: "未知公司20",
353
- addr: "地址1",
354
- addrId: "a",
355
- date: "2022-01-01",
356
- remark: "未知说明",
357
- open: false,
358
- size: "small",
359
- color: "红,绿",
360
- edit1: "文本1",
361
- edit2: ["2"],
362
- edit2Label: ["值2"],
363
- edit3: "",
364
- daterange: "2020-01-02,2020-03-05",
365
- },
366
- ],
367
- tableDataEmpty: [],
368
- columns: [],
369
- };
370
- export default {
371
- // 请求列表数据
372
- getTableData: (pageNum, pageSize, kw) => {
373
- let data = baseData.tableData;
374
- if (kw) {
375
- data = data.filter((item) => item.name.indexOf(kw) !== -1);
376
- }
377
- const dataSplit = data.slice(pageSize * (pageNum - 1), pageSize * pageNum);
378
- return {
379
- list: dataSplit,
380
- total: data.length,
381
- };
382
- },
383
- // 请求空列表数据
384
- getTableDataEmpty: () => {
385
- return {
386
- list: baseData.tableDataEmpty,
387
- total: 0,
388
- };
389
- },
390
- // 请求服务器的列信息
391
- getColumns: () => {
392
- return baseData.columns;
393
- },
394
- // 修改列信息
395
- setColumns: (columns) => {
396
- baseData.columns = columns;
397
- return true;
398
- },
399
- // 修改列表数据
400
- setTableCell: (id, prop, value) => {
401
- const row = baseData.tableData.find((item) => item.id === id);
402
- if (row) {
403
- row[prop] = value;
404
- }
405
- return !!row;
406
- },
407
- };