@fangzhongya/fang-ui 0.1.68 → 0.1.70
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/components/edit-float/src/index2.cjs +1 -1
- package/dist/components/edit-float/src/index2.js +1 -1
- package/dist/components/forms/src/setup.cjs +1 -1
- package/dist/components/forms/src/setup.js +1 -1
- package/dist/components/list/src/index2.cjs +1 -1
- package/dist/components/list/src/index2.js +1 -1
- package/dist/components/menus/src/menu-ll2.cjs +1 -1
- package/dist/components/menus/src/menu-ll2.js +1 -1
- package/dist/components/menus/src/util.cjs +2 -1
- package/dist/components/menus/src/util.js +2 -1
- package/dist/components/page/src/index2.cjs +1 -1
- package/dist/components/page/src/index2.js +1 -1
- package/dist/components/tables/src/columns3.cjs +1 -1
- package/dist/components/tables/src/columns3.js +1 -1
- package/dist/components/tableset/common/pagin.d.ts +2 -2
- package/dist/components/tablesv/src/columns3.cjs +1 -1
- package/dist/components/tablesv/src/columns3.js +1 -1
- package/dist/icons/index.json +1 -1
- package/dist/type.d.ts +1 -1
- package/dist/utils/util.cjs +3 -3
- package/dist/utils/util.d.ts +6 -0
- package/dist/utils/util.js +3 -3
- package/package.json +3 -3
- /package/dist/components/{global-config → keep-com}/index.css +0 -0
- /package/dist/css/{global-config.css → keep-com.css} +0 -0
|
@@ -85,7 +85,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
85
85
|
const setListValue = (arr, listobj, callback) => {
|
|
86
86
|
arr == null ? void 0 : arr.forEach((obj) => {
|
|
87
87
|
if (listobj) {
|
|
88
|
-
obj.
|
|
88
|
+
obj.__father = obj.__father ?? listobj;
|
|
89
89
|
}
|
|
90
90
|
if (obj.children) {
|
|
91
91
|
setListValue(obj.children, obj, callback);
|
|
@@ -83,7 +83,7 @@ function setUp(props, emit, cs, refForm, getLocale) {
|
|
|
83
83
|
const setListValue = (arr, listobj, callback) => {
|
|
84
84
|
arr == null ? void 0 : arr.forEach((obj) => {
|
|
85
85
|
if (listobj) {
|
|
86
|
-
obj.
|
|
86
|
+
obj.__father = obj.__father ?? listobj;
|
|
87
87
|
}
|
|
88
88
|
if (obj.children) {
|
|
89
89
|
setListValue(obj.children, obj, callback);
|
|
@@ -96,7 +96,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
96
96
|
let arr = [];
|
|
97
97
|
arrs == null ? void 0 : arrs.forEach((obj, index2) => {
|
|
98
98
|
if (listobj) {
|
|
99
|
-
obj.
|
|
99
|
+
obj.__father = obj.__father ?? listobj;
|
|
100
100
|
}
|
|
101
101
|
if (!use.useHide(obj, props.value)) {
|
|
102
102
|
const v = obj[config.prop];
|
|
@@ -94,7 +94,7 @@ const _sfc_main = defineComponent({
|
|
|
94
94
|
let arr = [];
|
|
95
95
|
arrs == null ? void 0 : arrs.forEach((obj, index) => {
|
|
96
96
|
if (listobj) {
|
|
97
|
-
obj.
|
|
97
|
+
obj.__father = obj.__father ?? listobj;
|
|
98
98
|
}
|
|
99
99
|
if (!useHide(obj, props.value)) {
|
|
100
100
|
const v = obj[config.prop];
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
33
|
const filtration = (arr, listobj) => {
|
|
34
34
|
for (const obj of arr) {
|
|
35
35
|
if (listobj) {
|
|
36
|
-
obj.
|
|
36
|
+
obj.__father = obj.__father ?? listobj;
|
|
37
37
|
}
|
|
38
38
|
if (obj.prop) {
|
|
39
39
|
value[obj.prop] = obj;
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
const filtration = (arr, listobj) => {
|
|
32
32
|
for (const obj of arr) {
|
|
33
33
|
if (listobj) {
|
|
34
|
-
obj.
|
|
34
|
+
obj.__father = obj.__father ?? listobj;
|
|
35
35
|
}
|
|
36
36
|
if (obj.prop) {
|
|
37
37
|
value[obj.prop] = obj;
|
|
@@ -6,7 +6,7 @@ function getLists(arrs, emit, props, slots, listobj) {
|
|
|
6
6
|
let arr = [];
|
|
7
7
|
arrs == null ? void 0 : arrs.forEach((obj, index) => {
|
|
8
8
|
if (listobj) {
|
|
9
|
-
obj.
|
|
9
|
+
obj.__father = obj.__father ?? listobj;
|
|
10
10
|
}
|
|
11
11
|
if (!use.useHide(obj, props.value)) {
|
|
12
12
|
if (obj.children && obj.children.length > 0) {
|
|
@@ -4,7 +4,7 @@ function getLists(arrs, emit, props, slots, listobj) {
|
|
|
4
4
|
let arr = [];
|
|
5
5
|
arrs == null ? void 0 : arrs.forEach((obj, index) => {
|
|
6
6
|
if (listobj) {
|
|
7
|
-
obj.
|
|
7
|
+
obj.__father = obj.__father ?? listobj;
|
|
8
8
|
}
|
|
9
9
|
if (!useHide(obj, props.value)) {
|
|
10
10
|
if (obj.children && obj.children.length > 0) {
|
|
@@ -263,7 +263,7 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
|
|
|
263
263
|
config?: ObjAny | undefined;
|
|
264
264
|
events?: ObjAny | undefined;
|
|
265
265
|
children?: /*elided*/ any[] | undefined;
|
|
266
|
-
|
|
266
|
+
__father?: /*elided*/ any | undefined;
|
|
267
267
|
minWidth?: string | number | undefined;
|
|
268
268
|
whole?: boolean | undefined;
|
|
269
269
|
type?: string | undefined;
|
|
@@ -304,7 +304,7 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
|
|
|
304
304
|
config?: ObjAny | undefined;
|
|
305
305
|
events?: ObjAny | undefined;
|
|
306
306
|
children?: /*elided*/ any[] | undefined;
|
|
307
|
-
|
|
307
|
+
__father?: /*elided*/ any | undefined;
|
|
308
308
|
minWidth?: string | number | undefined;
|
|
309
309
|
whole?: boolean | undefined;
|
|
310
310
|
type?: string | undefined;
|
package/dist/icons/index.json
CHANGED
package/dist/type.d.ts
CHANGED
package/dist/utils/util.cjs
CHANGED
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const objValue = require("@fangzhongya/utils/basic/object/objValue");
|
|
4
4
|
const getContent = require("@fangzhongya/utils/basic/string/getContent");
|
|
5
5
|
function getFathers(obj, arr) {
|
|
6
|
-
if (obj.
|
|
7
|
-
arr.unshift(obj.
|
|
8
|
-
getFathers(obj.
|
|
6
|
+
if (obj.__father) {
|
|
7
|
+
arr.unshift(obj.__father);
|
|
8
|
+
getFathers(obj.__father, arr);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
function getChildrenData(obj, row, is) {
|
package/dist/utils/util.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export declare function getFathers(obj: ListObj, arr: ListObj[]): void;
|
|
2
|
+
/**
|
|
3
|
+
* @error
|
|
4
|
+
* 代码过于复杂,
|
|
5
|
+
* 做了些无用的工作,
|
|
6
|
+
* 使用情况极低
|
|
7
|
+
*/
|
|
2
8
|
export declare function getChildrenData(obj: ListObj, row: ObjAny, is?: boolean): ObjAny;
|
|
3
9
|
export declare function executionMethod<T>(fun: Function | string, ...arr: any[]): T;
|
package/dist/utils/util.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { setObjValue, getObjValue } from "@fangzhongya/utils/basic/object/objValue";
|
|
2
2
|
import { getContents } from "@fangzhongya/utils/basic/string/getContent";
|
|
3
3
|
function getFathers(obj, arr) {
|
|
4
|
-
if (obj.
|
|
5
|
-
arr.unshift(obj.
|
|
6
|
-
getFathers(obj.
|
|
4
|
+
if (obj.__father) {
|
|
5
|
+
arr.unshift(obj.__father);
|
|
6
|
+
getFathers(obj.__father, arr);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
function getChildrenData(obj, row, is) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.70",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@fang-ui/icons": "0.0.1-0",
|
|
57
57
|
"@fang-ui/locale": "0.0.1-0",
|
|
58
58
|
"@fang-ui/theme": "0.0.1-0",
|
|
59
|
-
"@fang-ui/
|
|
60
|
-
"@fang-ui/
|
|
59
|
+
"@fang-ui/types": "0.0.1-0",
|
|
60
|
+
"@fang-ui/utils": "0.0.1-0"
|
|
61
61
|
},
|
|
62
62
|
"main": "./dist/index.cjs",
|
|
63
63
|
"module": "./dist/index.js",
|
|
File without changes
|
|
File without changes
|