@fangzhongya/fang-ui 0.1.26 → 0.1.27

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 (225) hide show
  1. package/dist/components/array/index.css +5 -0
  2. package/dist/components/array/src/index2.cjs +0 -1
  3. package/dist/components/array/src/index2.js +0 -1
  4. package/dist/components/audios/index.css +5 -0
  5. package/dist/components/box/index.css +5 -0
  6. package/dist/components/box-adjust/index.css +5 -0
  7. package/dist/components/box-fun/index.cjs +7 -0
  8. package/dist/components/box-fun/index.d.ts +7 -0
  9. package/dist/components/box-fun/index.js +7 -0
  10. package/dist/components/box-fun/src/data.cjs +34 -0
  11. package/dist/components/box-fun/src/data.d.ts +35 -0
  12. package/dist/components/box-fun/src/data.js +34 -0
  13. package/dist/components/box-fun/src/function.cjs +97 -0
  14. package/dist/components/box-fun/src/function.d.ts +8 -0
  15. package/dist/components/box-fun/src/function.js +97 -0
  16. package/dist/components/box-fun/src/index.cjs +5 -0
  17. package/dist/components/box-fun/src/index.d.ts +2 -0
  18. package/dist/components/box-fun/src/index.js +5 -0
  19. package/dist/components/box-local/index.css +5 -0
  20. package/dist/components/box-mask/index.css +5 -0
  21. package/dist/components/box-teleport/src/index2.cjs +2 -11
  22. package/dist/components/box-teleport/src/index2.js +2 -11
  23. package/dist/components/box-title/index.css +5 -0
  24. package/dist/components/buttons/index.css +5 -0
  25. package/dist/components/cascaders/index.css +5 -0
  26. package/dist/components/checks/index.css +5 -0
  27. package/dist/components/dates/index.css +5 -0
  28. package/dist/components/dates-divide/index.css +5 -0
  29. package/dist/components/dates-picker/index.css +5 -0
  30. package/dist/components/dates2/index.css +5 -0
  31. package/dist/components/dialogs/index.css +5 -0
  32. package/dist/components/draggable/index.cjs +9 -0
  33. package/dist/components/draggable/index.d.ts +4 -0
  34. package/dist/components/draggable/index.js +9 -0
  35. package/dist/components/draggable/index.scss +5 -0
  36. package/dist/components/draggable/src/data.cjs +37 -0
  37. package/dist/components/draggable/src/data.d.ts +60 -0
  38. package/dist/components/draggable/src/data.js +37 -0
  39. package/dist/components/draggable/src/index.cjs +4 -0
  40. package/dist/components/draggable/src/index.js +4 -0
  41. package/dist/components/draggable/src/index2.cjs +101 -0
  42. package/dist/components/draggable/src/index2.js +101 -0
  43. package/dist/components/edit/index.css +5 -0
  44. package/dist/components/edit-float/index.css +5 -0
  45. package/dist/components/forms/common/config.cjs +7 -0
  46. package/dist/components/forms/common/config.d.ts +4 -0
  47. package/dist/components/forms/common/config.js +7 -0
  48. package/dist/components/forms/index.css +5 -0
  49. package/dist/components/forms/src/data.cjs +0 -5
  50. package/dist/components/forms/src/data.d.ts +0 -4
  51. package/dist/components/forms/src/data.js +1 -6
  52. package/dist/components/forms/src/setup.cjs +3 -2
  53. package/dist/components/forms/src/setup.js +2 -1
  54. package/dist/components/forms-div/index.css +5 -0
  55. package/dist/components/forms-div/src/index2.cjs +2 -2
  56. package/dist/components/forms-div/src/index2.js +1 -1
  57. package/dist/components/forms-drag/src/index2.cjs +12 -12
  58. package/dist/components/forms-drag/src/index2.js +1 -1
  59. package/dist/components/{forms-items → forms-item}/index.css +5 -0
  60. package/dist/components/forms-item/src/index2.cjs +2 -2
  61. package/dist/components/forms-item/src/index2.js +1 -1
  62. package/dist/components/forms-item/src/label.cjs +7 -7
  63. package/dist/components/forms-item/src/label.js +1 -1
  64. package/dist/components/forms-items/src/index2.cjs +9 -9
  65. package/dist/components/forms-items/src/index2.js +1 -1
  66. package/dist/components/full-screen/index.css +5 -0
  67. package/dist/components/{keep-com → global-config}/index.css +5 -0
  68. package/dist/components/global-config/index.d.ts +1 -1
  69. package/dist/components/global-config/src/index.d.ts +1 -1
  70. package/dist/components/history/index.css +5 -0
  71. package/dist/components/icon/index.css +5 -0
  72. package/dist/components/icon-picker/index.css +5 -0
  73. package/dist/components/iframe/index.css +5 -0
  74. package/dist/components/images/index.css +5 -0
  75. package/dist/components/index.cjs +411 -407
  76. package/dist/components/index.d.ts +2 -0
  77. package/dist/components/index.js +4 -0
  78. package/dist/components/index.scss +3 -1
  79. package/dist/components/index2.scss +3 -1
  80. package/dist/components/input-array/index.css +5 -0
  81. package/dist/components/input-history/index.css +5 -0
  82. package/dist/components/input-num/index.css +5 -0
  83. package/dist/components/input-select/index.css +5 -0
  84. package/dist/components/inputs/index.css +5 -0
  85. package/dist/components/labels/index.css +5 -0
  86. package/dist/components/list/index.css +5 -0
  87. package/dist/components/lists/index.css +5 -0
  88. package/dist/components/lists/src/index2.cjs +9 -9
  89. package/dist/components/lists/src/index2.js +9 -9
  90. package/dist/components/listsp/index.css +5 -0
  91. package/dist/components/listspd/index.css +5 -0
  92. package/dist/components/loading/src/data.cjs +13 -0
  93. package/dist/components/loading/src/data.d.ts +17 -0
  94. package/dist/components/loading/src/data.js +13 -0
  95. package/dist/components/loading/src/index.cjs +1 -0
  96. package/dist/components/loading/src/index.d.ts +0 -4
  97. package/dist/components/loading/src/index.js +1 -0
  98. package/dist/components/menus/index.css +5 -0
  99. package/dist/components/message/src/data.cjs +13 -0
  100. package/dist/components/message/src/data.d.ts +17 -0
  101. package/dist/components/message/src/data.js +13 -0
  102. package/dist/components/message/src/index.cjs +1 -0
  103. package/dist/components/message/src/index.d.ts +0 -4
  104. package/dist/components/message/src/index.js +1 -0
  105. package/dist/components/message-box/src/data.cjs +13 -0
  106. package/dist/components/message-box/src/data.d.ts +17 -0
  107. package/dist/components/message-box/src/data.js +13 -0
  108. package/dist/components/message-box/src/index.cjs +1 -0
  109. package/dist/components/message-box/src/index.d.ts +0 -4
  110. package/dist/components/message-box/src/index.js +1 -0
  111. package/dist/components/no-data/index.css +5 -0
  112. package/dist/components/page/index.css +5 -0
  113. package/dist/components/page/src/set-column2.cjs +2 -2
  114. package/dist/components/page/src/set-column2.js +1 -1
  115. package/dist/components/paging/index.css +5 -0
  116. package/dist/components/popup/index.css +5 -0
  117. package/dist/components/retract/index.css +5 -0
  118. package/dist/components/right-key/index.css +5 -0
  119. package/dist/components/scss/common.scss +5 -0
  120. package/dist/components/seamless-scroll/index.css +5 -0
  121. package/dist/components/select-scroll/index.css +5 -0
  122. package/dist/components/selector/index.css +5 -0
  123. package/dist/components/selects/index.css +5 -0
  124. package/dist/components/sliders/index.css +5 -0
  125. package/dist/components/switchs/index.css +5 -0
  126. package/dist/components/tables/common/pagin.cjs +49 -20
  127. package/dist/components/tables/common/pagin.d.ts +32 -8
  128. package/dist/components/tables/common/pagin.js +49 -20
  129. package/dist/components/tables/index.css +5 -0
  130. package/dist/components/tables/src/column.cjs +1 -2
  131. package/dist/components/tables/src/column.js +1 -2
  132. package/dist/components/tables/src/data.d.ts +1 -1
  133. package/dist/components/tables/src/index2.cjs +12 -1
  134. package/dist/components/tables/src/index2.js +12 -1
  135. package/dist/components/tablesp/index.css +5 -0
  136. package/dist/components/tablesp/src/index2.cjs +9 -5
  137. package/dist/components/tablesp/src/index2.js +9 -5
  138. package/dist/components/tablespd/index.css +5 -0
  139. package/dist/components/tabless/index.css +5 -0
  140. package/dist/components/tablesv/index.css +5 -0
  141. package/dist/components/tablesvp/index.css +5 -0
  142. package/dist/components/uploads/index.css +5 -0
  143. package/dist/components/videos/index.css +5 -0
  144. package/dist/components/window/index.css +5 -0
  145. package/dist/css/array.css +5 -0
  146. package/dist/css/audios.css +5 -0
  147. package/dist/css/box-adjust.css +5 -0
  148. package/dist/css/box-local.css +5 -0
  149. package/dist/css/box-mask.css +5 -0
  150. package/dist/css/box-title.css +5 -0
  151. package/dist/css/box.css +5 -0
  152. package/dist/css/buttons.css +5 -0
  153. package/dist/css/cascaders.css +5 -0
  154. package/dist/css/checks.css +5 -0
  155. package/dist/css/dates-divide.css +5 -0
  156. package/dist/css/dates-picker.css +5 -0
  157. package/dist/css/dates.css +5 -0
  158. package/dist/css/dates2.css +5 -0
  159. package/dist/css/dialogs.css +5 -0
  160. package/dist/css/edit-float.css +5 -0
  161. package/dist/css/edit.css +5 -0
  162. package/dist/css/forms-div.css +5 -0
  163. package/dist/css/{forms-items.css → forms-item.css} +5 -0
  164. package/dist/css/forms.css +5 -0
  165. package/dist/css/full-screen.css +5 -0
  166. package/dist/css/{keep-com.css → global-config.css} +5 -0
  167. package/dist/css/history.css +5 -0
  168. package/dist/css/icon-picker.css +5 -0
  169. package/dist/css/icon.css +5 -0
  170. package/dist/css/iframe.css +5 -0
  171. package/dist/css/images.css +5 -0
  172. package/dist/css/index.css +27 -0
  173. package/dist/css/input-array.css +5 -0
  174. package/dist/css/input-history.css +5 -0
  175. package/dist/css/input-num.css +5 -0
  176. package/dist/css/input-select.css +5 -0
  177. package/dist/css/inputs.css +5 -0
  178. package/dist/css/labels.css +5 -0
  179. package/dist/css/list.css +5 -0
  180. package/dist/css/lists.css +5 -0
  181. package/dist/css/listsp.css +5 -0
  182. package/dist/css/listspd.css +5 -0
  183. package/dist/css/menus.css +5 -0
  184. package/dist/css/no-data.css +5 -0
  185. package/dist/css/page.css +5 -0
  186. package/dist/css/paging.css +5 -0
  187. package/dist/css/popup.css +5 -0
  188. package/dist/css/retract.css +5 -0
  189. package/dist/css/right-key.css +5 -0
  190. package/dist/css/seamless-scroll.css +5 -0
  191. package/dist/css/select-scroll.css +5 -0
  192. package/dist/css/selector.css +5 -0
  193. package/dist/css/selects.css +5 -0
  194. package/dist/css/sliders.css +5 -0
  195. package/dist/css/switchs.css +5 -0
  196. package/dist/css/tables.css +5 -0
  197. package/dist/css/tablesp.css +5 -0
  198. package/dist/css/tablespd.css +5 -0
  199. package/dist/css/tabless.css +5 -0
  200. package/dist/css/tablesv.css +5 -0
  201. package/dist/css/tablesvp.css +5 -0
  202. package/dist/css/uploads.css +5 -0
  203. package/dist/css/videos.css +5 -0
  204. package/dist/css/window.css +5 -0
  205. package/dist/expand/{chunk-RBGCE6BS.js → chunk-CV4O5V2F.js} +3 -0
  206. package/dist/expand/{chunk-2L4PC7LZ.cjs → chunk-MC76Q3TQ.cjs} +3 -0
  207. package/dist/expand/components.cjs +5 -5
  208. package/dist/expand/components.js +1 -1
  209. package/dist/expand/config.cjs +2 -2
  210. package/dist/expand/config.js +1 -1
  211. package/dist/hooks/props-default/index.cjs +0 -12
  212. package/dist/hooks/props-default/index.d.ts +1 -1
  213. package/dist/hooks/props-default/index.js +0 -12
  214. package/dist/icons/index.json +1 -1
  215. package/dist/index.cjs +435 -431
  216. package/dist/index.css +27 -0
  217. package/dist/index.js +4 -0
  218. package/dist/type.d.ts +10 -5
  219. package/dist/utils/vues/getBoxDom.cjs +22 -0
  220. package/dist/utils/vues/getBoxDom.d.ts +1 -0
  221. package/dist/utils/vues/getBoxDom.js +22 -0
  222. package/dist/utils/vues/index.cjs +2 -0
  223. package/dist/utils/vues/index.d.ts +1 -0
  224. package/dist/utils/vues/index.js +2 -0
  225. package/package.json +10 -11
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .array {
16
21
  width: 100%;
17
22
  display: inline-flex;
@@ -5,7 +5,6 @@ const data = require("./data.cjs");
5
5
  const index$1 = require("../../../hooks/cssname/index.cjs");
6
6
  const index$3 = require("../../icon/index.cjs");
7
7
  const clear = require("../../../icons/vue/clear.cjs");
8
- require("../../forms/src/data.cjs");
9
8
  const compons = require("../../common/compons.cjs");
10
9
  const index$2 = require("../../../hooks/props-default/index.cjs");
11
10
  const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
@@ -3,7 +3,6 @@ import { name, dataProps, dataExpose, dataSlot, dataEmits } 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
- import "../../forms/src/data.js";
7
6
  import { useGetCompons } from "../../common/compons.js";
8
7
  import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
9
8
  import { lineToLargeHump } from "@fangzhongya/utils/name/lineToLargeHump";
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .audios.is-playing .audios-name {
16
21
  background-color: antiquewhite;
17
22
  }
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .box-mask {
16
21
  display: block;
17
22
  opacity: 0.5;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .box-mask {
16
21
  display: block;
17
22
  opacity: 0.5;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index = require("./src/index.cjs");
4
+ const _function = require("./src/function.cjs");
5
+ const BoxFun = _function.withInstall(index.default, "BoxFun");
6
+ exports.BoxFun = BoxFun;
7
+ exports.default = BoxFun;
@@ -0,0 +1,7 @@
1
+ import { DataProps } from '../box/src/data';
2
+ declare const BoxFun: (content?: string | Function, props?: DataProps & {
3
+ isCancel?: boolean;
4
+ cancelName?: string;
5
+ confirmName?: string;
6
+ }, verify?: () => boolean) => Promise<unknown>;
7
+ export { BoxFun, BoxFun as default };
@@ -0,0 +1,7 @@
1
+ import SrcVue from "./src/index.js";
2
+ import { withInstall } from "./src/function.js";
3
+ const BoxFun = withInstall(SrcVue, "BoxFun");
4
+ export {
5
+ BoxFun,
6
+ BoxFun as default
7
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const buildProps = require("../../../utils/vues/buildProps.cjs");
4
+ const name = "box-fun";
5
+ const dataProps = buildProps.buildProps({
6
+ /**
7
+ * @props {String, Function} content='' 内容
8
+ */
9
+ content: {
10
+ type: [String, Function]
11
+ },
12
+ /**
13
+ * @props { Object } props={} 配置
14
+ */
15
+ props: {
16
+ type: Object
17
+ },
18
+ /**
19
+ * @props { Function } verify=()=>true 校验
20
+ */
21
+ verify: {
22
+ type: Function
23
+ }
24
+ });
25
+ const dataEmits = {};
26
+ const dataSlot = {
27
+ default: "default"
28
+ };
29
+ const dataExpose = { name };
30
+ exports.dataEmits = dataEmits;
31
+ exports.dataExpose = dataExpose;
32
+ exports.dataProps = dataProps;
33
+ exports.dataSlot = dataSlot;
34
+ exports.name = name;
@@ -0,0 +1,35 @@
1
+ import { ExtractPublicPropTypes } from 'vue';
2
+ /**
3
+ * @title {h3} BoxFun
4
+ * @text box-fun
5
+ */
6
+ export declare const name = "box-fun";
7
+ export declare const dataProps: {
8
+ /**
9
+ * @props {String, Function} content='' 内容
10
+ */
11
+ content: {
12
+ type: (StringConstructor | FunctionConstructor)[];
13
+ };
14
+ /**
15
+ * @props { Object } props={} 配置
16
+ */
17
+ props: {
18
+ type: ObjectConstructor;
19
+ };
20
+ /**
21
+ * @props { Function } verify=()=>true 校验
22
+ */
23
+ verify: {
24
+ type: FunctionConstructor;
25
+ };
26
+ };
27
+ export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
28
+ export declare const dataEmits: {};
29
+ export type DataEmits = typeof dataEmits;
30
+ export declare const dataSlot: {
31
+ default: string;
32
+ };
33
+ export declare const dataExpose: {
34
+ name: string;
35
+ };
@@ -0,0 +1,34 @@
1
+ import { buildProps } from "../../../utils/vues/buildProps.js";
2
+ const name = "box-fun";
3
+ const dataProps = buildProps({
4
+ /**
5
+ * @props {String, Function} content='' 内容
6
+ */
7
+ content: {
8
+ type: [String, Function]
9
+ },
10
+ /**
11
+ * @props { Object } props={} 配置
12
+ */
13
+ props: {
14
+ type: Object
15
+ },
16
+ /**
17
+ * @props { Function } verify=()=>true 校验
18
+ */
19
+ verify: {
20
+ type: Function
21
+ }
22
+ });
23
+ const dataEmits = {};
24
+ const dataSlot = {
25
+ default: "default"
26
+ };
27
+ const dataExpose = { name };
28
+ export {
29
+ dataEmits,
30
+ dataExpose,
31
+ dataProps,
32
+ dataSlot,
33
+ name
34
+ };
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const vue = require("vue");
4
+ const index$2 = require("../../box/index.cjs");
5
+ const getBoxDom = require("../../../utils/vues/getBoxDom.cjs");
6
+ const index$1 = require("../../button/index.cjs");
7
+ const index = require("../../../hooks/locale/index.cjs");
8
+ const BoxFun = (content = "", props = {}, verify = () => true) => {
9
+ return new Promise((resolve, reject) => {
10
+ const mountNode = document.createElement("div");
11
+ const dom = getBoxDom.getBoxDom();
12
+ (dom ?? document.body).appendChild(mountNode);
13
+ const visible = vue.ref(true);
14
+ const app = vue.createApp({
15
+ render() {
16
+ const { getLocale } = index.useLocale();
17
+ let defaultFun;
18
+ if (typeof content === "string") {
19
+ defaultFun = () => vue.h("div", content);
20
+ } else if (content) {
21
+ defaultFun = content;
22
+ }
23
+ const cancel = vue.h(
24
+ index$1.Button,
25
+ {
26
+ onClick() {
27
+ visible.value = false;
28
+ vue.nextTick(() => {
29
+ app.unmount();
30
+ mountNode.remove();
31
+ });
32
+ reject(false);
33
+ }
34
+ },
35
+ {
36
+ default() {
37
+ return props.cancelName ?? getLocale("form.cancel");
38
+ }
39
+ }
40
+ );
41
+ return vue.h(
42
+ index$2.Box,
43
+ {
44
+ modelValue: visible.value,
45
+ "onUpdate:modelValue": (value) => {
46
+ visible.value = value;
47
+ },
48
+ ...props
49
+ },
50
+ {
51
+ footer: () => {
52
+ return vue.h(
53
+ "div",
54
+ {
55
+ class: "com-footer",
56
+ style: {
57
+ "text-align": "right"
58
+ }
59
+ },
60
+ [
61
+ props.isCancel === false ? void 0 : cancel,
62
+ vue.h(
63
+ index$1.Button,
64
+ {
65
+ type: "primary",
66
+ onClick: async () => {
67
+ if (await verify()) {
68
+ visible.value = false;
69
+ vue.nextTick(() => {
70
+ app.unmount();
71
+ mountNode.remove();
72
+ });
73
+ resolve(true);
74
+ }
75
+ }
76
+ },
77
+ {
78
+ default() {
79
+ return props.confirmName ?? getLocale("form.confirm");
80
+ }
81
+ }
82
+ )
83
+ ]
84
+ );
85
+ },
86
+ default: defaultFun
87
+ }
88
+ );
89
+ }
90
+ });
91
+ app.mount(mountNode);
92
+ });
93
+ };
94
+ function withInstall(fun, name) {
95
+ return BoxFun;
96
+ }
97
+ exports.withInstall = withInstall;
@@ -0,0 +1,8 @@
1
+ import { DataProps } from '../box/src/data';
2
+ type Props = {
3
+ isCancel?: boolean;
4
+ cancelName?: string;
5
+ confirmName?: string;
6
+ };
7
+ export declare function withInstall<T>(fun: T, name: string): (content?: string | Function, props?: DataProps & Props, verify?: () => boolean) => Promise<unknown>;
8
+ export {};
@@ -0,0 +1,97 @@
1
+ import { ref, createApp, h, nextTick } from "vue";
2
+ import { Box } from "../../box/index.js";
3
+ import { getBoxDom } from "../../../utils/vues/getBoxDom.js";
4
+ import { Button } from "../../button/index.js";
5
+ import { useLocale } from "../../../hooks/locale/index.js";
6
+ const BoxFun = (content = "", props = {}, verify = () => true) => {
7
+ return new Promise((resolve, reject) => {
8
+ const mountNode = document.createElement("div");
9
+ const dom = getBoxDom();
10
+ (dom ?? document.body).appendChild(mountNode);
11
+ const visible = ref(true);
12
+ const app = createApp({
13
+ render() {
14
+ const { getLocale } = useLocale();
15
+ let defaultFun;
16
+ if (typeof content === "string") {
17
+ defaultFun = () => h("div", content);
18
+ } else if (content) {
19
+ defaultFun = content;
20
+ }
21
+ const cancel = h(
22
+ Button,
23
+ {
24
+ onClick() {
25
+ visible.value = false;
26
+ nextTick(() => {
27
+ app.unmount();
28
+ mountNode.remove();
29
+ });
30
+ reject(false);
31
+ }
32
+ },
33
+ {
34
+ default() {
35
+ return props.cancelName ?? getLocale("form.cancel");
36
+ }
37
+ }
38
+ );
39
+ return h(
40
+ Box,
41
+ {
42
+ modelValue: visible.value,
43
+ "onUpdate:modelValue": (value) => {
44
+ visible.value = value;
45
+ },
46
+ ...props
47
+ },
48
+ {
49
+ footer: () => {
50
+ return h(
51
+ "div",
52
+ {
53
+ class: "com-footer",
54
+ style: {
55
+ "text-align": "right"
56
+ }
57
+ },
58
+ [
59
+ props.isCancel === false ? void 0 : cancel,
60
+ h(
61
+ Button,
62
+ {
63
+ type: "primary",
64
+ onClick: async () => {
65
+ if (await verify()) {
66
+ visible.value = false;
67
+ nextTick(() => {
68
+ app.unmount();
69
+ mountNode.remove();
70
+ });
71
+ resolve(true);
72
+ }
73
+ }
74
+ },
75
+ {
76
+ default() {
77
+ return props.confirmName ?? getLocale("form.confirm");
78
+ }
79
+ }
80
+ )
81
+ ]
82
+ );
83
+ },
84
+ default: defaultFun
85
+ }
86
+ );
87
+ }
88
+ });
89
+ app.mount(mountNode);
90
+ });
91
+ };
92
+ function withInstall(fun, name) {
93
+ return BoxFun;
94
+ }
95
+ export {
96
+ withInstall
97
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ require("./data.cjs");
4
+ const SrcVue = {};
5
+ exports.default = SrcVue;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import "./data.js";
2
+ const SrcVue = {};
3
+ export {
4
+ SrcVue as default
5
+ };
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .box-mask {
16
21
  display: block;
17
22
  opacity: 0.5;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .box-mask {
16
21
  display: block;
17
22
  opacity: 0.5;
@@ -4,7 +4,7 @@ const vue = require("vue");
4
4
  const data = require("./data.cjs");
5
5
  const index$1 = require("../../../hooks/cssname/index.cjs");
6
6
  const index = require("../../../hooks/locale/index.cjs");
7
- const enums = require("../../../utils/enums.cjs");
7
+ const getBoxDom = require("../../../utils/vues/getBoxDom.cjs");
8
8
  const index$2 = require("../../../hooks/props-default/index.cjs");
9
9
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
10
  __name: "index",
@@ -17,16 +17,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
17
  const props = index$2.usePropsDefault(data.name, prs, data.dataProps);
18
18
  index$2.viewProps(props, data.name);
19
19
  const emit = __emit;
20
- const id = enums.FunctConfig.BOXIDNAME.trim();
21
- if (document && !(document == null ? void 0 : document.querySelector(id))) {
22
- const d = document.createElement("div");
23
- if (id.startsWith("#")) {
24
- d.id = id.replace(/^#/, "");
25
- } else if (id.startsWith(".")) {
26
- d.className = id.replace(/./g, " ");
27
- }
28
- document.body.appendChild(d);
29
- }
20
+ getBoxDom.getBoxDom();
30
21
  __expose({
31
22
  ...data.dataExpose
32
23
  });
@@ -2,7 +2,7 @@ import { defineComponent, createBlock, openBlock, Teleport, unref, normalizeClas
2
2
  import { name, dataProps, dataExpose, dataEmits } from "./data.js";
3
3
  import { useCssName } from "../../../hooks/cssname/index.js";
4
4
  import { useLocale } from "../../../hooks/locale/index.js";
5
- import { FunctConfig } from "../../../utils/enums.js";
5
+ import { getBoxDom } from "../../../utils/vues/getBoxDom.js";
6
6
  import { usePropsDefault, viewProps, getProps } from "../../../hooks/props-default/index.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "index",
@@ -15,16 +15,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  const props = usePropsDefault(name, prs, dataProps);
16
16
  viewProps(props, name);
17
17
  const emit = __emit;
18
- const id = FunctConfig.BOXIDNAME.trim();
19
- if (document && !(document == null ? void 0 : document.querySelector(id))) {
20
- const d = document.createElement("div");
21
- if (id.startsWith("#")) {
22
- d.id = id.replace(/^#/, "");
23
- } else if (id.startsWith(".")) {
24
- d.className = id.replace(/./g, " ");
25
- }
26
- document.body.appendChild(d);
27
- }
18
+ getBoxDom();
28
19
  __expose({
29
20
  ...dataExpose
30
21
  });
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .icon {
16
21
  --color: inherit;
17
22
  height: 1em;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .buttons-li {
16
21
  height: inherit;
17
22
  }
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .cascaders-cascader {
16
21
  height: 100%;
17
22
  width: 100%;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .checks-check {
16
21
  height: 100%;
17
22
  display: flex;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .dates .dates-date {
16
21
  height: 100%;
17
22
  width: 100%;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .dates-divide {
16
21
  display: inline-flex;
17
22
  align-items: center;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .dates2 .dates2-date {
16
21
  height: 100%;
17
22
  width: 100%;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .dates-divide {
16
21
  display: inline-flex;
17
22
  align-items: center;
@@ -12,6 +12,11 @@
12
12
  --g-main-bg: var(--bg-color-page);
13
13
  }
14
14
 
15
+ .com-footer {
16
+ border-top: 1px solid var(--border);
17
+ padding: 20px 20px;
18
+ }
19
+
15
20
  .dialogs.el-dialog {
16
21
  padding: 0;
17
22
  }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ ;/* empty css */
4
+ require("./src/index.cjs");
5
+ const withInstall = require("../../utils/vues/withInstall.cjs");
6
+ const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
7
+ const Draggable = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "Draggable");
8
+ exports.Draggable = Draggable;
9
+ exports.default = Draggable;
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/vues';
2
+ import { DefineComponent } from 'vue';
3
+ declare const Draggable: SFCWithInstall<DefineComponent<{}, {}, any>>;
4
+ export { Draggable, Draggable as default };
@@ -0,0 +1,9 @@
1
+ /* empty css */
2
+ import "./src/index.js";
3
+ import { withInstall } from "../../utils/vues/withInstall.js";
4
+ import _sfc_main from "./src/index2.js";
5
+ const Draggable = withInstall(_sfc_main, "Draggable");
6
+ export {
7
+ Draggable,
8
+ Draggable as default
9
+ };
@@ -0,0 +1,5 @@
1
+ @use '../scss/common.scss' as *;
2
+
3
+ $draggable: 'draggable';
4
+ @include b($draggable) {
5
+ }