@fangzhongya/fang-ui 0.0.65 → 0.0.66

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 (55) hide show
  1. package/dist/components/button/src/data.cjs +3 -1
  2. package/dist/components/button/src/data.d.ts +3 -1
  3. package/dist/components/button/src/data.js +3 -1
  4. package/dist/components/button/src/index2.cjs +6 -10
  5. package/dist/components/button/src/index2.js +8 -12
  6. package/dist/components/buttons/src/index2.cjs +3 -3
  7. package/dist/components/buttons/src/index2.js +3 -3
  8. package/dist/components/dates-picker/src/index2.cjs +2 -2
  9. package/dist/components/dates-picker/src/index2.js +1 -1
  10. package/dist/components/edit-float/src/index2.cjs +9 -8
  11. package/dist/components/edit-float/src/index2.js +7 -6
  12. package/dist/components/images/src/index2.cjs +4 -4
  13. package/dist/components/images/src/index2.js +1 -1
  14. package/dist/components/input-history/index.css +1 -1
  15. package/dist/components/input-history/index.scss +1 -2
  16. package/dist/components/input-history/src/index2.cjs +17 -12
  17. package/dist/components/input-history/src/index2.js +12 -7
  18. package/dist/components/labels/src/index2.cjs +1 -1
  19. package/dist/components/labels/src/index2.js +1 -1
  20. package/dist/components/loading/src/index.cjs +3 -3
  21. package/dist/components/loading/src/index.d.ts +2 -2
  22. package/dist/components/loading/src/index.js +1 -1
  23. package/dist/components/message/index.d.ts +3 -5
  24. package/dist/components/message/src/index.cjs +3 -3
  25. package/dist/components/message/src/index.d.ts +3 -10
  26. package/dist/components/message/src/index.js +2 -2
  27. package/dist/components/message-box/src/index.cjs +3 -6
  28. package/dist/components/message-box/src/index.d.ts +3 -13
  29. package/dist/components/message-box/src/index.js +2 -5
  30. package/dist/components/page/set-column.css +8 -8
  31. package/dist/components/page/src/index2.cjs +22 -39
  32. package/dist/components/page/src/index2.js +23 -40
  33. package/dist/components/page/src/set-column.cjs +1 -1
  34. package/dist/components/page/src/set-column.js +1 -1
  35. package/dist/components/page/src/set-column2.cjs +9 -8
  36. package/dist/components/page/src/set-column2.js +2 -1
  37. package/dist/components/role-select/src/index2.cjs +7 -7
  38. package/dist/components/role-select/src/index2.js +1 -1
  39. package/dist/components/selector/src/index2.cjs +12 -11
  40. package/dist/components/selector/src/index2.js +8 -7
  41. package/dist/components/tablesv/src/column.cjs +9 -8
  42. package/dist/components/tablesv/src/column.js +2 -1
  43. package/dist/components/tablesv/src/columns2.cjs +2 -2
  44. package/dist/components/tablesv/src/columns2.js +1 -1
  45. package/dist/css/index.css +1 -1
  46. package/dist/css/input-history.css +1 -1
  47. package/dist/css/page/set-column.css +8 -8
  48. package/dist/icons/index.css +36 -36
  49. package/dist/icons/index.json +8 -8
  50. package/dist/index.css +1 -1
  51. package/package.json +4 -4
  52. /package/dist/components/{forms-items → forms-item}/index.css +0 -0
  53. /package/dist/components/{config-provider → keep-com}/index.css +0 -0
  54. /package/dist/css/{forms-items.css → forms-item.css} +0 -0
  55. /package/dist/css/{config-provider.css → keep-com.css} +0 -0
@@ -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, {
@@ -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
@@ -1,11 +1,11 @@
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");
4
+ const index$3 = require("../../../directives/expose/index.cjs");
5
5
  const data = require("./data.cjs");
6
6
  const index$1 = require("../../../hooks/cssname/index.cjs");
7
7
  const index = require("../../../hooks/inherit/index.cjs");
8
- const elementPlus = require("element-plus");
8
+ const index$2 = require("element-plus/es/components/image/index");
9
9
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
10
  __name: "index",
11
11
  props: data.dataProps,
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
35
35
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
36
36
  class: [vue.unref(cs).z()]
37
37
  }, vue.unref(attrs).root), [
38
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElImage), vue.mergeProps(vue.unref(attrs).assem, {
38
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.ElImage), vue.mergeProps(vue.unref(attrs).assem, {
39
39
  src: value.value,
40
40
  "preview-src-list": list.value,
41
41
  style: {
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
52
52
  };
53
53
  })
54
54
  ]), 1040, ["src", "preview-src-list", "style"])), [
55
- [vue.unref(index$2.default), {}]
55
+ [vue.unref(index$3.default), {}]
56
56
  ])
57
57
  ], 16);
58
58
  };
@@ -3,7 +3,7 @@ import vExpose from "../../../directives/expose/index.js";
3
3
  import { dataExpose, dataEmits, dataProps } from "./data.js";
4
4
  import { useCssName } from "../../../hooks/cssname/index.js";
5
5
  import { useInherit } from "../../../hooks/inherit/index.js";
6
- import { ElImage } from "element-plus";
6
+ import { ElImage } from "element-plus/es/components/image/index";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "index",
9
9
  props: dataProps,
@@ -13,7 +13,7 @@
13
13
  }
14
14
 
15
15
  .input-history {
16
- display: inline-block;
16
+ display: flex;
17
17
  }
18
18
  .input-history-popper {
19
19
  padding: 6px 0 !important;
@@ -2,8 +2,7 @@
2
2
 
3
3
  $input-history: 'input-history';
4
4
  @include b($input-history) {
5
- display: inline-block;
6
-
5
+ display: flex;
7
6
  &-popper {
8
7
  padding: 6px 0 !important;
9
8
  }
@@ -1,14 +1,15 @@
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("../../icon/index.cjs");
4
+ const index$3 = require("../../icon/index.cjs");
5
5
  const clear = require("../../../icons/vue/clear.cjs");
6
- const index$4 = require("../../../directives/expose/index.cjs");
7
- const elementPlus = require("element-plus");
6
+ const index$5 = require("../../../directives/expose/index.cjs");
7
+ const index$2 = require("../../popover/index.cjs");
8
+ const index$6 = require("../../button/index.cjs");
8
9
  const getCss = require("@fangzhongya/utils/css/getCss");
9
10
  const util = require("./util.cjs");
10
11
  const data = require("./data.cjs");
11
- const index$3 = require("../../inputs/index.cjs");
12
+ const index$4 = require("../../inputs/index.cjs");
12
13
  const index$1 = require("../../../hooks/cssname/index.cjs");
13
14
  const index = require("../../../hooks/inherit/index.cjs");
14
15
  const _hoisted_1 = ["onClick"];
@@ -96,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
96
97
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
97
98
  class: [vue.unref(cs).z()]
98
99
  }, vue.unref(attrs).root), [
99
- vue.createVNode(vue.unref(elementPlus.ElPopover), {
100
+ vue.createVNode(vue.unref(index$2.Popover), {
100
101
  trigger: "click",
101
102
  "popper-class": vue.unref(cs).z("popper"),
102
103
  visible: visible.value,
@@ -104,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
104
105
  width: width.value
105
106
  }, {
106
107
  reference: vue.withCtx(() => [
107
- vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$3.Inputs), vue.mergeProps({
108
+ vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$4.Inputs), vue.mergeProps({
108
109
  ref_key: "refInput",
109
110
  ref: refInput,
110
111
  modelValue: value.value,
@@ -131,7 +132,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
131
132
  };
132
133
  })
133
134
  ]), 1040, ["modelValue", "disabled"])), [
134
- [vue.unref(index$4.default), {}]
135
+ [vue.unref(index$5.default), {}]
135
136
  ])
136
137
  ]),
137
138
  default: vue.withCtx(() => [
@@ -148,7 +149,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
148
149
  onClick: vue.withModifiers(($event) => onClickSelect(item), ["stop"])
149
150
  }, [
150
151
  vue.createElementVNode("span", null, vue.toDisplayString(item), 1),
151
- props.clean ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.Icon), {
152
+ props.clean ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.Icon), {
152
153
  key: 0,
153
154
  class: vue.normalizeClass([vue.unref(cs).z("select-li-clean")]),
154
155
  onClick: vue.withModifiers(($event) => onClean(item), ["stop"])
@@ -165,13 +166,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
165
166
  ]),
166
167
  _: 3
167
168
  }, 8, ["popper-class", "visible", "disabled", "width"]),
168
- props.buts ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), vue.mergeProps({
169
+ props.buts ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Button), vue.mergeProps({
169
170
  key: 0,
170
171
  class: [vue.unref(cs).z("but"), props.buts.class]
171
172
  }, props.buts, {
172
- onClick: vue.withModifiers(onChange, ["stop"]),
173
- modelValue: props.buts.label
174
- }), null, 16, ["class", "modelValue"])) : vue.createCommentVNode("", true)
173
+ onClick: vue.withModifiers(onChange, ["stop"])
174
+ }), {
175
+ default: vue.withCtx(() => [
176
+ vue.createTextVNode(vue.toDisplayString(props.buts.label), 1)
177
+ ]),
178
+ _: 1
179
+ }, 16, ["class"])) : vue.createCommentVNode("", true)
175
180
  ], 16);
176
181
  };
177
182
  }
@@ -1,8 +1,9 @@
1
- import { defineComponent, useAttrs, useSlots, ref, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, createVNode, createBlock, createCommentVNode, withCtx, normalizeClass, createElementVNode, Fragment, renderList, withModifiers, toDisplayString, withDirectives, withKeys, createSlots, renderSlot } from "vue";
1
+ import { defineComponent, useAttrs, useSlots, ref, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, createVNode, createBlock, createCommentVNode, withCtx, normalizeClass, createElementVNode, Fragment, renderList, withModifiers, toDisplayString, withDirectives, withKeys, createSlots, renderSlot, createTextVNode } from "vue";
2
2
  import { Icon } from "../../icon/index.js";
3
3
  import Clear from "../../../icons/vue/clear.js";
4
4
  import vExpose from "../../../directives/expose/index.js";
5
- import { ElPopover, ElButton } from "element-plus";
5
+ import { Popover } from "../../popover/index.js";
6
+ import { Button } from "../../button/index.js";
6
7
  import { getCss } from "@fangzhongya/utils/css/getCss";
7
8
  import { useStorage, replaceAfter, deleteArray } from "./util.js";
8
9
  import { dataExpose, dataEmits, dataProps } from "./data.js";
@@ -94,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
95
  return openBlock(), createElementBlock("div", mergeProps({
95
96
  class: [unref(cs).z()]
96
97
  }, unref(attrs).root), [
97
- createVNode(unref(ElPopover), {
98
+ createVNode(unref(Popover), {
98
99
  trigger: "click",
99
100
  "popper-class": unref(cs).z("popper"),
100
101
  visible: visible.value,
@@ -163,13 +164,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
164
  ]),
164
165
  _: 3
165
166
  }, 8, ["popper-class", "visible", "disabled", "width"]),
166
- props.buts ? (openBlock(), createBlock(unref(ElButton), mergeProps({
167
+ props.buts ? (openBlock(), createBlock(unref(Button), mergeProps({
167
168
  key: 0,
168
169
  class: [unref(cs).z("but"), props.buts.class]
169
170
  }, props.buts, {
170
- onClick: withModifiers(onChange, ["stop"]),
171
- modelValue: props.buts.label
172
- }), null, 16, ["class", "modelValue"])) : createCommentVNode("", true)
171
+ onClick: withModifiers(onChange, ["stop"])
172
+ }), {
173
+ default: withCtx(() => [
174
+ createTextVNode(toDisplayString(props.buts.label), 1)
175
+ ]),
176
+ _: 1
177
+ }, 16, ["class"])) : createCommentVNode("", true)
173
178
  ], 16);
174
179
  };
175
180
  }
@@ -6,7 +6,6 @@ const index$1 = require("../../selects/index.cjs");
6
6
  const use = require("../../common/use.cjs");
7
7
  const index = require("../../../hooks/cssname/index.cjs");
8
8
  const data = require("./data.cjs");
9
- const wholeValue = "Symbol('whole')";
10
9
  const wholeClass = "labels-li-whole";
11
10
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
12
11
  __name: "index",
@@ -36,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
35
  obj[d] = value2;
37
36
  }
38
37
  }
38
+ const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
39
39
  const options = vue.computed(() => {
40
40
  const opts = [...props.options];
41
41
  if (!props.nowhole) {
@@ -4,7 +4,6 @@ import { Selects } from "../../selects/index.js";
4
4
  import { useVueValue } from "../../common/use.js";
5
5
  import { useCssName } from "../../../hooks/cssname/index.js";
6
6
  import { dataHandle, dataEmits, dataProps } from "./data.js";
7
- const wholeValue = "Symbol('whole')";
8
7
  const wholeClass = "labels-li-whole";
9
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
9
  __name: "index",
@@ -34,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
33
  obj[d] = value2;
35
34
  }
36
35
  }
36
+ const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
37
37
  const options = computed(() => {
38
38
  const opts = [...props.options];
39
39
  if (!props.nowhole) {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const elementPlus = require("element-plus");
4
- const vLoading = elementPlus.ElLoadingDirective;
5
- const Loading = elementPlus.ElLoadingService;
3
+ const index = require("element-plus/es/components/loading/index");
4
+ const vLoading = index.ElLoadingDirective;
5
+ const Loading = index.ElLoadingService;
6
6
  exports.Loading = Loading;
7
7
  exports.default = Loading;
8
8
  exports.vLoading = vLoading;
@@ -1,5 +1,5 @@
1
- import { ElLoadingDirective } from 'element-plus';
2
- import { LoadingOptions, LoadingInstance } from 'element-plus/es/index';
1
+ import { ElLoadingDirective } from 'element-plus/es/es/components/loading/index';
2
+ import { LoadingOptions, LoadingInstance } from 'element-plus/es/components/loading';
3
3
  import { AppContext } from 'vue';
4
4
  /**
5
5
  * @title {h2} Loading 加载
@@ -1,4 +1,4 @@
1
- import { ElLoadingDirective, ElLoadingService } from "element-plus";
1
+ import { ElLoadingDirective, ElLoadingService } from "element-plus/es/components/loading/index";
2
2
  const vLoading = ElLoadingDirective;
3
3
  const Loading = ElLoadingService;
4
4
  export {
@@ -1,9 +1,7 @@
1
- import { MessageHandler, MessageType } from 'element-plus/es/index';
1
+ import { SFCInstallWithContext } from 'element-plus/es/utils';
2
+ import { Message } from 'element-plus/es/components/message';
2
3
  import { Plugin } from 'vue';
3
- declare const Message: {
4
- (...arr: any[]): MessageHandler;
5
- closeAll: (type?: MessageType) => void;
6
- } & {
4
+ declare const Message: SFCInstallWithContext<Message> & {
7
5
  install: Plugin["install"];
8
6
  };
9
7
  export { Message, Message as default };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const elementPlus = require("element-plus");
3
+ const index = require("element-plus/es/components/message/index");
4
4
  const Message = (...arr) => {
5
- return elementPlus.ElMessage(...arr);
5
+ return index.ElMessage(...arr);
6
6
  };
7
- Message.closeAll = elementPlus.ElMessage.closeAll;
7
+ Object.assign(Message, index.ElMessage);
8
8
  exports.default = Message;
@@ -1,10 +1,3 @@
1
- import { MessageHandler, MessageType } from 'element-plus/es/index';
2
- /**
3
- * @title {h2} Message 消息提示
4
- * @text 目前完全继承 element-plus 中 ElMessage
5
- */
6
- declare const Message: {
7
- (...arr: any[]): MessageHandler;
8
- closeAll: (type?: MessageType) => void;
9
- };
10
- export default Message;
1
+ import { ElMessage } from 'element-plus/es/es/components/message/index';
2
+ declare const _default: typeof ElMessage;
3
+ export default _default;
@@ -1,8 +1,8 @@
1
- import { ElMessage } from "element-plus";
1
+ import { ElMessage } from "element-plus/es/components/message/index";
2
2
  const Message = (...arr) => {
3
3
  return ElMessage(...arr);
4
4
  };
5
- Message.closeAll = ElMessage.closeAll;
5
+ Object.assign(Message, ElMessage);
6
6
  export {
7
7
  Message as default
8
8
  };
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const elementPlus = require("element-plus");
3
+ const index = require("element-plus/es/components/message-box/index");
4
4
  const MessageBox = (a, ...rest) => {
5
- return elementPlus.ElMessageBox(a, ...rest);
5
+ return index.ElMessageBox(a, ...rest);
6
6
  };
7
- MessageBox.close = elementPlus.ElMessageBox.close;
8
- MessageBox.alert = elementPlus.ElMessageBox.alert;
9
- MessageBox.confirm = elementPlus.ElMessageBox.confirm;
10
- MessageBox.prompt = elementPlus.ElMessageBox.prompt;
7
+ Object.assign(MessageBox, index.ElMessageBox);
11
8
  exports.default = MessageBox;
@@ -1,13 +1,3 @@
1
- import { MessageBoxData, ElMessageBoxShortcutMethod } from 'element-plus/es/index';
2
- /**
3
- * @title {h2} MessageBox 消息弹框
4
- * @text 目前完全继承 element-plus 中 ElMessageBox
5
- */
6
- declare const MessageBox: {
7
- (a: any, ...rest: any[]): Promise< MessageBoxData>;
8
- close: () => void;
9
- alert: ElMessageBoxShortcutMethod;
10
- confirm: ElMessageBoxShortcutMethod;
11
- prompt: ElMessageBoxShortcutMethod;
12
- };
13
- export default MessageBox;
1
+ import { ElMessageBox } from 'element-plus/es/es/components/message-box/index';
2
+ declare const _default: typeof ElMessageBox;
3
+ export default _default;
@@ -1,11 +1,8 @@
1
- import { ElMessageBox } from "element-plus";
1
+ import { ElMessageBox } from "element-plus/es/components/message-box/index";
2
2
  const MessageBox = (a, ...rest) => {
3
3
  return ElMessageBox(a, ...rest);
4
4
  };
5
- MessageBox.close = ElMessageBox.close;
6
- MessageBox.alert = ElMessageBox.alert;
7
- MessageBox.confirm = ElMessageBox.confirm;
8
- MessageBox.prompt = ElMessageBox.prompt;
5
+ Object.assign(MessageBox, ElMessageBox);
9
6
  export {
10
7
  MessageBox as default
11
8
  };