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.
- package/es/components/float-table/index.d.ts +68 -3
- package/es/components/float-table/index.js +166 -193
- package/es/components/float-table/src/float-table.vue.d.ts +45 -476
- package/es/components/multi-cascader-compose/index.d.ts +2 -2
- package/es/components/multi-cascader-compose/index.js +4 -4
- package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +2 -2
- package/es/components/search-filter/index.js +4 -4
- package/es/components/shops-filter/index.js +4 -4
- package/es/components/staffs-selector/index.js +4 -4
- package/es/components/upload/index.js +4 -4
- package/es/utils/vxe-table.d.ts +6 -0
- package/es/utils/vxe-table.js +28 -0
- package/index.esm.js +4872 -39973
- package/index.js +4870 -39971
- package/lib/components/float-table/index.d.ts +68 -3
- package/lib/components/float-table/index.js +165 -198
- package/lib/components/float-table/src/float-table.vue.d.ts +45 -476
- package/lib/components/multi-cascader-compose/index.d.ts +2 -2
- package/lib/components/multi-cascader-compose/index.js +4 -4
- package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +2 -2
- package/lib/components/search-filter/index.js +4 -4
- package/lib/components/shops-filter/index.js +4 -4
- package/lib/components/staffs-selector/index.js +4 -4
- package/lib/components/upload/index.js +4 -4
- package/lib/utils/vxe-table.d.ts +6 -0
- package/lib/utils/vxe-table.js +33 -0
- package/package.json +4 -3
- package/pnpm-global/5/node_modules/.pnpm/lock.yaml +3 -0
- package/pnpm-global/5/pnpm-lock.yaml +4 -0
- package/types/components/float-table/index.d.ts +68 -3
- package/types/components/float-table/src/float-table.vue.d.ts +45 -476
- package/types/components/multi-cascader-compose/index.d.ts +2 -2
- package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +2 -2
- package/types/utils/vxe-table.d.ts +6 -0
- 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 = "(?:"
|
|
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|\\(]+("
|
|
461
|
-
var PERMISSIVE_MATCH4 = "[\\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 = "(?:"
|
|
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|\\(]+("
|
|
455
|
-
var PERMISSIVE_MATCH4 = "[\\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,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 };
|