@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
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const index = require("../../../hooks/cssname/index.cjs");
5
+ const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
6
+ const tooltip = require("./tooltip.cjs");
7
+ const _hoisted_1 = ["title"];
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
+ __name: "com-limit",
10
+ props: {
11
+ /**
12
+ * @props { String } maxHeight ( )
13
+ * 最大高度
14
+ */
15
+ maxHeight: { type: String },
16
+ /**
17
+ * @props { Number } lineClamp ( )
18
+ * 超出几行隐藏
19
+ */
20
+ lineClamp: {
21
+ type: Number
22
+ },
23
+ modelValue: {
24
+ type: String
25
+ },
26
+ showOverflow: {
27
+ type: [Boolean, String]
28
+ },
29
+ listobj: {
30
+ type: Object,
31
+ default() {
32
+ return {};
33
+ }
34
+ },
35
+ /**
36
+ * table数据
37
+ * row, column, $index
38
+ *
39
+ */
40
+ valueobj: {
41
+ type: Object,
42
+ default() {
43
+ return {};
44
+ }
45
+ },
46
+ comscope: {
47
+ type: Object,
48
+ default() {
49
+ return {};
50
+ }
51
+ }
52
+ },
53
+ setup(__props) {
54
+ const cs = index.useCssName("com-limit");
55
+ const props = __props;
56
+ const refDom = vue.ref();
57
+ const showOverflow = vue.computed(() => {
58
+ return props.showOverflow ?? getAttrValue.getAttrValue(props.listobj, "showOverflow");
59
+ });
60
+ const title = vue.computed(() => {
61
+ if (showOverflow.value == "title") {
62
+ return props.modelValue;
63
+ }
64
+ });
65
+ const onMouseenter = ($event) => {
66
+ if (showOverflow.value) {
67
+ return handleCellMouseEnter($event, showOverflow.value);
68
+ }
69
+ };
70
+ const handleCellMouseLeave = ($event) => {
71
+ tooltip.hideTooltip($event);
72
+ };
73
+ const handleCellMouseEnter = ($event, showOverflow2) => {
74
+ tooltip.showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
75
+ };
76
+ return (_ctx, _cache) => {
77
+ return vue.openBlock(), vue.createElementBlock("div", {
78
+ ret: "refDom",
79
+ onMousedown: handleCellMouseLeave,
80
+ onMouseenter,
81
+ class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("tooltip", showOverflow.value)]),
82
+ style: vue.normalizeStyle({
83
+ maxHeight: props.maxHeight,
84
+ lineClamp: props.lineClamp
85
+ }),
86
+ title: title.value
87
+ }, vue.toDisplayString(props.modelValue), 47, _hoisted_1);
88
+ };
89
+ }
90
+ });
91
+ exports.default = _sfc_main;
@@ -0,0 +1,91 @@
1
+ import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, toDisplayString } from "vue";
2
+ import { useCssName } from "../../../hooks/cssname/index.js";
3
+ import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
4
+ import { hideTooltip, showTooltip } from "./tooltip.js";
5
+ const _hoisted_1 = ["title"];
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "com-limit",
8
+ props: {
9
+ /**
10
+ * @props { String } maxHeight ( )
11
+ * 最大高度
12
+ */
13
+ maxHeight: { type: String },
14
+ /**
15
+ * @props { Number } lineClamp ( )
16
+ * 超出几行隐藏
17
+ */
18
+ lineClamp: {
19
+ type: Number
20
+ },
21
+ modelValue: {
22
+ type: String
23
+ },
24
+ showOverflow: {
25
+ type: [Boolean, String]
26
+ },
27
+ listobj: {
28
+ type: Object,
29
+ default() {
30
+ return {};
31
+ }
32
+ },
33
+ /**
34
+ * table数据
35
+ * row, column, $index
36
+ *
37
+ */
38
+ valueobj: {
39
+ type: Object,
40
+ default() {
41
+ return {};
42
+ }
43
+ },
44
+ comscope: {
45
+ type: Object,
46
+ default() {
47
+ return {};
48
+ }
49
+ }
50
+ },
51
+ setup(__props) {
52
+ const cs = useCssName("com-limit");
53
+ const props = __props;
54
+ const refDom = ref();
55
+ const showOverflow = computed(() => {
56
+ return props.showOverflow ?? getAttrValue(props.listobj, "showOverflow");
57
+ });
58
+ const title = computed(() => {
59
+ if (showOverflow.value == "title") {
60
+ return props.modelValue;
61
+ }
62
+ });
63
+ const onMouseenter = ($event) => {
64
+ if (showOverflow.value) {
65
+ return handleCellMouseEnter($event, showOverflow.value);
66
+ }
67
+ };
68
+ const handleCellMouseLeave = ($event) => {
69
+ hideTooltip($event);
70
+ };
71
+ const handleCellMouseEnter = ($event, showOverflow2) => {
72
+ showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
73
+ };
74
+ return (_ctx, _cache) => {
75
+ return openBlock(), createElementBlock("div", {
76
+ ret: "refDom",
77
+ onMousedown: handleCellMouseLeave,
78
+ onMouseenter,
79
+ class: normalizeClass([unref(cs).z(), unref(cs).is("tooltip", showOverflow.value)]),
80
+ style: normalizeStyle({
81
+ maxHeight: props.maxHeight,
82
+ lineClamp: props.lineClamp
83
+ }),
84
+ title: title.value
85
+ }, toDisplayString(props.modelValue), 47, _hoisted_1);
86
+ };
87
+ }
88
+ });
89
+ export {
90
+ _sfc_main as default
91
+ };
@@ -0,0 +1,12 @@
1
+ @use '../../scss/common.scss' as *;
2
+
3
+ $limit: 'com-limit';
4
+ @include b($limit) {
5
+ &.#{is('tooltip')} {
6
+ max-height: var(vdm('max-height', $limit));
7
+ display: -webkit-box;
8
+ -webkit-line-clamp: var(vdm('line-clamp', $limit), 1); /* 显示的行数 */
9
+ -webkit-box-orient: vertical;
10
+ text-overflow: ellipsis;
11
+ }
12
+ }
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  :root {
2
3
  --on: rgb(91, 189, 246);
3
4
  --color-primary: #409eff;
@@ -22,6 +23,14 @@
22
23
  line-height: var(--lable-array-height);
23
24
  }
24
25
 
26
+ .com-limit.is-tooltip {
27
+ max-height: var(--com-limit-max-height);
28
+ display: -webkit-box;
29
+ -webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
30
+ -webkit-box-orient: vertical;
31
+ text-overflow: ellipsis;
32
+ }
33
+
25
34
  .tables {
26
35
  width: 100%;
27
36
  min-height: var(--tables-min-height, 70px);
@@ -1,5 +1,7 @@
1
1
  @use '../scss/common.scss' as *;
2
2
 
3
+ @use 'common/com.scss' as *;
4
+
3
5
  $tables: 'tables';
4
6
  @include b($tables) {
5
7
  // height: 100%;
@@ -6,13 +6,15 @@ require("../common/com-but.cjs");
6
6
  require("../common/com-color.cjs");
7
7
  require("../common/com-lis.cjs");
8
8
  require("../common/com-fig.cjs");
9
+ require("../common/com-limit.cjs");
10
+ const comLimit_vue_vue_type_script_setup_true_lang = require("../common/com-limit2.cjs");
9
11
  const comFig_vue_vue_type_script_setup_true_lang = require("../common/com-fig2.cjs");
10
12
  const comLis_vue_vue_type_script_setup_true_lang = require("../common/com-lis2.cjs");
11
13
  const comColor_vue_vue_type_script_setup_true_lang = require("../common/com-color2.cjs");
12
14
  const comBut_vue_vue_type_script_setup_true_lang = require("../common/com-but2.cjs");
13
15
  const _sfc_main = vue.defineComponent({
14
16
  emits: ["list-events"],
15
- components: { But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default },
17
+ components: { But: comBut_vue_vue_type_script_setup_true_lang.default, Color: comColor_vue_vue_type_script_setup_true_lang.default, Lis: comLis_vue_vue_type_script_setup_true_lang.default, Fig: comFig_vue_vue_type_script_setup_true_lang.default, Limit: comLimit_vue_vue_type_script_setup_true_lang.default },
16
18
  expose: [],
17
19
  props: {
18
20
  list: Array,
@@ -4,13 +4,15 @@ import "../common/com-but.js";
4
4
  import "../common/com-color.js";
5
5
  import "../common/com-lis.js";
6
6
  import "../common/com-fig.js";
7
- import _sfc_main$1 from "../common/com-fig2.js";
8
- import _sfc_main$2 from "../common/com-lis2.js";
9
- import _sfc_main$3 from "../common/com-color2.js";
10
- import _sfc_main$4 from "../common/com-but2.js";
7
+ import "../common/com-limit.js";
8
+ import _sfc_main$1 from "../common/com-limit2.js";
9
+ import _sfc_main$2 from "../common/com-fig2.js";
10
+ import _sfc_main$3 from "../common/com-lis2.js";
11
+ import _sfc_main$4 from "../common/com-color2.js";
12
+ import _sfc_main$5 from "../common/com-but2.js";
11
13
  const _sfc_main = defineComponent({
12
14
  emits: ["list-events"],
13
- components: { But: _sfc_main$4, Color: _sfc_main$3, Lis: _sfc_main$2, Fig: _sfc_main$1 },
15
+ components: { But: _sfc_main$5, Color: _sfc_main$4, Lis: _sfc_main$3, Fig: _sfc_main$2, Limit: _sfc_main$1 },
14
16
  expose: [],
15
17
  props: {
16
18
  list: Array,
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  :root {
2
3
  --on: rgb(91, 189, 246);
3
4
  --color-primary: #409eff;
@@ -22,6 +23,14 @@
22
23
  line-height: var(--lable-array-height);
23
24
  }
24
25
 
26
+ .com-limit.is-tooltip {
27
+ max-height: var(--com-limit-max-height);
28
+ display: -webkit-box;
29
+ -webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
30
+ -webkit-box-orient: vertical;
31
+ text-overflow: ellipsis;
32
+ }
33
+
25
34
  .tables {
26
35
  width: 100%;
27
36
  min-height: var(--tables-min-height, 70px);
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  :root {
2
3
  --on: rgb(91, 189, 246);
3
4
  --color-primary: #409eff;
@@ -22,6 +23,14 @@
22
23
  line-height: var(--lable-array-height);
23
24
  }
24
25
 
26
+ .com-limit.is-tooltip {
27
+ max-height: var(--com-limit-max-height);
28
+ display: -webkit-box;
29
+ -webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
30
+ -webkit-box-orient: vertical;
31
+ text-overflow: ellipsis;
32
+ }
33
+
25
34
  .tables {
26
35
  width: 100%;
27
36
  min-height: var(--tables-min-height, 70px);
@@ -78,10 +78,10 @@ export declare const dataProps: {
78
78
  };
79
79
  options: {
80
80
  type: {
81
- (arrayLength: number): ObjAny[];
82
- (...items: ObjAny[]): ObjAny[];
83
- new (arrayLength: number): ObjAny[];
84
- new (...items: ObjAny[]): ObjAny[];
81
+ (arrayLength: number): (string | number | boolean | ObjAny)[];
82
+ (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
83
+ new (arrayLength: number): (string | number | boolean | ObjAny)[];
84
+ new (...items: (string | number | boolean | ObjAny)[]): (string | number | boolean | ObjAny)[];
85
85
  isArray(arg: any): arg is any[];
86
86
  readonly prototype: any[];
87
87
  from<T>(arrayLike: ArrayLike<T>): T[];
@@ -95,9 +95,6 @@ export declare const dataProps: {
95
95
  };
96
96
  default(): never[];
97
97
  };
98
- clearAbsent: {
99
- type: BooleanConstructor;
100
- };
101
98
  label: {
102
99
  type: (StringConstructor | FunctionConstructor)[];
103
100
  default: string;
@@ -112,11 +109,17 @@ export declare const dataProps: {
112
109
  multiple: {
113
110
  type: (BooleanConstructor | StringConstructor)[];
114
111
  };
115
- load: {
116
- type: BooleanConstructor[];
112
+ isLoad: {
113
+ type: BooleanConstructor;
114
+ };
115
+ isClearAbsent: {
116
+ type: BooleanConstructor;
117
+ };
118
+ isOptobj: {
119
+ type: BooleanConstructor;
117
120
  };
118
- optobj: {
119
- type: BooleanConstructor[];
121
+ default: {
122
+ type: null;
120
123
  };
121
124
  };
122
125
  export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
@@ -0,0 +1,144 @@
1
+ :root {
2
+ --on: rgb(91, 189, 246);
3
+ --color-primary: #409eff;
4
+ --bag-primary: #409eff;
5
+ --bag-primary-text: #ffffff;
6
+ --border: #eee;
7
+ --layout-panel-gap: 10px;
8
+ --layout-panel-padding: 20px;
9
+ --layout-form-item-padding-right: var(
10
+ --layout-panel-gap
11
+ );
12
+ --g-main-bg: var(--bg-color-page);
13
+ --lable-array-height: 20px;
14
+ }
15
+
16
+ .com-footer {
17
+ border-top: 1px solid var(--border);
18
+ padding: 20px 20px;
19
+ }
20
+
21
+ .com-lable-array {
22
+ line-height: var(--lable-array-height);
23
+ }
24
+
25
+ .edit-data-add {
26
+ width: 100%;
27
+ height: 100%;
28
+ display: flex;
29
+ flex-direction: column;
30
+ }
31
+ .edit-data-add-main {
32
+ flex: 1;
33
+ width: 100%;
34
+ display: flex;
35
+ flex-direction: column;
36
+ }
37
+ .edit-data-add-main-top {
38
+ width: 100%;
39
+ }
40
+ .edit-data-add-main-top-li {
41
+ display: flex;
42
+ align-items: center;
43
+ padding: 10px;
44
+ }
45
+ .edit-data-add-main-top-li-value {
46
+ flex: 1;
47
+ }
48
+ .edit-data-add-main-content {
49
+ flex: 1;
50
+ width: 100%;
51
+ margin: 10px;
52
+ }
53
+ .edit-data-add-main-content-name {
54
+ margin-bottom: 10px;
55
+ }
56
+ .edit-data-add-footer {
57
+ padding-top: 20px;
58
+ text-align: right;
59
+ }
60
+
61
+ .edit-data-general-set {
62
+ display: flex;
63
+ align-items: center;
64
+ }
65
+ .edit-data-editor {
66
+ width: 100%;
67
+ height: 100%;
68
+ display: flex;
69
+ flex-direction: column;
70
+ }
71
+ .edit-data-editor-main {
72
+ flex: 1;
73
+ position: relative;
74
+ }
75
+ .edit-data-editor-content {
76
+ position: absolute;
77
+ inset: 0;
78
+ overflow-y: auto;
79
+ }
80
+ .edit-data-editor-content .edit-data-code {
81
+ height: 100%;
82
+ width: 100%;
83
+ }
84
+ .edit-data-editor-content .edit-data-code .inputs {
85
+ height: 100%;
86
+ width: 100%;
87
+ }
88
+ .edit-data-editor-content .edit-data-code .inputs textarea {
89
+ height: 100%;
90
+ width: 100%;
91
+ }
92
+ .edit-data-editor-footer {
93
+ padding-top: 20px;
94
+ text-align: right;
95
+ }
96
+ .edit-data-area-array, .edit-data-area-object {
97
+ width: 100%;
98
+ height: 100%;
99
+ display: flex;
100
+ flex-direction: column;
101
+ }
102
+ .edit-data-area-array-main, .edit-data-area-object-main {
103
+ flex: 1;
104
+ width: 100%;
105
+ position: relative;
106
+ }
107
+ .edit-data-area-array-content, .edit-data-area-object-content {
108
+ position: absolute;
109
+ inset: 0;
110
+ overflow-y: auto;
111
+ }
112
+ .edit-data-area-array-json, .edit-data-area-object-json {
113
+ width: 100%;
114
+ height: 100%;
115
+ }
116
+ .edit-data-area-array-json .tabs, .edit-data-area-object-json .tabs {
117
+ width: 100%;
118
+ height: 100%;
119
+ }
120
+ .edit-data-area-array-json .tabs .tab-pane, .edit-data-area-object-json .tabs .tab-pane {
121
+ position: absolute;
122
+ inset: 0;
123
+ overflow-y: auto;
124
+ }
125
+ .edit-data-area-array-add, .edit-data-area-object-add {
126
+ margin-bottom: 10px;
127
+ }
128
+ .edit-data-area-comp {
129
+ width: 100%;
130
+ }
131
+ .edit-data-area-comp-li {
132
+ min-height: 40px;
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: space-between;
136
+ }
137
+ .edit-data-area-comp-li-div {
138
+ flex: 1;
139
+ display: flex;
140
+ align-items: center;
141
+ }
142
+ .edit-data-area-comp-li-name {
143
+ padding: 0 10px;
144
+ }
@@ -1095,6 +1095,14 @@
1095
1095
  white-space: pre-wrap;
1096
1096
  }
1097
1097
 
1098
+ .com-limit.is-tooltip {
1099
+ max-height: var(--com-limit-max-height);
1100
+ display: -webkit-box;
1101
+ -webkit-line-clamp: var(--com-limit-line-clamp, 1); /* 显示的行数 */
1102
+ -webkit-box-orient: vertical;
1103
+ text-overflow: ellipsis;
1104
+ }
1105
+
1098
1106
  .tables {
1099
1107
  width: 100%;
1100
1108
  min-height: var(--tables-min-height, 70px);
@@ -1452,9 +1460,17 @@
1452
1460
  .retract {
1453
1461
  position: relative;
1454
1462
  }
1463
+ .retract-div.left, .retract-div.right {
1464
+ height: 100%;
1465
+ display: flex;
1466
+ }
1467
+ .retract-div.top, .retract-div.bottom {
1468
+ width: 100%;
1469
+ }
1455
1470
  .retract .retract-but {
1456
1471
  position: absolute;
1457
1472
  background-color: rgba(201, 201, 201, 0.5);
1473
+ z-index: 1000;
1458
1474
  }
1459
1475
  .retract .retract-but .retract-icon {
1460
1476
  width: 100%;
@@ -1477,6 +1493,9 @@
1477
1493
  margin-top: -25px;
1478
1494
  left: -20px;
1479
1495
  }
1496
+ .retract .retract-but.is-left.is-adjust {
1497
+ left: -10px;
1498
+ }
1480
1499
  .retract .retract-but.is-left .retract-icon {
1481
1500
  transform: rotate(0);
1482
1501
  }
@@ -1490,6 +1509,9 @@
1490
1509
  margin-top: -25px;
1491
1510
  right: -20px;
1492
1511
  }
1512
+ .retract .retract-but.is-right.is-adjust {
1513
+ right: -10px;
1514
+ }
1493
1515
  .retract .retract-but.is-right .retract-icon {
1494
1516
  transform: rotate(-180deg);
1495
1517
  }
@@ -1503,6 +1525,9 @@
1503
1525
  margin-left: -25px;
1504
1526
  top: -20px;
1505
1527
  }
1528
+ .retract .retract-but.is-top.is-adjust {
1529
+ top: -10px;
1530
+ }
1506
1531
  .retract .retract-but.is-top .retract-icon {
1507
1532
  transform: rotate(90deg);
1508
1533
  }
@@ -1516,6 +1541,9 @@
1516
1541
  margin-left: -25px;
1517
1542
  bottom: -20px;
1518
1543
  }
1544
+ .retract .retract-but.is-bottom.is-adjust {
1545
+ bottom: -10px;
1546
+ }
1519
1547
  .retract .retract-but.is-bottom .retract-icon {
1520
1548
  transform: rotate(-90deg);
1521
1549
  }
@@ -1540,6 +1568,127 @@
1540
1568
  width: 120px;
1541
1569
  }
1542
1570
 
1571
+ .edit-data-add {
1572
+ width: 100%;
1573
+ height: 100%;
1574
+ display: flex;
1575
+ flex-direction: column;
1576
+ }
1577
+ .edit-data-add-main {
1578
+ flex: 1;
1579
+ width: 100%;
1580
+ display: flex;
1581
+ flex-direction: column;
1582
+ }
1583
+ .edit-data-add-main-top {
1584
+ width: 100%;
1585
+ }
1586
+ .edit-data-add-main-top-li {
1587
+ display: flex;
1588
+ align-items: center;
1589
+ padding: 10px;
1590
+ }
1591
+ .edit-data-add-main-top-li-value {
1592
+ flex: 1;
1593
+ }
1594
+ .edit-data-add-main-content {
1595
+ flex: 1;
1596
+ width: 100%;
1597
+ margin: 10px;
1598
+ }
1599
+ .edit-data-add-main-content-name {
1600
+ margin-bottom: 10px;
1601
+ }
1602
+ .edit-data-add-footer {
1603
+ padding-top: 20px;
1604
+ text-align: right;
1605
+ }
1606
+
1607
+ .edit-data-general-set {
1608
+ display: flex;
1609
+ align-items: center;
1610
+ }
1611
+ .edit-data-editor {
1612
+ width: 100%;
1613
+ height: 100%;
1614
+ display: flex;
1615
+ flex-direction: column;
1616
+ }
1617
+ .edit-data-editor-main {
1618
+ flex: 1;
1619
+ position: relative;
1620
+ }
1621
+ .edit-data-editor-content {
1622
+ position: absolute;
1623
+ inset: 0;
1624
+ overflow-y: auto;
1625
+ }
1626
+ .edit-data-editor-content .edit-data-code {
1627
+ height: 100%;
1628
+ width: 100%;
1629
+ }
1630
+ .edit-data-editor-content .edit-data-code .inputs {
1631
+ height: 100%;
1632
+ width: 100%;
1633
+ }
1634
+ .edit-data-editor-content .edit-data-code .inputs textarea {
1635
+ height: 100%;
1636
+ width: 100%;
1637
+ }
1638
+ .edit-data-editor-footer {
1639
+ padding-top: 20px;
1640
+ text-align: right;
1641
+ }
1642
+ .edit-data-area-array, .edit-data-area-object {
1643
+ width: 100%;
1644
+ height: 100%;
1645
+ display: flex;
1646
+ flex-direction: column;
1647
+ }
1648
+ .edit-data-area-array-main, .edit-data-area-object-main {
1649
+ flex: 1;
1650
+ width: 100%;
1651
+ position: relative;
1652
+ }
1653
+ .edit-data-area-array-content, .edit-data-area-object-content {
1654
+ position: absolute;
1655
+ inset: 0;
1656
+ overflow-y: auto;
1657
+ }
1658
+ .edit-data-area-array-json, .edit-data-area-object-json {
1659
+ width: 100%;
1660
+ height: 100%;
1661
+ }
1662
+ .edit-data-area-array-json .tabs, .edit-data-area-object-json .tabs {
1663
+ width: 100%;
1664
+ height: 100%;
1665
+ }
1666
+ .edit-data-area-array-json .tabs .tab-pane, .edit-data-area-object-json .tabs .tab-pane {
1667
+ position: absolute;
1668
+ inset: 0;
1669
+ overflow-y: auto;
1670
+ }
1671
+ .edit-data-area-array-add, .edit-data-area-object-add {
1672
+ margin-bottom: 10px;
1673
+ }
1674
+ .edit-data-area-comp {
1675
+ width: 100%;
1676
+ }
1677
+ .edit-data-area-comp-li {
1678
+ min-height: 40px;
1679
+ display: flex;
1680
+ align-items: center;
1681
+ justify-content: space-between;
1682
+ }
1683
+ .edit-data-area-comp-li-div {
1684
+ flex: 1;
1685
+ display: flex;
1686
+ align-items: center;
1687
+ }
1688
+ .edit-data-area-comp-li-name {
1689
+ padding: 0 10px;
1690
+ }
1691
+
1543
1692
  .edit-float-body {
1544
1693
  display: inline-flex;
1545
1694
  align-items: center;
package/dist/css/page.css CHANGED
@@ -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);