bm-admin-ui 1.0.1-alpha → 1.0.2-alpha

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 (35) hide show
  1. package/es/components/float-table/index.d.ts +68 -3
  2. package/es/components/float-table/index.js +166 -193
  3. package/es/components/float-table/src/float-table.vue.d.ts +45 -476
  4. package/es/components/multi-cascader-compose/index.d.ts +2 -2
  5. package/es/components/multi-cascader-compose/index.js +4 -4
  6. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +2 -2
  7. package/es/components/search-filter/index.js +4 -4
  8. package/es/components/shops-filter/index.js +4 -4
  9. package/es/components/staffs-selector/index.js +4 -4
  10. package/es/components/upload/index.js +4 -4
  11. package/es/utils/vxe-table.d.ts +6 -0
  12. package/es/utils/vxe-table.js +28 -0
  13. package/index.esm.js +4872 -39973
  14. package/index.js +4870 -39971
  15. package/lib/components/float-table/index.d.ts +68 -3
  16. package/lib/components/float-table/index.js +165 -198
  17. package/lib/components/float-table/src/float-table.vue.d.ts +45 -476
  18. package/lib/components/multi-cascader-compose/index.d.ts +2 -2
  19. package/lib/components/multi-cascader-compose/index.js +4 -4
  20. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +2 -2
  21. package/lib/components/search-filter/index.js +4 -4
  22. package/lib/components/shops-filter/index.js +4 -4
  23. package/lib/components/staffs-selector/index.js +4 -4
  24. package/lib/components/upload/index.js +4 -4
  25. package/lib/utils/vxe-table.d.ts +6 -0
  26. package/lib/utils/vxe-table.js +33 -0
  27. package/package.json +4 -3
  28. package/pnpm-global/5/node_modules/.pnpm/lock.yaml +3 -0
  29. package/pnpm-global/5/pnpm-lock.yaml +4 -0
  30. package/types/components/float-table/index.d.ts +68 -3
  31. package/types/components/float-table/src/float-table.vue.d.ts +45 -476
  32. package/types/components/multi-cascader-compose/index.d.ts +2 -2
  33. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +2 -2
  34. package/types/utils/vxe-table.d.ts +6 -0
  35. package/.pnpm-debug.log +0 -16
@@ -71,7 +71,7 @@ function boundAlpha(a) {
71
71
  */
72
72
  function convertToPercentage(n) {
73
73
  if (n <= 1) {
74
- return Number(n) * 100 + "%";
74
+ return "".concat(Number(n) * 100, "%");
75
75
  }
76
76
  return n;
77
77
  }
@@ -453,12 +453,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
453
453
  // <http://www.w3.org/TR/css3-values/#number-value>
454
454
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
455
455
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
456
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
456
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
457
457
  // Actual matching.
458
458
  // Parentheses and commas are optional, but not required.
459
459
  // Whitespace can take the place of commas or opening paren
460
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
461
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
460
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
461
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
462
462
  var matchers = {
463
463
  CSS_UNIT: new RegExp(CSS_UNIT),
464
464
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -65,7 +65,7 @@ function boundAlpha(a) {
65
65
  */
66
66
  function convertToPercentage(n) {
67
67
  if (n <= 1) {
68
- return Number(n) * 100 + "%";
68
+ return "".concat(Number(n) * 100, "%");
69
69
  }
70
70
  return n;
71
71
  }
@@ -447,12 +447,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
447
447
  // <http://www.w3.org/TR/css3-values/#number-value>
448
448
  var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
449
449
  // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
450
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
450
+ var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
451
451
  // Actual matching.
452
452
  // Parentheses and commas are optional, but not required.
453
453
  // Whitespace can take the place of commas or opening paren
454
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
455
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
454
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
455
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
456
456
  var matchers = {
457
457
  CSS_UNIT: new RegExp(CSS_UNIT),
458
458
  rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
@@ -0,0 +1,6 @@
1
+ import 'vxe-table/lib/style.css';
2
+ declare function install(app: any): void;
3
+ declare const _default: {
4
+ install: typeof install;
5
+ };
6
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import XEUtils from 'xe-utils';
2
+ import { VXETable, Header, Footer, Column, Grid, Tooltip, Pager, Input, Checkbox, CheckboxGroup, Radio, Select, RadioGroup, Button, Table, Keyboard, Toolbar, Icon, } from 'vxe-table';
3
+ import 'vxe-table/lib/style.css';
4
+ import zhCN from 'vxe-table/lib/locale/lang/zh-CN';
5
+ VXETable.setup({
6
+ i18n: (key, args) => XEUtils.toFormatString(XEUtils.get(zhCN, key), args),
7
+ });
8
+ function install(app) {
9
+ app
10
+ .use(Header)
11
+ .use(Footer)
12
+ .use(Column)
13
+ .use(Table)
14
+ .use(Grid)
15
+ .use(Pager)
16
+ .use(Checkbox)
17
+ .use(CheckboxGroup)
18
+ .use(Radio)
19
+ .use(RadioGroup)
20
+ .use(Select)
21
+ .use(Input)
22
+ .use(Tooltip)
23
+ .use(Keyboard)
24
+ .use(Toolbar)
25
+ .use(Button)
26
+ .use(Icon);
27
+ }
28
+ export default { install };