@fangzhongya/fang-ui 0.0.59 → 0.0.61

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 (116) hide show
  1. package/dist/components/array/src/index2.cjs +10 -12
  2. package/dist/components/array/src/index2.js +10 -12
  3. package/dist/components/box/index.css +2 -1
  4. package/dist/components/box-adjust/index.css +2 -1
  5. package/dist/components/box-adjust/src/data.cjs +2 -3
  6. package/dist/components/box-adjust/src/data.d.ts +1 -2
  7. package/dist/components/box-adjust/src/data.js +2 -3
  8. package/dist/components/box-adjust/src/index2.cjs +27 -22
  9. package/dist/components/box-adjust/src/index2.js +15 -10
  10. package/dist/components/box-local/index.css +2 -1
  11. package/dist/components/box-title/index.css +2 -1
  12. package/dist/components/box-title/index.scss +2 -1
  13. package/dist/components/box-title/src/data.cjs +2 -1
  14. package/dist/components/box-title/src/data.d.ts +1 -0
  15. package/dist/components/box-title/src/data.js +2 -1
  16. package/dist/components/box-title/src/index2.cjs +13 -12
  17. package/dist/components/box-title/src/index2.js +14 -13
  18. package/dist/components/common/use.cjs +16 -0
  19. package/dist/components/common/use.d.ts +3 -0
  20. package/dist/components/common/use.js +16 -0
  21. package/dist/components/dialogs/src/index2.cjs +8 -9
  22. package/dist/components/dialogs/src/index2.js +8 -9
  23. package/dist/components/edit/src/data.cjs +1 -0
  24. package/dist/components/edit/src/data.d.ts +1 -0
  25. package/dist/components/edit/src/data.js +1 -0
  26. package/dist/components/edit/src/index2.cjs +10 -3
  27. package/dist/components/edit/src/index2.js +10 -3
  28. package/dist/components/edit-float/index.css +1 -2
  29. package/dist/components/edit-float/index.scss +1 -2
  30. package/dist/components/edit-float/src/data.cjs +1 -0
  31. package/dist/components/edit-float/src/data.d.ts +1 -0
  32. package/dist/components/edit-float/src/data.js +1 -0
  33. package/dist/components/edit-float/src/index2.cjs +21 -19
  34. package/dist/components/edit-float/src/index2.js +16 -14
  35. package/dist/components/index.cjs +110 -108
  36. package/dist/components/index.d.ts +1 -0
  37. package/dist/components/index.js +2 -0
  38. package/dist/components/index.scss +1 -0
  39. package/dist/components/index2.scss +1 -0
  40. package/dist/components/lists/index.css +0 -5
  41. package/dist/components/lists/index.scss +0 -5
  42. package/dist/components/lists/src/index2.cjs +2 -5
  43. package/dist/components/lists/src/index2.js +3 -6
  44. package/dist/components/listsp/index.css +0 -5
  45. package/dist/components/no-data/index.cjs +9 -0
  46. package/dist/components/no-data/index.css +19 -0
  47. package/dist/components/no-data/index.d.ts +4 -0
  48. package/dist/components/no-data/index.js +9 -0
  49. package/dist/components/no-data/index.scss +8 -0
  50. package/dist/components/no-data/src/data.cjs +24 -0
  51. package/dist/components/no-data/src/data.d.ts +26 -0
  52. package/dist/components/no-data/src/data.js +24 -0
  53. package/dist/components/no-data/src/index.cjs +4 -0
  54. package/dist/components/no-data/src/index.js +4 -0
  55. package/dist/components/no-data/src/index2.cjs +34 -0
  56. package/dist/components/no-data/src/index2.js +34 -0
  57. package/dist/components/page/set-column.css +8 -8
  58. package/dist/components/page/src/set-column.cjs +1 -1
  59. package/dist/components/page/src/set-column.js +1 -1
  60. package/dist/components/page/src/set-column2.cjs +3 -6
  61. package/dist/components/page/src/set-column2.js +4 -7
  62. package/dist/components/popup/index.css +2 -1
  63. package/dist/components/popup/src/data.cjs +2 -3
  64. package/dist/components/popup/src/data.d.ts +1 -2
  65. package/dist/components/popup/src/data.js +2 -3
  66. package/dist/components/popup/src/index2.cjs +15 -9
  67. package/dist/components/popup/src/index2.js +16 -10
  68. package/dist/components/tables/src/index2.cjs +4 -7
  69. package/dist/components/tables/src/index2.js +3 -6
  70. package/dist/components/tablesv/src/index2.cjs +2 -5
  71. package/dist/components/tablesv/src/index2.js +3 -6
  72. package/dist/components/window/index.css +2 -1
  73. package/dist/components/window/src/data.cjs +2 -3
  74. package/dist/components/window/src/data.d.ts +1 -2
  75. package/dist/components/window/src/data.js +2 -3
  76. package/dist/components/window/src/index2.cjs +15 -9
  77. package/dist/components/window/src/index2.js +15 -9
  78. package/dist/css/box-adjust.css +2 -1
  79. package/dist/css/box-local.css +2 -1
  80. package/dist/css/box-title.css +2 -1
  81. package/dist/css/box.css +2 -1
  82. package/dist/css/edit-float.css +1 -2
  83. package/dist/css/index.css +9 -8
  84. package/dist/css/lists.css +0 -5
  85. package/dist/css/listsp.css +0 -5
  86. package/dist/css/no-data.css +19 -0
  87. package/dist/css/page/set-column.css +8 -8
  88. package/dist/css/popup.css +2 -1
  89. package/dist/css/window.css +2 -1
  90. package/dist/directives/drag/index.cjs +3 -2
  91. package/dist/directives/drag/index.js +3 -2
  92. package/dist/expand/{chunk-ID2WVA6N.js → chunk-3HYUAX6P.js} +2 -0
  93. package/dist/expand/{chunk-NEHCZ3EJ.cjs → chunk-IPHLXLMM.cjs} +2 -0
  94. package/dist/expand/components.cjs +5 -5
  95. package/dist/expand/components.js +1 -1
  96. package/dist/expand/config.cjs +2 -2
  97. package/dist/expand/config.js +1 -1
  98. package/dist/hooks/index.cjs +0 -1
  99. package/dist/hooks/index.js +1 -2
  100. package/dist/hooks/locale/index.cjs +5 -45
  101. package/dist/hooks/locale/index.d.ts +0 -9
  102. package/dist/hooks/locale/index.js +5 -45
  103. package/dist/icons/index.css +30 -30
  104. package/dist/icons/index.json +13 -13
  105. package/dist/index.cjs +128 -126
  106. package/dist/index.css +9 -8
  107. package/dist/index.js +2 -0
  108. package/dist/locale/en.cjs +31 -31
  109. package/dist/locale/en.d.ts +2 -2
  110. package/dist/locale/en.js +31 -31
  111. package/dist/locale/zh-cn.cjs +2 -2
  112. package/dist/locale/zh-cn.d.ts +2 -2
  113. package/dist/locale/zh-cn.js +2 -2
  114. package/package.json +10 -10
  115. /package/dist/components/{keep-com → transfer}/index.css +0 -0
  116. /package/dist/css/{keep-com.css → transfer.css} +0 -0
@@ -49,11 +49,6 @@
49
49
  .lists-list-item .el-card {
50
50
  background-color: transparent;
51
51
  }
52
- .lists-list .lists-no-data {
53
- text-align: center;
54
- margin-top: 20px;
55
- color: #999;
56
- }
57
52
 
58
53
  .paging {
59
54
  padding: 10px;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ ;/* empty css */
4
+ const withInstall = require("../../utils/vues/withInstall.cjs");
5
+ require("./src/index.cjs");
6
+ const index_vue_vue_type_script_setup_true_lang = require("./src/index2.cjs");
7
+ const NoData = withInstall.withInstall(index_vue_vue_type_script_setup_true_lang.default, "NoData");
8
+ exports.NoData = NoData;
9
+ exports.default = NoData;
@@ -0,0 +1,19 @@
1
+ :root {
2
+ --on: rgb(91, 189, 246);
3
+ --color-primary: #409eff;
4
+ --bag-primary: #409eff;
5
+ --bag-primary-text: #fff;
6
+ --border: #eee;
7
+ --layout-panel-gap: 10px;
8
+ --layout-panel-padding: 20px;
9
+ --layout-form-item-padding-right: var(
10
+ --layout-panel-gap
11
+ );
12
+ --g-main-bg: var(--bg-color-page);
13
+ }
14
+
15
+ .no-data {
16
+ text-align: center;
17
+ margin-top: 20px;
18
+ color: #999;
19
+ }
@@ -0,0 +1,4 @@
1
+ import { SFCWithInstall } from '../../utils/vues';
2
+ import { DefineComponent } from 'vue';
3
+ declare const NoData: SFCWithInstall<DefineComponent<{}, {}, any>>;
4
+ export { NoData, NoData as default };
@@ -0,0 +1,9 @@
1
+ /* empty css */
2
+ import { withInstall } from "../../utils/vues/withInstall.js";
3
+ import "./src/index.js";
4
+ import _sfc_main from "./src/index2.js";
5
+ const NoData = withInstall(_sfc_main, "NoData");
6
+ export {
7
+ NoData,
8
+ NoData as default
9
+ };
@@ -0,0 +1,8 @@
1
+ @use '../scss/common.scss' as *;
2
+
3
+ $no-data: 'no-data';
4
+ @include b($no-data) {
5
+ text-align: center;
6
+ margin-top: 20px;
7
+ color: #999;
8
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const buildProps = require("../../../utils/vues/buildProps.cjs");
4
+ const dataProps = buildProps.buildProps({
5
+ /**
6
+ * @props { String } text='暂无数据' ( )
7
+ * 提示文本
8
+ */
9
+ text: {
10
+ type: String
11
+ }
12
+ });
13
+ const dataEmits = {
14
+ change: (evt) => {
15
+ }
16
+ };
17
+ const dataSlot = {
18
+ default: "default"
19
+ };
20
+ const dataExpose = {};
21
+ exports.dataEmits = dataEmits;
22
+ exports.dataExpose = dataExpose;
23
+ exports.dataProps = dataProps;
24
+ exports.dataSlot = dataSlot;
@@ -0,0 +1,26 @@
1
+ import { ExtractPublicPropTypes } from 'vue';
2
+ export declare const dataProps: {
3
+ /**
4
+ * @props { String } text='暂无数据' ( )
5
+ * 提示文本
6
+ */
7
+ text: {
8
+ type: StringConstructor;
9
+ };
10
+ };
11
+ export type DataProps = ExtractPublicPropTypes<typeof dataProps>;
12
+ /**
13
+ */
14
+ export declare const dataEmits: {
15
+ change: (evt: string | string[]) => void;
16
+ };
17
+ export type DataEmits = typeof dataEmits;
18
+ /**
19
+ * @slot default 默认插槽
20
+ */
21
+ export declare const dataSlot: {
22
+ default: string;
23
+ };
24
+ /**
25
+ */
26
+ export declare const dataExpose: {};
@@ -0,0 +1,24 @@
1
+ import { buildProps } from "../../../utils/vues/buildProps.js";
2
+ const dataProps = buildProps({
3
+ /**
4
+ * @props { String } text='暂无数据' ( )
5
+ * 提示文本
6
+ */
7
+ text: {
8
+ type: String
9
+ }
10
+ });
11
+ const dataEmits = {
12
+ change: (evt) => {
13
+ }
14
+ };
15
+ const dataSlot = {
16
+ default: "default"
17
+ };
18
+ const dataExpose = {};
19
+ export {
20
+ dataEmits,
21
+ dataExpose,
22
+ dataProps,
23
+ dataSlot
24
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const index_vue_vue_type_script_setup_true_lang = require("./index2.cjs");
4
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./index2.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const vue = require("vue");
4
+ const data = require("./data.cjs");
5
+ const index$1 = require("../../../hooks/cssname/index.cjs");
6
+ const index = require("../../../hooks/locale/index.cjs");
7
+ const use = require("../../common/use.cjs");
8
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
9
+ __name: "index",
10
+ props: data.dataProps,
11
+ emits: data.dataEmits,
12
+ setup(__props, { expose: __expose, emit: __emit }) {
13
+ const { getLocale } = index.useLocale();
14
+ const cs = index$1.useCssName("no-data");
15
+ const prs = __props;
16
+ const props = use.uesPropsDefault(prs, {
17
+ text() {
18
+ return getLocale("nodata");
19
+ }
20
+ });
21
+ const emit = __emit;
22
+ __expose({
23
+ ...data.dataExpose
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return vue.openBlock(), vue.createElementBlock("div", {
27
+ class: vue.normalizeClass(vue.unref(cs).z())
28
+ }, [
29
+ vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(props).text), 1)
30
+ ], 2);
31
+ };
32
+ }
33
+ });
34
+ exports.default = _sfc_main;
@@ -0,0 +1,34 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, toDisplayString } from "vue";
2
+ import { dataExpose, dataEmits, dataProps } from "./data.js";
3
+ import { useCssName } from "../../../hooks/cssname/index.js";
4
+ import { useLocale } from "../../../hooks/locale/index.js";
5
+ import { uesPropsDefault } from "../../common/use.js";
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ __name: "index",
8
+ props: dataProps,
9
+ emits: dataEmits,
10
+ setup(__props, { expose: __expose, emit: __emit }) {
11
+ const { getLocale } = useLocale();
12
+ const cs = useCssName("no-data");
13
+ const prs = __props;
14
+ const props = uesPropsDefault(prs, {
15
+ text() {
16
+ return getLocale("nodata");
17
+ }
18
+ });
19
+ const emit = __emit;
20
+ __expose({
21
+ ...dataExpose
22
+ });
23
+ return (_ctx, _cache) => {
24
+ return openBlock(), createElementBlock("div", {
25
+ class: normalizeClass(unref(cs).z())
26
+ }, [
27
+ createElementVNode("div", null, toDisplayString(unref(props).text), 1)
28
+ ], 2);
29
+ };
30
+ }
31
+ });
32
+ export {
33
+ _sfc_main as default
34
+ };
@@ -1,29 +1,29 @@
1
- .set-column-dialog-main[data-v-f249195f] {
1
+ .set-column-dialog-main[data-v-f43f186a] {
2
2
  font-size: 16px;
3
3
  display: flex;
4
4
  }
5
- .set-column-dialog-main .set-column-check[data-v-f249195f] {
5
+ .set-column-dialog-main .set-column-check[data-v-f43f186a] {
6
6
  flex: 1;
7
7
  }
8
- .set-column-dialog-main .set-column-check .set-column-check-list[data-v-f249195f] {
8
+ .set-column-dialog-main .set-column-check .set-column-check-list[data-v-f43f186a] {
9
9
  padding: 10px;
10
10
  display: flex;
11
11
  flex-direction: row;
12
12
  flex-wrap: wrap;
13
13
  overflow-y: auto;
14
14
  }
15
- .set-column-dialog-main .set-column-check .set-column-check-list .set-column-check-list-li[data-v-f249195f] {
15
+ .set-column-dialog-main .set-column-check .set-column-check-list .set-column-check-list-li[data-v-f43f186a] {
16
16
  width: 130px;
17
17
  }
18
- .set-column-dialog-main .set-column-already[data-v-f249195f] {
18
+ .set-column-dialog-main .set-column-already[data-v-f43f186a] {
19
19
  border-left: 1px solid #999;
20
20
  padding-left: 20px;
21
21
  width: 260px;
22
22
  }
23
- .set-column-dialog-main .set-column-already .set-column-already-list[data-v-f249195f] {
23
+ .set-column-dialog-main .set-column-already .set-column-already-list[data-v-f43f186a] {
24
24
  padding: 10px 10px 10px 0;
25
25
  }
26
- .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li[data-v-f249195f] {
26
+ .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li[data-v-f43f186a] {
27
27
  height: 40px;
28
28
  line-height: 40px;
29
29
  border-bottom: 1px solid #ccc;
@@ -31,7 +31,7 @@
31
31
  align-items: center;
32
32
  justify-content: space-between;
33
33
  }
34
- .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li .set-column-already-li-v[data-v-f249195f] {
34
+ .set-column-dialog-main .set-column-already .set-column-already-list .set-column-already-li .set-column-already-li-v[data-v-f43f186a] {
35
35
  display: flex;
36
36
  flex: 1;
37
37
  align-items: center;
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const setColumn_vue_vue_type_script_setup_true_lang = require("./set-column2.cjs");
4
4
  ;/* empty css */
5
5
  const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.cjs");
6
- const SetColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(setColumn_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-f249195f"]]);
6
+ const SetColumn = /* @__PURE__ */ _pluginVue_exportHelper.default(setColumn_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-f43f186a"]]);
7
7
  exports.default = SetColumn;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./set-column2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SetColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f249195f"]]);
4
+ const SetColumn = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f43f186a"]]);
5
5
  export {
6
6
  SetColumn as default
7
7
  };
@@ -3,16 +3,13 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const Draggable = require("vuedraggable");
5
5
  const index$1 = require("../../dialogs/index.cjs");
6
+ const index$2 = require("../../no-data/index.cjs");
6
7
  const index = require("../../../hooks/cssname/index.cjs");
7
8
  const elementPlus = require("element-plus");
8
9
  const _hoisted_1 = {
9
10
  key: 1,
10
11
  class: "no-data"
11
12
  };
12
- const _hoisted_2 = {
13
- key: 1,
14
- class: "no-data"
15
- };
16
13
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
14
  __name: "set-column",
18
15
  props: {
@@ -108,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
108
105
  checked: isChecked(item),
109
106
  onChange: (is) => onChange(item, Boolean(is))
110
107
  }, null, 8, ["class", "label", "value", "checked", "onChange"]);
111
- }), 128)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, "暂无数据"))
108
+ }), 128)) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.NoData), { key: 1 }))
112
109
  ], 2))
113
110
  ], 2),
114
111
  vue.createElementVNode("div", {
@@ -149,7 +146,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
149
146
  ], 2)
150
147
  ]),
151
148
  _: 1
152
- }, 16, ["modelValue", "item-key"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, "未选字段"))
149
+ }, 16, ["modelValue", "item-key"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, "未选字段"))
153
150
  ], 2)
154
151
  ], 2)
155
152
  ], 2)
@@ -1,16 +1,13 @@
1
- import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, createElementVNode, Fragment, renderList, createBlock, mergeProps, toDisplayString, withModifiers } from "vue";
1
+ import { defineComponent, ref, watch, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, createTextVNode, createElementVNode, createBlock, Fragment, renderList, mergeProps, toDisplayString, withModifiers } from "vue";
2
2
  import Draggable from "vuedraggable";
3
3
  import { Dialogs } from "../../dialogs/index.js";
4
+ import { NoData } from "../../no-data/index.js";
4
5
  import { useCssName } from "../../../hooks/cssname/index.js";
5
6
  import { ElButton, ElCheckbox } from "element-plus";
6
7
  const _hoisted_1 = {
7
8
  key: 1,
8
9
  class: "no-data"
9
10
  };
10
- const _hoisted_2 = {
11
- key: 1,
12
- class: "no-data"
13
- };
14
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
12
  __name: "set-column",
16
13
  props: {
@@ -106,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
106
103
  checked: isChecked(item),
107
104
  onChange: (is) => onChange(item, Boolean(is))
108
105
  }, null, 8, ["class", "label", "value", "checked", "onChange"]);
109
- }), 128)) : (openBlock(), createElementBlock("div", _hoisted_1, "暂无数据"))
106
+ }), 128)) : (openBlock(), createBlock(unref(NoData), { key: 1 }))
110
107
  ], 2))
111
108
  ], 2),
112
109
  createElementVNode("div", {
@@ -147,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
147
144
  ], 2)
148
145
  ]),
149
146
  _: 1
150
- }, 16, ["modelValue", "item-key"])) : (openBlock(), createElementBlock("div", _hoisted_2, "未选字段"))
147
+ }, 16, ["modelValue", "item-key"])) : (openBlock(), createElementBlock("div", _hoisted_1, "未选字段"))
151
148
  ], 2)
152
149
  ], 2)
153
150
  ], 2)
@@ -38,14 +38,15 @@
38
38
  .box-title-close {
39
39
  right: 10px;
40
40
  font-size: 18px;
41
+ height: 100%;
41
42
  display: flex;
42
43
  align-items: center;
44
+ cursor: pointer;
43
45
  }
44
46
  .box-title-close-icon {
45
47
  width: 20px;
46
48
  height: 20px;
47
49
  margin: 0 4px;
48
- cursor: pointer;
49
50
  }
50
51
 
51
52
  .popup {
@@ -5,12 +5,11 @@ const data = require("../../box/src/data.cjs");
5
5
  const dataProps = buildProps.buildProps({
6
6
  ...data.dataProps,
7
7
  /**
8
- * @props { String, Boolean } drag='.com-title-name' ( )
8
+ * @props { String, Boolean } drag='.box-title-name' ( )
9
9
  * 可拖拽的元素样式 为空字符串就不拖拽
10
10
  */
11
11
  drag: {
12
- type: [String, Boolean],
13
- default: ".com-title-name"
12
+ type: [String, Boolean]
14
13
  },
15
14
  /**
16
15
  * @props { Boolean } drag= ( )
@@ -2,12 +2,11 @@ import { ExtractPublicPropTypes } from 'vue';
2
2
  import { FunctConfig } from '../../../utils/enums';
3
3
  export declare const dataProps: {
4
4
  /**
5
- * @props { String, Boolean } drag='.com-title-name' ( )
5
+ * @props { String, Boolean } drag='.box-title-name' ( )
6
6
  * 可拖拽的元素样式 为空字符串就不拖拽
7
7
  */
8
8
  drag: {
9
9
  type: (BooleanConstructor | StringConstructor)[];
10
- default: string;
11
10
  };
12
11
  /**
13
12
  * @props { Boolean } drag= ( )
@@ -3,12 +3,11 @@ import { dataProps as dataProps$1, dataEmits as dataEmits$1, dataSlot as dataSlo
3
3
  const dataProps = buildProps({
4
4
  ...dataProps$1,
5
5
  /**
6
- * @props { String, Boolean } drag='.com-title-name' ( )
6
+ * @props { String, Boolean } drag='.box-title-name' ( )
7
7
  * 可拖拽的元素样式 为空字符串就不拖拽
8
8
  */
9
9
  drag: {
10
- type: [String, Boolean],
11
- default: ".com-title-name"
10
+ type: [String, Boolean]
12
11
  },
13
12
  /**
14
13
  * @props { Boolean } drag= ( )
@@ -9,6 +9,7 @@ const index$3 = require("../../box-mask/index.cjs");
9
9
  const index$2 = require("../../box-teleport/index.cjs");
10
10
  const index$6 = require("../../../directives/adjust/index.cjs");
11
11
  const index$5 = require("../../../directives/drag/index.cjs");
12
+ const use = require("../../common/use.cjs");
12
13
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
13
14
  __name: "index",
14
15
  props: data.dataProps,
@@ -17,7 +18,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
17
18
  const isInit = vue.shallowRef(false);
18
19
  const { getLocale } = index.useLocale();
19
20
  const cs = index$1.useCssName("popup");
20
- const props = __props;
21
+ const prs = __props;
22
+ const props = use.uesPropsDefault(prs, {
23
+ drag() {
24
+ return "." + cs.name + "box-title-name";
25
+ }
26
+ });
21
27
  const emit = __emit;
22
28
  const drag = { dom: props.self ? false : props.drag };
23
29
  const adjust = !props.self && props.adjust ? {
@@ -46,25 +52,25 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
46
52
  ...data.dataExpose
47
53
  });
48
54
  return (_ctx, _cache) => {
49
- return props.local ? (vue.openBlock(), vue.createElementBlock("div", {
55
+ return vue.unref(props).local ? (vue.openBlock(), vue.createElementBlock("div", {
50
56
  key: 0,
51
57
  class: vue.normalizeClass(vue.unref(cs).z("local"))
52
58
  }, [
53
59
  vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default)
54
60
  ], 2)) : (vue.openBlock(), vue.createBlock(vue.unref(index$2.BoxTeleport), {
55
61
  key: 1,
56
- disabled: props.disabled,
57
- to: props.to
62
+ disabled: vue.unref(props).disabled,
63
+ to: vue.unref(props).to
58
64
  }, {
59
65
  default: vue.withCtx(() => [
60
66
  isInit.value ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
61
67
  key: 0,
62
- class: vue.normalizeClass([vue.unref(cs).z(), props.self ? vue.unref(cs).z("center") : ""])
68
+ class: vue.normalizeClass([vue.unref(cs).z(), vue.unref(props).self ? vue.unref(cs).z("center") : ""])
63
69
  }, [
64
- props.mask ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.BoxMask), {
70
+ vue.unref(props).mask ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.BoxMask), {
65
71
  key: 0,
66
72
  onClick: onMaskClose,
67
- cssprefix: props.cssprefix || vue.unref(cs).z()
73
+ cssprefix: vue.unref(props).cssprefix || vue.unref(cs).z()
68
74
  }, null, 8, ["cssprefix"])) : vue.createCommentVNode("", true),
69
75
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
70
76
  class: vue.normalizeClass(vue.unref(cs).z("body"))
@@ -72,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
72
78
  vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).title, {}, () => [
73
79
  vue.createVNode(vue.unref(index$4.BoxTitle), {
74
80
  onClose,
75
- title: props.title
81
+ title: vue.unref(props).title
76
82
  }, null, 8, ["title"])
77
83
  ]),
78
84
  vue.createElementVNode("div", {
@@ -86,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
86
92
  [vue.unref(index$6.default), vue.unref(adjust)]
87
93
  ])
88
94
  ], 2)), [
89
- [vue.vShow, props.modelValue]
95
+ [vue.vShow, vue.unref(props).modelValue]
90
96
  ]) : vue.createCommentVNode("", true)
91
97
  ]),
92
98
  _: 3
@@ -1,4 +1,4 @@
1
- import { defineComponent, shallowRef, watch, createElementBlock, createBlock, openBlock, normalizeClass, unref, renderSlot, withCtx, withDirectives, createCommentVNode, createElementVNode, createVNode, vShow } from "vue";
1
+ import { defineComponent, shallowRef, watch, createElementBlock, createBlock, unref, openBlock, normalizeClass, renderSlot, withCtx, withDirectives, createCommentVNode, createElementVNode, createVNode, vShow } from "vue";
2
2
  import { dataExpose, dataSlot, dataEmits, dataProps } from "./data.js";
3
3
  import { useCssName } from "../../../hooks/cssname/index.js";
4
4
  import { useLocale } from "../../../hooks/locale/index.js";
@@ -7,6 +7,7 @@ import { BoxMask } from "../../box-mask/index.js";
7
7
  import { BoxTeleport } from "../../box-teleport/index.js";
8
8
  import vAdjust from "../../../directives/adjust/index.js";
9
9
  import vDrag from "../../../directives/drag/index.js";
10
+ import { uesPropsDefault } from "../../common/use.js";
10
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
11
12
  __name: "index",
12
13
  props: dataProps,
@@ -15,7 +16,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  const isInit = shallowRef(false);
16
17
  const { getLocale } = useLocale();
17
18
  const cs = useCssName("popup");
18
- const props = __props;
19
+ const prs = __props;
20
+ const props = uesPropsDefault(prs, {
21
+ drag() {
22
+ return "." + cs.name + "box-title-name";
23
+ }
24
+ });
19
25
  const emit = __emit;
20
26
  const drag = { dom: props.self ? false : props.drag };
21
27
  const adjust = !props.self && props.adjust ? {
@@ -44,25 +50,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
50
  ...dataExpose
45
51
  });
46
52
  return (_ctx, _cache) => {
47
- return props.local ? (openBlock(), createElementBlock("div", {
53
+ return unref(props).local ? (openBlock(), createElementBlock("div", {
48
54
  key: 0,
49
55
  class: normalizeClass(unref(cs).z("local"))
50
56
  }, [
51
57
  renderSlot(_ctx.$slots, unref(dataSlot).default)
52
58
  ], 2)) : (openBlock(), createBlock(unref(BoxTeleport), {
53
59
  key: 1,
54
- disabled: props.disabled,
55
- to: props.to
60
+ disabled: unref(props).disabled,
61
+ to: unref(props).to
56
62
  }, {
57
63
  default: withCtx(() => [
58
64
  isInit.value ? withDirectives((openBlock(), createElementBlock("div", {
59
65
  key: 0,
60
- class: normalizeClass([unref(cs).z(), props.self ? unref(cs).z("center") : ""])
66
+ class: normalizeClass([unref(cs).z(), unref(props).self ? unref(cs).z("center") : ""])
61
67
  }, [
62
- props.mask ? (openBlock(), createBlock(unref(BoxMask), {
68
+ unref(props).mask ? (openBlock(), createBlock(unref(BoxMask), {
63
69
  key: 0,
64
70
  onClick: onMaskClose,
65
- cssprefix: props.cssprefix || unref(cs).z()
71
+ cssprefix: unref(props).cssprefix || unref(cs).z()
66
72
  }, null, 8, ["cssprefix"])) : createCommentVNode("", true),
67
73
  withDirectives((openBlock(), createElementBlock("div", {
68
74
  class: normalizeClass(unref(cs).z("body"))
@@ -70,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
76
  renderSlot(_ctx.$slots, unref(dataSlot).title, {}, () => [
71
77
  createVNode(unref(BoxTitle), {
72
78
  onClose,
73
- title: props.title
79
+ title: unref(props).title
74
80
  }, null, 8, ["title"])
75
81
  ]),
76
82
  createElementVNode("div", {
@@ -84,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
90
  [unref(vAdjust), unref(adjust)]
85
91
  ])
86
92
  ], 2)), [
87
- [vShow, props.modelValue]
93
+ [vShow, unref(props).modelValue]
88
94
  ]) : createCommentVNode("", true)
89
95
  ]),
90
96
  _: 3
@@ -3,7 +3,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
3
3
  const vue = require("vue");
4
4
  const data = require("./data.cjs");
5
5
  const index$2 = require("element-plus/es/components/table/index");
6
- const index$3 = require("element-plus/es/components/loading/index");
6
+ const index$4 = require("element-plus/es/components/loading/index");
7
+ const index$3 = require("../../no-data/index.cjs");
7
8
  require("./columns.cjs");
8
9
  const index = require("../../../hooks/cssname/index.cjs");
9
10
  const index$1 = require("../../../hooks/inherit/index.cjs");
@@ -143,11 +144,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
143
144
  }), {
144
145
  empty: vue.withCtx(() => [
145
146
  vue.renderSlot(_ctx.$slots, "no-data", {}, () => [
146
- vue.createElementVNode("div", {
147
- class: vue.normalizeClass(vue.unref(cs).z("no-data"))
148
- }, [..._cache[0] || (_cache[0] = [
149
- vue.createElementVNode("span", null, "暂无数据", -1)
150
- ])], 2)
147
+ vue.createVNode(vue.unref(index$3.NoData))
151
148
  ])
152
149
  ]),
153
150
  default: vue.withCtx(() => [
@@ -173,7 +170,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
173
170
  ]),
174
171
  _: 3
175
172
  }, 16, ["class", "height", "row-style", "data", "default-sort"])), [
176
- [vue.unref(index$3.vLoading), props.loading]
173
+ [vue.unref(index$4.vLoading), props.loading]
177
174
  ])
178
175
  ], 16);
179
176
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent, useSlots, useAttrs, provide, ref, computed, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, withModifiers, withCtx, createVNode, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, normalizeClass } from "vue";
1
+ import { defineComponent, useSlots, useAttrs, provide, ref, computed, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, withDirectives, createBlock, withModifiers, withCtx, createVNode, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { dataExpose, dataEmits, dataProps } from "./data.js";
3
3
  import { ElTable } from "element-plus/es/components/table/index";
4
4
  import { vLoading } from "element-plus/es/components/loading/index";
5
+ import { NoData } from "../../no-data/index.js";
5
6
  import "./columns.js";
6
7
  import { useCssName } from "../../../hooks/cssname/index.js";
7
8
  import { useInherit } from "../../../hooks/inherit/index.js";
@@ -141,11 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
141
142
  }), {
142
143
  empty: withCtx(() => [
143
144
  renderSlot(_ctx.$slots, "no-data", {}, () => [
144
- createElementVNode("div", {
145
- class: normalizeClass(unref(cs).z("no-data"))
146
- }, [..._cache[0] || (_cache[0] = [
147
- createElementVNode("span", null, "暂无数据", -1)
148
- ])], 2)
145
+ createVNode(unref(NoData))
149
146
  ])
150
147
  ]),
151
148
  default: withCtx(() => [