@gct-paas/v-ben 0.1.4-dev.11 → 0.1.4-dev.13
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/dist/index.min.css +2 -1
- package/dist/loader.esm.min.js +693 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
- package/es/components/index.mjs +7 -0
- package/es/components/v-ben-button/index.mjs +7 -8
- package/es/components/v-ben-button/src/BasicButton.vue.mjs +5 -40
- package/es/components/v-ben-button/src/BasicButton.vue_vue_type_script_setup_true_lang.mjs +37 -0
- package/es/components/v-ben-button/src/PopConfirmButton.vue.mjs +5 -46
- package/es/components/v-ben-button/src/PopConfirmButton.vue_vue_type_script_lang.mjs +36 -0
- package/es/components/v-ben-button/src/custom-button.vue.mjs +7 -7
- package/es/components/v-ben-button/src/custom-button.vue_vue_type_script_setup_true_name_custom-button_lang.mjs +22 -0
- package/es/components/v-ben-button/src/props.mjs +27 -27
- package/es/components/v-ben-dropdown/index.mjs +4 -4
- package/es/components/v-ben-dropdown/src/Dropdown.vue.mjs +5 -113
- package/es/components/v-ben-dropdown/src/Dropdown.vue_vue_type_script_setup_true_lang.mjs +87 -0
- package/es/components/v-ben-table/index.mjs +3 -0
- package/es/components/v-ben-table/src/BasicTable.vue.d.ts +6 -6
- package/es/components/v-ben-table/src/BasicTable.vue.mjs +33 -49
- package/es/components/v-ben-table/src/BasicTable.vue_vue_type_script_lang.mjs +41 -0
- package/es/components/v-ben-table/src/components/HeaderCell.vue.mjs +8 -8
- package/es/components/v-ben-table/src/components/HeaderCell.vue_vue_type_script_lang.mjs +15 -0
- package/es/components/v-ben-table/src/components/TableAction.vue.mjs +6 -174
- package/es/components/v-ben-table/src/components/TableAction.vue_vue_type_script_setup_true_lang.mjs +145 -0
- package/es/components/v-ben-table/src/components/TableAction.vue_vue_type_style_index_0_lang.css +37 -0
- package/es/components/v-ben-table/src/components/TableActionAuto.vue.mjs +6 -181
- package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_script_setup_true_lang.mjs +159 -0
- package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_style_index_0_lang.css +37 -0
- package/es/components/v-ben-table/src/props.d.ts +2 -2
- package/es/components/v-ben-table/src/props.mjs +155 -134
- package/es/hooks/useDesign.mjs +8 -7
- package/es/index.mjs +12 -14
- package/es/loader.d.ts +1 -0
- package/es/utils/is.mjs +29 -35
- package/package.json +6 -6
- package/dist/index.esm.min.mjs +0 -796
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
- package/es/components/v-ben-button/src/BasicButton.vue2.mjs +0 -5
- package/es/components/v-ben-button/src/PopConfirmButton.vue2.mjs +0 -5
- package/es/components/v-ben-button/src/custom-button.vue3.mjs +0 -32
- package/es/components/v-ben-dropdown/src/Dropdown.vue2.mjs +0 -5
- package/es/components/v-ben-table/src/BasicTable.vue2.mjs +0 -48
- package/es/components/v-ben-table/src/components/HeaderCell.vue2.mjs +0 -20
- package/es/components/v-ben-table/src/components/TableAction.css +0 -37
- package/es/components/v-ben-table/src/components/TableAction.vue3.mjs +0 -6
- package/es/components/v-ben-table/src/components/TableActionAuto.css +0 -37
- package/es/components/v-ben-table/src/components/TableActionAuto.vue3.mjs +0 -6
- /package/es/components/v-ben-button/src/{custom-button.css → custom-button.vue_vue_type_style_index_0_scoped_305f4090_lang.css} +0 -0
package/es/hooks/useDesign.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/hooks/useDesign.ts
|
|
2
|
+
var prefixCls = "vben";
|
|
2
3
|
function useDesign(scope) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
return {
|
|
5
|
+
prefixCls: `${prefixCls}-${scope}`,
|
|
6
|
+
prefixVar: prefixCls
|
|
7
|
+
};
|
|
7
8
|
}
|
|
8
|
-
|
|
9
|
-
export {
|
|
9
|
+
//#endregion
|
|
10
|
+
export { useDesign };
|
package/es/index.mjs
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { run };
|
|
1
|
+
import { is, isArray, isBoolean, isClient, isDate, isDef, isElement, isEmpty, isEmptyStr, isFunction, isMap, isNull, isNullAndUnDef, isNullOrUnDef, isNumber, isObject, isPromise, isRegExp, isServer, isString, isUnDef, isUrl, isWindow } from "./utils/is.mjs";
|
|
2
|
+
import BasicTable_default from "./components/v-ben-table/src/BasicTable.vue.mjs";
|
|
3
|
+
import TableAction_default from "./components/v-ben-table/src/components/TableAction.vue.mjs";
|
|
4
|
+
import TableActionAuto_default from "./components/v-ben-table/src/components/TableActionAuto.vue.mjs";
|
|
5
|
+
import custom_button_default from "./components/v-ben-button/src/custom-button.vue.mjs";
|
|
6
|
+
import { Button, PopConfirmButton } from "./components/v-ben-button/index.mjs";
|
|
7
|
+
import { Dropdown } from "./components/v-ben-dropdown/index.mjs";
|
|
8
|
+
import "./components/index.mjs";
|
|
9
|
+
//#region src/index.ts
|
|
10
|
+
function run() {}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BasicTable_default as BasicTable, Button, custom_button_default as CustomButton, Dropdown, PopConfirmButton, TableAction_default as TableAction, TableActionAuto_default as TableActionAuto, is, isArray, isBoolean, isClient, isDate, isDef, isElement, isEmpty, isEmptyStr, isFunction, isMap, isNull, isNullAndUnDef, isNullOrUnDef, isNumber, isObject, isPromise, isRegExp, isServer, isString, isUnDef, isUrl, isWindow, run };
|
package/es/loader.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index';
|
package/es/utils/is.mjs
CHANGED
|
@@ -1,78 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utils/is.ts
|
|
2
|
+
var toString = Object.prototype.toString;
|
|
2
3
|
function is(val, type) {
|
|
3
|
-
|
|
4
|
+
return toString.call(val) === `[object ${type}]`;
|
|
4
5
|
}
|
|
5
6
|
function isDef(val) {
|
|
6
|
-
|
|
7
|
+
return typeof val !== "undefined";
|
|
7
8
|
}
|
|
8
9
|
function isUnDef(val) {
|
|
9
|
-
|
|
10
|
+
return !isDef(val);
|
|
10
11
|
}
|
|
11
12
|
function isObject(val) {
|
|
12
|
-
|
|
13
|
+
return val !== null && is(val, "Object");
|
|
13
14
|
}
|
|
14
15
|
function isEmpty(val) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return val.size === 0;
|
|
20
|
-
}
|
|
21
|
-
if (isObject(val)) {
|
|
22
|
-
return Object.keys(val).length === 0;
|
|
23
|
-
}
|
|
24
|
-
return false;
|
|
16
|
+
if (isArray(val) || isString(val)) return val.length === 0;
|
|
17
|
+
if (val instanceof Map || val instanceof Set) return val.size === 0;
|
|
18
|
+
if (isObject(val)) return Object.keys(val).length === 0;
|
|
19
|
+
return false;
|
|
25
20
|
}
|
|
26
21
|
function isDate(val) {
|
|
27
|
-
|
|
22
|
+
return is(val, "Date");
|
|
28
23
|
}
|
|
29
24
|
function isNull(val) {
|
|
30
|
-
|
|
25
|
+
return val === null;
|
|
31
26
|
}
|
|
32
27
|
function isNullAndUnDef(val) {
|
|
33
|
-
|
|
28
|
+
return isUnDef(val) && isNull(val);
|
|
34
29
|
}
|
|
35
30
|
function isNullOrUnDef(val) {
|
|
36
|
-
|
|
31
|
+
return isUnDef(val) || isNull(val);
|
|
37
32
|
}
|
|
38
33
|
function isNumber(val) {
|
|
39
|
-
|
|
34
|
+
return is(val, "Number");
|
|
40
35
|
}
|
|
41
36
|
function isPromise(val) {
|
|
42
|
-
|
|
37
|
+
return is(val, "Promise") && isObject(val) && isFunction(val.then) && isFunction(val.then);
|
|
43
38
|
}
|
|
44
39
|
function isString(val) {
|
|
45
|
-
|
|
40
|
+
return is(val, "String");
|
|
46
41
|
}
|
|
47
42
|
function isFunction(val) {
|
|
48
|
-
|
|
43
|
+
return typeof val === "function";
|
|
49
44
|
}
|
|
50
45
|
function isBoolean(val) {
|
|
51
|
-
|
|
46
|
+
return is(val, "Boolean");
|
|
52
47
|
}
|
|
53
48
|
function isRegExp(val) {
|
|
54
|
-
|
|
49
|
+
return is(val, "RegExp");
|
|
55
50
|
}
|
|
56
51
|
function isArray(val) {
|
|
57
|
-
|
|
52
|
+
return !!val && Array.isArray(val);
|
|
58
53
|
}
|
|
59
54
|
function isWindow(val) {
|
|
60
|
-
|
|
55
|
+
return typeof window !== "undefined" && is(val, "Window");
|
|
61
56
|
}
|
|
62
57
|
function isElement(val) {
|
|
63
|
-
|
|
58
|
+
return isObject(val) && !!val.tagName;
|
|
64
59
|
}
|
|
65
60
|
function isMap(val) {
|
|
66
|
-
|
|
61
|
+
return is(val, "Map");
|
|
67
62
|
}
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
var isServer = typeof window === "undefined";
|
|
64
|
+
var isClient = !isServer;
|
|
70
65
|
function isUrl(path) {
|
|
71
|
-
|
|
72
|
-
return reg.test(path);
|
|
66
|
+
return /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?/.test(path);
|
|
73
67
|
}
|
|
74
68
|
function isEmptyStr(str) {
|
|
75
|
-
|
|
69
|
+
return str === void 0 || !str && str !== 0 && str !== "0" || !/[^\s]/.test(str + "");
|
|
76
70
|
}
|
|
77
|
-
|
|
71
|
+
//#endregion
|
|
78
72
|
export { is, isArray, isBoolean, isClient, isDate, isDef, isElement, isEmpty, isEmptyStr, isFunction, isMap, isNull, isNullAndUnDef, isNullOrUnDef, isNumber, isObject, isPromise, isRegExp, isServer, isString, isUnDef, isUrl, isWindow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/v-ben",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台历史 v-ben 内容",
|
|
6
6
|
"main": "dist/index.min.cjs",
|
|
@@ -50,23 +50,23 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@ant-design/icons-vue": "^6.1.0",
|
|
52
52
|
"@gct-paas/api": "^0.1.1",
|
|
53
|
-
"@gct-paas/core": "0.1.4-dev.
|
|
53
|
+
"@gct-paas/core": "0.1.4-dev.13",
|
|
54
54
|
"@gct-paas/platform-icons": "^0.0.2",
|
|
55
|
-
"@gct-paas/scss": "0.1.4-dev.
|
|
55
|
+
"@gct-paas/scss": "0.1.4-dev.13",
|
|
56
56
|
"@icon-park/vue-next": "^1.4.2",
|
|
57
57
|
"@vueuse/core": "^14.1.0",
|
|
58
58
|
"ant-design-vue": "3.2.20",
|
|
59
59
|
"lodash-es": "^4.17.23",
|
|
60
60
|
"sortablejs": "^1.15.7",
|
|
61
|
-
"vue": "^3.5.
|
|
61
|
+
"vue": "^3.5.30",
|
|
62
62
|
"vue-types": "^6.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@gct-paas/build": "^0.1.
|
|
65
|
+
"@gct-paas/build": "^0.1.6-dev.4",
|
|
66
66
|
"vue-tsc": "^3.2.5"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"vue": "^3.x"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "730343d424ac98e1cd00b6f4cddf8a9823a48357"
|
|
72
72
|
}
|