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