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
|
@@ -84,7 +84,7 @@ function boundAlpha(a) {
|
|
|
84
84
|
*/
|
|
85
85
|
function convertToPercentage(n) {
|
|
86
86
|
if (n <= 1) {
|
|
87
|
-
return Number(n) * 100
|
|
87
|
+
return "".concat(Number(n) * 100, "%");
|
|
88
88
|
}
|
|
89
89
|
return n;
|
|
90
90
|
}
|
|
@@ -466,12 +466,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
|
|
|
466
466
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
467
467
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
468
468
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
469
|
-
var CSS_UNIT = "(?:"
|
|
469
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
470
470
|
// Actual matching.
|
|
471
471
|
// Parentheses and commas are optional, but not required.
|
|
472
472
|
// Whitespace can take the place of commas or opening paren
|
|
473
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
474
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
473
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
474
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
475
475
|
var matchers = {
|
|
476
476
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
477
477
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -69,7 +69,7 @@ function boundAlpha(a) {
|
|
|
69
69
|
*/
|
|
70
70
|
function convertToPercentage(n) {
|
|
71
71
|
if (n <= 1) {
|
|
72
|
-
return Number(n) * 100
|
|
72
|
+
return "".concat(Number(n) * 100, "%");
|
|
73
73
|
}
|
|
74
74
|
return n;
|
|
75
75
|
}
|
|
@@ -451,12 +451,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
|
|
|
451
451
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
452
452
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
453
453
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
454
|
-
var CSS_UNIT = "(?:"
|
|
454
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
455
455
|
// Actual matching.
|
|
456
456
|
// Parentheses and commas are optional, but not required.
|
|
457
457
|
// Whitespace can take the place of commas or opening paren
|
|
458
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
459
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
458
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
459
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
460
460
|
var matchers = {
|
|
461
461
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
462
462
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const xe_utils_1 = __importDefault(require("xe-utils"));
|
|
7
|
+
const vxe_table_1 = require("vxe-table");
|
|
8
|
+
require("vxe-table/lib/style.css");
|
|
9
|
+
const zh_CN_1 = __importDefault(require("vxe-table/lib/locale/lang/zh-CN"));
|
|
10
|
+
vxe_table_1.VXETable.setup({
|
|
11
|
+
i18n: (key, args) => xe_utils_1.default.toFormatString(xe_utils_1.default.get(zh_CN_1.default, key), args),
|
|
12
|
+
});
|
|
13
|
+
function install(app) {
|
|
14
|
+
app
|
|
15
|
+
.use(vxe_table_1.Header)
|
|
16
|
+
.use(vxe_table_1.Footer)
|
|
17
|
+
.use(vxe_table_1.Column)
|
|
18
|
+
.use(vxe_table_1.Table)
|
|
19
|
+
.use(vxe_table_1.Grid)
|
|
20
|
+
.use(vxe_table_1.Pager)
|
|
21
|
+
.use(vxe_table_1.Checkbox)
|
|
22
|
+
.use(vxe_table_1.CheckboxGroup)
|
|
23
|
+
.use(vxe_table_1.Radio)
|
|
24
|
+
.use(vxe_table_1.RadioGroup)
|
|
25
|
+
.use(vxe_table_1.Select)
|
|
26
|
+
.use(vxe_table_1.Input)
|
|
27
|
+
.use(vxe_table_1.Tooltip)
|
|
28
|
+
.use(vxe_table_1.Keyboard)
|
|
29
|
+
.use(vxe_table_1.Toolbar)
|
|
30
|
+
.use(vxe_table_1.Button)
|
|
31
|
+
.use(vxe_table_1.Icon);
|
|
32
|
+
}
|
|
33
|
+
exports.default = { install };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bm-admin-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2-alpha",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An Admin Component Library for Bm",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -18,12 +18,13 @@
|
|
|
18
18
|
"@form-create/ant-design-vue": "^3.1.5",
|
|
19
19
|
"@logicflow/core": "^1.1.7",
|
|
20
20
|
"@logicflow/extension": "^1.1.7",
|
|
21
|
+
"ant-design-vue": "^3.2.10",
|
|
22
|
+
"bm-admin-ui": "^1.0.1-alpha",
|
|
21
23
|
"floating-vue": "2.0.0-beta.17",
|
|
22
|
-
"ant-design-vue": "^3.2.4",
|
|
23
24
|
"vxe-table": "^4.2.3",
|
|
24
25
|
"xe-utils": "^3.5.4"
|
|
25
26
|
},
|
|
26
27
|
"sideEffects": [
|
|
27
28
|
"theme-chalk/*.css"
|
|
28
29
|
]
|
|
29
|
-
}
|
|
30
|
+
}
|
|
@@ -1,5 +1,70 @@
|
|
|
1
|
-
declare const BmFloatTable: {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
|
|
2
|
+
name: string;
|
|
3
|
+
props: {
|
|
4
|
+
config: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
default: () => {};
|
|
8
|
+
};
|
|
9
|
+
pagerProps: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
events: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
isNeedFloatHandle: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
emits: string[];
|
|
27
|
+
setup(props: any, { emit }: {
|
|
28
|
+
emit: any;
|
|
29
|
+
}): {
|
|
30
|
+
setItemRef(el: any, column: any, rowid: any): void;
|
|
31
|
+
leaveFloatTable(): void;
|
|
32
|
+
scrollTo(config?: {}): void;
|
|
33
|
+
pageNoChange(val: any): Promise<void>;
|
|
34
|
+
pageSizeChange(val: any, size: any): Promise<void>;
|
|
35
|
+
floatMouseLeave(): void;
|
|
36
|
+
floatOverMouse(): void;
|
|
37
|
+
goAnimationEndFn(): void;
|
|
38
|
+
scrollNotShowFloat(): void;
|
|
39
|
+
classes: import("vue").ComputedRef<(string | {
|
|
40
|
+
floatHandleTable: any;
|
|
41
|
+
})[]>;
|
|
42
|
+
gridOptions: import("vue").ComputedRef<any>;
|
|
43
|
+
gridEvents: import("vue").ComputedRef<any>;
|
|
44
|
+
pager: import("vue").ComputedRef<any>;
|
|
45
|
+
simpleImage: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}> | null | undefined)[]>;
|
|
50
|
+
floatRefsId: import("vue").Ref<{}>;
|
|
51
|
+
floatId: import("vue").Ref<string>;
|
|
52
|
+
isShowFloatHandle: import("vue").Ref<boolean>;
|
|
53
|
+
atVisible: import("vue").Ref<boolean>;
|
|
54
|
+
goAnimationEnd: import("vue").Ref<boolean>;
|
|
55
|
+
floatPosition: import("vue").Ref<{
|
|
56
|
+
top: string;
|
|
57
|
+
height: string;
|
|
58
|
+
}>;
|
|
59
|
+
trNodes: import("vue").Ref<any>;
|
|
60
|
+
isInScroll: import("vue").Ref<boolean>;
|
|
61
|
+
inMaxScorllX: import("vue").Ref<boolean>;
|
|
62
|
+
floatRow: import("vue").Ref<{}>;
|
|
63
|
+
floatRowIndex: import("vue").Ref<undefined>;
|
|
64
|
+
floatHandleDomCol: import("vue").Ref<any>;
|
|
65
|
+
floatTable: import("vue").Ref<any>;
|
|
66
|
+
xGrid: import("vue").Ref<any>;
|
|
67
|
+
};
|
|
68
|
+
}>;
|
|
4
69
|
export { BmFloatTable };
|
|
5
70
|
export default BmFloatTable;
|