@fangzhongya/fang-ui 0.1.51 → 0.1.53

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 (197) 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.d.ts +5 -0
  23. package/dist/components/edit-data/index.js +9 -0
  24. package/dist/components/edit-data/index.scss +95 -0
  25. package/dist/components/edit-data/src/area/array-json.cjs +4 -0
  26. package/dist/components/edit-data/src/area/array-json.js +4 -0
  27. package/dist/components/edit-data/src/area/array-json2.cjs +109 -0
  28. package/dist/components/edit-data/src/area/array-json2.js +109 -0
  29. package/dist/components/edit-data/src/area/array.cjs +4 -0
  30. package/dist/components/edit-data/src/area/array.js +4 -0
  31. package/dist/components/edit-data/src/area/array2.cjs +135 -0
  32. package/dist/components/edit-data/src/area/array2.js +135 -0
  33. package/dist/components/edit-data/src/area/code.cjs +4 -0
  34. package/dist/components/edit-data/src/area/code.js +4 -0
  35. package/dist/components/edit-data/src/area/code2.cjs +52 -0
  36. package/dist/components/edit-data/src/area/code2.js +52 -0
  37. package/dist/components/edit-data/src/area/editor.cjs +4 -0
  38. package/dist/components/edit-data/src/area/editor.js +4 -0
  39. package/dist/components/edit-data/src/area/editor2.cjs +170 -0
  40. package/dist/components/edit-data/src/area/editor2.js +170 -0
  41. package/dist/components/edit-data/src/area/general.cjs +4 -0
  42. package/dist/components/edit-data/src/area/general.js +4 -0
  43. package/dist/components/edit-data/src/area/general2.cjs +88 -0
  44. package/dist/components/edit-data/src/area/general2.js +88 -0
  45. package/dist/components/edit-data/src/area/object-json.cjs +4 -0
  46. package/dist/components/edit-data/src/area/object-json.js +4 -0
  47. package/dist/components/edit-data/src/area/object-json2.cjs +109 -0
  48. package/dist/components/edit-data/src/area/object-json2.js +109 -0
  49. package/dist/components/edit-data/src/area/object.cjs +4 -0
  50. package/dist/components/edit-data/src/area/object.js +4 -0
  51. package/dist/components/edit-data/src/area/object2.cjs +116 -0
  52. package/dist/components/edit-data/src/area/object2.js +116 -0
  53. package/dist/components/edit-data/src/data/array.cjs +4 -0
  54. package/dist/components/edit-data/src/data/array.js +4 -0
  55. package/dist/components/edit-data/src/data/array2.cjs +68 -0
  56. package/dist/components/edit-data/src/data/array2.js +68 -0
  57. package/dist/components/edit-data/src/data/bigint.cjs +4 -0
  58. package/dist/components/edit-data/src/data/bigint.js +4 -0
  59. package/dist/components/edit-data/src/data/bigint2.cjs +42 -0
  60. package/dist/components/edit-data/src/data/bigint2.js +42 -0
  61. package/dist/components/edit-data/src/data/boolean.cjs +4 -0
  62. package/dist/components/edit-data/src/data/boolean.js +4 -0
  63. package/dist/components/edit-data/src/data/boolean2.cjs +53 -0
  64. package/dist/components/edit-data/src/data/boolean2.js +53 -0
  65. package/dist/components/edit-data/src/data/function.cjs +4 -0
  66. package/dist/components/edit-data/src/data/function.js +4 -0
  67. package/dist/components/edit-data/src/data/function2.cjs +61 -0
  68. package/dist/components/edit-data/src/data/function2.js +61 -0
  69. package/dist/components/edit-data/src/data/not.cjs +4 -0
  70. package/dist/components/edit-data/src/data/not.js +4 -0
  71. package/dist/components/edit-data/src/data/not2.cjs +56 -0
  72. package/dist/components/edit-data/src/data/not2.js +56 -0
  73. package/dist/components/edit-data/src/data/null.cjs +4 -0
  74. package/dist/components/edit-data/src/data/null.js +4 -0
  75. package/dist/components/edit-data/src/data/null2.cjs +24 -0
  76. package/dist/components/edit-data/src/data/null2.js +24 -0
  77. package/dist/components/edit-data/src/data/number.cjs +4 -0
  78. package/dist/components/edit-data/src/data/number.js +4 -0
  79. package/dist/components/edit-data/src/data/number2.cjs +42 -0
  80. package/dist/components/edit-data/src/data/number2.js +42 -0
  81. package/dist/components/edit-data/src/data/object.cjs +4 -0
  82. package/dist/components/edit-data/src/data/object.js +4 -0
  83. package/dist/components/edit-data/src/data/object2.cjs +68 -0
  84. package/dist/components/edit-data/src/data/object2.js +68 -0
  85. package/dist/components/edit-data/src/data/other.cjs +4 -0
  86. package/dist/components/edit-data/src/data/other.js +4 -0
  87. package/dist/components/edit-data/src/data/other2.cjs +59 -0
  88. package/dist/components/edit-data/src/data/other2.js +59 -0
  89. package/dist/components/edit-data/src/data/string.cjs +4 -0
  90. package/dist/components/edit-data/src/data/string.js +4 -0
  91. package/dist/components/edit-data/src/data/string2.cjs +43 -0
  92. package/dist/components/edit-data/src/data/string2.js +43 -0
  93. package/dist/components/edit-data/src/data/symbol.cjs +4 -0
  94. package/dist/components/edit-data/src/data/symbol.js +4 -0
  95. package/dist/components/edit-data/src/data/symbol2.cjs +55 -0
  96. package/dist/components/edit-data/src/data/symbol2.js +55 -0
  97. package/dist/components/edit-data/src/data/undefined.cjs +4 -0
  98. package/dist/components/edit-data/src/data/undefined.js +4 -0
  99. package/dist/components/edit-data/src/data/undefined2.cjs +24 -0
  100. package/dist/components/edit-data/src/data/undefined2.js +24 -0
  101. package/dist/components/edit-data/src/data.cjs +57 -0
  102. package/dist/components/edit-data/src/data.d.ts +131 -0
  103. package/dist/components/edit-data/src/data.js +57 -0
  104. package/dist/components/edit-data/src/index.cjs +4 -0
  105. package/dist/components/edit-data/src/index.js +4 -0
  106. package/dist/components/edit-data/src/index2.cjs +134 -0
  107. package/dist/components/edit-data/src/index2.js +134 -0
  108. package/dist/components/edit-data/src/util.cjs +99 -0
  109. package/dist/components/edit-data/src/util.d.ts +1 -0
  110. package/dist/components/edit-data/src/util.js +99 -0
  111. package/dist/components/edit-data/style/index2.scss +13 -0
  112. package/dist/components/edit-data-add/index.cjs +9 -0
  113. package/dist/components/edit-data-add/index.css +144 -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 +103 -0
  157. package/dist/components/tables/common/com-limit2.js +103 -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-add.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 +12 -11
  196. /package/dist/components/{draggable → keep-com}/index.css +0 -0
  197. /package/dist/css/{draggable.css → keep-com.css} +0 -0
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const util = require("./util.cjs");
5
+ const index = require("../../../hooks/cssname/index.cjs");
6
+ const getAttrValue = require("../../../utils/vues/getAttrValue.cjs");
7
+ const tooltip = require("./tooltip.cjs");
8
+ const _hoisted_1 = ["title"];
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
+ __name: "com-limit",
11
+ props: {
12
+ /**
13
+ * @props { String } maxHeight ( )
14
+ * 最大高度
15
+ */
16
+ maxHeight: { type: String },
17
+ /**
18
+ * @props { Number } lineClamp ( )
19
+ * 超出几行隐藏
20
+ */
21
+ lineClamp: {
22
+ type: Number
23
+ },
24
+ modelValue: {
25
+ type: String
26
+ },
27
+ showOverflow: {
28
+ type: [Boolean, String]
29
+ },
30
+ listobj: {
31
+ type: Object,
32
+ default() {
33
+ return {};
34
+ }
35
+ },
36
+ /**
37
+ * table数据
38
+ * row, column, $index
39
+ *
40
+ */
41
+ valueobj: {
42
+ type: Object,
43
+ default() {
44
+ return {};
45
+ }
46
+ },
47
+ comscope: {
48
+ type: Object,
49
+ default() {
50
+ return {};
51
+ }
52
+ }
53
+ },
54
+ setup(__props) {
55
+ const cs = index.useCssName("com-limit");
56
+ const props = __props;
57
+ const refDom = vue.ref();
58
+ const emptyDisplay = vue.computed(() => {
59
+ var _a, _b;
60
+ return util.setEmptyDisplay(
61
+ props.modelValue,
62
+ (_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
63
+ (_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
64
+ );
65
+ });
66
+ const showOverflow = vue.computed(() => {
67
+ return props.showOverflow ?? getAttrValue.getAttrValue(props.listobj, "showOverflow");
68
+ });
69
+ const title = vue.computed(() => {
70
+ if (showOverflow.value == "title") {
71
+ return props.modelValue;
72
+ }
73
+ });
74
+ const onMouseenter = ($event) => {
75
+ if (showOverflow.value) {
76
+ return handleCellMouseEnter($event, showOverflow.value);
77
+ }
78
+ };
79
+ const handleCellMouseLeave = ($event) => {
80
+ tooltip.hideTooltip($event);
81
+ };
82
+ const handleCellMouseEnter = ($event, showOverflow2) => {
83
+ tooltip.showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
84
+ };
85
+ return (_ctx, _cache) => {
86
+ return emptyDisplay.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
87
+ vue.createTextVNode(vue.toDisplayString(emptyDisplay.value), 1)
88
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("div", {
89
+ key: 1,
90
+ ret: "refDom",
91
+ onMousedown: handleCellMouseLeave,
92
+ onMouseenter,
93
+ class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(cs).is("tooltip", showOverflow.value)]),
94
+ style: vue.normalizeStyle({
95
+ maxHeight: props.maxHeight,
96
+ lineClamp: props.lineClamp
97
+ }),
98
+ title: title.value
99
+ }, vue.toDisplayString(props.modelValue), 47, _hoisted_1));
100
+ };
101
+ }
102
+ });
103
+ exports.default = _sfc_main;
@@ -0,0 +1,103 @@
1
+ import { defineComponent, ref, computed, createElementBlock, openBlock, Fragment, createTextVNode, toDisplayString, normalizeStyle, normalizeClass, unref } from "vue";
2
+ import { setEmptyDisplay } from "./util.js";
3
+ import { useCssName } from "../../../hooks/cssname/index.js";
4
+ import { getAttrValue } from "../../../utils/vues/getAttrValue.js";
5
+ import { hideTooltip, showTooltip } from "./tooltip.js";
6
+ const _hoisted_1 = ["title"];
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "com-limit",
9
+ props: {
10
+ /**
11
+ * @props { String } maxHeight ( )
12
+ * 最大高度
13
+ */
14
+ maxHeight: { type: String },
15
+ /**
16
+ * @props { Number } lineClamp ( )
17
+ * 超出几行隐藏
18
+ */
19
+ lineClamp: {
20
+ type: Number
21
+ },
22
+ modelValue: {
23
+ type: String
24
+ },
25
+ showOverflow: {
26
+ type: [Boolean, String]
27
+ },
28
+ listobj: {
29
+ type: Object,
30
+ default() {
31
+ return {};
32
+ }
33
+ },
34
+ /**
35
+ * table数据
36
+ * row, column, $index
37
+ *
38
+ */
39
+ valueobj: {
40
+ type: Object,
41
+ default() {
42
+ return {};
43
+ }
44
+ },
45
+ comscope: {
46
+ type: Object,
47
+ default() {
48
+ return {};
49
+ }
50
+ }
51
+ },
52
+ setup(__props) {
53
+ const cs = useCssName("com-limit");
54
+ const props = __props;
55
+ const refDom = ref();
56
+ const emptyDisplay = computed(() => {
57
+ var _a, _b;
58
+ return setEmptyDisplay(
59
+ props.modelValue,
60
+ (_a = props.comscope.config) == null ? void 0 : _a.emptyDisplay,
61
+ (_b = props.comscope.config) == null ? void 0 : _b.isEmptyStr
62
+ );
63
+ });
64
+ const showOverflow = computed(() => {
65
+ return props.showOverflow ?? getAttrValue(props.listobj, "showOverflow");
66
+ });
67
+ const title = computed(() => {
68
+ if (showOverflow.value == "title") {
69
+ return props.modelValue;
70
+ }
71
+ });
72
+ const onMouseenter = ($event) => {
73
+ if (showOverflow.value) {
74
+ return handleCellMouseEnter($event, showOverflow.value);
75
+ }
76
+ };
77
+ const handleCellMouseLeave = ($event) => {
78
+ hideTooltip($event);
79
+ };
80
+ const handleCellMouseEnter = ($event, showOverflow2) => {
81
+ showTooltip($event, refDom.value, showOverflow2, props.lineClamp);
82
+ };
83
+ return (_ctx, _cache) => {
84
+ return emptyDisplay.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
85
+ createTextVNode(toDisplayString(emptyDisplay.value), 1)
86
+ ], 64)) : (openBlock(), createElementBlock("div", {
87
+ key: 1,
88
+ ret: "refDom",
89
+ onMousedown: handleCellMouseLeave,
90
+ onMouseenter,
91
+ class: normalizeClass([unref(cs).z(), unref(cs).is("tooltip", showOverflow.value)]),
92
+ style: normalizeStyle({
93
+ maxHeight: props.maxHeight,
94
+ lineClamp: props.lineClamp
95
+ }),
96
+ title: title.value
97
+ }, toDisplayString(props.modelValue), 47, _hoisted_1));
98
+ };
99
+ }
100
+ });
101
+ export {
102
+ _sfc_main as default
103
+ };
@@ -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
+ }