token.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2018-2025, lengleng All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. *
  7. * Redistributions of source code must retain the above copyright notice,
  8. * this list of conditions and the following disclaimer.
  9. * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * Neither the name of the pig4cloud.com developer nor the names of its
  13. * contributors may be used to endorse or promote products derived from
  14. * this software without specific prior written permission.
  15. * Author: lengleng (wangiegie@gmail.com)
  16. */
  17. export const tableOption = {
  18. border: true,
  19. index: true,
  20. indexLabel: '序号',
  21. stripe: true,
  22. menuAlign: 'center',
  23. align: 'center',
  24. viewBtn: true,
  25. addBtn: false,
  26. editBtn: false,
  27. searchMenuSpan: 6,
  28. column: [{
  29. label: '用户ID',
  30. prop: 'id',
  31. align: 'center',
  32. slot: true,
  33. }, {
  34. label: '用户名',
  35. prop: 'username',
  36. align: 'center',
  37. slot: true,
  38. }, {
  39. label: '令牌',
  40. prop: 'access_token',
  41. align: 'center',
  42. 'overHidden': true
  43. }, {
  44. label: '类型',
  45. prop: 'token_type',
  46. align: 'center'
  47. }, {
  48. label: '过期时间',
  49. prop: 'expires_in',
  50. align: 'center'
  51. }]
  52. }