@fangzhongya/fang-ui 0.0.65 → 0.0.67

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 (102) hide show
  1. package/dist/components/array/src/index2.cjs +21 -2
  2. package/dist/components/array/src/index2.js +22 -3
  3. package/dist/components/button/src/data.cjs +3 -1
  4. package/dist/components/button/src/data.d.ts +3 -1
  5. package/dist/components/button/src/data.js +3 -1
  6. package/dist/components/button/src/index2.cjs +6 -10
  7. package/dist/components/button/src/index2.js +8 -12
  8. package/dist/components/buttons/src/index2.cjs +3 -3
  9. package/dist/components/buttons/src/index2.js +3 -3
  10. package/dist/components/cascaders/src/index2.cjs +3 -8
  11. package/dist/components/cascaders/src/index2.js +4 -9
  12. package/dist/components/dates-divide/src/data.cjs +1 -1
  13. package/dist/components/dates-divide/src/data.d.ts +1 -1
  14. package/dist/components/dates-divide/src/data.js +1 -1
  15. package/dist/components/dates-picker/src/index2.cjs +2 -2
  16. package/dist/components/dates-picker/src/index2.js +1 -1
  17. package/dist/components/edit-float/src/index2.cjs +9 -8
  18. package/dist/components/edit-float/src/index2.js +7 -6
  19. package/dist/components/forms/src/data.cjs +12 -12
  20. package/dist/components/forms/src/data.d.ts +1 -27
  21. package/dist/components/forms/src/data.js +12 -12
  22. package/dist/components/forms-div/src/data.cjs +5 -2
  23. package/dist/components/forms-div/src/data.d.ts +3 -2
  24. package/dist/components/forms-div/src/data.js +5 -2
  25. package/dist/components/forms-div/src/index2.cjs +2 -2
  26. package/dist/components/forms-div/src/index2.js +3 -3
  27. package/dist/components/forms-drag/src/index2.cjs +6 -10
  28. package/dist/components/forms-drag/src/index2.js +6 -10
  29. package/dist/components/forms-item/src/data.cjs +5 -2
  30. package/dist/components/forms-item/src/data.d.ts +3 -2
  31. package/dist/components/forms-item/src/data.js +5 -2
  32. package/dist/components/forms-item/src/indexts.d.ts +5 -2
  33. package/dist/components/global-config/src/index.cjs +7 -3
  34. package/dist/components/global-config/src/index.js +7 -3
  35. package/dist/components/icon/src/index2.cjs +2 -2
  36. package/dist/components/icon/src/index2.js +3 -3
  37. package/dist/components/images/src/index2.cjs +4 -4
  38. package/dist/components/images/src/index2.js +1 -1
  39. package/dist/components/index.scss +2 -2
  40. package/dist/components/index2.scss +2 -2
  41. package/dist/components/input-history/index.css +1 -1
  42. package/dist/components/input-history/index.scss +1 -2
  43. package/dist/components/input-history/src/data.cjs +2 -2
  44. package/dist/components/input-history/src/data.d.ts +0 -1
  45. package/dist/components/input-history/src/data.js +2 -2
  46. package/dist/components/input-history/src/index2.cjs +17 -12
  47. package/dist/components/input-history/src/index2.js +12 -7
  48. package/dist/components/input-num/index.css +1 -0
  49. package/dist/components/input-num/index.scss +1 -0
  50. package/dist/components/labels/src/index2.cjs +1 -1
  51. package/dist/components/labels/src/index2.js +1 -1
  52. package/dist/components/list/src/data.cjs +1 -1
  53. package/dist/components/list/src/data.d.ts +1 -1
  54. package/dist/components/list/src/data.js +1 -1
  55. package/dist/components/listsp/src/index2.cjs +3 -3
  56. package/dist/components/listsp/src/index2.js +3 -3
  57. package/dist/components/loading/src/index.cjs +3 -3
  58. package/dist/components/loading/src/index.d.ts +2 -2
  59. package/dist/components/loading/src/index.js +1 -1
  60. package/dist/components/message/index.d.ts +3 -5
  61. package/dist/components/message/src/index.cjs +3 -3
  62. package/dist/components/message/src/index.d.ts +3 -10
  63. package/dist/components/message/src/index.js +2 -2
  64. package/dist/components/message-box/src/index.cjs +3 -6
  65. package/dist/components/message-box/src/index.d.ts +3 -13
  66. package/dist/components/message-box/src/index.js +2 -5
  67. package/dist/components/page/set-column.css +8 -8
  68. package/dist/components/page/src/data.cjs +13 -1
  69. package/dist/components/page/src/data.d.ts +26 -1
  70. package/dist/components/page/src/data.js +13 -1
  71. package/dist/components/page/src/index2.cjs +23 -40
  72. package/dist/components/page/src/index2.js +24 -41
  73. package/dist/components/page/src/set-column.cjs +1 -1
  74. package/dist/components/page/src/set-column.js +1 -1
  75. package/dist/components/page/src/set-column2.cjs +9 -8
  76. package/dist/components/page/src/set-column2.js +2 -1
  77. package/dist/components/paging/src/index2.cjs +2 -2
  78. package/dist/components/paging/src/index2.js +2 -2
  79. package/dist/components/role-select/src/index2.cjs +7 -7
  80. package/dist/components/role-select/src/index2.js +1 -1
  81. package/dist/components/selector/src/index2.cjs +12 -11
  82. package/dist/components/selector/src/index2.js +8 -7
  83. package/dist/components/stick-div/src/index2.cjs +8 -1
  84. package/dist/components/stick-div/src/index2.js +8 -1
  85. package/dist/components/tablesv/src/column.cjs +9 -8
  86. package/dist/components/tablesv/src/column.js +2 -1
  87. package/dist/components/tablesv/src/columns2.cjs +2 -2
  88. package/dist/components/tablesv/src/columns2.js +1 -1
  89. package/dist/css/index.css +24 -5
  90. package/dist/css/input-history.css +1 -1
  91. package/dist/css/input-num.css +1 -0
  92. package/dist/css/page/set-column.css +8 -8
  93. package/dist/directives/adjust/index.cjs +0 -8
  94. package/dist/directives/adjust/index.js +0 -8
  95. package/dist/icons/index.css +41 -41
  96. package/dist/icons/index.json +12 -12
  97. package/dist/index.css +24 -5
  98. package/package.json +6 -6
  99. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
  100. /package/dist/components/{config-provider → keep-com}/index.css +0 -0
  101. /package/dist/css/{forms-items.css → forms-item.css} +0 -0
  102. /package/dist/css/{config-provider.css → keep-com.css} +0 -0
@@ -6,6 +6,7 @@ const index$1 = require("../../../hooks/cssname/index.cjs");
6
6
  const index$2 = require("../../icon/index.cjs");
7
7
  const clear = require("../../../icons/vue/clear.cjs");
8
8
  const use = require("../../common/use.cjs");
9
+ const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
9
10
  const index = require("../../../hooks/locale/index.cjs");
10
11
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
11
12
  __name: "index",
@@ -13,6 +14,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
14
  emits: data.dataEmits,
14
15
  setup(__props, { expose: __expose, emit: __emit }) {
15
16
  const { getLocale } = index.useLocale();
17
+ const compons = vue.inject("forms-compons", {});
18
+ const pcompon = vue.computed(() => {
19
+ if (typeof props.compon == "string") {
20
+ const tcom = lineToLargeHump.lineToLargeHump(props.compon);
21
+ return compons[tcom] || props.compon;
22
+ } else {
23
+ return props.compon;
24
+ }
25
+ });
16
26
  const cs = index$1.useCssName("array");
17
27
  const prs = __props;
18
28
  const props = use.uesPropsDefault(prs, {
@@ -179,6 +189,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
179
189
  function clearBlur() {
180
190
  clearTimeout(timeout);
181
191
  }
192
+ vue.onMounted(() => {
193
+ if (window) {
194
+ console.log("onMounted");
195
+ window.addEventListener("click", () => {
196
+ console.log("click");
197
+ isfocus.value = false;
198
+ });
199
+ }
200
+ });
182
201
  __expose({
183
202
  ...data.dataExpose
184
203
  });
@@ -191,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
191
210
  onClick: vue.withModifiers(onClick, ["stop"])
192
211
  }, [
193
212
  vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
194
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(props).compon), vue.mergeProps(vue.unref(props).config, {
213
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(pcompon.value), vue.mergeProps(vue.unref(props).config, {
195
214
  multiple: multiple.value,
196
215
  class: [vue.unref(cs).z("value"), vue.unref(cs).z("start")],
197
216
  modelValue: start.value,
@@ -206,7 +225,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
206
225
  vue.createElementVNode("span", {
207
226
  class: vue.normalizeClass([vue.unref(cs).z("range")])
208
227
  }, vue.toDisplayString(vue.unref(props).rangeSeparator), 3),
209
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(props).compon), vue.mergeProps(vue.unref(props).config, {
228
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(pcompon.value), vue.mergeProps(vue.unref(props).config, {
210
229
  multiple: multiple.value,
211
230
  class: [vue.unref(cs).z("value"), vue.unref(cs).z("end")],
212
231
  modelValue: end.value,
@@ -1,9 +1,10 @@
1
- import { defineComponent, ref, computed, watch, createElementBlock, openBlock, withModifiers, normalizeClass, unref, renderSlot, createBlock, createElementVNode, createCommentVNode, resolveDynamicComponent, mergeProps, toDisplayString, createVNode, withCtx } from "vue";
1
+ import { defineComponent, inject, computed, ref, watch, onMounted, createElementBlock, openBlock, withModifiers, normalizeClass, unref, renderSlot, createBlock, createElementVNode, createCommentVNode, resolveDynamicComponent, mergeProps, toDisplayString, createVNode, withCtx } from "vue";
2
2
  import { dataExpose, dataSlot, dataEmits, dataProps } from "./data.js";
3
3
  import { useCssName } from "../../../hooks/cssname/index.js";
4
4
  import { Icon } from "../../icon/index.js";
5
5
  import Clear from "../../../icons/vue/clear.js";
6
6
  import { uesPropsDefault } from "../../common/use.js";
7
+ import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
7
8
  import { useLocale } from "../../../hooks/locale/index.js";
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  __name: "index",
@@ -11,6 +12,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  emits: dataEmits,
12
13
  setup(__props, { expose: __expose, emit: __emit }) {
13
14
  const { getLocale } = useLocale();
15
+ const compons = inject("forms-compons", {});
16
+ const pcompon = computed(() => {
17
+ if (typeof props.compon == "string") {
18
+ const tcom = lineToLargeHump(props.compon);
19
+ return compons[tcom] || props.compon;
20
+ } else {
21
+ return props.compon;
22
+ }
23
+ });
14
24
  const cs = useCssName("array");
15
25
  const prs = __props;
16
26
  const props = uesPropsDefault(prs, {
@@ -177,6 +187,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
177
187
  function clearBlur() {
178
188
  clearTimeout(timeout);
179
189
  }
190
+ onMounted(() => {
191
+ if (window) {
192
+ console.log("onMounted");
193
+ window.addEventListener("click", () => {
194
+ console.log("click");
195
+ isfocus.value = false;
196
+ });
197
+ }
198
+ });
180
199
  __expose({
181
200
  ...dataExpose
182
201
  });
@@ -189,7 +208,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
189
208
  onClick: withModifiers(onClick, ["stop"])
190
209
  }, [
191
210
  renderSlot(_ctx.$slots, unref(dataSlot).prefix),
192
- (openBlock(), createBlock(resolveDynamicComponent(unref(props).compon), mergeProps(unref(props).config, {
211
+ (openBlock(), createBlock(resolveDynamicComponent(pcompon.value), mergeProps(unref(props).config, {
193
212
  multiple: multiple.value,
194
213
  class: [unref(cs).z("value"), unref(cs).z("start")],
195
214
  modelValue: start.value,
@@ -204,7 +223,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
204
223
  createElementVNode("span", {
205
224
  class: normalizeClass([unref(cs).z("range")])
206
225
  }, toDisplayString(unref(props).rangeSeparator), 3),
207
- (openBlock(), createBlock(resolveDynamicComponent(unref(props).compon), mergeProps(unref(props).config, {
226
+ (openBlock(), createBlock(resolveDynamicComponent(pcompon.value), mergeProps(unref(props).config, {
208
227
  multiple: multiple.value,
209
228
  class: [unref(cs).z("value"), unref(cs).z("end")],
210
229
  modelValue: end.value,
@@ -3,7 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const buildProps = require("../../../utils/vues/buildProps.cjs");
4
4
  const dataProps = buildProps.buildProps({});
5
5
  const dataEmits = [];
6
- const dataSlot = {};
6
+ const dataSlot = {
7
+ default: "default"
8
+ };
7
9
  const dataExpose = {};
8
10
  exports.dataEmits = dataEmits;
9
11
  exports.dataExpose = dataExpose;
@@ -7,7 +7,9 @@ export declare const dataProps: {};
7
7
  export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
8
8
  export declare const dataEmits: never[];
9
9
  export type DataEmits = typeof dataEmits;
10
- export declare const dataSlot: {};
10
+ export declare const dataSlot: {
11
+ default: string;
12
+ };
11
13
  /**
12
14
  * @expose { Element } refEl 获取当前组件在element-plus中暴露的方法
13
15
  */
@@ -1,7 +1,9 @@
1
1
  import { buildProps } from "../../../utils/vues/buildProps.js";
2
2
  const dataProps = buildProps({});
3
3
  const dataEmits = [];
4
- const dataSlot = {};
4
+ const dataSlot = {
5
+ default: "default"
6
+ };
5
7
  const dataExpose = {};
6
8
  export {
7
9
  dataEmits,
@@ -20,16 +20,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
20
20
  return (_ctx, _cache) => {
21
21
  return vue.openBlock(), vue.createBlock(vue.unref(index$1.ElButton), vue.mergeProps({
22
22
  class: vue.unref(cs).z()
23
- }, vue.unref(attrs)), vue.createSlots({ _: 2 }, [
24
- vue.renderList(Object.keys(vue.unref(slots)), (k) => {
25
- return {
26
- name: k,
27
- fn: vue.withCtx((scope) => [
28
- vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope)))
29
- ])
30
- };
31
- })
32
- ]), 1040, ["class"]);
23
+ }, vue.unref(attrs)), {
24
+ default: vue.withCtx(() => [
25
+ vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default)
26
+ ]),
27
+ _: 3
28
+ }, 16, ["class"]);
33
29
  };
34
30
  }
35
31
  });
@@ -1,5 +1,5 @@
1
- import { defineComponent, useAttrs, useSlots, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
- import { dataExpose, dataEmits, dataProps } from "./data.js";
1
+ import { defineComponent, useAttrs, useSlots, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
2
+ import { dataExpose, dataSlot, dataEmits, dataProps } from "./data.js";
3
3
  import { useCssName } from "../../../hooks/cssname/index.js";
4
4
  import { ElButton } from "element-plus/es/components/button/index";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -18,16 +18,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  return (_ctx, _cache) => {
19
19
  return openBlock(), createBlock(unref(ElButton), mergeProps({
20
20
  class: unref(cs).z()
21
- }, unref(attrs)), createSlots({ _: 2 }, [
22
- renderList(Object.keys(unref(slots)), (k) => {
23
- return {
24
- name: k,
25
- fn: withCtx((scope) => [
26
- renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope)))
27
- ])
28
- };
29
- })
30
- ]), 1040, ["class"]);
21
+ }, unref(attrs)), {
22
+ default: withCtx(() => [
23
+ renderSlot(_ctx.$slots, unref(dataSlot).default)
24
+ ]),
25
+ _: 3
26
+ }, 16, ["class"]);
31
27
  };
32
28
  }
33
29
  });
@@ -1,7 +1,7 @@
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$1 = require("element-plus/es/components/button/index");
4
+ const index$1 = require("../../button/index.cjs");
5
5
  const data = require("./data.cjs");
6
6
  const index = require("../../../hooks/cssname/index.cjs");
7
7
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
25
  return (_ctx, _cache) => {
26
26
  return props.nofather ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(props.options, (item, index2) => {
27
27
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
28
- !item.hide ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElButton), vue.mergeProps({
28
+ !item.hide ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Button), vue.mergeProps({
29
29
  key: 0,
30
30
  class: [vue.unref(cs).z("li"), item.class]
31
31
  }, { ref_for: true }, item, {
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
44
44
  }, [
45
45
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.options, (item, index2) => {
46
46
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
47
- !item.hide ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElButton), vue.mergeProps({
47
+ !item.hide ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.Button), vue.mergeProps({
48
48
  key: 0,
49
49
  class: [vue.unref(cs).z("li"), item.class]
50
50
  }, { ref_for: true }, item, {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createBlock, createCommentVNode, unref, mergeProps, withModifiers, withCtx, createTextVNode, toDisplayString, normalizeClass } from "vue";
2
- import { ElButton } from "element-plus/es/components/button/index";
2
+ import { Button } from "../../button/index.js";
3
3
  import { dataExpose, dataEmits, dataProps } from "./data.js";
4
4
  import { useCssName } from "../../../hooks/cssname/index.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  return (_ctx, _cache) => {
24
24
  return props.nofather ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.options, (item, index) => {
25
25
  return openBlock(), createElementBlock(Fragment, { key: index }, [
26
- !item.hide ? (openBlock(), createBlock(unref(ElButton), mergeProps({
26
+ !item.hide ? (openBlock(), createBlock(unref(Button), mergeProps({
27
27
  key: 0,
28
28
  class: [unref(cs).z("li"), item.class]
29
29
  }, { ref_for: true }, item, {
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  }, [
43
43
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.options, (item, index) => {
44
44
  return openBlock(), createElementBlock(Fragment, { key: index }, [
45
- !item.hide ? (openBlock(), createBlock(unref(ElButton), mergeProps({
45
+ !item.hide ? (openBlock(), createBlock(unref(Button), mergeProps({
46
46
  key: 0,
47
47
  class: [unref(cs).z("li"), item.class]
48
48
  }, { ref_for: true }, item, {
@@ -1,7 +1,6 @@
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$2 = require("../../../directives/expose/index.cjs");
5
4
  const ElCascader = require("element-plus/es/components/cascader/index");
6
5
  const ElTreeSelect = require("element-plus/es/components/tree-select/index");
7
6
  const index = require("../../../hooks/cssname/index.cjs");
@@ -32,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
31
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
33
32
  class: vue.unref(cs).z()
34
33
  }, vue.unref(attrs).root), [
35
- props.isTree ? vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElTreeSelect), vue.mergeProps({
34
+ props.isTree ? (vue.openBlock(), vue.createBlock(vue.unref(ElTreeSelect), vue.mergeProps({
36
35
  key: 0,
37
36
  modelValue: vue.unref(value),
38
37
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
@@ -41,18 +40,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
41
40
  data: props.options,
42
41
  multiple: vue.unref(multiple),
43
42
  "show-checkbox": vue.unref(multiple)
44
- }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])), [
45
- [vue.unref(index$2.default), {}]
46
- ]) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(ElCascader), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
43
+ }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])) : (vue.openBlock(), vue.createBlock(vue.unref(ElCascader), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
47
44
  class: vue.unref(cs).z("cascader"),
48
45
  "show-all-levels": false,
49
46
  modelValue: vue.unref(value),
50
47
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null),
51
48
  options: props.options,
52
49
  props: cprops
53
- }), null, 16, ["class", "modelValue", "options"])), [
54
- [vue.unref(index$2.default), {}]
55
- ])
50
+ }), null, 16, ["class", "modelValue", "options"]))
56
51
  ], 16);
57
52
  };
58
53
  }
@@ -1,5 +1,4 @@
1
- import { defineComponent, useAttrs, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, isRef } from "vue";
2
- import vExpose from "../../../directives/expose/index.js";
1
+ import { defineComponent, useAttrs, createElementBlock, openBlock, mergeProps, unref, createBlock, isRef } from "vue";
3
2
  import ElCascader from "element-plus/es/components/cascader/index";
4
3
  import ElTreeSelect from "element-plus/es/components/tree-select/index";
5
4
  import { useCssName } from "../../../hooks/cssname/index.js";
@@ -30,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
29
  return openBlock(), createElementBlock("div", mergeProps({
31
30
  class: unref(cs).z()
32
31
  }, unref(attrs).root), [
33
- props.isTree ? withDirectives((openBlock(), createBlock(unref(ElTreeSelect), mergeProps({
32
+ props.isTree ? (openBlock(), createBlock(unref(ElTreeSelect), mergeProps({
34
33
  key: 0,
35
34
  modelValue: unref(value),
36
35
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null)
@@ -39,18 +38,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
38
  data: props.options,
40
39
  multiple: unref(multiple),
41
40
  "show-checkbox": unref(multiple)
42
- }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])), [
43
- [unref(vExpose), {}]
44
- ]) : withDirectives((openBlock(), createBlock(unref(ElCascader), mergeProps({ key: 1 }, unref(attrs).assem, {
41
+ }), null, 16, ["modelValue", "class", "data", "multiple", "show-checkbox"])) : (openBlock(), createBlock(unref(ElCascader), mergeProps({ key: 1 }, unref(attrs).assem, {
45
42
  class: unref(cs).z("cascader"),
46
43
  "show-all-levels": false,
47
44
  modelValue: unref(value),
48
45
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(value) ? value.value = $event : null),
49
46
  options: props.options,
50
47
  props: cprops
51
- }), null, 16, ["class", "modelValue", "options"])), [
52
- [unref(vExpose), {}]
53
- ])
48
+ }), null, 16, ["class", "modelValue", "options"]))
54
49
  ], 16);
55
50
  };
56
51
  }
@@ -7,7 +7,7 @@ const dataProps = {
7
7
  type: String
8
8
  },
9
9
  /**
10
- * @props {String, Number, Date, Array} modelValue/v-model 时间数据
10
+ * @props {String, Number, Date, Array} modelValue=[] 时间数据
11
11
  */
12
12
  modelValue: {
13
13
  type: Array,
@@ -5,7 +5,7 @@ export declare const dataProps: {
5
5
  type: () => SingleType;
6
6
  };
7
7
  /**
8
- * @props {String, Number, Date, Array} modelValue/v-model 时间数据
8
+ * @props {String, Number, Date, Array} modelValue=[] 时间数据
9
9
  */
10
10
  modelValue: {
11
11
  type: {
@@ -5,7 +5,7 @@ const dataProps = {
5
5
  type: String
6
6
  },
7
7
  /**
8
- * @props {String, Number, Date, Array} modelValue/v-model 时间数据
8
+ * @props {String, Number, Date, Array} modelValue=[] 时间数据
9
9
  */
10
10
  modelValue: {
11
11
  type: Array,
@@ -5,7 +5,7 @@ const data = require("./data.cjs");
5
5
  const index$1 = require("../../../hooks/cssname/index.cjs");
6
6
  const index = require("../../../hooks/inherit/index.cjs");
7
7
  const util = require("./util.cjs");
8
- const elementPlus = require("element-plus");
8
+ const index$2 = require("element-plus/es/components/date-picker/index");
9
9
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
10
  ...{ inheritAttrs: false },
11
11
  __name: "index",
@@ -45,7 +45,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
45
45
  class: [vue.unref(cs).z()]
46
46
  }, vue.unref(attrs).root), [
47
47
  vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
48
- vue.createVNode(vue.unref(elementPlus.ElDatePicker), vue.mergeProps(vue.unref(attrs).assem, {
48
+ vue.createVNode(vue.unref(index$2.ElDatePicker), vue.mergeProps(vue.unref(attrs).assem, {
49
49
  type: types.value.type,
50
50
  format: props.format || types.value.format,
51
51
  modelValue: value.value,
@@ -3,7 +3,7 @@ import { dataExpose, dataSlot, dataEmits, dataProps } from "./data.js";
3
3
  import { useCssName } from "../../../hooks/cssname/index.js";
4
4
  import { useInherit } from "../../../hooks/inherit/index.js";
5
5
  import { getType, format } from "./util.js";
6
- import { ElDatePicker } from "element-plus";
6
+ import { ElDatePicker } from "element-plus/es/components/date-picker/index";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  ...{ inheritAttrs: false },
9
9
  __name: "index",
@@ -1,11 +1,12 @@
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");
5
4
  const edit = require("../../../icons/vue/edit.cjs");
6
- const elementPlus = require("element-plus");
5
+ const index$5 = require("../../icon/index.cjs");
6
+ const index$2 = require("../../popover/index.cjs");
7
+ const index$4 = require("../../button/index.cjs");
8
+ const index$3 = require("../../inputs/index.cjs");
7
9
  const data = require("./data.cjs");
8
- const index$2 = require("../../inputs/index.cjs");
9
10
  const index$1 = require("../../../hooks/cssname/index.cjs");
10
11
  const index = require("../../../hooks/locale/index.cjs");
11
12
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
@@ -85,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
85
86
  ref: refEdit,
86
87
  class: vue.normalizeClass(vue.unref(cs).z())
87
88
  }, [
88
- vue.createVNode(vue.unref(elementPlus.ElPopover), {
89
+ vue.createVNode(vue.unref(index$2.Popover), {
89
90
  visible: isInput.value,
90
91
  placement: "top",
91
92
  width: 200
@@ -98,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
98
99
  onDblclick: vue.withModifiers(onDblclick, ["stop"]),
99
100
  class: vue.normalizeClass(vue.unref(cs).z("value"))
100
101
  }, vue.toDisplayString(props.modelValue), 35),
101
- isIcon.value && !isInput.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Icon), {
102
+ isIcon.value && !isInput.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$5.Icon), {
102
103
  key: 0,
103
104
  onClick,
104
105
  class: vue.normalizeClass(vue.unref(cs).z("icon"))
@@ -117,7 +118,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
117
118
  vue.createElementVNode("div", {
118
119
  class: vue.normalizeClass(vue.unref(cs).z("title"))
119
120
  }, vue.toDisplayString(vue.unref(getLocale)("modify")), 3),
120
- vue.createVNode(vue.unref(index$2.Inputs), {
121
+ vue.createVNode(vue.unref(index$3.Inputs), {
121
122
  modelValue: value.value,
122
123
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
123
124
  ref_key: "refEditInput",
@@ -130,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
130
131
  vue.createElementVNode("div", {
131
132
  class: vue.normalizeClass(vue.unref(cs).z("but"))
132
133
  }, [
133
- vue.createVNode(vue.unref(elementPlus.ElButton), {
134
+ vue.createVNode(vue.unref(index$4.Button), {
134
135
  size: "small",
135
136
  text: "",
136
137
  onClick: onClickqx
@@ -140,7 +141,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
140
141
  ]),
141
142
  _: 1
142
143
  }),
143
- vue.createVNode(vue.unref(elementPlus.ElButton), {
144
+ vue.createVNode(vue.unref(index$4.Button), {
144
145
  size: "small",
145
146
  type: "primary",
146
147
  onClick: onConfirm
@@ -1,9 +1,10 @@
1
1
  import { defineComponent, ref, watch, onMounted, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createElementVNode, toDisplayString, createTextVNode, createBlock, createCommentVNode, withModifiers } from "vue";
2
- import { Icon } from "../../icon/index.js";
3
2
  import Edit from "../../../icons/vue/edit.js";
4
- import { ElPopover, ElButton } from "element-plus";
5
- import { dataExpose, dataEmits, dataProps } from "./data.js";
3
+ import { Icon } from "../../icon/index.js";
4
+ import { Popover } from "../../popover/index.js";
5
+ import { Button } from "../../button/index.js";
6
6
  import { Inputs } from "../../inputs/index.js";
7
+ import { dataExpose, dataEmits, dataProps } from "./data.js";
7
8
  import { useCssName } from "../../../hooks/cssname/index.js";
8
9
  import { useLocale } from "../../../hooks/locale/index.js";
9
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -83,7 +84,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
83
84
  ref: refEdit,
84
85
  class: normalizeClass(unref(cs).z())
85
86
  }, [
86
- createVNode(unref(ElPopover), {
87
+ createVNode(unref(Popover), {
87
88
  visible: isInput.value,
88
89
  placement: "top",
89
90
  width: 200
@@ -128,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
129
  createElementVNode("div", {
129
130
  class: normalizeClass(unref(cs).z("but"))
130
131
  }, [
131
- createVNode(unref(ElButton), {
132
+ createVNode(unref(Button), {
132
133
  size: "small",
133
134
  text: "",
134
135
  onClick: onClickqx
@@ -138,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
139
  ]),
139
140
  _: 1
140
141
  }),
141
- createVNode(unref(ElButton), {
142
+ createVNode(unref(Button), {
142
143
  size: "small",
143
144
  type: "primary",
144
145
  onClick: onConfirm
@@ -167,38 +167,38 @@ const dataProps = {
167
167
  */
168
168
  colon: [Boolean, String]
169
169
  };
170
- const dataEmits = {
170
+ const dataEmits = [
171
171
  /**
172
172
  * @emits update:modelValue (value:[ObjAny]值)
173
173
  * v-model 数据更新
174
174
  */
175
- "update:modelValue": (value) => {
176
- },
175
+ "update:modelValue",
176
+ //: (value: ObjAny) => {},
177
177
  /**
178
178
  * @emits submit (obj:[ObjAny]form值)
179
179
  * 提交事件
180
180
  */
181
- submit: (obj) => {
182
- },
181
+ "submit",
182
+ // : (obj: ObjAny) => {},
183
183
  /**
184
184
  * @emits cancel (obj:[ObjAny]form值)
185
185
  * 关闭事件
186
186
  */
187
- cancel: (obj) => {
188
- },
187
+ "cancel",
188
+ // : (obj: ObjAny) => {},
189
189
  /**
190
190
  * @emits cancel (obj:[ObjAny]当前对象,dataForm: form值, index:第几个, event:Event对象)
191
191
  * buts按钮事件
192
192
  */
193
- buts: (obj, dataForm, index, event) => {
194
- },
193
+ "buts",
194
+ // : (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => {},
195
195
  /**
196
196
  * @emits upform (dataForm:[ObjAny]form值)
197
197
  * 表单数据变动
198
198
  */
199
- upform: (dataForm) => {
200
- }
201
- };
199
+ "upform"
200
+ // : (dataForm: ObjAny) => {},
201
+ ];
202
202
  const dataSlot = {
203
203
  /**
204
204
  * @slot default 默认插槽
@@ -215,33 +215,7 @@ export type DataProps = ExtractPropTypes<typeof dataProps>;
215
215
  /**
216
216
  * 组件事件
217
217
  */
218
- export declare const dataEmits: {
219
- /**
220
- * @emits update:modelValue (value:[ObjAny]值)
221
- * v-model 数据更新
222
- */
223
- 'update:modelValue': (value: ObjAny) => void;
224
- /**
225
- * @emits submit (obj:[ObjAny]form值)
226
- * 提交事件
227
- */
228
- submit: (obj: ObjAny) => void;
229
- /**
230
- * @emits cancel (obj:[ObjAny]form值)
231
- * 关闭事件
232
- */
233
- cancel: (obj: ObjAny) => void;
234
- /**
235
- * @emits cancel (obj:[ObjAny]当前对象,dataForm: form值, index:第几个, event:Event对象)
236
- * buts按钮事件
237
- */
238
- buts: (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => void;
239
- /**
240
- * @emits upform (dataForm:[ObjAny]form值)
241
- * 表单数据变动
242
- */
243
- upform: (dataForm: ObjAny) => void;
244
- };
218
+ export declare const dataEmits: string[];
245
219
  /**
246
220
  * 组件事件
247
221
  */
@@ -165,38 +165,38 @@ const dataProps = {
165
165
  */
166
166
  colon: [Boolean, String]
167
167
  };
168
- const dataEmits = {
168
+ const dataEmits = [
169
169
  /**
170
170
  * @emits update:modelValue (value:[ObjAny]值)
171
171
  * v-model 数据更新
172
172
  */
173
- "update:modelValue": (value) => {
174
- },
173
+ "update:modelValue",
174
+ //: (value: ObjAny) => {},
175
175
  /**
176
176
  * @emits submit (obj:[ObjAny]form值)
177
177
  * 提交事件
178
178
  */
179
- submit: (obj) => {
180
- },
179
+ "submit",
180
+ // : (obj: ObjAny) => {},
181
181
  /**
182
182
  * @emits cancel (obj:[ObjAny]form值)
183
183
  * 关闭事件
184
184
  */
185
- cancel: (obj) => {
186
- },
185
+ "cancel",
186
+ // : (obj: ObjAny) => {},
187
187
  /**
188
188
  * @emits cancel (obj:[ObjAny]当前对象,dataForm: form值, index:第几个, event:Event对象)
189
189
  * buts按钮事件
190
190
  */
191
- buts: (obj, dataForm, index, event) => {
192
- },
191
+ "buts",
192
+ // : (obj: ObjAny, dataForm: ObjAny, index: number, event: Event) => {},
193
193
  /**
194
194
  * @emits upform (dataForm:[ObjAny]form值)
195
195
  * 表单数据变动
196
196
  */
197
- upform: (dataForm) => {
198
- }
199
- };
197
+ "upform"
198
+ // : (dataForm: ObjAny) => {},
199
+ ];
200
200
  const dataSlot = {
201
201
  /**
202
202
  * @slot default 默认插槽