@kyfe/ks-query-table 0.0.9 → 0.0.10

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 (315) hide show
  1. package/{qt-npm/ks-query-table.common.js → index.js} +1 -1
  2. package/{qt-npm/ks-query-table.umd.js → ks-query-table.umd.js} +1 -1
  3. package/{qt-npm/ks-query-table.umd.min.js → ks-query-table.umd.min.js} +1 -1
  4. package/{qt-npm/ks-query-table.umd.min.js.map → ks-query-table.umd.min.js.map} +1 -1
  5. package/package.json +10 -81
  6. package/.bitmap +0 -38
  7. package/.editorconfig +0 -5
  8. package/.env.dev +0 -2
  9. package/.env.gray +0 -2
  10. package/.env.prod +0 -2
  11. package/.env.stg +0 -3
  12. package/.env.uat +0 -2
  13. package/.eslintignore +0 -1
  14. package/.eslintrc.js +0 -25
  15. package/.gitmodules +0 -4
  16. package/.prettierrc +0 -11
  17. package/README.md +0 -6
  18. package/babel.config.js +0 -10
  19. package/build-apm.sh +0 -9
  20. package/build.sh +0 -16
  21. package/config/index.js +0 -20
  22. package/jsconfig.json +0 -7
  23. package/kuasheng-sdk/index.js +0 -80
  24. package/kuasheng-sdk/lib/assets.js +0 -304
  25. package/kuasheng-sdk/lib/context.js +0 -199
  26. package/kuasheng-sdk/lib/layout.js +0 -346
  27. package/kuasheng-sdk/lib/location.js +0 -46
  28. package/kuasheng-sdk/lib/media.js +0 -342
  29. package/kuasheng-sdk/lib/navigation.js +0 -30
  30. package/kuasheng-sdk/lib/request.js +0 -76
  31. package/kuasheng-sdk/lib/system.js +0 -190
  32. package/kuasheng-sdk/lib/userinfo.js +0 -98
  33. package/kuasheng-sdk/util/check.js +0 -102
  34. package/kuasheng-sdk/util/config.js +0 -47
  35. package/kuasheng-sdk/util/device.js +0 -25
  36. package/kuasheng-sdk/util/error.js +0 -19
  37. package/kuasheng-sdk/util/funtional.js +0 -153
  38. package/kuasheng-sdk/util/mixin.js +0 -36
  39. package/kuasheng-sdk/util/requestUtil.js +0 -41
  40. package/kuasheng-sdk/util/response.js +0 -33
  41. package/kuasheng-sdk/util/warn.js +0 -35
  42. package/kuasheng-ui/CHANGELOG.md +0 -9
  43. package/kuasheng-ui/components/card.vue +0 -57
  44. package/kuasheng-ui/components/ks-area-select/README.md +0 -43
  45. package/kuasheng-ui/components/ks-area-select/area-picker.vue +0 -554
  46. package/kuasheng-ui/components/ks-area-select/area-search.vue +0 -363
  47. package/kuasheng-ui/components/ks-area-select/areas-pop.vue +0 -56
  48. package/kuasheng-ui/components/ks-area-select/common.js +0 -183
  49. package/kuasheng-ui/components/ks-area-select/index.vue +0 -355
  50. package/kuasheng-ui/components/ks-area-select/mixins.js +0 -216
  51. package/kuasheng-ui/components/ks-area-single-select/README.md +0 -50
  52. package/kuasheng-ui/components/ks-area-single-select/hot-city.js +0 -45
  53. package/kuasheng-ui/components/ks-area-single-select/index.vue +0 -324
  54. package/kuasheng-ui/components/ks-calendar/index.vue +0 -269
  55. package/kuasheng-ui/components/ks-call-phone/call-tips.vue +0 -70
  56. package/kuasheng-ui/components/ks-call-phone/call.vue +0 -178
  57. package/kuasheng-ui/components/ks-call-phone/index.js +0 -48
  58. package/kuasheng-ui/components/ks-call-phone/index.vue +0 -131
  59. package/kuasheng-ui/components/ks-call-phone//345/221/274/345/217/253/347/273/204/344/273/266.md +0 -0
  60. package/kuasheng-ui/components/ks-date-picker/README.md +0 -23
  61. package/kuasheng-ui/components/ks-date-picker/date-picker-bottom.vue +0 -123
  62. package/kuasheng-ui/components/ks-date-picker/date-picker-dropdown.vue +0 -80
  63. package/kuasheng-ui/components/ks-date-picker/date-picker-right.vue +0 -87
  64. package/kuasheng-ui/components/ks-date-picker/date-picker-top.vue +0 -88
  65. package/kuasheng-ui/components/ks-date-picker/date-picker.js +0 -15
  66. package/kuasheng-ui/components/ks-date-picker/date-range-select.vue +0 -92
  67. package/kuasheng-ui/components/ks-date-picker/date-select.vue +0 -65
  68. package/kuasheng-ui/components/ks-date-picker/date-week-month.vue +0 -131
  69. package/kuasheng-ui/components/ks-date-picker/index.js +0 -12
  70. package/kuasheng-ui/components/ks-date-picker/mixin.js +0 -92
  71. package/kuasheng-ui/components/ks-date-picker/month-range-select.vue +0 -129
  72. package/kuasheng-ui/components/ks-date-picker/month-select.vue +0 -85
  73. package/kuasheng-ui/components/ks-date-picker/quarter-select.vue +0 -94
  74. package/kuasheng-ui/components/ks-date-picker/style.less +0 -121
  75. package/kuasheng-ui/components/ks-date-picker/utils.js +0 -109
  76. package/kuasheng-ui/components/ks-date-picker/week-select.vue +0 -99
  77. package/kuasheng-ui/components/ks-decrypt/index.vue +0 -159
  78. package/kuasheng-ui/components/ks-employee/README.md +0 -78
  79. package/kuasheng-ui/components/ks-employee/employee-input.vue +0 -173
  80. package/kuasheng-ui/components/ks-employee/employee-list.vue +0 -662
  81. package/kuasheng-ui/components/ks-employee/employee-popup.vue +0 -197
  82. package/kuasheng-ui/components/ks-employee/employee-search.vue +0 -250
  83. package/kuasheng-ui/components/ks-employee/employee-selected.vue +0 -173
  84. package/kuasheng-ui/components/ks-employee/index.js +0 -17
  85. package/kuasheng-ui/components/ks-employee/package-lock.json +0 -5
  86. package/kuasheng-ui/components/ks-employee/package.json +0 -15
  87. package/kuasheng-ui/components/ks-employee/yarn.lock +0 -4
  88. package/kuasheng-ui/components/ks-field-money/index.js +0 -8
  89. package/kuasheng-ui/components/ks-field-money/index.vue +0 -212
  90. package/kuasheng-ui/components/ks-field-money/package.json +0 -11
  91. package/kuasheng-ui/components/ks-field-money/utils.js +0 -65
  92. package/kuasheng-ui/components/ks-field-money//351/207/221/351/242/235/350/275/254/346/215/242/345/231/250.md +0 -0
  93. package/kuasheng-ui/components/ks-history-search/history-input.vue +0 -131
  94. package/kuasheng-ui/components/ks-history-search/history-list.vue +0 -188
  95. package/kuasheng-ui/components/ks-history-search/img/delete.png +0 -0
  96. package/kuasheng-ui/components/ks-history-search/index.js +0 -9
  97. package/kuasheng-ui/components/ks-history-search/index.vue +0 -125
  98. package/kuasheng-ui/components/ks-history-search/package-lock.json +0 -5
  99. package/kuasheng-ui/components/ks-history-search/package.json +0 -15
  100. package/kuasheng-ui/components/ks-history-search/utils.js +0 -35
  101. package/kuasheng-ui/components/ks-input-search/index.vue +0 -106
  102. package/kuasheng-ui/components/ks-list/index.vue +0 -75
  103. package/kuasheng-ui/components/ks-loading/index.js +0 -16
  104. package/kuasheng-ui/components/ks-month/index.vue +0 -47
  105. package/kuasheng-ui/components/ks-month/package.json +0 -3
  106. package/kuasheng-ui/components/ks-month/range.vue +0 -172
  107. package/kuasheng-ui/components/ks-month/single.vue +0 -136
  108. package/kuasheng-ui/components/ks-month/style.less +0 -125
  109. package/kuasheng-ui/components/ks-month/utils.js +0 -35
  110. package/kuasheng-ui/components/ks-nav/index.vue +0 -264
  111. package/kuasheng-ui/components/ks-nav-bar.js +0 -35
  112. package/kuasheng-ui/components/ks-org/ks-org-tree.vue +0 -247
  113. package/kuasheng-ui/components/ks-org/ks-popup-tree.vue +0 -154
  114. package/kuasheng-ui/components/ks-org/ks-tree-input.vue +0 -240
  115. package/kuasheng-ui/components/ks-org/ks-tree-node.vue +0 -94
  116. package/kuasheng-ui/components/ks-org/ks-tree.vue +0 -229
  117. package/kuasheng-ui/components/ks-org/utils.js +0 -54
  118. package/kuasheng-ui/components/ks-popover/index.vue +0 -457
  119. package/kuasheng-ui/components/ks-popover/mixin.js +0 -28
  120. package/kuasheng-ui/components/ks-popover/utils.js +0 -60
  121. package/kuasheng-ui/components/ks-pull-refresh/index.vue +0 -43
  122. package/kuasheng-ui/components/ks-quarter/index.vue +0 -256
  123. package/kuasheng-ui/components/ks-table/README.md +0 -103
  124. package/kuasheng-ui/components/ks-table/cell.vue +0 -31
  125. package/kuasheng-ui/components/ks-table/index.js +0 -8
  126. package/kuasheng-ui/components/ks-table/index.less +0 -486
  127. package/kuasheng-ui/components/ks-table/index.vue +0 -1088
  128. package/kuasheng-ui/components/ks-table/package.json +0 -12
  129. package/kuasheng-ui/components/ks-table/release.md +0 -7
  130. package/kuasheng-ui/components/ks-toast.js +0 -35
  131. package/kuasheng-ui/components/ks-upload/index.vue +0 -174
  132. package/kuasheng-ui/components/ks-user-access.vue +0 -229
  133. package/kuasheng-ui/components/no-data/README.md +0 -45
  134. package/kuasheng-ui/components/no-data/image.js +0 -1
  135. package/kuasheng-ui/components/no-data/index.vue +0 -83
  136. package/kuasheng-ui/components/notice-bar.vue +0 -16
  137. package/kuasheng-ui/components/steps.js +0 -11
  138. package/kuasheng-ui/components/tabs.vue +0 -40
  139. package/kuasheng-ui/index.js +0 -239
  140. package/kuasheng-ui/patch/datetime-picker/datetimePicker.md +0 -0
  141. package/kuasheng-ui/patch/datetime-picker/index.js +0 -46
  142. package/kuasheng-ui/patch/datetime-picker/utils.js +0 -78
  143. package/kuasheng-ui/patch/field/field.md +0 -1
  144. package/kuasheng-ui/patch/field/index.js +0 -122
  145. package/kuasheng-ui/patch/field/utils.js +0 -36
  146. package/kuasheng-ui/patch/form/form.md +0 -7
  147. package/kuasheng-ui/patch/form/index.js +0 -106
  148. package/kuasheng-ui/patch/index.js +0 -12
  149. package/kuasheng-ui/patch/pagination/index.js +0 -78
  150. package/kuasheng-ui/style/animation-ui.less +0 -31
  151. package/kuasheng-ui/style/font/number/font-number1.otf +0 -0
  152. package/kuasheng-ui/style/font/number/font-number2.ttf +0 -0
  153. package/kuasheng-ui/style/images/checked.svg +0 -1
  154. package/kuasheng-ui/style/images/success.svg +0 -1
  155. package/kuasheng-ui/style/index.less +0 -6
  156. package/kuasheng-ui/style/kuasheng-ui.less +0 -207
  157. package/kuasheng-ui/style/reset-vant.less +0 -307
  158. package/kuasheng-ui/style/vant-var.less +0 -138
  159. package/kuasheng-ui/utils/apis.js +0 -17
  160. package/kuasheng-ui/utils/axios-adapter.js +0 -47
  161. package/kuasheng-ui/utils/bem.js +0 -39
  162. package/kuasheng-ui/utils/bus.js +0 -97
  163. package/kuasheng-ui/utils/common.js +0 -88
  164. package/kuasheng-ui/utils/decrypt/config.js +0 -12
  165. package/kuasheng-ui/utils/decrypt/decrypt-api.js +0 -139
  166. package/kuasheng-ui/utils/decrypt/index.js +0 -6
  167. package/kuasheng-ui/utils/decrypt/mask.js +0 -36
  168. package/kuasheng-ui/utils/decrypt/virtual.js +0 -44
  169. package/kuasheng-ui/utils/directive.js +0 -57
  170. package/kuasheng-ui/utils/directive.md +0 -23
  171. package/kuasheng-ui/utils/drcheck-plugin.js +0 -219
  172. package/kuasheng-ui/utils/error-plugin.js +0 -88
  173. package/kuasheng-ui/utils/filter.js +0 -149
  174. package/kuasheng-ui/utils/http-interceptors.js +0 -18
  175. package/kuasheng-ui/utils/http.js +0 -140
  176. package/kuasheng-ui/utils/index.js +0 -5
  177. package/kuasheng-ui/utils/init-event.js +0 -20
  178. package/kuasheng-ui/utils/log.js +0 -309
  179. package/kuasheng-ui/utils/token.js +0 -9
  180. package/kuasheng-ui/utils/type.js +0 -45
  181. package/kuasheng-ui/utils/validate.js +0 -20
  182. package/kuasheng-ui/utils/watermark.js +0 -67
  183. package/kuasheng-ui/version.js +0 -1
  184. package/ky-apm/client.js +0 -37
  185. package/ky-apm/customHttp.js +0 -38
  186. package/ky-apm/index.js +0 -68
  187. package/ky-apm/plugins/performance.js +0 -84
  188. package/ky-apm/plugins/self-error.js +0 -26
  189. package/ky-apm/warn-log.js +0 -3
  190. package/plugin/ks-chii-webpack-html/index.js +0 -53
  191. package/plugin/ks-chii-webpack-html/package.json +0 -16
  192. package/postcss.config.js +0 -15
  193. package/public/capsule-positon.js +0 -50
  194. package/public/fonts/DingTalkJinBuTi.ttf +0 -0
  195. package/public/framework/axios@0.19.0.min.js +0 -9
  196. package/public/framework/fastclick@1.0.6.min.js +0 -1
  197. package/public/framework/iconfont/iconfont.css +0 -91
  198. package/public/framework/iconfont/iconfont.js +0 -1
  199. package/public/framework/iconfont/iconfont.json +0 -142
  200. package/public/framework/iconfont/iconfont.ttf +0 -0
  201. package/public/framework/iconfont/iconfont.woff +0 -0
  202. package/public/framework/iconfont/iconfont.woff2 +0 -0
  203. package/public/framework/vant@2.5.6.min.js +0 -7
  204. package/public/framework/vue-router@3.1.3.min.js +0 -6
  205. package/public/framework/vue@2.6.10.runtime.min.js +0 -6
  206. package/public/framework/vuex@3.1.1.min.js +0 -6
  207. package/public/index.html +0 -260
  208. package/public/ks@3.0.8.umd.min.js +0 -1
  209. package/public/ksui@4.0.27.umd.min.js +0 -10
  210. package/public/status-bar-preset.js +0 -39
  211. package/qt-npm/package.json +0 -13
  212. package/src/App.vue +0 -204
  213. package/src/common/README.md +0 -94
  214. package/src/common/http/axios-adapter.js +0 -47
  215. package/src/common/http/common.js +0 -88
  216. package/src/common/http/http-interceptors.js +0 -18
  217. package/src/common/http/http-lock.js +0 -45
  218. package/src/common/http/index.js +0 -163
  219. package/src/common/http/token.js +0 -9
  220. package/src/common/styles/font/AlibabaSans102Ver2-Md.ttf +0 -0
  221. package/src/common/styles/font.less +0 -12
  222. package/src/common/styles/variables.less +0 -43
  223. package/src/common/utils/index.js +0 -1
  224. package/src/common/utils/platform/README.md +0 -1
  225. package/src/common/utils/platform/android/.gitkeep +0 -0
  226. package/src/common/utils/platform/core/index.js +0 -24
  227. package/src/common/utils/platform/index.js +0 -164
  228. package/src/common/utils/platform/ios/.gitkeep +0 -0
  229. package/src/common/utils/platform/subscribe/helper.js +0 -38
  230. package/src/common/utils/platform/subscribe/index.js +0 -204
  231. package/src/common/utils/platform/subscribe/table-animation.js +0 -75
  232. package/src/config/index.js +0 -31
  233. package/src/config.js +0 -1
  234. package/src/main.js +0 -73
  235. package/src/router.js +0 -52
  236. package/src/view/home/config.js +0 -101
  237. package/src/view/home/demo1.vue +0 -223
  238. package/src/view/home/demo2.vue +0 -124
  239. package/src/view/home/demo3.vue +0 -51
  240. package/src/view/home/demo4.vue +0 -139
  241. package/src/view/home/index.vue +0 -97
  242. package/src/view/home/query-table/README.md +0 -45
  243. package/src/view/home/query-table/api/index.js +0 -12
  244. package/src/view/home/query-table/assets/horizontal-back.svg +0 -1
  245. package/src/view/home/query-table/components/pe-table/cell.js +0 -184
  246. package/src/view/home/query-table/components/pe-table/collapse.js +0 -334
  247. package/src/view/home/query-table/components/pe-table/empty.vue +0 -48
  248. package/src/view/home/query-table/components/pe-table/header.js +0 -328
  249. package/src/view/home/query-table/components/pe-table/images/abnormal.png +0 -0
  250. package/src/view/home/query-table/components/pe-table/images/empty.png +0 -0
  251. package/src/view/home/query-table/components/pe-table/images/fold.svg +0 -1
  252. package/src/view/home/query-table/components/pe-table/images/sort.svg +0 -1
  253. package/src/view/home/query-table/components/pe-table/images/sorting.svg +0 -1
  254. package/src/view/home/query-table/components/pe-table/images/unfold.svg +0 -1
  255. package/src/view/home/query-table/components/pe-table/index.vue +0 -841
  256. package/src/view/home/query-table/components/pe-table/load-more.js +0 -46
  257. package/src/view/home/query-table/components/pe-table/props/index.js +0 -193
  258. package/src/view/home/query-table/components/pe-table/row.vue +0 -118
  259. package/src/view/home/query-table/components/pe-table/scrollbar.js +0 -424
  260. package/src/view/home/query-table/components/pe-table/stretch-damping.js +0 -112
  261. package/src/view/home/query-table/components/pe-table/style/cell.less +0 -89
  262. package/src/view/home/query-table/components/pe-table/style/empty.less +0 -48
  263. package/src/view/home/query-table/components/pe-table/style/header.less +0 -141
  264. package/src/view/home/query-table/components/pe-table/style/index.less +0 -88
  265. package/src/view/home/query-table/components/pe-table/style/load-more.less +0 -61
  266. package/src/view/home/query-table/components/pe-table/style/row.less +0 -6
  267. package/src/view/home/query-table/components/pe-table/table-loading.vue +0 -119
  268. package/src/view/home/query-table/components/pe-table/table-total.vue +0 -53
  269. package/src/view/home/query-table/components/pe-table/utils/animate.js +0 -80
  270. package/src/view/home/query-table/components/pe-table/utils/columns.js +0 -290
  271. package/src/view/home/query-table/components/pe-table/utils/data.js +0 -12
  272. package/src/view/home/query-table/components/pe-table/utils/fixed.js +0 -69
  273. package/src/view/home/query-table/components/pe-table/utils/formatter.js +0 -327
  274. package/src/view/home/query-table/components/pe-table/utils/render-cells.js +0 -424
  275. package/src/view/home/query-table/components/pe-table/utils/slot.js +0 -28
  276. package/src/view/home/query-table/components/pe-table/utils/tools.js +0 -84
  277. package/src/view/home/query-table/components/pe-table/utils/touch-scroll.js +0 -417
  278. package/src/view/home/query-table/components/query-table/index.vue +0 -496
  279. package/src/view/home/query-table/components/query-table/mixins/column-mixin.js +0 -102
  280. package/src/view/home/query-table/components/query-table/mixins/column-setting.js +0 -143
  281. package/src/view/home/query-table/components/query-table/mixins/data-mixin.js +0 -511
  282. package/src/view/home/query-table/components/query-table/mixins/pagination-mixin.js +0 -26
  283. package/src/view/home/query-table/components/query-table/mixins/table-fixed.js +0 -115
  284. package/src/view/home/query-table/components/query-table/mixins/table-horizontal.js +0 -118
  285. package/src/view/home/query-table/components/table-horizontal.vue +0 -99
  286. package/src/view/home/query-table/components/table-pagination.vue +0 -32
  287. package/src/view/home/query-table/components/table-settings/assets/arrpw-up.svg +0 -1
  288. package/src/view/home/query-table/components/table-settings/assets/disabled-down.svg +0 -1
  289. package/src/view/home/query-table/components/table-settings/assets/disabled-up.svg +0 -1
  290. package/src/view/home/query-table/components/table-settings/assets/down.svg +0 -1
  291. package/src/view/home/query-table/components/table-settings/assets/up.svg +0 -1
  292. package/src/view/home/query-table/components/table-settings/index.less +0 -294
  293. package/src/view/home/query-table/components/table-settings/index.vue +0 -260
  294. package/src/view/home/query-table/components/table-settings/settings.vue +0 -479
  295. package/src/view/home/query-table/components/table-settings/test.js +0 -626
  296. package/src/view/home/query-table/components/table-settings//344/270/252/346/200/247/350/256/276/347/275/256.md +0 -0
  297. package/src/view/home/query-table/components/tooltip.js +0 -124
  298. package/src/view/home/query-table/hooks/use-cache-promise.js +0 -27
  299. package/src/view/home/query-table/hooks/use-column-config.js +0 -190
  300. package/src/view/home/query-table/hooks/use-encryption.js +0 -0
  301. package/src/view/home/query-table/hooks/use-generic-search.js +0 -95
  302. package/src/view/home/query-table/index.js +0 -7
  303. package/src/view/home/query-table/store/column-store.js +0 -0
  304. package/src/view/home/query-table/styles/table.less +0 -24
  305. package/src/view/home/query-table/utils/column.js +0 -36
  306. package/src/view/home/query-table/utils/config.js +0 -12
  307. package/src/view/home/query-table/utils/encryption.js +0 -32
  308. package/src/view/home/query-table/utils/http.js +0 -1
  309. package/src/view/home/query-table/utils/localStorage.js +0 -35
  310. package/src/view/home//351/246/226/351/241/265.md +0 -0
  311. package/src/web.js +0 -99
  312. package/vue.config.js +0 -128
  313. /package/{qt-npm/ks-query-table.common.js.map → ks-query-table.common.js.map} +0 -0
  314. /package/{qt-npm/ks-query-table.css → ks-query-table.css} +0 -0
  315. /package/{qt-npm/ks-query-table.umd.js.map → ks-query-table.umd.js.map} +0 -0
@@ -1,39 +0,0 @@
1
- window.__navbarHeight__ = 46
2
- window.__statusBarHeight__ = window.__statusBarHeight__ || 0
3
- window.__peStockTabBar__ = 60
4
-
5
- function queryDevice(className) {
6
- const app = document.querySelector('#kuasheng-h5')
7
- return app ? app.className.indexOf(className) > -1 : false
8
- }
9
-
10
- function fixIOSStatusBarHeight() {
11
- if (queryDevice('ipx')) return 44
12
- else if (queryDevice('ios')) return window.__statusBarHeight__ || 20
13
- return 0
14
- }
15
-
16
- function injectStatusBarHeight() {
17
- var statusBarHeight = window.__statusBarHeight__
18
- statusBarHeight = statusBarHeight || window.getComputedStyle(document.documentElement).getPropertyValue('--status-bar-height')?.replace(/px$/gi, '')
19
-
20
- window.__navbarHeight__ = 46
21
- window.__navbarHeight__ = fixIOSStatusBarHeight() + 46
22
-
23
- if (!statusBarHeight) {
24
- window.ks.callFunc({ method: 'getKsStatusBarHeight', params: {} }).then(res => {
25
- statusBarHeight = res.statusHeight
26
- statusBarHeight && document.documentElement.style.setProperty('--status-bar-height', statusBarHeight + 'px')
27
- window.__statusBarHeight__ = statusBarHeight
28
- })
29
- } else {
30
- statusBarHeight && document.documentElement.style.setProperty('--status-bar-height', statusBarHeight + 'px')
31
- window.__statusBarHeight__ = statusBarHeight
32
- }
33
- }
34
-
35
- try {
36
- injectStatusBarHeight()
37
- } catch {
38
- // ignore
39
- }
@@ -1,13 +0,0 @@
1
- {
2
- "name": "@kyfe/ks-query-table",
3
- "version": "0.0.9",
4
- "main": "index.js",
5
- "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
7
- },
8
- "keywords": [],
9
- "author": "zjf",
10
- "license": "ISC",
11
- "repository": {
12
- }
13
- }
package/src/App.vue DELETED
@@ -1,204 +0,0 @@
1
- <template>
2
- <div id="ksui-app" v-if="$root.init">
3
- <keep-alive>
4
- <router-view ref="keepRef" v-if="$route.meta.keepAlive"></router-view>
5
- </keep-alive>
6
- <router-view ref="noKeepRef" v-if="!$route.meta.keepAlive"></router-view>
7
- </div>
8
- </template>
9
-
10
- <script>
11
- export default {
12
- name: 'app',
13
- data() {
14
- return {
15
- screenChange: 0
16
- }
17
- },
18
- mounted() {
19
- window.onStockScreenChange = status => {
20
- // int 0竖屏(默认)、1横屏
21
- this.$bus.$emit('jumpcallback', status)
22
- if (this.screenChange !== status) {
23
- this.screenChange = status
24
- this.$bus.$emit('screenChange', status)
25
- }
26
-
27
- }
28
- },
29
-
30
- created() {
31
- // 默认占满状态栏
32
- window.ks && window.ks.callFunc({ method: 'setStatusBar', params: { statusBarType: 1 } })
33
- window.ks.callFunc({
34
- method: "setCloseStyle",
35
- params: {
36
- style: '3', // '1': 默认 '2': 透明色 '3': 白色
37
- }
38
- });
39
- }
40
- }
41
- </script>
42
-
43
- <style lang="less">
44
- html, body {
45
- overflow: hidden; /* 禁止滚动 */
46
- touch-action: none; /* 禁用触摸滚动 */
47
- position: fixed; /* 防止 iOS 弹性滚动 */
48
- height: 100%; /* 确保全屏 */
49
- width: 100%;
50
- }
51
- .ks-date-picker-right-popup {
52
- max-width: 420px;
53
- padding-top: var(--status-bar-height);
54
- .van-popup__close-icon {
55
- padding-top: var(--status-bar-height);
56
- }
57
- }
58
- #ksui-app {
59
- -webkit-overflow-scrolling: auto; /* 禁用 iOS 弹性滚动 */
60
- font-size: 16px;
61
- .van-tabbar-item__icon {
62
- img {
63
- height: 44px;
64
- }
65
- }
66
- }
67
-
68
- .ksui-body {
69
- .white-mask {
70
- position: absolute;
71
- height: 100%;
72
- width: 100%;
73
- top: 0;
74
- left: 0;
75
- background-color: #fff;
76
- }
77
- }
78
-
79
- .ksui-container {
80
- height: 100%;
81
- background-color: #f8f8f8;
82
- position: relative;
83
- overflow-x: hidden;
84
- }
85
- .van-tabbar--fixed {
86
- z-index: 1000;
87
- }
88
- .ksui-nav {
89
- .van-nav-bar .van-nav-bar__arrow {
90
- font-size: 20px;
91
- margin-top: -3px;
92
- }
93
- .van-nav-bar__title {
94
- text-align: left;
95
- margin-left: 40px;
96
- }
97
- }
98
-
99
- [data-stock='up'] {
100
- &::after {
101
- transition: all 0.3s;
102
- animation: ascend-animation 1s ease-in-out;
103
- position: absolute;
104
- z-index: -1;
105
- content: '';
106
- /*prettier-ignore*/
107
- left: 1PX;
108
- /*prettier-ignore*/
109
- right: 1PX;
110
- /*prettier-ignore*/
111
- top: 2PX;
112
- /*prettier-ignore*/
113
- bottom: 2PX;
114
- /*prettier-ignore*/
115
- border-radius: 2PX;
116
- }
117
- }
118
-
119
- [data-stock='down'] {
120
- &::after {
121
- transition: all 0.3s;
122
- animation: descend-animation 1s ease-in-out;
123
- z-index: -1;
124
- position: absolute;
125
- content: '';
126
- /*prettier-ignore*/
127
- left: 1PX;
128
- /*prettier-ignore*/
129
- right: 1PX;
130
- /*prettier-ignore*/
131
- top: 2PX;
132
- /*prettier-ignore*/
133
- bottom: 2PX;
134
- /*prettier-ignore*/
135
- border-radius: 2PX;
136
- }
137
- }
138
-
139
- @keyframes descend-animation {
140
- 0% {
141
- background-color: transparent;
142
- }
143
-
144
- 50% {
145
- background: #CDF0DA;
146
- }
147
-
148
- 100% {
149
- background-color: transparent;
150
- }
151
- }
152
-
153
- @keyframes ascend-animation {
154
- 0% {
155
- background-color: transparent;
156
- }
157
-
158
- 50% {
159
- background: #FFDCDC;
160
- }
161
-
162
- 100% {
163
- background-color: transparent;
164
- }
165
- }
166
-
167
- .van-popup.pe-common-popup-container {
168
- box-sizing: border-box;
169
- padding-top: var(--status-bar-height);
170
- // 横屏表格
171
- &.horizontal-popup {
172
- .screen-hide {
173
- display: none;
174
- }
175
- .table-head-options {
176
- display: flex;
177
- .table-head-options-right {
178
- flex: 1;
179
- display: flex;
180
- align-items: center;
181
- justify-content: flex-end;
182
- .styled-title-menus {
183
- margin-left: 36px;
184
- padding-right: 24px;
185
- }
186
- }
187
- }
188
- }
189
- }
190
-
191
- .pe-table-cell.holding-total-row {
192
- will-change: unset !important;
193
- background-color: #fffaf3;
194
- }
195
-
196
- .android .van-popup.horizontal-popup.pe-common-popup-container {
197
- box-sizing: border-box;
198
- padding-top: calc(var(--status-bar-height) - 17px);
199
- }
200
-
201
- .van-overlay {
202
- animation: none !important;
203
- }
204
- </style>
@@ -1,94 +0,0 @@
1
- # pe-common-h5
2
- 移动端公共业务组件库,存放通用工具类
3
-
4
-
5
- ## Getting started
6
-
7
- To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
-
9
- Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
-
11
- ## Add your files
12
-
13
- - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
- - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
-
16
- ```
17
- cd existing_repo
18
- git remote add origin http://gitlab.baoguozs.com/ycfm-pe/front/finance/pe-common-h5.git
19
- git branch -M main
20
- git push -uf origin main
21
- ```
22
-
23
- ## Integrate with your tools
24
-
25
- - [ ] [Set up project integrations](http://gitlab.baoguozs.com/ycfm-pe/front/finance/pe-common-h5/-/settings/integrations)
26
-
27
- ## Collaborate with your team
28
-
29
- - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
- - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
- - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
- - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
- - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
-
35
- ## Test and Deploy
36
-
37
- Use the built-in continuous integration in GitLab.
38
-
39
- - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
- - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
- - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
- - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
- - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
-
45
- ***
46
-
47
- # Editing this README
48
-
49
- When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
-
51
- ## Suggestions for a good README
52
-
53
- Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
-
55
- ## Name
56
- Choose a self-explaining name for your project.
57
-
58
- ## Description
59
- Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
-
61
- ## Badges
62
- On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
-
64
- ## Visuals
65
- Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
-
67
- ## Installation
68
- Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
-
70
- ## Usage
71
- Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
-
73
- ## Support
74
- Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
-
76
- ## Roadmap
77
- If you have ideas for releases in the future, it is a good idea to list them in the README.
78
-
79
- ## Contributing
80
- State if you are open to contributions and what your requirements are for accepting them.
81
-
82
- For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
-
84
- You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
-
86
- ## Authors and acknowledgment
87
- Show your appreciation to those who have contributed to the project.
88
-
89
- ## License
90
- For open source projects, say how it is licensed.
91
-
92
- ## Project status
93
- If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
94
-
@@ -1,47 +0,0 @@
1
- 'use strict';
2
-
3
- export default function xhrAdapter(config) {
4
- const isProd = navigator.userAgent.includes('ks_prod')
5
- if (config._debug !== false && !isProd) {
6
- console.log(`[request] ${config.headers.method}`, config)
7
- }
8
- return new Promise(function dispatchXhrRequest(resolve, reject) {
9
- // 超时定时器
10
- let timer = setTimeout(() => {
11
- const error = {message: `timeout of ${config.timeout}ms exceeded`}
12
- error._config = config
13
- reject(error)
14
- }, config.timeout)
15
-
16
- config.headers['appkey'] = config.headers.appkey && String(config.headers.appkey)
17
- ks.request(config.headers.method,JSON.parse(config.data), config.headers).then(function(res){
18
-
19
- // 请求成功清除定时器
20
- clearTimeout(timer)
21
-
22
- if (config._debug !== false && !isProd) {
23
- console.log(`[response] ${config.headers.method}`, res)
24
- }
25
-
26
- let responseData = res
27
- let response = {
28
- data: responseData,
29
- status: 200,
30
- statusText: 'OK',
31
- headers: config.headers,
32
- config: config,
33
- request: config
34
- }
35
- resolve(response)
36
- }).catch(function(error){
37
-
38
- clearTimeout(timer)
39
-
40
- if (config._debug !== false && !isProd) {
41
- console.log(`[failed] ${config.headers.method}`, error)
42
- }
43
- error._config = config
44
- reject(error)
45
- })
46
- })
47
- }
@@ -1,88 +0,0 @@
1
- import md5 from "js-md5"
2
-
3
- const ENV_TYPES = {
4
- prd: 'ks_prod',
5
- uat: 'ks_uat',
6
- stg: 'ks_stg',
7
- dev: 'ks_dev'
8
- }
9
-
10
- const KS_URL_CONFIG = {
11
- [ENV_TYPES.prd]: 'https://ys-h5.ycfm-erp.com',
12
- [ENV_TYPES.uat]: 'http://api-uat.baoguozs.com',
13
- [ENV_TYPES.stg]: 'https://ys-gray-h5.ycfm-erp.com', //
14
- [ENV_TYPES.dev]: 'http://api-dev.baoguozs.com'
15
- }
16
-
17
- export const random = (count) => {
18
- let num = Date.now() + Math.floor(1000 * Math.random() + 1000)
19
- if (count) {
20
- return num.toString().substr(-count)
21
- }
22
- return num.toString()
23
- }
24
-
25
- export const md5Http = (token, timestamp, body) => {
26
- return md5(md5(token).toUpperCase() + timestamp + JSON.stringify(body || {})).toUpperCase()
27
- }
28
-
29
- export const getXWebTraceId = (userId, menuId, now) => {
30
- let log = window.ksui && window.ksui.log
31
- let startTime = log && log.initTime || now
32
- return `${userId}-${menuId || 'xxxx'}-${startTime}-${log && log.lastActionId || ''}-${random(4)}`
33
- }
34
-
35
- // 判断是否在环境
36
- export const isKSClient = () => {
37
- return navigator.userAgent.toLowerCase().indexOf('kuasheng-2.0') >= 0
38
- }
39
-
40
- // 获取当前环境
41
- export const getKsEnv = () => {
42
- return Object.keys(ENV_TYPES).find(type =>
43
- navigator.userAgent.includes(ENV_TYPES[type])
44
- )
45
- }
46
-
47
- // 获取当前环境对应的请求域名
48
- export const getKsEnvUrl = () => {
49
- const envType = getKsEnv()
50
- const url = envType ? KS_URL_CONFIG[ENV_TYPES[envType]] : null
51
- console.info(`当前轻应用走的是 XHR 请求,代理地址为${url}`)
52
- return url
53
- }
54
-
55
- export const getValue = (key, obj, getSourceOfKey) => {
56
- if (!key) {
57
- return ''
58
- }
59
- let source = null
60
- // 解析键的属性和数组索引
61
- const parseKey = (k) => {
62
- const index = k.indexOf('[')
63
- return {
64
- prop: index > 0 ? k.substr(0, index) : k,
65
- arrayIndex: index > 0 ? +k.substring(index + 1, k.length - 1) : undefined,
66
- }
67
- }
68
-
69
- // 处理每个键的情况
70
- const handleKey = (s, k, isLast) => {
71
- const { prop, arrayIndex } = parseKey(k)
72
- const value = s[prop]
73
- source = s
74
- if (isLast) {
75
- return arrayIndex !== undefined ? (value || [])[arrayIndex] : value
76
- }
77
- return arrayIndex !== undefined ? (value || [])[arrayIndex] || {} : value || {}
78
- }
79
-
80
- if (key.includes('.')) {
81
- const keys = key.split('.')
82
- const value = keys.reduce((s, k, i) => handleKey(s, k, i === keys.length - 1), obj)
83
- return getSourceOfKey ? { source, value } : value
84
- } else {
85
- const value = handleKey(obj, key, true)
86
- return getSourceOfKey ? { source, value } : value
87
- }
88
- }
@@ -1,18 +0,0 @@
1
- const Toast = window.vant && window.vant.Toast
2
- /**
3
- * 响应拦截-针对接口响应添加了灰度标识,判断路由meta标识是否需要弹窗提示接口正在灰度
4
- */
5
- export function handleResponseGrayTips (response) {
6
- const data = typeof response.data === 'object' ? response.data : {}
7
- const method = response.config.headers.method || response.config.url
8
- if (data.code === 0) {
9
- // 判断该接口是否存在灰度标识
10
- if (response.headers['x-framework-isgray'] && response.headers['x-framework-isgray'] === '1') {
11
- // 灰度标识接口且判断当前路由meta是否配置弹窗
12
- if (window.isCheckApiGray) {
13
- Toast(`${method}接口正在灰度`)
14
- }
15
- }
16
- }
17
- return response
18
- }
@@ -1,45 +0,0 @@
1
-
2
- /**
3
- * 作用:频繁调用接口时,保证取到的返回结果是最后一次请求的结果
4
- * 可用于频繁切换tab造成数据错位的问题等
5
- * 给每次请求生成一个reqId,结果响应时对比reqId
6
- * 如果响应id与请求时生成id一致,证明没有发生新的请求
7
- * 否则,该请求已经是旧的,可以被丢弃(什么都不做)
8
- * 利用永远不改变promise状态,达到丢弃的目的
9
- * @param {*} name
10
- * @returns
11
- */
12
- function createHttpLock(name = '') {
13
- var globalId
14
- return function lock(promise) {
15
- // 每次发送请求,生成新的id
16
- globalId = Math.random();
17
-
18
- return new Promise((resolve, reject) => {
19
- // 利用闭包,将id存到本次请求上下文中
20
- var reqId = globalId
21
- promise.then((res) => {
22
- // 对比reqId和globalId,如果不一致,表示已经有了新的请求
23
- if (reqId === globalId) {
24
- resolve(res);
25
- } else {
26
- console.log(name + ' httpLock: Promise object is outdated');
27
- }
28
- }).catch((err) => {
29
- if (reqId === globalId) {
30
- reject(err);
31
- } else {
32
- console.error(err);
33
- console.log(name + ' httpLock: Promise object is outdated');
34
- }
35
- });
36
- });
37
- }
38
- }
39
-
40
-
41
- export default createHttpLock
42
-
43
- // 使用示例
44
- // const searchLock = createHttpLock('search')
45
- // search(http('pe.stock.app.resource.first.search.v1', appKey, params))