@fangzhongya/fang-ui 0.1.45 → 0.1.47

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 (121) hide show
  1. package/dist/components/cascaders/index.css +6 -0
  2. package/dist/components/cascaders/index.scss +6 -0
  3. package/dist/components/common/compons/components.cjs +0 -16
  4. package/dist/components/common/compons/components.d.ts +0 -8
  5. package/dist/components/common/compons/components.js +0 -16
  6. package/dist/components/common/compons/index.scss +0 -8
  7. package/dist/components/common/compons/index2.scss +0 -8
  8. package/dist/components/common/css.cjs +0 -1
  9. package/dist/components/common/css.js +0 -1
  10. package/dist/components/date-picker/style/element.scss +1 -1
  11. package/dist/components/dates-divide/index.css +6 -0
  12. package/dist/components/dates-divide/index.scss +6 -0
  13. package/dist/components/dates-divide/src/index2.cjs +4 -2
  14. package/dist/components/dates-divide/src/index2.js +4 -2
  15. package/dist/components/dates-picker/index.css +2 -2
  16. package/dist/components/dates-picker/index.scss +4 -4
  17. package/dist/components/dates-picker/src/index2.cjs +2 -1
  18. package/dist/components/dates-picker/src/index2.js +2 -1
  19. package/dist/components/dates2/index.css +9 -0
  20. package/dist/components/dates2/index.scss +3 -0
  21. package/dist/components/dates2/src/index2.cjs +6 -4
  22. package/dist/components/dates2/src/index2.js +6 -4
  23. package/dist/components/double/index.css +45 -10
  24. package/dist/components/double/index.scss +30 -17
  25. package/dist/components/double/src/data.cjs +24 -5
  26. package/dist/components/double/src/data.d.ts +23 -1
  27. package/dist/components/double/src/data.js +24 -5
  28. package/dist/components/double/src/index2.cjs +129 -64
  29. package/dist/components/double/src/index2.js +126 -61
  30. package/dist/components/double/style/index2.scss +1 -0
  31. package/dist/components/forms/common/config.cjs +3 -2
  32. package/dist/components/forms/common/config.js +3 -2
  33. package/dist/components/forms/index.css +74 -162
  34. package/dist/components/forms/src/setup.cjs +1 -2
  35. package/dist/components/forms/src/setup.js +1 -2
  36. package/dist/components/forms/src/util.cjs +30 -33
  37. package/dist/components/forms/src/util.js +29 -32
  38. package/dist/components/forms-item/index.css +3 -0
  39. package/dist/components/forms-item/index.scss +5 -0
  40. package/dist/components/forms-items/index.css +3 -0
  41. package/dist/components/forms-items/src/index2.cjs +1 -2
  42. package/dist/components/forms-items/src/index2.js +1 -2
  43. package/dist/components/input-history/index.css +3 -0
  44. package/dist/components/input-history/index.scss +3 -1
  45. package/dist/components/input-history/src/data.d.ts +1 -0
  46. package/dist/components/input-history/src/index2.cjs +23 -19
  47. package/dist/components/input-history/src/index2.js +15 -11
  48. package/dist/components/input-select/index.css +35 -7
  49. package/dist/components/input-select/index.scss +10 -7
  50. package/dist/components/input-select/src/index2.cjs +26 -19
  51. package/dist/components/input-select/src/index2.js +23 -16
  52. package/dist/components/input-select/style/index2.scss +2 -1
  53. package/dist/components/list/index.css +15 -14
  54. package/dist/components/list/index.scss +21 -19
  55. package/dist/components/list/src/index2.cjs +60 -41
  56. package/dist/components/list/src/index2.js +61 -42
  57. package/dist/components/lists/index.css +15 -14
  58. package/dist/components/lists/src/index2.cjs +1 -2
  59. package/dist/components/lists/src/index2.js +1 -2
  60. package/dist/components/listsp/index.css +15 -14
  61. package/dist/components/listspd/index.css +15 -14
  62. package/dist/components/page/index.css +94 -176
  63. package/dist/components/scss/function.scss +3 -1
  64. package/dist/components/select-scroll/src/index2.cjs +1 -1
  65. package/dist/components/select-scroll/src/index2.js +2 -2
  66. package/dist/components/selector/index.css +50 -10
  67. package/dist/components/selector/index.scss +5 -0
  68. package/dist/components/selector/src/data.cjs +7 -3
  69. package/dist/components/selector/src/data.d.ts +8 -4
  70. package/dist/components/selector/src/data.js +7 -3
  71. package/dist/components/selector/src/index2.cjs +127 -91
  72. package/dist/components/selector/src/index2.js +124 -88
  73. package/dist/components/tables/common/pagin.cjs +1 -1
  74. package/dist/components/tables/common/pagin.d.ts +4 -4
  75. package/dist/components/tables/common/pagin.js +1 -1
  76. package/dist/components/tables/common/tooltip.cjs +1 -1
  77. package/dist/components/tables/common/tooltip.js +1 -1
  78. package/dist/components/tables/index.css +5 -0
  79. package/dist/components/tables/index.scss +3 -0
  80. package/dist/components/tables/src/data.cjs +1 -3
  81. package/dist/components/tables/src/data.d.ts +1 -1
  82. package/dist/components/tables/src/data.js +1 -3
  83. package/dist/components/tables/src/index2.cjs +9 -3
  84. package/dist/components/tables/src/index2.js +10 -4
  85. package/dist/components/tablesp/index.css +5 -0
  86. package/dist/components/tablespd/index.css +5 -0
  87. package/dist/components/tablesv/src/data.cjs +1 -3
  88. package/dist/components/tablesv/src/data.d.ts +1 -1
  89. package/dist/components/tablesv/src/data.js +1 -3
  90. package/dist/components/tablesv/src/index2.cjs +9 -3
  91. package/dist/components/tablesv/src/index2.js +10 -4
  92. package/dist/css/cascaders.css +6 -0
  93. package/dist/css/dates-divide.css +6 -0
  94. package/dist/css/dates-picker.css +2 -2
  95. package/dist/css/dates2.css +9 -0
  96. package/dist/css/double.css +45 -10
  97. package/dist/css/forms-item.css +3 -0
  98. package/dist/css/forms-items.css +3 -0
  99. package/dist/css/forms.css +74 -162
  100. package/dist/css/index.css +247 -200
  101. package/dist/css/input-history.css +3 -0
  102. package/dist/css/input-select.css +35 -7
  103. package/dist/css/list.css +15 -14
  104. package/dist/css/lists.css +15 -14
  105. package/dist/css/listsp.css +15 -14
  106. package/dist/css/listspd.css +15 -14
  107. package/dist/css/page.css +94 -176
  108. package/dist/css/selector.css +50 -10
  109. package/dist/css/tables.css +5 -0
  110. package/dist/css/tablesp.css +5 -0
  111. package/dist/css/tablespd.css +5 -0
  112. package/dist/icons/index.json +1 -1
  113. package/dist/index.css +247 -200
  114. package/dist/type.d.ts +2 -2
  115. package/dist/utils/css.cjs +0 -10
  116. package/dist/utils/css.d.ts +0 -2
  117. package/dist/utils/css.js +1 -5
  118. package/dist/utils/vues/buildProps.d.ts +5 -0
  119. package/package.json +4 -4
  120. /package/dist/components/{keep-com → alert}/index.css +0 -0
  121. /package/dist/css/{keep-com.css → alert.css} +0 -0
@@ -7,7 +7,6 @@ const dataProps = {
7
7
  type: Boolean,
8
8
  default: true
9
9
  },
10
- disabled: { type: Boolean, default: false },
11
10
  width: {
12
11
  type: [String, Number],
13
12
  default: "320px"
@@ -28,9 +27,14 @@ const dataProps = {
28
27
  },
29
28
  modelValue: {
30
29
  type: Array
31
- }
30
+ },
31
+ /**
32
+ * @props { Boolean } disabled=false
33
+ * 是否禁用
34
+ */
35
+ disabled: { type: Boolean, default: false }
32
36
  };
33
- const dataEmits = ["update:modelValue", "change"];
37
+ const dataEmits = ["update:modelValue", "change", "blur", "focus"];
34
38
  const dataSlot = {
35
39
  default: "default"
36
40
  };
@@ -1,16 +1,18 @@
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("../../popover/index.cjs");
5
- const index$5 = require("../../button/index.cjs");
6
- const index$6 = require("../../double/index.cjs");
7
- const index$7 = require("../../inputs/index.cjs");
8
- const index$4 = require("../../select-scroll/index.cjs");
4
+ const index$4 = require("../../popover/index.cjs");
5
+ const index$6 = require("../../button/index.cjs");
6
+ const index$7 = require("../../double/index.cjs");
7
+ const index$8 = require("../../input/index.cjs");
8
+ const index$5 = require("../../select-scroll/index.cjs");
9
9
  const use = require("../../common/use.cjs");
10
10
  const data = require("./data.cjs");
11
11
  const index$1 = require("../../../hooks/cssname/index.cjs");
12
12
  const index$2 = require("../../../hooks/props-default/index.cjs");
13
13
  const index = require("../../../hooks/locale/index.cjs");
14
+ require("../../form/index.cjs");
15
+ const index$3 = require("element-plus/es/components/form/index");
14
16
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
17
  __name: "index",
16
18
  props: index$2.getProps(data.dataProps),
@@ -21,8 +23,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
23
  const prs = __props;
22
24
  const props = index$2.usePropsDefault(data.name, prs, data.dataProps);
23
25
  const emit = __emit;
26
+ const visible = vue.ref(false);
27
+ const disabled = index$3.useDisabled();
28
+ const refDouble = vue.ref();
24
29
  const data$1 = vue.reactive({
25
- timeShow: false,
26
30
  sname: "",
27
31
  ename: "",
28
32
  startVal: 0,
@@ -30,12 +34,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
30
34
  endVal: props.options.length - 1
31
35
  //结束框value值
32
36
  });
33
- const isShow = vue.ref(false);
34
- function onMousemove() {
35
- isShow.value = true;
37
+ const mouse = vue.ref(false);
38
+ function onMouseenter() {
39
+ mouse.value = true;
36
40
  }
37
- function onMouseout() {
38
- isShow.value = false;
41
+ function onMouseleave() {
42
+ mouse.value = false;
39
43
  }
40
44
  vue.watch(
41
45
  [() => props.options, () => props.modelValue],
@@ -46,6 +50,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
50
  );
47
51
  const zindex = vue.ref(0);
48
52
  const yindex = vue.ref(0);
53
+ const onClick = () => {
54
+ if (!visible.value) {
55
+ visible.value = true;
56
+ }
57
+ };
58
+ function onClickList() {
59
+ }
60
+ function onFocus(...arr) {
61
+ emit("focus", ...arr);
62
+ }
63
+ function onBlur(...arr) {
64
+ emit("blur", ...arr);
65
+ if (visible.value) {
66
+ visible.value = false;
67
+ }
68
+ }
49
69
  function setElValue(val) {
50
70
  let arr = props.options;
51
71
  let at = arr.length;
@@ -93,9 +113,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
93
113
  data$1.ename = "";
94
114
  zindex.value = 0;
95
115
  yindex.value = 0;
96
- emit("update:modelValue", null);
97
- emit("change", null);
98
- data$1.timeShow = false;
116
+ emit("update:modelValue", void 0);
117
+ emit("change", void 0);
118
+ if (visible.value) {
119
+ visible.value = false;
120
+ }
99
121
  }
100
122
  function onDetermine() {
101
123
  data$1.startVal = zindex.value;
@@ -109,97 +131,111 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
109
131
  use.useVueValue(eo, props.prop)
110
132
  ];
111
133
  emit("update:modelValue", value);
112
- data$1.timeShow = false;
113
134
  emit("change", value, [so, eo]);
135
+ if (visible.value) {
136
+ visible.value = false;
137
+ }
138
+ }
139
+ function focus() {
140
+ var _a;
141
+ (_a = refDouble.value) == null ? void 0 : _a.focus();
114
142
  }
115
143
  __expose({
116
- ...data.dataExpose
144
+ ...data.dataExpose,
145
+ focus
117
146
  });
118
147
  return (_ctx, _cache) => {
119
- return vue.openBlock(), vue.createBlock(vue.unref(index$3.Popover), {
120
- onAfterEnter: afterEnter,
121
- placement: "bottom",
122
- "popper-class": vue.unref(cs).z("popper"),
123
- trigger: "click",
124
- width: vue.unref(props).width,
125
- disabled: vue.unref(props).disabled,
126
- visible: data$1.timeShow
127
- }, {
128
- reference: vue.withCtx(() => [
129
- vue.createVNode(vue.unref(index$6.Double), {
130
- rangeSeparator: vue.unref(props).rangeSeparator,
131
- startPlaceholder: vue.unref(props).startPlaceholder,
132
- endPlaceholder: vue.unref(props).endPlaceholder,
133
- readonly: "",
134
- clearable: vue.unref(props).clearable,
135
- modelValue: [data$1.sname, data$1.ename],
136
- onFocus: _cache[0] || (_cache[0] = ($event) => data$1.timeShow = true),
137
- onClear: onCancel,
138
- compon: vue.unref(index$7.Inputs)
139
- }, null, 8, ["rangeSeparator", "startPlaceholder", "endPlaceholder", "clearable", "modelValue", "compon"])
140
- ]),
141
- default: vue.withCtx(() => [
142
- vue.createElementVNode("div", {
143
- class: vue.normalizeClass(vue.unref(cs).z("select"))
144
- }, [
148
+ return vue.openBlock(), vue.createElementBlock("div", {
149
+ class: vue.normalizeClass(vue.unref(cs).z())
150
+ }, [
151
+ vue.createVNode(vue.unref(index$4.Popover), {
152
+ onAfterEnter: afterEnter,
153
+ placement: "bottom",
154
+ "popper-class": vue.unref(cs).z("popper"),
155
+ trigger: "click",
156
+ width: vue.unref(props).width,
157
+ disabled: vue.unref(disabled),
158
+ visible: visible.value
159
+ }, {
160
+ reference: vue.withCtx(() => [
161
+ vue.createVNode(vue.unref(index$7.Double), {
162
+ ref_key: "refDouble",
163
+ ref: refDouble,
164
+ class: vue.normalizeClass(vue.unref(cs).z("double")),
165
+ rangeSeparator: vue.unref(props).rangeSeparator,
166
+ startPlaceholder: vue.unref(props).startPlaceholder,
167
+ endPlaceholder: vue.unref(props).endPlaceholder,
168
+ disabled: vue.unref(disabled),
169
+ config: {
170
+ readonly: true
171
+ },
172
+ clearable: vue.unref(props).clearable,
173
+ "model-value": [data$1.sname, data$1.ename],
174
+ mouse: mouse.value,
175
+ onClick: vue.withModifiers(onClick, ["stop"]),
176
+ onFocus,
177
+ onClear: onCancel,
178
+ onBlur,
179
+ compon: vue.unref(index$8.Input)
180
+ }, null, 8, ["class", "rangeSeparator", "startPlaceholder", "endPlaceholder", "disabled", "clearable", "model-value", "mouse", "compon"])
181
+ ]),
182
+ default: vue.withCtx(() => [
145
183
  vue.createElementVNode("div", {
146
- class: vue.normalizeClass(vue.unref(cs).z("select-list"))
184
+ onMouseenter,
185
+ onMouseleave,
186
+ onClick: vue.withModifiers(onClickList, ["stop"]),
187
+ class: vue.normalizeClass(vue.unref(cs).z("select"))
147
188
  }, [
148
189
  vue.createElementVNode("div", {
149
- class: vue.normalizeClass(vue.unref(cs).z("select-list-li"))
190
+ class: vue.normalizeClass(vue.unref(cs).z("select-list"))
150
191
  }, [
151
192
  vue.createElementVNode("div", {
152
- class: vue.normalizeClass(vue.unref(cs).z("select-list-title"))
153
- }, vue.toDisplayString(vue.unref(props).startPlaceholder), 3),
154
- vue.createVNode(vue.unref(index$4.SelectScroll), {
155
- modelValue: zindex.value,
156
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => zindex.value = $event),
157
- max: yindex.value,
158
- label: vue.unref(props).label,
159
- options: vue.unref(props).options
160
- }, null, 8, ["modelValue", "max", "label", "options"])
193
+ class: vue.normalizeClass(vue.unref(cs).z("select-list-li"))
194
+ }, [
195
+ vue.createElementVNode("div", {
196
+ class: vue.normalizeClass(vue.unref(cs).z("select-list-title"))
197
+ }, vue.toDisplayString(vue.unref(props).startPlaceholder), 3),
198
+ vue.createVNode(vue.unref(index$5.SelectScroll), {
199
+ modelValue: zindex.value,
200
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => zindex.value = $event),
201
+ max: yindex.value,
202
+ label: vue.unref(props).label,
203
+ options: vue.unref(props).options
204
+ }, null, 8, ["modelValue", "max", "label", "options"])
205
+ ], 2),
206
+ vue.createElementVNode("div", {
207
+ class: vue.normalizeClass(vue.unref(cs).z("select-list-li"))
208
+ }, [
209
+ vue.createElementVNode("div", {
210
+ class: vue.normalizeClass(vue.unref(cs).z("select-list-title"))
211
+ }, vue.toDisplayString(vue.unref(props).endPlaceholder), 3),
212
+ vue.createVNode(vue.unref(index$5.SelectScroll), {
213
+ min: zindex.value,
214
+ modelValue: yindex.value,
215
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => yindex.value = $event),
216
+ label: vue.unref(props).label,
217
+ options: vue.unref(props).options
218
+ }, null, 8, ["min", "modelValue", "label", "options"])
219
+ ], 2)
161
220
  ], 2),
162
221
  vue.createElementVNode("div", {
163
- class: vue.normalizeClass(vue.unref(cs).z("select-list-li"))
222
+ class: vue.normalizeClass(vue.unref(cs).z("select-buts"))
164
223
  }, [
165
- vue.createElementVNode("div", {
166
- class: vue.normalizeClass(vue.unref(cs).z("select-list-title"))
167
- }, vue.toDisplayString(vue.unref(props).endPlaceholder), 3),
168
- vue.createVNode(vue.unref(index$4.SelectScroll), {
169
- min: zindex.value,
170
- modelValue: yindex.value,
171
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => yindex.value = $event),
172
- label: vue.unref(props).label,
173
- options: vue.unref(props).options
174
- }, null, 8, ["min", "modelValue", "label", "options"])
224
+ vue.createVNode(vue.unref(index$6.Button), {
225
+ type: "primary",
226
+ onClick: onDetermine
227
+ }, {
228
+ default: vue.withCtx(() => [
229
+ vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("form.confirm")), 1)
230
+ ]),
231
+ _: 1
232
+ })
175
233
  ], 2)
176
- ], 2),
177
- vue.createElementVNode("div", {
178
- class: vue.normalizeClass(vue.unref(cs).z("select-buts"))
179
- }, [
180
- vue.createVNode(vue.unref(index$5.Button), {
181
- text: "",
182
- onClick: vue.withModifiers(onCancel, ["stop"])
183
- }, {
184
- default: vue.withCtx(() => [
185
- vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("close")), 1)
186
- ]),
187
- _: 1
188
- }),
189
- vue.createVNode(vue.unref(index$5.Button), {
190
- type: "primary",
191
- onClick: vue.withModifiers(onDetermine, ["stop"])
192
- }, {
193
- default: vue.withCtx(() => [
194
- vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("form.confirm")), 1)
195
- ]),
196
- _: 1
197
- })
198
- ], 2)
199
- ], 2)
200
- ]),
201
- _: 1
202
- }, 8, ["popper-class", "width", "disabled", "visible"]);
234
+ ], 34)
235
+ ]),
236
+ _: 1
237
+ }, 8, ["popper-class", "width", "disabled", "visible"])
238
+ ], 2);
203
239
  };
204
240
  }
205
241
  });
@@ -1,14 +1,16 @@
1
- import { defineComponent, reactive, ref, watch, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createVNode, toDisplayString, withModifiers, createTextVNode } from "vue";
1
+ import { defineComponent, ref, reactive, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createElementVNode, withModifiers, toDisplayString, createTextVNode } from "vue";
2
2
  import { Popover } from "../../popover/index.js";
3
3
  import { Button } from "../../button/index.js";
4
4
  import { Double } from "../../double/index.js";
5
- import { Inputs } from "../../inputs/index.js";
5
+ import { Input } from "../../input/index.js";
6
6
  import { SelectScroll } from "../../select-scroll/index.js";
7
7
  import { useVueValue } from "../../common/use.js";
8
8
  import { name, dataProps, dataExpose, dataEmits } from "./data.js";
9
9
  import { useCssName } from "../../../hooks/cssname/index.js";
10
10
  import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
11
11
  import { useLocale } from "../../../hooks/locale/index.js";
12
+ import "../../form/index.js";
13
+ import { useDisabled } from "element-plus/es/components/form/index";
12
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
15
  __name: "index",
14
16
  props: getProps(dataProps),
@@ -19,8 +21,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
21
  const prs = __props;
20
22
  const props = usePropsDefault(name, prs, dataProps);
21
23
  const emit = __emit;
24
+ const visible = ref(false);
25
+ const disabled = useDisabled();
26
+ const refDouble = ref();
22
27
  const data = reactive({
23
- timeShow: false,
24
28
  sname: "",
25
29
  ename: "",
26
30
  startVal: 0,
@@ -28,12 +32,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
32
  endVal: props.options.length - 1
29
33
  //结束框value值
30
34
  });
31
- const isShow = ref(false);
32
- function onMousemove() {
33
- isShow.value = true;
35
+ const mouse = ref(false);
36
+ function onMouseenter() {
37
+ mouse.value = true;
34
38
  }
35
- function onMouseout() {
36
- isShow.value = false;
39
+ function onMouseleave() {
40
+ mouse.value = false;
37
41
  }
38
42
  watch(
39
43
  [() => props.options, () => props.modelValue],
@@ -44,6 +48,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
48
  );
45
49
  const zindex = ref(0);
46
50
  const yindex = ref(0);
51
+ const onClick = () => {
52
+ if (!visible.value) {
53
+ visible.value = true;
54
+ }
55
+ };
56
+ function onClickList() {
57
+ }
58
+ function onFocus(...arr) {
59
+ emit("focus", ...arr);
60
+ }
61
+ function onBlur(...arr) {
62
+ emit("blur", ...arr);
63
+ if (visible.value) {
64
+ visible.value = false;
65
+ }
66
+ }
47
67
  function setElValue(val) {
48
68
  let arr = props.options;
49
69
  let at = arr.length;
@@ -91,9 +111,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
111
  data.ename = "";
92
112
  zindex.value = 0;
93
113
  yindex.value = 0;
94
- emit("update:modelValue", null);
95
- emit("change", null);
96
- data.timeShow = false;
114
+ emit("update:modelValue", void 0);
115
+ emit("change", void 0);
116
+ if (visible.value) {
117
+ visible.value = false;
118
+ }
97
119
  }
98
120
  function onDetermine() {
99
121
  data.startVal = zindex.value;
@@ -107,97 +129,111 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
129
  useVueValue(eo, props.prop)
108
130
  ];
109
131
  emit("update:modelValue", value);
110
- data.timeShow = false;
111
132
  emit("change", value, [so, eo]);
133
+ if (visible.value) {
134
+ visible.value = false;
135
+ }
136
+ }
137
+ function focus() {
138
+ var _a;
139
+ (_a = refDouble.value) == null ? void 0 : _a.focus();
112
140
  }
113
141
  __expose({
114
- ...dataExpose
142
+ ...dataExpose,
143
+ focus
115
144
  });
116
145
  return (_ctx, _cache) => {
117
- return openBlock(), createBlock(unref(Popover), {
118
- onAfterEnter: afterEnter,
119
- placement: "bottom",
120
- "popper-class": unref(cs).z("popper"),
121
- trigger: "click",
122
- width: unref(props).width,
123
- disabled: unref(props).disabled,
124
- visible: data.timeShow
125
- }, {
126
- reference: withCtx(() => [
127
- createVNode(unref(Double), {
128
- rangeSeparator: unref(props).rangeSeparator,
129
- startPlaceholder: unref(props).startPlaceholder,
130
- endPlaceholder: unref(props).endPlaceholder,
131
- readonly: "",
132
- clearable: unref(props).clearable,
133
- modelValue: [data.sname, data.ename],
134
- onFocus: _cache[0] || (_cache[0] = ($event) => data.timeShow = true),
135
- onClear: onCancel,
136
- compon: unref(Inputs)
137
- }, null, 8, ["rangeSeparator", "startPlaceholder", "endPlaceholder", "clearable", "modelValue", "compon"])
138
- ]),
139
- default: withCtx(() => [
140
- createElementVNode("div", {
141
- class: normalizeClass(unref(cs).z("select"))
142
- }, [
146
+ return openBlock(), createElementBlock("div", {
147
+ class: normalizeClass(unref(cs).z())
148
+ }, [
149
+ createVNode(unref(Popover), {
150
+ onAfterEnter: afterEnter,
151
+ placement: "bottom",
152
+ "popper-class": unref(cs).z("popper"),
153
+ trigger: "click",
154
+ width: unref(props).width,
155
+ disabled: unref(disabled),
156
+ visible: visible.value
157
+ }, {
158
+ reference: withCtx(() => [
159
+ createVNode(unref(Double), {
160
+ ref_key: "refDouble",
161
+ ref: refDouble,
162
+ class: normalizeClass(unref(cs).z("double")),
163
+ rangeSeparator: unref(props).rangeSeparator,
164
+ startPlaceholder: unref(props).startPlaceholder,
165
+ endPlaceholder: unref(props).endPlaceholder,
166
+ disabled: unref(disabled),
167
+ config: {
168
+ readonly: true
169
+ },
170
+ clearable: unref(props).clearable,
171
+ "model-value": [data.sname, data.ename],
172
+ mouse: mouse.value,
173
+ onClick: withModifiers(onClick, ["stop"]),
174
+ onFocus,
175
+ onClear: onCancel,
176
+ onBlur,
177
+ compon: unref(Input)
178
+ }, null, 8, ["class", "rangeSeparator", "startPlaceholder", "endPlaceholder", "disabled", "clearable", "model-value", "mouse", "compon"])
179
+ ]),
180
+ default: withCtx(() => [
143
181
  createElementVNode("div", {
144
- class: normalizeClass(unref(cs).z("select-list"))
182
+ onMouseenter,
183
+ onMouseleave,
184
+ onClick: withModifiers(onClickList, ["stop"]),
185
+ class: normalizeClass(unref(cs).z("select"))
145
186
  }, [
146
187
  createElementVNode("div", {
147
- class: normalizeClass(unref(cs).z("select-list-li"))
188
+ class: normalizeClass(unref(cs).z("select-list"))
148
189
  }, [
149
190
  createElementVNode("div", {
150
- class: normalizeClass(unref(cs).z("select-list-title"))
151
- }, toDisplayString(unref(props).startPlaceholder), 3),
152
- createVNode(unref(SelectScroll), {
153
- modelValue: zindex.value,
154
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => zindex.value = $event),
155
- max: yindex.value,
156
- label: unref(props).label,
157
- options: unref(props).options
158
- }, null, 8, ["modelValue", "max", "label", "options"])
191
+ class: normalizeClass(unref(cs).z("select-list-li"))
192
+ }, [
193
+ createElementVNode("div", {
194
+ class: normalizeClass(unref(cs).z("select-list-title"))
195
+ }, toDisplayString(unref(props).startPlaceholder), 3),
196
+ createVNode(unref(SelectScroll), {
197
+ modelValue: zindex.value,
198
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => zindex.value = $event),
199
+ max: yindex.value,
200
+ label: unref(props).label,
201
+ options: unref(props).options
202
+ }, null, 8, ["modelValue", "max", "label", "options"])
203
+ ], 2),
204
+ createElementVNode("div", {
205
+ class: normalizeClass(unref(cs).z("select-list-li"))
206
+ }, [
207
+ createElementVNode("div", {
208
+ class: normalizeClass(unref(cs).z("select-list-title"))
209
+ }, toDisplayString(unref(props).endPlaceholder), 3),
210
+ createVNode(unref(SelectScroll), {
211
+ min: zindex.value,
212
+ modelValue: yindex.value,
213
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => yindex.value = $event),
214
+ label: unref(props).label,
215
+ options: unref(props).options
216
+ }, null, 8, ["min", "modelValue", "label", "options"])
217
+ ], 2)
159
218
  ], 2),
160
219
  createElementVNode("div", {
161
- class: normalizeClass(unref(cs).z("select-list-li"))
220
+ class: normalizeClass(unref(cs).z("select-buts"))
162
221
  }, [
163
- createElementVNode("div", {
164
- class: normalizeClass(unref(cs).z("select-list-title"))
165
- }, toDisplayString(unref(props).endPlaceholder), 3),
166
- createVNode(unref(SelectScroll), {
167
- min: zindex.value,
168
- modelValue: yindex.value,
169
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => yindex.value = $event),
170
- label: unref(props).label,
171
- options: unref(props).options
172
- }, null, 8, ["min", "modelValue", "label", "options"])
222
+ createVNode(unref(Button), {
223
+ type: "primary",
224
+ onClick: onDetermine
225
+ }, {
226
+ default: withCtx(() => [
227
+ createTextVNode(toDisplayString(unref(getLocale)("form.confirm")), 1)
228
+ ]),
229
+ _: 1
230
+ })
173
231
  ], 2)
174
- ], 2),
175
- createElementVNode("div", {
176
- class: normalizeClass(unref(cs).z("select-buts"))
177
- }, [
178
- createVNode(unref(Button), {
179
- text: "",
180
- onClick: withModifiers(onCancel, ["stop"])
181
- }, {
182
- default: withCtx(() => [
183
- createTextVNode(toDisplayString(unref(getLocale)("close")), 1)
184
- ]),
185
- _: 1
186
- }),
187
- createVNode(unref(Button), {
188
- type: "primary",
189
- onClick: withModifiers(onDetermine, ["stop"])
190
- }, {
191
- default: withCtx(() => [
192
- createTextVNode(toDisplayString(unref(getLocale)("form.confirm")), 1)
193
- ]),
194
- _: 1
195
- })
196
- ], 2)
197
- ], 2)
198
- ]),
199
- _: 1
200
- }, 8, ["popper-class", "width", "disabled", "visible"]);
232
+ ], 34)
233
+ ]),
234
+ _: 1
235
+ }, 8, ["popper-class", "width", "disabled", "visible"])
236
+ ], 2);
201
237
  };
202
238
  }
203
239
  });
@@ -662,7 +662,7 @@ const useInit = (props2, emit, refTable, getLocale, defaultConfig = {}) => {
662
662
  }
663
663
  const height = vue.computed(() => {
664
664
  var _a2;
665
- return ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.height) ?? "";
665
+ return (_a2 = tableConfig.value.config) == null ? void 0 : _a2.height;
666
666
  });
667
667
  const onScroll = () => {
668
668
  console.log("onScroll");
@@ -247,11 +247,11 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
247
247
  rule?: string | boolean | 0 | 1 | {
248
248
  trigger?: string | string[] | number | undefined;
249
249
  required?: boolean | undefined;
250
- judge?: (string | Function) | undefined;
250
+ check?: (string | Function) | undefined;
251
251
  error?: string | undefined;
252
252
  linkage?: string | {
253
253
  prop?: string | undefined;
254
- judge?: Function | undefined;
254
+ check?: Function | undefined;
255
255
  } | undefined;
256
256
  } | undefined;
257
257
  class?: string | undefined;
@@ -288,11 +288,11 @@ export declare const useInit: (props: ExtractPropTypes<typeof dataProps>, emit:
288
288
  rule?: string | boolean | 0 | 1 | {
289
289
  trigger?: string | string[] | number | undefined;
290
290
  required?: boolean | undefined;
291
- judge?: (string | Function) | undefined;
291
+ check?: (string | Function) | undefined;
292
292
  error?: string | undefined;
293
293
  linkage?: string | {
294
294
  prop?: string | undefined;
295
- judge?: Function | undefined;
295
+ check?: Function | undefined;
296
296
  } | undefined;
297
297
  } | undefined;
298
298
  class?: string | undefined;
@@ -660,7 +660,7 @@ const useInit = (props2, emit, refTable, getLocale, defaultConfig = {}) => {
660
660
  }
661
661
  const height = computed(() => {
662
662
  var _a2;
663
- return ((_a2 = tableConfig.value.config) == null ? void 0 : _a2.height) ?? "";
663
+ return (_a2 = tableConfig.value.config) == null ? void 0 : _a2.height;
664
664
  });
665
665
  const onScroll = () => {
666
666
  console.log("onScroll");
@@ -42,7 +42,7 @@ function isExceed(cellChild, lineClamp = 1) {
42
42
  const verticalPadding = top + bottom;
43
43
  const horizontalPadding = left + right;
44
44
  if (lineClamp > 1) {
45
- if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight) || isGreaterThan(cellChild.scrollWidth, cellChildWidth)) {
45
+ if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
46
46
  return true;
47
47
  }
48
48
  } else if (isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
@@ -40,7 +40,7 @@ function isExceed(cellChild, lineClamp = 1) {
40
40
  const verticalPadding = top + bottom;
41
41
  const horizontalPadding = left + right;
42
42
  if (lineClamp > 1) {
43
- if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight) || isGreaterThan(cellChild.scrollWidth, cellChildWidth)) {
43
+ if (isGreaterThan(rangeWidth + horizontalPadding, cellChildWidth) || isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {
44
44
  return true;
45
45
  }
46
46
  } else if (isGreaterThan(rangeHeight + verticalPadding, cellChildHeight)) {