@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.
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
49
49
  isInput.value = false;
50
50
  }
51
51
  function onConfirm() {
52
- if (props.isEmpty && !value.value) {
52
+ if (!props.isEmpty && !value.value) {
53
53
  return false;
54
54
  }
55
55
  isIcon.value = false;
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
47
47
  isInput.value = false;
48
48
  }
49
49
  function onConfirm() {
50
- if (props.isEmpty && !value.value) {
50
+ if (!props.isEmpty && !value.value) {
51
51
  return false;
52
52
  }
53
53
  isIcon.value = false;
@@ -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.father = obj.father ?? listobj;
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.father = obj.father ?? listobj;
86
+ obj.__father = obj.__father ?? listobj;
87
87
  }
88
88
  if (obj.children) {
89
89
  setListValue(obj.children, obj, callback);
@@ -74,7 +74,7 @@ const _sfc_main = vue.defineComponent({
74
74
  };
75
75
  const processObjectVisibility = (obj, listobj, value) => {
76
76
  if (listobj) {
77
- obj.father = obj.father ?? listobj;
77
+ obj.__father = obj.__father ?? listobj;
78
78
  }
79
79
  return !use.useHide(obj, value);
80
80
  };
@@ -72,7 +72,7 @@ const _sfc_main = defineComponent({
72
72
  };
73
73
  const processObjectVisibility = (obj, listobj, value) => {
74
74
  if (listobj) {
75
- obj.father = obj.father ?? listobj;
75
+ obj.__father = obj.__father ?? listobj;
76
76
  }
77
77
  return !useHide(obj, value);
78
78
  };
@@ -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.father = obj.father ?? listobj;
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.father = obj.father ?? listobj;
97
+ obj.__father = obj.__father ?? listobj;
98
98
  }
99
99
  if (!useHide(obj, props.value)) {
100
100
  const v = obj[config.prop];
@@ -8,7 +8,8 @@ function setLabel(value, obj, props, compons, emit, slots, index) {
8
8
  return use.useVNodeComponDom(
9
9
  {
10
10
  ...obj,
11
- prop: "label"
11
+ prop: "label",
12
+ __father: void 0
12
13
  },
13
14
  obj,
14
15
  slots,
@@ -6,7 +6,8 @@ function setLabel(value, obj, props, compons, emit, slots, index) {
6
6
  return useVNodeComponDom(
7
7
  {
8
8
  ...obj,
9
- prop: "label"
9
+ prop: "label",
10
+ __father: void 0
10
11
  },
11
12
  obj,
12
13
  slots,
@@ -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.father = obj.father ?? listobj;
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.father = obj.father ?? listobj;
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.father = obj.father ?? listobj;
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.father = obj.father ?? listobj;
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
- father?: /*elided*/ any | undefined;
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
- father?: /*elided*/ any | undefined;
307
+ __father?: /*elided*/ any | undefined;
308
308
  minWidth?: string | number | undefined;
309
309
  whole?: boolean | undefined;
310
310
  type?: string | undefined;
@@ -9,7 +9,7 @@ function getLists(arrs, emit, props, slots, listobj) {
9
9
  let arr = [];
10
10
  arrs == null ? void 0 : arrs.forEach((obj, index) => {
11
11
  if (listobj) {
12
- obj.father = obj.father ?? {
12
+ obj.__father = obj.__father ?? {
13
13
  ...listobj,
14
14
  children: void 0
15
15
  };
@@ -7,7 +7,7 @@ function getLists(arrs, emit, props, slots, listobj) {
7
7
  let arr = [];
8
8
  arrs == null ? void 0 : arrs.forEach((obj, index) => {
9
9
  if (listobj) {
10
- obj.father = obj.father ?? {
10
+ obj.__father = obj.__father ?? {
11
11
  ...listobj,
12
12
  children: void 0
13
13
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-ui",
3
3
  "info": {},
4
- "lastModified": 1768572114954,
4
+ "lastModified": 1768618303611,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": " <path fill=\"currentColor\" d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\" ></path> "
package/dist/type.d.ts CHANGED
@@ -153,7 +153,7 @@ type ListObj = {
153
153
  events?: ObjAny;
154
154
 
155
155
  children?: ListObj[];
156
- father?: ListObj;
156
+ __father?: ListObj;
157
157
 
158
158
  minWidth?: string | number;
159
159
  // 是否整行
@@ -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.father) {
7
- arr.unshift(obj.father);
8
- getFathers(obj.father, arr);
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) {
@@ -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;
@@ -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.father) {
5
- arr.unshift(obj.father);
6
- getFathers(obj.father, arr);
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.68",
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/utils": "0.0.1-0",
60
- "@fang-ui/types": "0.0.1-0"
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