@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,78 +0,0 @@
1
- function makePage(relNumber, text, active) {
2
- let number = relNumber < 1 ? 1 : relNumber
3
- return { number, text, active }
4
- }
5
-
6
- function pages() {
7
- // jump 默认跳5页
8
- let jump = this.__jump__ || 5
9
- const pages = []
10
- const pageCount = this.count
11
- const showPageSize = +this.showPageSize
12
-
13
- if (this.mode !== 'multi') {
14
- return pages
15
- }
16
-
17
- let startPage = 1
18
- let endPage = pageCount
19
- const isMaxSized = showPageSize < pageCount
20
-
21
- if (isMaxSized) {
22
- // startPage = Math.max(this.value - Math.floor(showPageSize / 2), 1)
23
- startPage = this.value > showPageSize ? Math.max(this.value - Math.floor(showPageSize / 2), 1) : 1
24
- endPage = startPage + showPageSize - 1
25
-
26
- if (endPage > pageCount) {
27
- endPage = pageCount
28
- startPage = endPage - showPageSize + 1
29
- }
30
- }
31
-
32
- for (let number = startPage; number <= endPage; number++) {
33
- const page = makePage(number, number, number === this.value)
34
- pages.push(page)
35
- }
36
-
37
- if (isMaxSized && showPageSize > 0 && this.forceEllipses) {
38
- // if (startPage > jump) {
39
- // const previousPageSet = makePage(startPage - jump, '...', false)
40
- // pages.unshift(previousPageSet);
41
- // }
42
-
43
- // if (endPage < pageCount - 5) {
44
- // const nextPageSet = makePage(endPage + jump, '...', false)
45
- // pages.push(nextPageSet)
46
- // }
47
- if (this.value > showPageSize) {
48
- const previousPageSet = makePage(this.value - jump, '...', false)
49
- pages.unshift(previousPageSet)
50
-
51
- // 显示第一页
52
- let hasPage1 = pages.some(function(item) {
53
- return item.text === 1
54
- })
55
-
56
- if (!hasPage1) {
57
- pages.unshift(makePage(1, 1, false))
58
- }
59
- }
60
-
61
- if (endPage < pageCount) {
62
- const nextPageSet = makePage(this.value + jump, '...', false)
63
- pages.push(nextPageSet)
64
- }
65
- }
66
- return pages
67
- }
68
-
69
- function installPagination(){
70
- let page = window.vant && window.vant.Pagination
71
- if (page) {
72
- page.computed.pages = pages
73
- Vue.component('van-pagination', page)
74
- }
75
- }
76
-
77
- export default installPagination
78
-
@@ -1,31 +0,0 @@
1
- //左进右出
2
- .slide-right-enter-active,
3
- .slide-right-leave-active,
4
- .slide-left-enter-active,
5
- .slide-left-leave-active {
6
- will-change: transform;
7
- transition: all .3s;
8
- height: 100%;
9
- position: absolute;
10
- left: 0;
11
- right: 0;
12
- backface-visibility: hidden;
13
- overflow-x: hidden;
14
- /*perspective: 1000;*/
15
- }
16
- .slide-right-enter {
17
- opacity: 0;
18
- transform: translate(-100%, 0);
19
- }
20
- .slide-right-leave-active {
21
- opacity: 0;
22
- transform: translate(100%, 0);
23
- }
24
- .slide-left-enter {
25
- opacity: 0;
26
- transform: translate(100%, 0);
27
- }
28
- .slide-left-leave-active {
29
- opacity: 0;
30
- transform: translate(-100%, 0);
31
- }
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><g><g><ellipse cx="8" cy="8" rx="8" ry="8" fill="#165DFF" fill-opacity="1"/></g><g><path d="M11.547516555404663,4.890197809265136C11.792256555404663,4.640297709265137,12.193236555404663,4.636112109265136,12.443136555404664,4.880848809265137C12.679156555404663,5.111989809265137,12.695996555404664,5.482496809265137,12.490966555404663,5.733469809265137L12.452486555404663,5.776469809265137L7.229346555404663,11.109799809265137C6.994056555404663,11.350049809265137,6.615266555404663,11.362699809265138,6.364876555404663,11.147739809265136L6.324376555404664,11.109799809265137L3.547515555404663,8.274359809265137C3.302778855404663,8.024459809265137,3.306964455404663,7.623479809265136,3.556864555404663,7.378739809265136C3.792881555404663,7.147599809265136,4.163660555404663,7.1384898092651365,4.410296555404663,7.348709809265136L4.452486555404663,7.388089809265137L6.776666555404663,9.761329809265137L11.547516555404663,4.890197809265136Z" fill="#FFFFFF" fill-opacity="1"/></g></g></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14.5" height="10.333328247070312" viewBox="0 0 14.5 10.333328247070312"><g transform="matrix(-1,0,0,1,27,0)"><g transform="matrix(-1,0,0,1,52,0)"><path d="M39.2144,1.699688Q39.3517,1.559512,39.4259,1.377856Q39.5,1.196201,39.5,1Q39.5,0.9015086,39.4808,0.80491Q39.461600000000004,0.708311,39.4239,0.617317Q39.3862,0.526322,39.3315,0.44443Q39.2767,0.362537,39.2071,0.29289299999999996Q39.1375,0.22324900000000003,39.0556,0.16852999999999996Q38.9737,0.11381200000000002,38.8827,0.076121Q38.7917,0.038429999999999964,38.6951,0.019214999999999982Q38.5985,0,38.5,0Q38.2984,0,38.1125,0.07813000000000003Q37.9266,0.15626099999999998,37.7856,0.300312L30.33884,7.90412L26.714721,4.20354L26.714449,4.20327Q26.573373,4.05921,26.3875,3.98108Q26.201627,3.90295,26,3.90295Q25.9015086,3.90295,25.80491,3.92217Q25.708311,3.94138,25.617317,3.97907Q25.526322,4.01676,25.44443,4.07148Q25.362537,4.1262,25.292893,4.19585Q25.223249,4.26549,25.16853,4.347379999999999Q25.113812,4.42928,25.076121,4.52027Q25.038429999999998,4.61126,25.019215,4.70786Q25,4.804460000000001,25,4.902950000000001Q25,5.09915,25.074136,5.28081Q25.148272,5.46247,25.285551,5.60264L25.285823,5.60292L29.62439,10.03302Q29.6317,10.04048,29.63916,10.04778Q29.78127,10.18696,29.96582,10.26116Q30.15038,10.33535,30.34928,10.33328Q30.548180000000002,10.3312,30.73115,10.25317Q30.91411,10.17513,31.05329,10.03302L39.2144,1.699688Z" fill-rule="evenodd" fill="#165DFF" fill-opacity="1"/></g></g></svg>
@@ -1,6 +0,0 @@
1
- @import '~vant/lib/index.less';
2
- @import '~vant/lib/icon/local.less';
3
- @import './vant-var';
4
- @import './reset-vant';
5
- @import './kuasheng-ui';
6
- @import './animation-ui';
@@ -1,207 +0,0 @@
1
- html,
2
- body {
3
- height: 100%;
4
- width: 100%;
5
- margin: 0;
6
- padding: 0;
7
- // overflow: auto;
8
- background-color: #fff;
9
- }
10
- body {
11
- font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
12
- }
13
-
14
- #ksui-app {
15
- // 导航栏固定在顶部
16
- .ksui-header {
17
- position: fixed;
18
- top: 0;
19
- width: 100%;
20
- height: 44px;
21
- z-index: 999;
22
- background-color: #fff;
23
- .ksui-nav {
24
- height: 44px;
25
- .van-nav-bar {
26
- height: 44px;
27
- line-height: 44px;
28
- .van-nav-bar__title {
29
- font-size: 16px;
30
- font-weight: 500;
31
- max-width: 68%;
32
- font-family: almmht;
33
- }
34
- .van-nav-bar__arrow {
35
- font-size: 22px;
36
- font-weight: 500;
37
- color: #000;
38
- }
39
- .van-nav-bar__right {
40
- font-size: 16px;
41
- font-weight: 400;
42
- right: 107px;
43
- }
44
- }
45
- }
46
- }
47
-
48
- .ksui-body {
49
- box-sizing: border-box;
50
- overflow-y: scroll;
51
- // -webkit-overflow-scrolling: touch;
52
- padding-top: 44px;
53
- font-weight: 400;
54
- }
55
- }
56
-
57
- .ios {
58
- #ksui-app {
59
- .ksui-header {
60
- padding-top: 20px;
61
- }
62
- .ksui-body {
63
- padding-top: 64px;
64
- }
65
- }
66
- }
67
-
68
- .ipx {
69
- #ksui-app {
70
- .ksui-header {
71
- padding-top: 44px;
72
- }
73
- .ksui-body {
74
- padding-top: 88px;
75
- }
76
- }
77
- }
78
-
79
- .afc {
80
- #ksui-app {
81
- .ksui-header {
82
- padding-top: var(--status-bar-height, 0px);
83
- }
84
- .ksui-body {
85
- padding-top: calc(44px + var(--status-bar-height, 0px));
86
- }
87
- }
88
- }
89
-
90
- .van-nav-bar__title {
91
- height: 44px;
92
- line-height: 44px;
93
- max-width: 68%;
94
- }
95
-
96
- .van-nav-bar__title > * {
97
- vertical-align: middle;
98
- }
99
-
100
- .ios .van-nav-bar__title .light {
101
- font-size: 14px !important;
102
- padding: 2px 8px !important;
103
- }
104
-
105
- .ksui-form .van-cell {
106
- overflow: unset !important;
107
- .van-field__body {
108
- input{
109
- color: #1C1E23;
110
- font-weight: 600;
111
- font-size: 14px;
112
- }
113
- }
114
- }
115
-
116
- .van-cell .van-field__error-pop-message {
117
- color: #fff;
118
- font-size: 14px;
119
- text-align: left;
120
- position: absolute;
121
- z-index: 9;
122
- padding: 11px 16px;
123
- background-color: rgba(0, 0, 0, 0.7);
124
- border-radius: 6px;
125
- line-height: 20px;
126
- bottom: -6px;
127
- left: 0;
128
- transform: translate(0, 100%);
129
- pointer-events: none;
130
- }
131
-
132
- .van-cell .van-field__error-pop-message--top {
133
- bottom: auto;
134
- top: -16px;
135
- transform: translate(0, -100%);
136
- }
137
-
138
- .van-cell .van-field__error-pop-message::after {
139
- content: ' ';
140
- position: absolute;
141
- width: 0;
142
- height: 0;
143
- border-color: transparent;
144
- border-style: solid;
145
- border-width: 6px;
146
- color: #4a4a4a;
147
- top: 0;
148
- border-top-width: 0;
149
- border-bottom-color: rgba(0, 0, 0, 0.7);
150
- transform: translate(-50%, -100%);
151
- left: 50%;
152
- background-color: transparent;
153
- }
154
-
155
- .van-cell .van-field__error-pop-message--top::after {
156
- top: auto;
157
- bottom: -12px;
158
- border-bottom-width: 0;
159
- border-top-color: rgba(0, 0, 0, 0.7);
160
- border-top-width: 6px;
161
- border-bottom-color: unset;
162
- }
163
-
164
- .van-cell .van-field__error-pop-message--right {
165
- left: unset;
166
- right: 0;
167
- }
168
-
169
- .van-cell .van-field__error-pop-message--center {
170
- left: 50%;
171
- transform: translate(-50%, 100%);
172
- width: fit-content;
173
- }
174
-
175
- .van-cell .van-field__error-pop-message--center.van-field__error-pop-message--top {
176
- transform: translate(-50%, -100%);
177
- }
178
-
179
- @font-face {
180
- font-family: almmht;
181
- font-style: normal;
182
- font-weight: 500;
183
- src: url('https://erphostjs.kye-erp.com/PE/almmht.ttf');
184
- }
185
-
186
- // din字体/数字
187
- @font-face {
188
- font-family: pe-font-din;
189
- font-style: normal;
190
- font-weight: 500;
191
- src: url('https://erphostjs.kye-erp.com/PE/font-number1.otf');
192
- }
193
-
194
- // arial开头
195
- @font-face {
196
- font-family: pe-font-arial;
197
- font-style: normal;
198
- font-weight: 500;
199
- src: url('https://erphostjs.kye-erp.com/PE/font-number2.ttf');
200
- }
201
-
202
- :root {
203
- // 字体 11-28
204
- --g-font-zh: almmht;
205
- --g-font-num1: pe-font-din;
206
- --g-font-num2: pe-font-arial;
207
- }
@@ -1,307 +0,0 @@
1
- #kuasheng-h5 {
2
- //field
3
- .van-field {
4
- .van-field__label{
5
- color:#41444C;
6
- }
7
- &__word-limit {
8
- color: #9D9D9D;
9
- }
10
- &__control {
11
- color: #03050D;
12
- &:disabled {
13
- color: #b0b3bf;
14
- }
15
- }
16
- input::placeholder {
17
- color: #A7AAB0;
18
- }
19
- }
20
- // button
21
- .van-button {
22
- border-radius: @base-size * 3;
23
- &--mini {
24
- border-radius: @base-size;
25
- }
26
- &--normal, &--small {
27
- padding: 0 @base-size * 4;
28
- }
29
- }
30
- .van-overlay {
31
- background-color: rgba(0, 0, 0, 0.6);
32
- }
33
- .van-dialog{
34
- font-size: 16px;
35
- border-radius: 12px;
36
- &__content {
37
- padding: 10px 0;
38
- }
39
- &__footer {
40
- .van-button {
41
- font-size: 16px;
42
- font-weight: 500;
43
- &--large {
44
- height: 48px;
45
- }
46
- }
47
- }
48
- &__cancel {
49
- color:#03050d;
50
- }
51
- .van-hairline--top::after,.van-hairline--left::after {
52
- border-color: #ebedf5;
53
- }
54
- }
55
-
56
- // loading theme:(dark/light)
57
- .van-loading.dark{
58
- display: inline-block;
59
- background: rgba(0,0,0,0.7);
60
- border-radius: 6px;
61
- padding: 9px 10px;
62
- .van-loading__text {
63
- color: #FFFFFF;
64
- font-size: 12px;
65
- }
66
- .van-loading__spinner {
67
- color: #FFFFFF;
68
- }
69
- }
70
- .van-loading.light{
71
- display: inline-block;
72
- background: #EBEDF5;
73
- border-radius: 6px;
74
- padding: 9px 10px;
75
- .van-loading__text {
76
- color: #03050D;
77
- font-size: 12px;
78
- }
79
- .van-loading__spinner {
80
- color: #000000;
81
- }
82
- }
83
- // 上拉菜单标题背景
84
- .van-action-sheet {
85
- &__item {
86
- height: 56px;
87
- line-height: 56px;
88
- }
89
- &__header {
90
- background-color: #fff;
91
- border-bottom: 0.5px solid #ebedf5;
92
- text-align: left;
93
- padding-left: 16px;
94
- .van-icon-close::before {
95
- content: "\F042";
96
- }
97
- .van-action-sheet__close {
98
- font-size: 16px;
99
- }
100
- .van-action-sheet__close::before {
101
- content: "";
102
- width: 16px;
103
- height: 16px;
104
- background: url('https://erphostjs.kye-erp.com/kuasheng-h5/assets/ks-icon/cross.svg') no-repeat;
105
- }
106
- }
107
- }
108
- .van-rate__icon--full {
109
- color: #FFBC2C;
110
- }
111
- // checkbox
112
- .van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon {
113
- background-color: #d7d7db;
114
- color: #fff;
115
- }
116
- // sidebar
117
- .van-sidebar-item {
118
- border-left: none;
119
- font-size: 14px;
120
- &__text {
121
- border-left: 3px solid transparent;
122
- padding-left: 12px;
123
- }
124
- &--select {
125
- color: @purple;
126
- .van-sidebar-item__text {
127
- border-color: @sidebar-selected-border-color;
128
- }
129
- }
130
- }
131
-
132
- // search
133
- .van-search {
134
- padding: 8px @padding-sm;
135
- &__content {
136
- // border-radius: @border-radius-md;
137
- border-radius: 8px;
138
- }
139
- &__action {
140
- color: #165DFF;
141
- }
142
- .van-cell {
143
- padding: 6px @padding-xs 6px 0;
144
- }
145
- .van-icon {
146
- color: #b0b3bf;
147
- }
148
- .van-icon-search::before {
149
- content: "";
150
- width: 14px;
151
- height: 15px;
152
- background: url('https://erphostjs.kye-erp.com/kuasheng-h5/assets/ks-search/search-icon.svg') no-repeat;
153
- }
154
- }
155
-
156
- // cell
157
- .van-cell:not(:last-child):after {
158
- border-color: #EBEDF5;
159
- right: 16px;
160
- }
161
- // steps
162
- .van-steps--vertical {
163
- .van-step__line {
164
- width: 0;
165
- left: -16px;
166
- background-color: transparent;
167
- border: 1px #ddd dashed;
168
- }
169
- .van-step--finish .van-step__line {
170
- background-color: transparent;
171
- }
172
- }
173
- // toast
174
- .van-toast {
175
- font-size: 14px;
176
- font-weight: 400;
177
- border-radius: 8px;
178
- &--text {
179
- padding: 12px 16px;
180
- }
181
- // 自定义custom方法中的loading动效
182
- .ks-loading__spinner {
183
- -webkit-animation-duration: 2s;
184
- animation-duration: 2s;
185
- }
186
- .ks-loading__spinner {
187
- position: relative;
188
- display: inline-block;
189
- width: 36px;
190
- max-width: 100%;
191
- height: 36px;
192
- max-height: 100%;
193
- vertical-align: middle;
194
- -webkit-animation: van-rotate 0.8s linear infinite;
195
- animation: van-rotate 0.8s linear infinite;
196
- .van-icon__image {
197
- width: 36px;
198
- height: 36px;
199
- }
200
- }
201
- }
202
-
203
- // tag
204
- .van-tag {
205
- &--mark::before {
206
- content: "";
207
- position: absolute;
208
- width: 0;
209
- height: 0;
210
- margin-top: 24px;
211
- margin-left: -5px;
212
- border: 2px solid transparent;
213
- }
214
- &--default.van-tag--mark::before {
215
- border-top-color: multiply(@tag-default-color, #ccc);
216
- border-right-color: multiply(@tag-default-color, #ccc);
217
- }
218
- &--primary.van-tag--mark::before {
219
- border-top-color: multiply(@tag-primary-color, #ccc);
220
- border-right-color: multiply(@tag-primary-color, #ccc);
221
- }
222
- &--success.van-tag--mark::before {
223
- border-top-color: multiply(@tag-success-color, #ccc);
224
- border-right-color: multiply(@tag-success-color, #ccc);
225
- }
226
- &--danger.van-tag--mark::before {
227
- border-top-color: multiply(@tag-dander-color, #ccc);
228
- border-right-color: multiply(@tag-dander-color, #ccc);
229
- }
230
- &--warning.van-tag--mark::before {
231
- border-top-color: multiply(@tag-warning-color, #ccc);
232
- border-right-color: multiply(@tag-warning-color, #ccc);
233
- }
234
- }
235
- // dropdown-menu
236
- .van-dropdown-menu {
237
- .van-dropdown-menu__title--active {
238
- color: #165DFF;
239
- }
240
- .van-dropdown-item__option--active {
241
- color: #165DFF;
242
- }
243
- .van-dropdown-item__option--active .van-dropdown-item__icon {
244
- color: #165DFF;
245
- }
246
- .van-dropdown-item__content {
247
- .van-dropdown-item__icon::before {
248
- content: '';
249
- width: 20px;
250
- height: 20px;
251
- background: url('./images/success.svg') no-repeat;
252
- }
253
- }
254
- }
255
- // van-tabs
256
- .van-tabs {
257
- .van-hairline--top-bottom::after, .van-hairline-unset--top-bottom::after {
258
- border-color: #ebedf5;
259
- }
260
- }
261
- // van-notice-bar
262
- .van-notice-bar {
263
- font-size: 14px;
264
- }
265
- // van-tree-select
266
- .van-tree-select {
267
- .van-tree-select__selected::before {
268
- content: '';
269
- width: 18px;
270
- height: 18px;
271
- background: url('./images/checked.svg') no-repeat;
272
- }
273
- }
274
- // van-collapse
275
- .van-collapse {
276
- .van-cell__title {
277
- color:#03050D;
278
- }
279
- .van-cell__right-icon {
280
- font-size: 14px;
281
- color: #B0B3BF;
282
- }
283
- &-item__content {
284
- color: #6e6d72;
285
- font-size: 13px;
286
- }
287
- }
288
- // van-slider__bar
289
- .van-slider__bar {
290
- background-color: #165DFF;
291
- }
292
- // van-popup
293
- .van-popup {
294
- .van-popup__close-icon {
295
- color: #03050D;
296
- font-size: 20px;
297
- }
298
- }
299
- // van-calendar
300
- .van-calendar__day--disabled {
301
- color: #c8c9cc;
302
- cursor: default;
303
- }
304
- .van-field__right-icon {
305
- color: #B0B3BF;
306
- }
307
- }