@fangzhongya/fang-ui 0.1.51 → 0.1.52

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 (195) hide show
  1. package/bin/fang-ui.js +2 -2
  2. package/dist/components/box-fun/index.cjs +1 -0
  3. package/dist/components/box-fun/index.js +1 -0
  4. package/dist/components/box-fun/index.scss +8 -0
  5. package/dist/components/box-fun/style/index2.scss +4 -0
  6. package/dist/components/buttons/src/data.d.ts +14 -11
  7. package/dist/components/cascaders/src/data.d.ts +14 -11
  8. package/dist/components/cascaders/src/index2.cjs +15 -8
  9. package/dist/components/cascaders/src/index2.js +15 -8
  10. package/dist/components/checks/src/data.d.ts +14 -11
  11. package/dist/components/checks/src/index2.cjs +6 -6
  12. package/dist/components/checks/src/index2.js +6 -6
  13. package/dist/components/common/list.cjs +34 -15
  14. package/dist/components/common/list.d.ts +25 -12
  15. package/dist/components/common/list.js +34 -15
  16. package/dist/components/common/use.cjs +9 -5
  17. package/dist/components/common/use.js +9 -5
  18. package/dist/components/dates/src/data.d.ts +14 -11
  19. package/dist/components/dates2/src/data.d.ts +14 -11
  20. package/dist/components/draggable/style/index2.scss +1 -0
  21. package/dist/components/edit-data/index.cjs +9 -0
  22. package/dist/components/edit-data/index.css +144 -0
  23. package/dist/components/edit-data/index.d.ts +5 -0
  24. package/dist/components/edit-data/index.js +9 -0
  25. package/dist/components/edit-data/index.scss +95 -0
  26. package/dist/components/edit-data/src/area/array-json.cjs +4 -0
  27. package/dist/components/edit-data/src/area/array-json.js +4 -0
  28. package/dist/components/edit-data/src/area/array-json2.cjs +109 -0
  29. package/dist/components/edit-data/src/area/array-json2.js +109 -0
  30. package/dist/components/edit-data/src/area/array.cjs +4 -0
  31. package/dist/components/edit-data/src/area/array.js +4 -0
  32. package/dist/components/edit-data/src/area/array2.cjs +135 -0
  33. package/dist/components/edit-data/src/area/array2.js +135 -0
  34. package/dist/components/edit-data/src/area/code.cjs +4 -0
  35. package/dist/components/edit-data/src/area/code.js +4 -0
  36. package/dist/components/edit-data/src/area/code2.cjs +52 -0
  37. package/dist/components/edit-data/src/area/code2.js +52 -0
  38. package/dist/components/edit-data/src/area/editor.cjs +4 -0
  39. package/dist/components/edit-data/src/area/editor.js +4 -0
  40. package/dist/components/edit-data/src/area/editor2.cjs +170 -0
  41. package/dist/components/edit-data/src/area/editor2.js +170 -0
  42. package/dist/components/edit-data/src/area/general.cjs +4 -0
  43. package/dist/components/edit-data/src/area/general.js +4 -0
  44. package/dist/components/edit-data/src/area/general2.cjs +88 -0
  45. package/dist/components/edit-data/src/area/general2.js +88 -0
  46. package/dist/components/edit-data/src/area/object-json.cjs +4 -0
  47. package/dist/components/edit-data/src/area/object-json.js +4 -0
  48. package/dist/components/edit-data/src/area/object-json2.cjs +109 -0
  49. package/dist/components/edit-data/src/area/object-json2.js +109 -0
  50. package/dist/components/edit-data/src/area/object.cjs +4 -0
  51. package/dist/components/edit-data/src/area/object.js +4 -0
  52. package/dist/components/edit-data/src/area/object2.cjs +116 -0
  53. package/dist/components/edit-data/src/area/object2.js +116 -0
  54. package/dist/components/edit-data/src/data/array.cjs +4 -0
  55. package/dist/components/edit-data/src/data/array.js +4 -0
  56. package/dist/components/edit-data/src/data/array2.cjs +68 -0
  57. package/dist/components/edit-data/src/data/array2.js +68 -0
  58. package/dist/components/edit-data/src/data/bigint.cjs +4 -0
  59. package/dist/components/edit-data/src/data/bigint.js +4 -0
  60. package/dist/components/edit-data/src/data/bigint2.cjs +42 -0
  61. package/dist/components/edit-data/src/data/bigint2.js +42 -0
  62. package/dist/components/edit-data/src/data/boolean.cjs +4 -0
  63. package/dist/components/edit-data/src/data/boolean.js +4 -0
  64. package/dist/components/edit-data/src/data/boolean2.cjs +53 -0
  65. package/dist/components/edit-data/src/data/boolean2.js +53 -0
  66. package/dist/components/edit-data/src/data/function.cjs +4 -0
  67. package/dist/components/edit-data/src/data/function.js +4 -0
  68. package/dist/components/edit-data/src/data/function2.cjs +61 -0
  69. package/dist/components/edit-data/src/data/function2.js +61 -0
  70. package/dist/components/edit-data/src/data/not.cjs +4 -0
  71. package/dist/components/edit-data/src/data/not.js +4 -0
  72. package/dist/components/edit-data/src/data/not2.cjs +56 -0
  73. package/dist/components/edit-data/src/data/not2.js +56 -0
  74. package/dist/components/edit-data/src/data/null.cjs +4 -0
  75. package/dist/components/edit-data/src/data/null.js +4 -0
  76. package/dist/components/edit-data/src/data/null2.cjs +24 -0
  77. package/dist/components/edit-data/src/data/null2.js +24 -0
  78. package/dist/components/edit-data/src/data/number.cjs +4 -0
  79. package/dist/components/edit-data/src/data/number.js +4 -0
  80. package/dist/components/edit-data/src/data/number2.cjs +42 -0
  81. package/dist/components/edit-data/src/data/number2.js +42 -0
  82. package/dist/components/edit-data/src/data/object.cjs +4 -0
  83. package/dist/components/edit-data/src/data/object.js +4 -0
  84. package/dist/components/edit-data/src/data/object2.cjs +68 -0
  85. package/dist/components/edit-data/src/data/object2.js +68 -0
  86. package/dist/components/edit-data/src/data/other.cjs +4 -0
  87. package/dist/components/edit-data/src/data/other.js +4 -0
  88. package/dist/components/edit-data/src/data/other2.cjs +59 -0
  89. package/dist/components/edit-data/src/data/other2.js +59 -0
  90. package/dist/components/edit-data/src/data/string.cjs +4 -0
  91. package/dist/components/edit-data/src/data/string.js +4 -0
  92. package/dist/components/edit-data/src/data/string2.cjs +43 -0
  93. package/dist/components/edit-data/src/data/string2.js +43 -0
  94. package/dist/components/edit-data/src/data/symbol.cjs +4 -0
  95. package/dist/components/edit-data/src/data/symbol.js +4 -0
  96. package/dist/components/edit-data/src/data/symbol2.cjs +55 -0
  97. package/dist/components/edit-data/src/data/symbol2.js +55 -0
  98. package/dist/components/edit-data/src/data/undefined.cjs +4 -0
  99. package/dist/components/edit-data/src/data/undefined.js +4 -0
  100. package/dist/components/edit-data/src/data/undefined2.cjs +24 -0
  101. package/dist/components/edit-data/src/data/undefined2.js +24 -0
  102. package/dist/components/edit-data/src/data.cjs +57 -0
  103. package/dist/components/edit-data/src/data.d.ts +131 -0
  104. package/dist/components/edit-data/src/data.js +57 -0
  105. package/dist/components/edit-data/src/index.cjs +4 -0
  106. package/dist/components/edit-data/src/index.js +4 -0
  107. package/dist/components/edit-data/src/index2.cjs +134 -0
  108. package/dist/components/edit-data/src/index2.js +134 -0
  109. package/dist/components/edit-data/src/util.cjs +99 -0
  110. package/dist/components/edit-data/src/util.d.ts +1 -0
  111. package/dist/components/edit-data/src/util.js +99 -0
  112. package/dist/components/edit-data/style/index2.scss +13 -0
  113. package/dist/components/edit-data-add/index.cjs +9 -0
  114. package/dist/components/edit-data-add/index.d.ts +5 -0
  115. package/dist/components/edit-data-add/index.js +9 -0
  116. package/dist/components/edit-data-add/index.scss +5 -0
  117. package/dist/components/edit-data-add/src/data.cjs +24 -0
  118. package/dist/components/edit-data-add/src/data.d.ts +36 -0
  119. package/dist/components/edit-data-add/src/data.js +24 -0
  120. package/dist/components/edit-data-add/src/index.cjs +4 -0
  121. package/dist/components/edit-data-add/src/index.js +4 -0
  122. package/dist/components/edit-data-add/src/index2.cjs +241 -0
  123. package/dist/components/edit-data-add/src/index2.js +241 -0
  124. package/dist/components/edit-data-add/style/comm.scss +38 -0
  125. package/dist/components/edit-data-add/style/index2.scss +2 -0
  126. package/dist/components/history/src/data.cjs +9 -1
  127. package/dist/components/history/src/data.d.ts +13 -1
  128. package/dist/components/history/src/data.js +9 -1
  129. package/dist/components/history/src/index2.cjs +27 -9
  130. package/dist/components/history/src/index2.js +27 -9
  131. package/dist/components/index.cjs +60 -56
  132. package/dist/components/index.d.ts +2 -0
  133. package/dist/components/index.js +4 -0
  134. package/dist/components/index.scss +3 -0
  135. package/dist/components/index2.scss +5 -2
  136. package/dist/components/labels/src/data.d.ts +14 -11
  137. package/dist/components/labels/src/index2.cjs +13 -2
  138. package/dist/components/labels/src/index2.js +13 -2
  139. package/dist/components/page/index.css +8 -0
  140. package/dist/components/retract/index.css +20 -0
  141. package/dist/components/retract/index.scss +24 -0
  142. package/dist/components/retract/src/data.cjs +10 -0
  143. package/dist/components/retract/src/data.d.ts +10 -0
  144. package/dist/components/retract/src/data.js +10 -0
  145. package/dist/components/retract/src/index2.cjs +24 -4
  146. package/dist/components/retract/src/index2.js +23 -3
  147. package/dist/components/retract/style/index2.scss +1 -0
  148. package/dist/components/selects/src/data.d.ts +14 -11
  149. package/dist/components/selects/src/index2.cjs +1 -1
  150. package/dist/components/selects/src/index2.js +1 -1
  151. package/dist/components/switchs/src/data.d.ts +14 -11
  152. package/dist/components/switchs/src/index2.cjs +9 -5
  153. package/dist/components/switchs/src/index2.js +9 -5
  154. package/dist/components/tables/common/com-limit.cjs +4 -0
  155. package/dist/components/tables/common/com-limit.js +4 -0
  156. package/dist/components/tables/common/com-limit2.cjs +91 -0
  157. package/dist/components/tables/common/com-limit2.js +91 -0
  158. package/dist/components/tables/common/com.scss +12 -0
  159. package/dist/components/tables/index.css +9 -0
  160. package/dist/components/tables/index.scss +2 -0
  161. package/dist/components/tables/src/columns2.cjs +3 -1
  162. package/dist/components/tables/src/columns2.js +7 -5
  163. package/dist/components/tablesp/index.css +9 -0
  164. package/dist/components/tablespd/index.css +9 -0
  165. package/dist/components/uploads/src/data.d.ts +14 -11
  166. package/dist/css/edit-data.css +144 -0
  167. package/dist/css/index.css +149 -0
  168. package/dist/css/page.css +8 -0
  169. package/dist/css/retract.css +20 -0
  170. package/dist/css/tables.css +9 -0
  171. package/dist/css/tablesp.css +9 -0
  172. package/dist/css/tablespd.css +9 -0
  173. package/dist/directives/adjust/index.cjs +14 -6
  174. package/dist/directives/adjust/index.js +14 -6
  175. package/dist/directives/adjustment/index.cjs +622 -0
  176. package/dist/directives/adjustment/index.d.ts +7 -0
  177. package/dist/directives/adjustment/index.js +622 -0
  178. package/dist/directives/index.cjs +18 -16
  179. package/dist/directives/index.d.ts +1 -0
  180. package/dist/directives/index.js +16 -14
  181. package/dist/expand/{chunk-A7IW6WRD.cjs → chunk-BJVT6JH7.cjs} +6 -0
  182. package/dist/expand/{chunk-L4FI5HCY.js → chunk-I5UJEJJB.js} +6 -0
  183. package/dist/expand/components.cjs +5 -5
  184. package/dist/expand/components.js +1 -1
  185. package/dist/expand/config.cjs +2 -2
  186. package/dist/expand/config.js +1 -1
  187. package/dist/icons/index.json +1 -1
  188. package/dist/index.cjs +84 -78
  189. package/dist/index.css +149 -0
  190. package/dist/index.js +20 -14
  191. package/dist/utils/util.cjs +1 -1
  192. package/dist/utils/util.js +2 -2
  193. package/dist/utils/vues/withInstall.cjs +2 -1
  194. package/dist/utils/vues/withInstall.js +2 -1
  195. package/package.json +9 -8
@@ -65,6 +65,7 @@
65
65
  @use './forms-items/index.scss' as *;
66
66
  @use './forms/index.scss' as *;
67
67
  @use './box-adjust/index.scss' as *;
68
+ @use './box-fun/index.scss' as *;
68
69
  @use './box-local/index.scss' as *;
69
70
  @use './box-mask/index.scss' as *;
70
71
  @use './box-title/index.scss' as *;
@@ -95,6 +96,8 @@
95
96
  @use './dates/index.scss' as *;
96
97
  @use './dates2/index.scss' as *;
97
98
  @use './double/index.scss' as *;
99
+ @use './edit-data-add/index.scss' as *;
100
+ @use './edit-data/index.scss' as *;
98
101
  @use './edit-float/index.scss' as *;
99
102
  @use './edit/index.scss' as *;
100
103
  @use './history/index.scss' as *;
@@ -1,4 +1,4 @@
1
- @use './draggable/style/index.scss' as *;
1
+ @use './draggable/style/index2.scss' as *;
2
2
  @use './button/style/index2.scss' as *;
3
3
  @use './card/style/index2.scss' as *;
4
4
  @use './color-picker/style/index2.scss' as *;
@@ -65,6 +65,7 @@
65
65
  @use './forms-items/style/index2.scss' as *;
66
66
  @use './forms/style/index2.scss' as *;
67
67
  @use './box-adjust/style/index2.scss' as *;
68
+ @use './box-fun/style/index2.scss' as *;
68
69
  @use './box-local/style/index2.scss' as *;
69
70
  @use './box-mask/style/index2.scss' as *;
70
71
  @use './box-title/style/index2.scss' as *;
@@ -86,7 +87,7 @@
86
87
  @use './audios/style/index2.scss' as *;
87
88
  @use './images/style/index2.scss' as *;
88
89
  @use './videos/style/index2.scss' as *;
89
- @use './retract/style/index.scss' as *;
90
+ @use './retract/style/index2.scss' as *;
90
91
  @use './buttons/style/index2.scss' as *;
91
92
  @use './cascaders/style/index2.scss' as *;
92
93
  @use './checks/style/index2.scss' as *;
@@ -95,6 +96,8 @@
95
96
  @use './dates/style/index2.scss' as *;
96
97
  @use './dates2/style/index2.scss' as *;
97
98
  @use './double/style/index2.scss' as *;
99
+ @use './edit-data-add/style/index2.scss' as *;
100
+ @use './edit-data/style/index2.scss' as *;
98
101
  @use './edit-float/style/index2.scss' as *;
99
102
  @use './edit/style/index2.scss' as *;
100
103
  @use './history/style/index2.scss' as *;
@@ -29,10 +29,10 @@ export declare const dataProps: {
29
29
  };
30
30
  options: {
31
31
  type: {
32
- (arrayLength: number): ObjAny[];
33
- (...items: ObjAny[]): ObjAny[];
34
- new (arrayLength: number): ObjAny[];
35
- new (...items: ObjAny[]): ObjAny[];
32
+ (arrayLength: number): (string | number | boolean | ObjAny)[];
33
+ (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
34
+ new (arrayLength: number): (string | number | boolean | ObjAny)[];
35
+ new (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
36
36
  isArray(arg: any): arg is any[];
37
37
  readonly prototype: any[];
38
38
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -46,9 +46,6 @@ export declare const dataProps: {
46
46
  };
47
47
  default(): never[];
48
48
  };
49
- clearAbsent: {
50
- type: BooleanConstructor;
51
- };
52
49
  label: {
53
50
  type: (StringConstructor | FunctionConstructor)[];
54
51
  default: string;
@@ -63,11 +60,17 @@ export declare const dataProps: {
63
60
  multiple: {
64
61
  type: (BooleanConstructor | StringConstructor)[];
65
62
  };
66
- load: {
67
- type: BooleanConstructor[];
63
+ isLoad: {
64
+ type: BooleanConstructor;
65
+ };
66
+ isClearAbsent: {
67
+ type: BooleanConstructor;
68
+ };
69
+ isOptobj: {
70
+ type: BooleanConstructor;
68
71
  };
69
- optobj: {
70
- type: BooleanConstructor[];
72
+ default: {
73
+ type: null;
71
74
  };
72
75
  };
73
76
  export type DataProps = ExtractPropTypes<typeof dataProps>;
@@ -57,7 +57,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
57
57
  const valueMultiple = vue.computed({
58
58
  get() {
59
59
  if (value.value !== void 0) {
60
- if (value.value.length === props.options.filter((item) => !item.disabled).length) {
60
+ if (value.value.length === props.options.filter((item) => {
61
+ if (item && typeof item === "object") {
62
+ return !item.disabled;
63
+ }
64
+ return true;
65
+ }).length) {
61
66
  return [...value.value, wholeValue];
62
67
  } else {
63
68
  return [...value.value];
@@ -81,7 +86,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
81
86
  if (valueMultiple.value.includes(wholeValue)) {
82
87
  valueMultiple.value = [];
83
88
  } else {
84
- const v = props.options.filter((item2) => !item2.disabled).map((item2) => {
89
+ const v = props.options;
90
+ props.options.filter((item2) => {
91
+ if (item2 && typeof item2 === "object") {
92
+ return !item2.disabled;
93
+ }
94
+ return true;
95
+ }).map((item2) => {
85
96
  return use.useVueValue(item2, props.prop);
86
97
  });
87
98
  valueMultiple.value = [...v, wholeValue];
@@ -55,7 +55,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  const valueMultiple = computed({
56
56
  get() {
57
57
  if (value.value !== void 0) {
58
- if (value.value.length === props.options.filter((item) => !item.disabled).length) {
58
+ if (value.value.length === props.options.filter((item) => {
59
+ if (item && typeof item === "object") {
60
+ return !item.disabled;
61
+ }
62
+ return true;
63
+ }).length) {
59
64
  return [...value.value, wholeValue];
60
65
  } else {
61
66
  return [...value.value];
@@ -79,7 +84,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
84
  if (valueMultiple.value.includes(wholeValue)) {
80
85
  valueMultiple.value = [];
81
86
  } else {
82
- const v = props.options.filter((item2) => !item2.disabled).map((item2) => {
87
+ const v = props.options;
88
+ props.options.filter((item2) => {
89
+ if (item2 && typeof item2 === "object") {
90
+ return !item2.disabled;
91
+ }
92
+ return true;
93
+ }).map((item2) => {
83
94
  return useVueValue(item2, props.prop);
84
95
  });
85
96
  valueMultiple.value = [...v, wholeValue];
@@ -707,6 +707,14 @@
707
707
  white-space: pre-wrap;
708
708
  }
709
709
 
710
+ .com-limit.is-tooltip {
711
+ max-height: var(--com-limit-max-height);
712
+ display: -webkit-box;
713
+ -webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
714
+ -webkit-box-orient: vertical;
715
+ text-overflow: ellipsis;
716
+ }
717
+
710
718
  .tables {
711
719
  width: 100%;
712
720
  min-height: var(--tables-min-height, 70px);
@@ -25,9 +25,17 @@
25
25
  .retract {
26
26
  position: relative;
27
27
  }
28
+ .retract-div.left, .retract-div.right {
29
+ height: 100%;
30
+ display: flex;
31
+ }
32
+ .retract-div.top, .retract-div.bottom {
33
+ width: 100%;
34
+ }
28
35
  .retract .retract-but {
29
36
  position: absolute;
30
37
  background-color: rgba(201, 201, 201, 0.5);
38
+ z-index: 1000;
31
39
  }
32
40
  .retract .retract-but .retract-icon {
33
41
  width: 100%;
@@ -50,6 +58,9 @@
50
58
  margin-top: -25px;
51
59
  left: -20px;
52
60
  }
61
+ .retract .retract-but.is-left.is-adjust {
62
+ left: -10px;
63
+ }
53
64
  .retract .retract-but.is-left .retract-icon {
54
65
  transform: rotate(0);
55
66
  }
@@ -63,6 +74,9 @@
63
74
  margin-top: -25px;
64
75
  right: -20px;
65
76
  }
77
+ .retract .retract-but.is-right.is-adjust {
78
+ right: -10px;
79
+ }
66
80
  .retract .retract-but.is-right .retract-icon {
67
81
  transform: rotate(-180deg);
68
82
  }
@@ -76,6 +90,9 @@
76
90
  margin-left: -25px;
77
91
  top: -20px;
78
92
  }
93
+ .retract .retract-but.is-top.is-adjust {
94
+ top: -10px;
95
+ }
79
96
  .retract .retract-but.is-top .retract-icon {
80
97
  transform: rotate(90deg);
81
98
  }
@@ -89,6 +106,9 @@
89
106
  margin-left: -25px;
90
107
  bottom: -20px;
91
108
  }
109
+ .retract .retract-but.is-bottom.is-adjust {
110
+ bottom: -10px;
111
+ }
92
112
  .retract .retract-but.is-bottom .retract-icon {
93
113
  transform: rotate(-90deg);
94
114
  }
@@ -3,9 +3,21 @@
3
3
  $retract: 'retract';
4
4
  @include b($retract) {
5
5
  position: relative;
6
+ &-div {
7
+ &.left,
8
+ &.right {
9
+ height: 100%;
10
+ display: flex;
11
+ }
12
+ &.top,
13
+ &.bottom {
14
+ width: 100%;
15
+ }
16
+ }
6
17
  .#{$retract}-but {
7
18
  position: absolute;
8
19
  background-color: rgba(201, 201, 201, 0.5);
20
+ z-index: 1000;
9
21
  .#{$retract}-icon {
10
22
  width: 100%;
11
23
  height: 100%;
@@ -26,6 +38,9 @@ $retract: 'retract';
26
38
  height: 50px;
27
39
  margin-top: -25px;
28
40
  left: -20px;
41
+ &.#{is('adjust')} {
42
+ left: -10px;
43
+ }
29
44
  .#{$retract}-icon {
30
45
  transform: rotate(0);
31
46
  &.is-reverse {
@@ -39,6 +54,9 @@ $retract: 'retract';
39
54
  height: 50px;
40
55
  margin-top: -25px;
41
56
  right: -20px;
57
+ &.#{is('adjust')} {
58
+ right: -10px;
59
+ }
42
60
  .#{$retract}-icon {
43
61
  transform: rotate(-180deg);
44
62
  &.is-reverse {
@@ -52,6 +70,9 @@ $retract: 'retract';
52
70
  height: 20px;
53
71
  margin-left: -25px;
54
72
  top: -20px;
73
+ &.#{is('adjust')} {
74
+ top: -10px;
75
+ }
55
76
  .#{$retract}-icon {
56
77
  transform: rotate(90deg);
57
78
  &.is-reverse {
@@ -65,6 +86,9 @@ $retract: 'retract';
65
86
  height: 20px;
66
87
  margin-left: -25px;
67
88
  bottom: -20px;
89
+ &.#{is('adjust')} {
90
+ bottom: -10px;
91
+ }
68
92
  .#{$retract}-icon {
69
93
  transform: rotate(-90deg);
70
94
  &.is-reverse {
@@ -10,6 +10,16 @@ const dataProps = buildProps.buildProps({
10
10
  direction: {
11
11
  type: String,
12
12
  default: "right"
13
+ },
14
+ /**
15
+ * @props { Boolean } often= ( )
16
+ * 是否时时变化
17
+ */
18
+ often: {
19
+ type: Boolean
20
+ },
21
+ isAdjust: {
22
+ type: Boolean
13
23
  }
14
24
  });
15
25
  const dataEmits = {};
@@ -13,6 +13,16 @@ export declare const dataProps: {
13
13
  type: () => Direction;
14
14
  default: string;
15
15
  };
16
+ /**
17
+ * @props { Boolean } often= ( )
18
+ * 是否时时变化
19
+ */
20
+ often: {
21
+ type: BooleanConstructor;
22
+ };
23
+ isAdjust: {
24
+ type: BooleanConstructor;
25
+ };
16
26
  };
17
27
  export type DataProps = ExtractPropTypes<typeof dataProps>;
18
28
  /**
@@ -8,6 +8,16 @@ const dataProps = buildProps({
8
8
  direction: {
9
9
  type: String,
10
10
  default: "right"
11
+ },
12
+ /**
13
+ * @props { Boolean } often= ( )
14
+ * 是否时时变化
15
+ */
16
+ often: {
17
+ type: Boolean
18
+ },
19
+ isAdjust: {
20
+ type: Boolean
11
21
  }
12
22
  });
13
23
  const dataEmits = {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const vue = require("vue");
4
- const index$3 = require("../../icon/index.cjs");
4
+ const index$4 = require("../../icon/index.cjs");
5
5
  const right = require("../../../icons/vue/right.cjs");
6
+ const index$3 = require("../../../directives/adjustment/index.cjs");
6
7
  const data = require("./data.cjs");
7
8
  const index$1 = require("../../../hooks/cssname/index.cjs");
8
9
  const index = require("../../../hooks/locale/index.cjs");
@@ -28,12 +29,31 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
29
  return vue.openBlock(), vue.createElementBlock("div", {
29
30
  class: vue.normalizeClass(vue.unref(cs).z())
30
31
  }, [
31
- !visible.value ? vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default, { key: 0 }) : vue.createCommentVNode("", true),
32
+ vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
33
+ class: vue.normalizeClass([vue.unref(cs).z("div"), vue.unref(props).direction])
34
+ }, [
35
+ vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default)
36
+ ], 2)), [
37
+ [vue.vShow, !visible.value],
38
+ [vue.unref(index$3.default), {
39
+ is: vue.unref(props).isAdjust,
40
+ often: vue.unref(props).often,
41
+ dom: "div",
42
+ [vue.unref(props).direction]: {
43
+ interval: 10
44
+ // adjoin: 'div',
45
+ }
46
+ }]
47
+ ]),
32
48
  vue.createElementVNode("div", {
33
49
  onClick: vue.withModifiers(onClick, ["stop"]),
34
- class: vue.normalizeClass([vue.unref(cs).z("but"), vue.unref(cs).is(vue.unref(props).direction, true)])
50
+ class: vue.normalizeClass([
51
+ vue.unref(cs).z("but"),
52
+ vue.unref(cs).is("adjust", vue.unref(props).isAdjust),
53
+ vue.unref(cs).is(vue.unref(props).direction, true)
54
+ ])
35
55
  }, [
36
- vue.createVNode(vue.unref(index$3.Icon), {
56
+ vue.createVNode(vue.unref(index$4.Icon), {
37
57
  class: vue.normalizeClass([vue.unref(cs).z("icon"), vue.unref(cs).is("reverse", visible.value)])
38
58
  }, {
39
59
  default: vue.withCtx(() => [
@@ -1,6 +1,7 @@
1
- import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, unref, renderSlot, createCommentVNode, createElementVNode, withModifiers, createVNode, withCtx } from "vue";
1
+ import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, unref, withDirectives, createElementVNode, renderSlot, vShow, withModifiers, createVNode, withCtx } from "vue";
2
2
  import { Icon } from "../../icon/index.js";
3
3
  import Right from "../../../icons/vue/right.js";
4
+ import vAdjustment from "../../../directives/adjustment/index.js";
4
5
  import { name, dataProps, dataExpose, dataSlot, dataEmits } from "./data.js";
5
6
  import { useCssName } from "../../../hooks/cssname/index.js";
6
7
  import { useLocale } from "../../../hooks/locale/index.js";
@@ -26,10 +27,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
27
  return openBlock(), createElementBlock("div", {
27
28
  class: normalizeClass(unref(cs).z())
28
29
  }, [
29
- !visible.value ? renderSlot(_ctx.$slots, unref(dataSlot).default, { key: 0 }) : createCommentVNode("", true),
30
+ withDirectives((openBlock(), createElementBlock("div", {
31
+ class: normalizeClass([unref(cs).z("div"), unref(props).direction])
32
+ }, [
33
+ renderSlot(_ctx.$slots, unref(dataSlot).default)
34
+ ], 2)), [
35
+ [vShow, !visible.value],
36
+ [unref(vAdjustment), {
37
+ is: unref(props).isAdjust,
38
+ often: unref(props).often,
39
+ dom: "div",
40
+ [unref(props).direction]: {
41
+ interval: 10
42
+ // adjoin: 'div',
43
+ }
44
+ }]
45
+ ]),
30
46
  createElementVNode("div", {
31
47
  onClick: withModifiers(onClick, ["stop"]),
32
- class: normalizeClass([unref(cs).z("but"), unref(cs).is(unref(props).direction, true)])
48
+ class: normalizeClass([
49
+ unref(cs).z("but"),
50
+ unref(cs).is("adjust", unref(props).isAdjust),
51
+ unref(cs).is(unref(props).direction, true)
52
+ ])
33
53
  }, [
34
54
  createVNode(unref(Icon), {
35
55
  class: normalizeClass([unref(cs).z("icon"), unref(cs).is("reverse", visible.value)])
@@ -0,0 +1 @@
1
+ @use '../index.scss' as *;
@@ -18,10 +18,10 @@ export declare const dataProps: {
18
18
  };
19
19
  options: {
20
20
  type: {
21
- (arrayLength: number): ObjAny[];
22
- (...items: ObjAny[]): ObjAny[];
23
- new (arrayLength: number): ObjAny[];
24
- new (...items: ObjAny[]): ObjAny[];
21
+ (arrayLength: number): (string | number | boolean | ObjAny)[];
22
+ (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
23
+ new (arrayLength: number): (string | number | boolean | ObjAny)[];
24
+ new (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
25
25
  isArray(arg: any): arg is any[];
26
26
  readonly prototype: any[];
27
27
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -35,9 +35,6 @@ export declare const dataProps: {
35
35
  };
36
36
  default(): never[];
37
37
  };
38
- clearAbsent: {
39
- type: BooleanConstructor;
40
- };
41
38
  label: {
42
39
  type: (StringConstructor | FunctionConstructor)[];
43
40
  default: string;
@@ -52,11 +49,17 @@ export declare const dataProps: {
52
49
  multiple: {
53
50
  type: (BooleanConstructor | StringConstructor)[];
54
51
  };
55
- load: {
56
- type: BooleanConstructor[];
52
+ isLoad: {
53
+ type: BooleanConstructor;
54
+ };
55
+ isClearAbsent: {
56
+ type: BooleanConstructor;
57
+ };
58
+ isOptobj: {
59
+ type: BooleanConstructor;
57
60
  };
58
- optobj: {
59
- type: BooleanConstructor[];
61
+ default: {
62
+ type: null;
60
63
  };
61
64
  };
62
65
  export type DataProps = ExtractPropTypes<typeof dataProps>;
@@ -137,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
137
137
  return vue.openBlock(), vue.createBlock(vue.unref(index$6.Option), {
138
138
  label: vue.unref(use.useVueValue)(item, vue.unref(props).label),
139
139
  value: vue.unref(setValue)(item),
140
- disabled: item == null ? void 0 : item.disabled
140
+ disabled: typeof item === "object" && item !== null ? item.disabled : void 0
141
141
  }, null, 8, ["label", "value", "disabled"]);
142
142
  }), 256))
143
143
  ]),
@@ -135,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
135
135
  return openBlock(), createBlock(unref(Option), {
136
136
  label: unref(useVueValue)(item, unref(props).label),
137
137
  value: unref(setValue)(item),
138
- disabled: item == null ? void 0 : item.disabled
138
+ disabled: typeof item === "object" && item !== null ? item.disabled : void 0
139
139
  }, null, 8, ["label", "value", "disabled"]);
140
140
  }), 256))
141
141
  ]),
@@ -14,10 +14,10 @@ export declare const dataProps: {
14
14
  };
15
15
  options: {
16
16
  type: {
17
- (arrayLength: number): ObjAny[];
18
- (...items: ObjAny[]): ObjAny[];
19
- new (arrayLength: number): ObjAny[];
20
- new (...items: ObjAny[]): ObjAny[];
17
+ (arrayLength: number): (string | number | boolean | ObjAny)[];
18
+ (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
19
+ new (arrayLength: number): (string | number | boolean | ObjAny)[];
20
+ new (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
21
21
  isArray(arg: any): arg is any[];
22
22
  readonly prototype: any[];
23
23
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -31,9 +31,6 @@ export declare const dataProps: {
31
31
  };
32
32
  default(): never[];
33
33
  };
34
- clearAbsent: {
35
- type: BooleanConstructor;
36
- };
37
34
  label: {
38
35
  type: (StringConstructor | FunctionConstructor)[];
39
36
  default: string;
@@ -48,11 +45,17 @@ export declare const dataProps: {
48
45
  multiple: {
49
46
  type: (BooleanConstructor | StringConstructor)[];
50
47
  };
51
- load: {
52
- type: BooleanConstructor[];
48
+ isLoad: {
49
+ type: BooleanConstructor;
50
+ };
51
+ isClearAbsent: {
52
+ type: BooleanConstructor;
53
+ };
54
+ isOptobj: {
55
+ type: BooleanConstructor;
53
56
  };
54
- optobj: {
55
- type: BooleanConstructor[];
57
+ default: {
58
+ type: null;
56
59
  };
57
60
  };
58
61
  export type DataProps = ExtractPropTypes<typeof dataProps>;
@@ -43,8 +43,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
43
43
  } else {
44
44
  inactive.value.value = v;
45
45
  }
46
- inactive.value.icon = i == null ? void 0 : i.icon;
47
- inactive.value.color = i == null ? void 0 : i.color;
46
+ if (i && typeof i === "object") {
47
+ inactive.value.icon = i == null ? void 0 : i.icon;
48
+ inactive.value.color = i == null ? void 0 : i.color;
49
+ }
48
50
  const a = props.options[1];
49
51
  active.value.text = use.useVueValue(a, props.label);
50
52
  const va = use.useVueValue(a, props.prop);
@@ -53,8 +55,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
53
55
  } else {
54
56
  active.value.value = va;
55
57
  }
56
- active.value.icon = a == null ? void 0 : a.icon;
57
- active.value.color = a == null ? void 0 : a.color;
58
+ if (a && typeof a === "object") {
59
+ active.value.icon = a == null ? void 0 : a.icon;
60
+ active.value.color = a == null ? void 0 : a.color;
61
+ }
58
62
  }
59
63
  },
60
64
  { immediate: true, deep: true }
@@ -82,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
82
86
  value2 = "";
83
87
  }
84
88
  emit("update:modelValue", value2);
85
- if (props.optobj) {
89
+ if (props.isOptobj) {
86
90
  const obj = props.options.find((o) => {
87
91
  return use.useVueValue(o, props.prop) === value2;
88
92
  });
@@ -41,8 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  } else {
42
42
  inactive.value.value = v;
43
43
  }
44
- inactive.value.icon = i == null ? void 0 : i.icon;
45
- inactive.value.color = i == null ? void 0 : i.color;
44
+ if (i && typeof i === "object") {
45
+ inactive.value.icon = i == null ? void 0 : i.icon;
46
+ inactive.value.color = i == null ? void 0 : i.color;
47
+ }
46
48
  const a = props.options[1];
47
49
  active.value.text = useVueValue(a, props.label);
48
50
  const va = useVueValue(a, props.prop);
@@ -51,8 +53,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
53
  } else {
52
54
  active.value.value = va;
53
55
  }
54
- active.value.icon = a == null ? void 0 : a.icon;
55
- active.value.color = a == null ? void 0 : a.color;
56
+ if (a && typeof a === "object") {
57
+ active.value.icon = a == null ? void 0 : a.icon;
58
+ active.value.color = a == null ? void 0 : a.color;
59
+ }
56
60
  }
57
61
  },
58
62
  { immediate: true, deep: true }
@@ -80,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
84
  value2 = "";
81
85
  }
82
86
  emit("update:modelValue", value2);
83
- if (props.optobj) {
87
+ if (props.isOptobj) {
84
88
  const obj = props.options.find((o) => {
85
89
  return useVueValue(o, props.prop) === value2;
86
90
  });
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const comLimit_vue_vue_type_script_setup_true_lang = require("./com-limit2.cjs");
4
+ exports.default = comLimit_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./com-limit2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };