geekplus-digital-ui 0.2.0 → 0.2.2

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 (72) hide show
  1. package/{packages/components → components}/copy/index.js +1 -1
  2. package/{packages/components/copy/src/copy.js → components/copy/src/copy.vue.js} +5 -5
  3. package/{packages/components → components}/editor/index.js +1 -1
  4. package/{packages/components/editor/src/code-collapse.js → components/editor/src/code-collapse.vue.js} +6 -6
  5. package/{packages/components/editor/src/editor2.js → components/editor/src/editor.vue.js} +5 -5
  6. package/{packages/components → components}/fold-text/index.js +1 -1
  7. package/{packages/components/fold-text/src/fold-text.js → components/fold-text/src/fold-text.vue.js} +6 -6
  8. package/{packages/components → components}/icon/index.js +1 -1
  9. package/{packages/components/icon/src/icon.js → components/icon/src/icon.vue.js} +2 -2
  10. package/{packages/components → components}/icon-tip/index.js +1 -1
  11. package/{packages/components/icon-tip/src/icon-tip.js → components/icon-tip/src/icon-tip.vue.js} +4 -4
  12. package/{packages/components/icons/angle-down-light.js → components/icons/angle-down-light.vue.js} +1 -1
  13. package/{packages/components/icons/angle-up-light.js → components/icons/angle-up-light.vue.js} +1 -1
  14. package/{packages/components/icons/circle-exclamation-solid.js → components/icons/circle-exclamation-solid.vue.js} +1 -1
  15. package/{packages/components/icons/circle-play-light.js → components/icons/circle-play-light.vue.js} +1 -1
  16. package/{packages/components/icons/circle-xmark-light.js → components/icons/circle-xmark-light.vue.js} +1 -1
  17. package/{packages/components/icons/copy-light.js → components/icons/copy-light.vue.js} +1 -1
  18. package/{packages/components/icons/download-light.js → components/icons/download-light.vue.js} +1 -1
  19. package/{packages/components/icons/eye-light.js → components/icons/eye-light.vue.js} +1 -1
  20. package/{packages/components/icons/file-light.js → components/icons/file-light.vue.js} +1 -1
  21. package/{packages/components/icons/filter-list-light.js → components/icons/filter-list-light.vue.js} +1 -1
  22. package/components/icons/grip-dots-vertical-solid.vue.d.ts +2 -0
  23. package/components/icons/grip-dots-vertical-solid.vue.js +16 -0
  24. package/{packages/components/icons/image-light.js → components/icons/image-light.vue.js} +1 -1
  25. package/{packages/components/icons/plus-light.js → components/icons/plus-light.vue.js} +1 -1
  26. package/{packages/components/icons/trash-light.js → components/icons/trash-light.vue.js} +1 -1
  27. package/components/index.js +10 -10
  28. package/{packages/components → components}/inline-edit/index.js +1 -1
  29. package/{packages/components/inline-edit/src/inline-edit.js → components/inline-edit/src/inline-edit.vue.js} +2 -2
  30. package/{packages/components → components}/search-form/index.js +1 -1
  31. package/{packages/components/search-form/src/search-form.js → components/search-form/src/search-form.vue.js} +6 -6
  32. package/{packages/components → components}/search-item/index.js +1 -1
  33. package/{packages/components/search-item/src/search-item.js → components/search-item/src/search-item.vue.js} +2 -2
  34. package/components/table/index.d.ts +3 -0
  35. package/{packages/components → components}/table/index.js +1 -1
  36. package/components/table/src/table-filter.vue.js +159 -0
  37. package/components/table/src/table-filter.vue_vue_type_style_index_0_scoped_9588721e_lang.css +1 -0
  38. package/{packages/components/table/src/table-wrapper.js → components/table/src/table-wrapper.vue.js} +18 -9
  39. package/components/table/src/table.vue.d.ts +1 -0
  40. package/{packages/components/table/src/table.js → components/table/src/table.vue.js} +37 -32
  41. package/components/table/src/table.vue_vue_type_style_index_0_scoped_d07e3dbc_lang.css +1 -0
  42. package/{packages/components → components}/upload/index.js +1 -1
  43. package/{packages/components/upload/src/upload.js → components/upload/src/upload.vue.js} +15 -15
  44. package/hooks/index.js +2 -2
  45. package/{packages/hooks → hooks}/use-locale/index.js +1 -1
  46. package/index.js +13 -13
  47. package/{packages/install.js → install.js} +3 -3
  48. package/locale/index.js +6 -6
  49. package/package.json +1 -1
  50. package/skills/use-geekplus-digital-ui/SKILL.md +2 -2
  51. package/packages/components/table/src/table-filter.js +0 -131
  52. package/packages/components/table/src/table-filter.vue_vue_type_style_index_0_scoped_70a03e33_lang.css +0 -1
  53. package/packages/components/table/src/table.vue_vue_type_style_index_0_scoped_a6c85ac1_lang.css +0 -1
  54. /package/{packages/components → components}/copy/src/copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css +0 -0
  55. /package/{packages/components → components}/editor/src/code-collapse.vue_vue_type_style_index_0_scoped_04a8d31f_lang.css +0 -0
  56. /package/{packages/components → components}/editor/src/editor.css +0 -0
  57. /package/{packages/components → components}/editor/src/editor.vue_vue_type_style_index_0_scoped_125d5f42_lang.css +0 -0
  58. /package/{packages/components → components}/fold-text/src/fold-text.vue_vue_type_style_index_0_scoped_f460d6d5_lang.css +0 -0
  59. /package/{packages/components → components}/icon/src/icon.vue_vue_type_style_index_0_scoped_29c845ca_lang.css +0 -0
  60. /package/{packages/components → components}/icon-tip/src/icon-tip.vue_vue_type_style_index_0_scoped_fd7f9264_lang.css +0 -0
  61. /package/{packages/components → components}/inline-edit/src/inline-edit.vue_vue_type_style_index_0_scoped_b066ddcd_lang.css +0 -0
  62. /package/{packages/components → components}/search-form/src/search-form.vue_vue_type_style_index_0_scoped_ff9cbf76_lang.css +0 -0
  63. /package/{packages/components → components}/search-item/src/search-item.vue_vue_type_style_index_0_scoped_a37eaef0_lang.css +0 -0
  64. /package/{packages/components → components}/upload/src/upload.vue_vue_type_style_index_0_scoped_aef1e5b2_lang.css +0 -0
  65. /package/{packages/components → components}/upload/src/upload.vue_vue_type_style_index_1_lang.css +0 -0
  66. /package/{packages/hooks → hooks}/use-activated/index.js +0 -0
  67. /package/{packages/locale → locale}/i18n.js +0 -0
  68. /package/{packages/locale → locale}/lang/en.js +0 -0
  69. /package/{packages/locale → locale}/lang/ja.js +0 -0
  70. /package/{packages/locale → locale}/lang/ko.js +0 -0
  71. /package/{packages/locale → locale}/lang/zh-cn.js +0 -0
  72. /package/{packages/locale → locale}/lang/zh-tw.js +0 -0
@@ -1,4 +1,4 @@
1
- import e from "./src/copy.js";
1
+ import e from "./src/copy.vue.js";
2
2
  //#region packages/components/copy/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,10 +1,10 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import n from "../../icons/copy-light.js";
5
- import './copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css';/* empty css */
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import n from "../../icons/copy-light.vue.js";
5
+ import './copy.vue_vue_type_style_index_0_scoped_80dabae9_lang.css';/* empty css */
6
6
  import r from "../../icon/index.js";
7
- import "../../../../components/index.js";
7
+ import "../../index.js";
8
8
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, toRef as g, unref as _, useTemplateRef as v, withCtx as y, withModifiers as b } from "vue";
9
9
  import { useClipboard as x } from "@vueuse/core";
10
10
  import { ElLink as S, ElMessage as C } from "element-plus";
@@ -1,4 +1,4 @@
1
- import e from "./src/editor2.js";
1
+ import e from "./src/editor.vue.js";
2
2
  //#region packages/components/editor/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,11 +1,11 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import n from "../../icons/angle-down-light.js";
5
- import r from "../../icons/angle-up-light.js";
6
- import './code-collapse.vue_vue_type_style_index_0_scoped_04a8d31f_lang.css';/* empty css */
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import n from "../../icons/angle-down-light.vue.js";
5
+ import r from "../../icons/angle-up-light.vue.js";
6
+ import './code-collapse.vue_vue_type_style_index_0_scoped_04a8d31f_lang.css';/* empty css */
7
7
  import i from "../../icon/index.js";
8
- import "../../../../components/index.js";
8
+ import "../../index.js";
9
9
  import { computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createVNode as l, openBlock as u, ref as d, toDisplayString as f, unref as p, useTemplateRef as m, withCtx as h } from "vue";
10
10
  //#region packages/components/editor/src/code-collapse.vue
11
11
  var g = ["open"], _ = /* @__PURE__ */ t({
@@ -1,9 +1,9 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import './editor.vue_vue_type_style_index_0_scoped_125d5f42_lang.css';import './editor.css';/* empty css */
5
- import n from "./code-collapse.js";
6
- /* empty css */
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import './editor.vue_vue_type_style_index_0_scoped_125d5f42_lang.css';import './editor.css';/* empty css */
5
+ import n from "./code-collapse.vue.js";
6
+ /* empty css */
7
7
  import { computed as r, createApp as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, shallowRef as h, unref as g, vShow as _, watch as v, withDirectives as y } from "vue";
8
8
  import { ElImageViewer as ee, useFormItem as b } from "element-plus";
9
9
  import { i18nChangeLanguage as x } from "@wangeditor-next/editor";
@@ -1,4 +1,4 @@
1
- import e from "./src/fold-text.js";
1
+ import e from "./src/fold-text.vue.js";
2
2
  //#region packages/components/fold-text/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,11 +1,11 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import n from "../../icons/angle-down-light.js";
5
- import r from "../../icons/angle-up-light.js";
6
- import './fold-text.vue_vue_type_style_index_0_scoped_f460d6d5_lang.css';/* empty css */
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import n from "../../icons/angle-down-light.vue.js";
5
+ import r from "../../icons/angle-up-light.vue.js";
6
+ import './fold-text.vue_vue_type_style_index_0_scoped_f460d6d5_lang.css';/* empty css */
7
7
  import i from "../../icon/index.js";
8
- import "../../../../components/index.js";
8
+ import "../../index.js";
9
9
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, normalizeClass as d, normalizeStyle as f, onMounted as p, openBlock as m, ref as h, renderSlot as g, toDisplayString as _, unref as v, useTemplateRef as y, withCtx as b } from "vue";
10
10
  import { useResizeObserver as x } from "@vueuse/core";
11
11
  import { ElLink as S } from "element-plus";
@@ -1,4 +1,4 @@
1
- import e from "./src/icon.js";
1
+ import e from "./src/icon.vue.js";
2
2
  //#region packages/components/icon/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
- import e from "../../../../_virtual/_plugin-vue_export-helper.js";
2
- import './icon.vue_vue_type_style_index_0_scoped_29c845ca_lang.css';/* empty css */
1
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import './icon.vue_vue_type_style_index_0_scoped_29c845ca_lang.css';/* empty css */
3
3
  import { createElementBlock as t, openBlock as n, renderSlot as r } from "vue";
4
4
  //#region packages/components/icon/src/icon.vue
5
5
  var i = { class: "d-icon" }, a = /* @__PURE__ */ e(/* @__PURE__ */ Object.assign({ name: "DIcon" }, {
@@ -1,4 +1,4 @@
1
- import e from "./src/icon-tip.js";
1
+ import e from "./src/icon-tip.vue.js";
2
2
  //#region packages/components/icon-tip/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,8 +1,8 @@
1
- import e from "../../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
2
2
  import t from "../../icon/index.js";
3
- import n from "../../icons/circle-exclamation-solid.js";
4
- import './icon-tip.vue_vue_type_style_index_0_scoped_fd7f9264_lang.css';/* empty css */
5
- import "../../../../components/index.js";
3
+ import n from "../../icons/circle-exclamation-solid.vue.js";
4
+ import './icon-tip.vue_vue_type_style_index_0_scoped_fd7f9264_lang.css';/* empty css */
5
+ import "../../index.js";
6
6
  import { createBlock as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, mergeProps as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
7
7
  import { ElLink as h, ElTooltip as g } from "element-plus";
8
8
  //#region packages/components/icon-tip/src/icon-tip.vue
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/angle-down-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/angle-up-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/circle-exclamation-solid.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/circle-play-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/circle-xmark-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/copy-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/download-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/eye-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/file-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/filter-list-light.vue
4
4
  var i = {}, a = {
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
+ import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
+ //#region packages/components/icons/grip-dots-vertical-solid.vue
4
+ var i = {}, a = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ viewBox: "0 0 320 512"
7
+ };
8
+ function o(e, i) {
9
+ return r(), t("svg", a, [...i[0] ||= [n("path", {
10
+ fill: "currentColor",
11
+ d: "M128 64A64 64 0 1 0 0 64 64 64 0 1 0 128 64zm0 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM0 448c0 35.3 28.7 64 64 64s64-28.7 64-64-28.7-64-64-64-64 28.7-64 64zM320 64a64 64 0 1 0 -128 0 64 64 0 1 0 128 0zM192 256a64 64 0 1 0 128 0 64 64 0 1 0 -128 0zM320 448c0-35.3-28.7-64-64-64s-64 28.7-64 64 28.7 64 64 64 64-28.7 64-64z"
12
+ }, null, -1)]]);
13
+ }
14
+ var s = /* @__PURE__ */ e(i, [["render", o]]);
15
+ //#endregion
16
+ export { s as default };
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/image-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/plus-light.vue
4
4
  var i = {}, a = {
@@ -1,4 +1,4 @@
1
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
1
+ import e from "../../_virtual/_plugin-vue_export-helper.js";
2
2
  import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
3
  //#region packages/components/icons/trash-light.vue
4
4
  var i = {}, a = {
@@ -1,14 +1,14 @@
1
1
  import { __exportAll as e } from "../_virtual/_rolldown/runtime.js";
2
- import t from "../packages/components/copy/index.js";
3
- import n from "../packages/components/editor/index.js";
4
- import r from "../packages/components/fold-text/index.js";
5
- import i from "../packages/components/icon/index.js";
6
- import a from "../packages/components/icon-tip/index.js";
7
- import o from "../packages/components/inline-edit/index.js";
8
- import s from "../packages/components/upload/index.js";
9
- import c from "../packages/components/search-form/index.js";
10
- import l from "../packages/components/search-item/index.js";
11
- import u from "../packages/components/table/index.js";
2
+ import t from "./copy/index.js";
3
+ import n from "./editor/index.js";
4
+ import r from "./fold-text/index.js";
5
+ import i from "./icon/index.js";
6
+ import a from "./icon-tip/index.js";
7
+ import o from "./inline-edit/index.js";
8
+ import s from "./upload/index.js";
9
+ import c from "./search-form/index.js";
10
+ import l from "./search-item/index.js";
11
+ import u from "./table/index.js";
12
12
  //#region packages/components/index.js
13
13
  var d = /* @__PURE__ */ e({
14
14
  DCopy: () => t,
@@ -1,4 +1,4 @@
1
- import e from "./src/inline-edit.js";
1
+ import e from "./src/inline-edit.vue.js";
2
2
  //#region packages/components/inline-edit/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
- import e from "../../../../_virtual/_plugin-vue_export-helper.js";
2
- import './inline-edit.vue_vue_type_style_index_0_scoped_b066ddcd_lang.css';/* empty css */
1
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import './inline-edit.vue_vue_type_style_index_0_scoped_b066ddcd_lang.css';/* empty css */
3
3
  import { isFunction as t } from "lodash-es";
4
4
  import { createElementBlock as n, nextTick as r, normalizeClass as i, openBlock as a, ref as o, renderSlot as s, useTemplateRef as c } from "vue";
5
5
  import { onClickOutside as l } from "@vueuse/core";
@@ -1,4 +1,4 @@
1
- import e from "./src/search-form.js";
1
+ import e from "./src/search-form.vue.js";
2
2
  //#region packages/components/search-form/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,11 +1,11 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import n from "../../icons/angle-down-light.js";
5
- import r from "../../icons/angle-up-light.js";
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import n from "../../icons/angle-down-light.vue.js";
5
+ import r from "../../icons/angle-up-light.vue.js";
6
6
  import i from "../../icon/index.js";
7
- import './search-form.vue_vue_type_style_index_0_scoped_ff9cbf76_lang.css';/* empty css */
8
- import "../../../../components/index.js";
7
+ import './search-form.vue_vue_type_style_index_0_scoped_ff9cbf76_lang.css';/* empty css */
8
+ import "../../index.js";
9
9
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, normalizeClass as p, normalizeStyle as m, openBlock as h, provide as g, ref as _, renderSlot as v, toDisplayString as y, unref as b, useTemplateRef as x, withCtx as S, withKeys as C } from "vue";
10
10
  import { useResizeObserver as w } from "@vueuse/core";
11
11
  import { ElButton as T, ElRow as E } from "element-plus";
@@ -1,4 +1,4 @@
1
- import e from "./src/search-item.js";
1
+ import e from "./src/search-item.vue.js";
2
2
  //#region packages/components/search-item/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,5 +1,5 @@
1
- import e from "../../../../_virtual/_plugin-vue_export-helper.js";
2
- import './search-item.vue_vue_type_style_index_0_scoped_a37eaef0_lang.css';/* empty css */
1
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import './search-item.vue_vue_type_style_index_0_scoped_a37eaef0_lang.css';/* empty css */
3
3
  import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, inject as o, onMounted as s, onUnmounted as c, openBlock as l, renderSlot as u, toDisplayString as d, toRef as f, unref as p, withCtx as m } from "vue";
4
4
  import { ElCol as h } from "element-plus";
5
5
  //#region packages/components/search-item/src/search-item.vue
@@ -4,6 +4,7 @@ export const DTable: {
4
4
  columnList: import('vue').Ref<never[], never[]>;
5
5
  checkedKeys: import('vue').Ref<never[], never[]>;
6
6
  columnOrder: import('vue').Ref<never[], never[]>;
7
+ columnFixed: import('vue').Ref<{}, {}>;
7
8
  saveConfig: () => void;
8
9
  readonly storageKey: string;
9
10
  };
@@ -45,6 +46,7 @@ export const DTable: {
45
46
  columnList: import('vue').Ref<never[], never[]>;
46
47
  checkedKeys: import('vue').Ref<never[], never[]>;
47
48
  columnOrder: import('vue').Ref<never[], never[]>;
49
+ columnFixed: import('vue').Ref<{}, {}>;
48
50
  saveConfig: () => void;
49
51
  readonly storageKey: string;
50
52
  };
@@ -81,6 +83,7 @@ export const DTable: {
81
83
  columnList: import('vue').Ref<never[], never[]>;
82
84
  checkedKeys: import('vue').Ref<never[], never[]>;
83
85
  columnOrder: import('vue').Ref<never[], never[]>;
86
+ columnFixed: import('vue').Ref<{}, {}>;
84
87
  saveConfig: () => void;
85
88
  readonly storageKey: string;
86
89
  };
@@ -1,4 +1,4 @@
1
- import e from "./src/table.js";
1
+ import e from "./src/table.vue.js";
2
2
  //#region packages/components/table/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -0,0 +1,159 @@
1
+ import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import n from "../../icon/index.js";
5
+ import r from "../../icons/filter-list-light.vue.js";
6
+ import i from "../../icons/grip-dots-vertical-solid.vue.js";
7
+ import './table-filter.vue_vue_type_style_index_0_scoped_9588721e_lang.css';/* empty css */
8
+ import "../../index.js";
9
+ import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, inject as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
10
+ import { ElButton as b, ElCheckbox as x, ElPopover as S } from "element-plus";
11
+ import { useSortable as C } from "@vueuse/integrations/useSortable";
12
+ //#region packages/components/table/src/table-filter.vue
13
+ var w = { class: "d-table-filter__header" }, T = { class: "d-table-filter__body" }, E = {
14
+ key: 0,
15
+ class: "d-table-filter__group-label"
16
+ }, D = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "DTableFilter" }, {
17
+ __name: "table-filter",
18
+ setup(t) {
19
+ let { t: D } = e(), { columnList: O, checkedKeys: k, columnOrder: A, columnFixed: j, saveConfig: M } = p("dTableContext"), N = (e) => Object.prototype.hasOwnProperty.call(j.value, e) ? j.value[e] : O.value.find((t) => t.prop === e)?.fixed ?? !1, P = (e) => {
20
+ let t = A.value.map((t) => {
21
+ let n = O.value.find((e) => e.prop === t);
22
+ return !n || N(t) !== e ? null : n;
23
+ }).filter(Boolean), n = O.value.filter((t) => N(t.prop) === e && !A.value.includes(t.prop));
24
+ return [...t, ...n];
25
+ }, F = o(() => ({
26
+ left: P("left"),
27
+ middle: P(!1),
28
+ right: P("right")
29
+ })), I = o(() => [
30
+ {
31
+ key: "left",
32
+ labelKey: "d.table.fixedLeft",
33
+ items: F.value.left,
34
+ showLabel: !0
35
+ },
36
+ {
37
+ key: "middle",
38
+ labelKey: "d.table.columns",
39
+ items: F.value.middle,
40
+ showLabel: !0
41
+ },
42
+ {
43
+ key: "right",
44
+ labelKey: "d.table.fixedRight",
45
+ items: F.value.right,
46
+ showLabel: !0
47
+ }
48
+ ]), L = {
49
+ left: h(null),
50
+ middle: h(null),
51
+ right: h(null)
52
+ }, R = (e, t) => {
53
+ L[t].value = e;
54
+ }, z = (e) => Object.keys(L).find((t) => L[t].value === e), B = {
55
+ left: "left",
56
+ middle: !1,
57
+ right: "right"
58
+ }, V = (e) => (t) => {
59
+ let { from: n, to: r, oldIndex: i, newIndex: a } = t, o = z(r) ?? e, s = {
60
+ left: [...F.value.left.map((e) => e.prop)],
61
+ middle: [...F.value.middle.map((e) => e.prop)],
62
+ right: [...F.value.right.map((e) => e.prop)]
63
+ };
64
+ if (n === r) {
65
+ if (i === a) return;
66
+ let [t] = s[e].splice(i, 1);
67
+ s[e].splice(a, 0, t);
68
+ } else {
69
+ let t = s[e][i];
70
+ if (!t) return;
71
+ s[e].splice(i, 1), s[o].splice(a, 0, t), j.value = {
72
+ ...j.value,
73
+ [t]: B[o]
74
+ };
75
+ }
76
+ A.value = [
77
+ ...s.left,
78
+ ...s.middle,
79
+ ...s.right
80
+ ], M();
81
+ }, H = (e) => ({
82
+ handle: ".d-table-filter__handle",
83
+ animation: 150,
84
+ group: {
85
+ name: "d-table-filter-cols",
86
+ pull: !0,
87
+ put: !0
88
+ },
89
+ onUpdate: () => {},
90
+ onAdd: () => {},
91
+ onRemove: () => {},
92
+ onEnd: V(e)
93
+ }), U = {
94
+ left: C(L.left, o(() => F.value.left), H("left")),
95
+ middle: C(L.middle, o(() => F.value.middle), H("middle")),
96
+ right: C(L.right, o(() => F.value.right), H("right"))
97
+ }, W = !1, G = () => {
98
+ W || (W = !0, Object.values(U).forEach((e) => e.start()));
99
+ }, K = (e, t) => {
100
+ if (t) k.value.includes(e) || (k.value = [...k.value, e], M());
101
+ else {
102
+ if (k.value.length <= 1) return;
103
+ k.value = k.value.filter((t) => t !== e), M();
104
+ }
105
+ }, q = () => {
106
+ let e = O.value.map((e) => e.prop);
107
+ k.value = e, A.value = e, j.value = {}, M();
108
+ };
109
+ return (e, t) => (m(), s(v(S), {
110
+ placement: "bottom-end",
111
+ width: "auto",
112
+ trigger: "click",
113
+ onShow: G
114
+ }, {
115
+ reference: y(() => [f(v(b), {
116
+ link: "",
117
+ style: { "font-size": "16px" }
118
+ }, {
119
+ default: y(() => [f(v(n), null, {
120
+ default: y(() => [f(r)]),
121
+ _: 1
122
+ })]),
123
+ _: 1
124
+ })]),
125
+ default: y(() => [u("div", w, [f(v(b), {
126
+ link: "",
127
+ type: "primary",
128
+ onClick: q
129
+ }, {
130
+ default: y(() => [d(_(v(D)("d.table.reset")), 1)]),
131
+ _: 1
132
+ })]), u("div", T, [(m(!0), l(a, null, g(I.value, (e) => (m(), l(a, { key: e.key }, [e.showLabel ? (m(), l("div", E, _(v(D)(e.labelKey)), 1)) : c("", !0), u("ul", {
133
+ ref_for: !0,
134
+ ref: (t) => R(t, e.key),
135
+ class: "d-table-filter__list"
136
+ }, [(m(!0), l(a, null, g(e.items, (e) => (m(), l("li", {
137
+ key: e.prop,
138
+ class: "d-table-filter__item"
139
+ }, [f(v(n), { class: "d-table-filter__handle" }, {
140
+ default: y(() => [f(i)]),
141
+ _: 1
142
+ }), f(v(x), {
143
+ "model-value": v(k).includes(e.prop),
144
+ disabled: v(k).length <= 1 && v(k).includes(e.prop),
145
+ onChange: (t) => K(e.prop, t)
146
+ }, {
147
+ default: y(() => [d(_(e.label), 1)]),
148
+ _: 2
149
+ }, 1032, [
150
+ "model-value",
151
+ "disabled",
152
+ "onChange"
153
+ ])]))), 128))], 512)], 64))), 128))])]),
154
+ _: 1
155
+ }));
156
+ }
157
+ }), [["__scopeId", "data-v-9588721e"]]);
158
+ //#endregion
159
+ export { D as default };
@@ -0,0 +1 @@
1
+ .d-table-filter__body[data-v-9588721e]{max-height:400px;overflow-y:auto}.d-table-filter__list[data-v-9588721e]{margin:0;padding:0;list-style:none}.d-table-filter__item[data-v-9588721e]{align-items:center;gap:6px;display:flex}.d-table-filter__item[data-v-9588721e] .el-checkbox{height:24px}.d-table-filter__header[data-v-9588721e]{justify-content:flex-end;margin-bottom:4px;display:flex}.d-table-filter__group-label[data-v-9588721e]{color:var(--el-text-color-secondary);padding:4px 0 2px;font-size:12px}.d-table-filter__handle[data-v-9588721e]{color:var(--el-text-color-placeholder);cursor:grab;flex-shrink:0}.d-table-filter__handle[data-v-9588721e]:active{cursor:grabbing}
@@ -11,8 +11,8 @@ var r = (e) => (e?.type?.name || e?.type?.__name) === "ElTableColumn", i = (t) =
11
11
  let t = [], n = [];
12
12
  for (let i of e) {
13
13
  if (!r(i)) continue;
14
- let { type: e, prop: a, label: o } = i.props || {};
15
- e ? n.push(i) : a && o ? t.push(i) : n.push(i);
14
+ let { prop: e } = i.props || {};
15
+ e ? t.push(i) : n.push(i);
16
16
  }
17
17
  return {
18
18
  controllable: t,
@@ -28,24 +28,33 @@ var r = (e) => (e?.type?.name || e?.type?.__name) === "ElTableColumn", i = (t) =
28
28
  if (!c) return e;
29
29
  let l = c.children?.default, { controllable: u, always: d } = a(i(typeof l == "function" ? l() : [])), f = u.map((e) => ({
30
30
  prop: e.props.prop,
31
- label: e.props.label,
31
+ label: e.props.label || e.props.type || e.props.prop,
32
32
  fixed: e.props.fixed === "right" ? "right" : e.props.fixed ? "left" : !1
33
33
  }));
34
34
  queueMicrotask(() => {
35
35
  JSON.stringify(s.columnList.value) !== JSON.stringify(f) && (s.columnList.value = f);
36
36
  });
37
- let p = o(u, s.checkedKeys.value, s.columnOrder.value), m = d.filter((e) => e.props?.type), h = d.filter((e) => !e.props?.type), g = [
37
+ let p = o(u, s.checkedKeys.value, s.columnOrder.value), m = d.filter((e) => e.props?.type), h = d.filter((e) => !e.props?.type), g = s.columnFixed?.value ?? {}, _ = (e) => {
38
+ let n = e.props?.prop;
39
+ if (!n || !Object.prototype.hasOwnProperty.call(g, n)) return e;
40
+ let r = g[n], i = { ...e.props };
41
+ return r ? i.fixed = r : delete i.fixed, t(e.type, i, e.children);
42
+ }, v = [
38
43
  ...m,
39
- ...p,
44
+ ...p.map(_),
40
45
  ...h
41
- ], _ = [...s.checkedKeys.value, ...s.columnOrder.value].join(","), v = t(c.type, {
46
+ ], y = Object.entries(g).map(([e, t]) => `${e}:${t}`).join(","), b = [
47
+ ...s.checkedKeys.value,
48
+ ...s.columnOrder.value,
49
+ y
50
+ ].join(","), x = t(c.type, {
42
51
  ...c.props,
43
- key: _
52
+ key: b
44
53
  }, {
45
54
  ...c.children,
46
- default: () => g
55
+ default: () => v
47
56
  });
48
- return n.map((e) => e === c ? v : e);
57
+ return n.map((e) => e === c ? x : e);
49
58
  };
50
59
  }
51
60
  };
@@ -8,6 +8,7 @@ declare const __VLS_component: import('vue').DefineComponent<{}, {
8
8
  columnList: import('vue').Ref<never[], never[]>;
9
9
  checkedKeys: import('vue').Ref<never[], never[]>;
10
10
  columnOrder: import('vue').Ref<never[], never[]>;
11
+ columnFixed: import('vue').Ref<{}, {}>;
11
12
  saveConfig: () => void;
12
13
  readonly storageKey: string;
13
14
  };
@@ -1,9 +1,9 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import n from "./table-wrapper.js";
5
- import r from "./table-filter.js";
6
- import './table.vue_vue_type_style_index_0_scoped_a6c85ac1_lang.css';/* empty css */
2
+ import "../../../hooks/index.js";
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ import n from "./table-wrapper.vue.js";
5
+ import r from "./table-filter.vue.js";
6
+ import './table.vue_vue_type_style_index_0_scoped_d07e3dbc_lang.css';/* empty css */
7
7
  import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, mergeModels as u, onMounted as d, openBlock as f, provide as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useModel as v, useSlots as y, useTemplateRef as b, watch as x, withCtx as S } from "vue";
8
8
  import { useResizeObserver as C } from "@vueuse/core";
9
9
  import { ElPagination as w } from "element-plus";
@@ -76,68 +76,73 @@ var T = { class: "d-table" }, E = {
76
76
  }),
77
77
  emits: /* @__PURE__ */ u(["page-change"], ["update:currentPage", "update:pageSize"]),
78
78
  setup(t, { expose: u, emit: j }) {
79
- let { t: M } = e(), N = t, P = j, F = v(t, "currentPage"), I = v(t, "pageSize"), L = y(), R = i(() => !!L.toolbar), z = m([]), B = m([]), V = m([]), H = () => `d-table-${N.storageKey}`, U = () => {
79
+ let { t: M } = e(), N = t, P = j, F = v(t, "currentPage"), I = v(t, "pageSize"), L = y(), R = i(() => !!L.toolbar), z = m([]), B = m([]), V = m([]), H = m({}), U = () => `d-table-${N.storageKey}`, W = () => {
80
80
  if (N.storageKey) try {
81
- let e = localStorage.getItem(H());
81
+ let e = localStorage.getItem(U());
82
82
  if (!e) return;
83
- let { checkedKeys: t, columnOrder: n } = JSON.parse(e);
84
- Array.isArray(t) && (B.value = t), Array.isArray(n) && (V.value = n);
83
+ let { checkedKeys: t, columnOrder: n, columnFixed: r } = JSON.parse(e);
84
+ Array.isArray(t) && (B.value = t), Array.isArray(n) && (V.value = n), r && typeof r == "object" && !Array.isArray(r) && (H.value = r);
85
85
  } catch {}
86
- }, W = () => {
86
+ }, G = () => {
87
87
  if (N.storageKey) try {
88
- localStorage.setItem(H(), JSON.stringify({
88
+ localStorage.setItem(U(), JSON.stringify({
89
89
  checkedKeys: B.value,
90
- columnOrder: V.value
90
+ columnOrder: V.value,
91
+ columnFixed: H.value
91
92
  }));
92
93
  } catch {}
93
94
  };
94
- U(), x(z, () => {
95
+ W(), x(z, () => {
95
96
  let e = z.value.map((e) => e.prop), t = e.filter((e) => !V.value.includes(e));
96
97
  t.length && (V.value = [...V.value, ...t], B.value = [...B.value, ...t]), V.value = V.value.filter((t) => e.includes(t)), B.value = B.value.filter((t) => e.includes(t));
98
+ let n = {};
99
+ for (let [t, r] of Object.entries(H.value)) e.includes(t) && (n[t] = r);
100
+ H.value = n;
97
101
  }, { deep: !0 });
98
- let G = {
102
+ let K = {
99
103
  columnList: z,
100
104
  checkedKeys: B,
101
105
  columnOrder: V,
102
- saveConfig: W,
106
+ columnFixed: H,
107
+ saveConfig: G,
103
108
  get storageKey() {
104
- return H();
109
+ return U();
105
110
  }
106
111
  };
107
- p("dTableContext", G);
108
- let K = b("tableAreaRef"), q = m(void 0), J = () => {
109
- if (!N.autoHeight || !N.availableHeight || !K.value) {
110
- q.value = void 0;
112
+ p("dTableContext", K);
113
+ let q = b("tableAreaRef"), J = m(void 0), Y = () => {
114
+ if (!N.autoHeight || !N.availableHeight || !q.value) {
115
+ J.value = void 0;
111
116
  return;
112
117
  }
113
118
  if (!N.heightContainer) {
114
- q.value = void 0;
119
+ J.value = void 0;
115
120
  return;
116
121
  }
117
122
  let e = document.querySelector(N.heightContainer);
118
123
  if (!e) return;
119
- let { height: t } = e.getBoundingClientRect(), { height: n } = K.value.getBoundingClientRect(), r = N.availableHeight - (t - n);
120
- q.value = r > 0 ? r : void 0;
124
+ let { height: t } = e.getBoundingClientRect(), { height: n } = q.value.getBoundingClientRect(), r = N.availableHeight - (t - n);
125
+ J.value = r > 0 ? r : void 0;
121
126
  };
122
127
  return d(() => {
123
- if (!K.value) return;
124
- let e = K.value.parentElement, t = N.heightContainer ? document.querySelector(N.heightContainer) : null;
125
- t && C(t, J), e && C(e, J), J();
128
+ if (!q.value) return;
129
+ let e = q.value.parentElement, t = N.heightContainer ? document.querySelector(N.heightContainer) : null;
130
+ t && C(t, Y), e && C(e, Y), Y();
126
131
  }), x(() => [
127
132
  N.autoHeight,
128
133
  N.availableHeight,
129
134
  N.heightContainer
130
- ], J), u({
131
- tableContext: G,
132
- saveConfig: W
135
+ ], Y), u({
136
+ tableContext: K,
137
+ saveConfig: G
133
138
  }), (e, i) => (f(), s("div", T, [
134
139
  R.value || t.filterable ? (f(), s("div", E, [c("div", D, [h(e.$slots, "toolbar", {}, void 0, !0)]), c("div", O, [t.filterable ? (f(), a(r, { key: 0 })) : o("", !0)])])) : o("", !0),
135
140
  c("div", {
136
141
  ref_key: "tableAreaRef",
137
- ref: K,
142
+ ref: q,
138
143
  class: "d-table__body"
139
144
  }, [l(n, null, {
140
- default: S(() => [h(e.$slots, "default", { tableHeight: q.value }, void 0, !0)]),
145
+ default: S(() => [h(e.$slots, "default", { tableHeight: J.value }, void 0, !0)]),
141
146
  _: 3
142
147
  })], 512),
143
148
  t.showPage ? (f(), s("div", k, [h(e.$slots, "pagination", {}, () => [l(_(w), {
@@ -161,6 +166,6 @@ var T = { class: "d-table" }, E = {
161
166
  ])], !0), t.showTip ? (f(), s("span", A, g(_(M)("d.table.scrollTip")), 1)) : o("", !0)])) : o("", !0)
162
167
  ]));
163
168
  }
164
- }), [["__scopeId", "data-v-a6c85ac1"]]);
169
+ }), [["__scopeId", "data-v-d07e3dbc"]]);
165
170
  //#endregion
166
171
  export { j as default };
@@ -0,0 +1 @@
1
+ .d-table[data-v-d07e3dbc]{flex-direction:column;gap:12px;display:flex}.d-table__toolbar[data-v-d07e3dbc]{justify-content:space-between;align-items:center;gap:12px;display:flex}.d-table__toolbar-left[data-v-d07e3dbc]{flex:1;align-items:center;gap:12px;display:flex}.d-table__toolbar-left[data-v-d07e3dbc] .el-button{margin:0}.d-table__toolbar-right[data-v-d07e3dbc]{flex-shrink:0;align-items:center;gap:12px;display:flex}.d-table__pagination[data-v-d07e3dbc]{flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.d-table__scroll-tip[data-v-d07e3dbc]{color:var(--el-text-color-secondary);font-size:12px}
@@ -1,4 +1,4 @@
1
- import e from "./src/upload.js";
1
+ import e from "./src/upload.vue.js";
2
2
  //#region packages/components/upload/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -1,21 +1,21 @@
1
1
  import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
2
  import { useActivated as t } from "../../../hooks/use-activated/index.js";
3
- import "../../../../hooks/index.js";
4
- import n from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- import r from "../../icons/angle-down-light.js";
6
- import i from "../../icons/angle-up-light.js";
3
+ import "../../../hooks/index.js";
4
+ import n from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ import r from "../../icons/angle-down-light.vue.js";
6
+ import i from "../../icons/angle-up-light.vue.js";
7
7
  import a from "../../icon/index.js";
8
- import ee from "../../icons/circle-play-light.js";
9
- import te from "../../icons/circle-xmark-light.js";
10
- import ne from "../../icons/download-light.js";
11
- import re from "../../icons/eye-light.js";
12
- import ie from "../../icons/file-light.js";
13
- import ae from "../../icons/plus-light.js";
14
- import oe from "../../icons/trash-light.js";
15
- import se from "../../icons/image-light.js";
16
- import './upload.vue_vue_type_style_index_1_lang.css';import './upload.vue_vue_type_style_index_0_scoped_aef1e5b2_lang.css';/* empty css */
17
- /* empty css */
18
- import "../../../../components/index.js";
8
+ import ee from "../../icons/circle-play-light.vue.js";
9
+ import te from "../../icons/circle-xmark-light.vue.js";
10
+ import ne from "../../icons/download-light.vue.js";
11
+ import re from "../../icons/eye-light.vue.js";
12
+ import ie from "../../icons/file-light.vue.js";
13
+ import ae from "../../icons/plus-light.vue.js";
14
+ import oe from "../../icons/trash-light.vue.js";
15
+ import se from "../../icons/image-light.vue.js";
16
+ import './upload.vue_vue_type_style_index_1_lang.css';import './upload.vue_vue_type_style_index_0_scoped_aef1e5b2_lang.css';/* empty css */
17
+ /* empty css */
18
+ import "../../index.js";
19
19
  import { isFunction as ce } from "lodash-es";
20
20
  import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, mergeModels as m, normalizeClass as le, normalizeStyle as h, onBeforeUnmount as ue, onMounted as de, openBlock as g, reactive as fe, ref as _, renderList as v, toDisplayString as y, unref as b, useModel as x, useTemplateRef as pe, watch as me, withCtx as S, withModifiers as he } from "vue";
21
21
  import { ElButton as C, ElDialog as ge, ElImage as _e, ElImageViewer as ve, ElLink as w, ElMessage as T, ElMessageBox as ye, ElProgress as E, ElUpload as be, useFormItem as xe } from "element-plus";
package/hooks/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { useLocale as e } from "../packages/hooks/use-locale/index.js";
2
- import { useActivated as t } from "../packages/hooks/use-activated/index.js";
1
+ import { useLocale as e } from "./use-locale/index.js";
2
+ import { useActivated as t } from "./use-activated/index.js";
3
3
  export { t as useActivated, e as useLocale };
@@ -1,5 +1,5 @@
1
1
  import { getLocale as e, setLocale as t, t as n } from "../../locale/i18n.js";
2
- import "../../../locale/index.js";
2
+ import "../../locale/index.js";
3
3
  //#region packages/hooks/use-locale/index.js
4
4
  var r = () => ({
5
5
  t: n,
package/index.js CHANGED
@@ -1,19 +1,19 @@
1
- import { useLocale as e } from "./packages/hooks/use-locale/index.js";
2
- import { useActivated as t } from "./packages/hooks/use-activated/index.js";
1
+ import { useLocale as e } from "./hooks/use-locale/index.js";
2
+ import { useActivated as t } from "./hooks/use-activated/index.js";
3
3
  import "./hooks/index.js";
4
- import n from "./packages/components/copy/index.js";
5
- import r from "./packages/components/editor/index.js";
6
- import i from "./packages/components/fold-text/index.js";
7
- import a from "./packages/components/icon/index.js";
8
- import o from "./packages/components/icon-tip/index.js";
9
- import s from "./packages/components/inline-edit/index.js";
10
- import c from "./packages/components/upload/index.js";
11
- import l from "./packages/components/search-form/index.js";
12
- import u from "./packages/components/search-item/index.js";
13
- import d from "./packages/components/table/index.js";
4
+ import n from "./components/copy/index.js";
5
+ import r from "./components/editor/index.js";
6
+ import i from "./components/fold-text/index.js";
7
+ import a from "./components/icon/index.js";
8
+ import o from "./components/icon-tip/index.js";
9
+ import s from "./components/inline-edit/index.js";
10
+ import c from "./components/upload/index.js";
11
+ import l from "./components/search-form/index.js";
12
+ import u from "./components/search-item/index.js";
13
+ import d from "./components/table/index.js";
14
14
  import "./components/index.js";
15
15
  import { setComponentRegistry as f, setGlobalConfig as p } from "./config/index.js";
16
- import { install as m } from "./packages/install.js";
16
+ import { install as m } from "./install.js";
17
17
  //#region packages/index.js
18
18
  var h = { install: m };
19
19
  //#endregion
@@ -1,7 +1,7 @@
1
1
  import { initI18n as e } from "./locale/i18n.js";
2
- import "../locale/index.js";
3
- import { components_exports as t } from "../components/index.js";
4
- import { setComponentRegistry as n, setGlobalConfig as r } from "../config/index.js";
2
+ import "./locale/index.js";
3
+ import { components_exports as t } from "./components/index.js";
4
+ import { setComponentRegistry as n, setGlobalConfig as r } from "./config/index.js";
5
5
  //#region packages/install.js
6
6
  var i = (i, a = {}) => {
7
7
  let { locale: o, config: s } = a;
package/locale/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import e from "../packages/locale/lang/en.js";
2
- import t from "../packages/locale/lang/ja.js";
3
- import n from "../packages/locale/lang/ko.js";
4
- import r from "../packages/locale/lang/zh-cn.js";
5
- import i from "../packages/locale/lang/zh-tw.js";
6
- import { getLocale as a, initI18n as o, setLocale as s, t as c } from "../packages/locale/i18n.js";
1
+ import e from "./lang/en.js";
2
+ import t from "./lang/ja.js";
3
+ import n from "./lang/ko.js";
4
+ import r from "./lang/zh-cn.js";
5
+ import i from "./lang/zh-tw.js";
6
+ import { getLocale as a, initI18n as o, setLocale as s, t as c } from "./i18n.js";
7
7
  export { e as en, a as getLocale, o as initI18n, t as ja, n as ko, s as setLocale, c as t, r as zhCn, i as zhTw };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geekplus-digital-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "homepage": "https://ui.geekplus.cc/static/ui/",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -46,7 +46,7 @@ Peer dependencies: `vue@^3.5.0`、`element-plus@^2.13.0`
46
46
  | **InlineEdit** | `<d-inline-edit>` | 展示态/编辑态切换 |
47
47
  | **SearchForm** | `<d-search-form>` | 可折叠搜索筛选区域 |
48
48
  | **SearchItem** | `<d-search-item>` | 搜索表单的单个搜索项,配合 SearchForm 使用 |
49
- | **Table** | `<d-table>` | 表格列筛选/拖排/内置分页/自适应高度 |
49
+ | **Table** | `<d-table>` | 表格列筛选/拖排/跨区固定/内置分页/自适应高度 |
50
50
 
51
51
  详细 Props/Events/Slots API 请查阅文档:https://ui.geekplus.cc/static/ui/
52
52
 
@@ -60,7 +60,7 @@ Peer dependencies: `vue@^3.5.0`、`element-plus@^2.13.0`
60
60
  - 图标悬浮提示 → `<d-icon-tip>`
61
61
  - 行内编辑切换 → `<d-inline-edit>`
62
62
  - 搜索筛选表单 → `<d-search-form>` + `<d-search-item>`
63
- - 表格列显示/隐藏、列拖动排序、分页、表格自适应高度 → `<d-table>`
63
+ - 表格列显示/隐藏、列拖动排序、跨区拖拽改变固定状态、分页、表格自适应高度 → `<d-table>`
64
64
 
65
65
  2. **全局配置优先**:通用参数(如 Upload 的 `domain`、`axios`、`url`)应通过全局配置注入,业务页面只关注数据绑定和交互逻辑:
66
66
 
@@ -1,131 +0,0 @@
1
- import { useLocale as e } from "../../../hooks/use-locale/index.js";
2
- import "../../../../hooks/index.js";
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- import n from "../../icon/index.js";
5
- import { useSortable as r } from "../../../../node_modules/.pnpm/@vueuse_integrations@14.2.1_a615f74e286bcfd94138d5303218186e/node_modules/@vueuse/integrations/dist/useSortable-Cc5LKbDD.js";
6
- import i from "../../icons/filter-list-light.js";
7
- import './table-filter.vue_vue_type_style_index_0_scoped_70a03e33_lang.css';/* empty css */
8
- import "../../../../components/index.js";
9
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, inject as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
10
- import { ElButton as b, ElCheckbox as x, ElPopover as S } from "element-plus";
11
- //#region packages/components/table/src/table-filter.vue
12
- var C = { class: "d-table-filter__header" }, w = { class: "d-table-filter__body" }, T = {
13
- key: 0,
14
- class: "d-table-filter__group-label"
15
- }, E = /* @__PURE__ */ t(/* @__PURE__ */ Object.assign({ name: "DTableFilter" }, {
16
- __name: "table-filter",
17
- setup(t) {
18
- let { t: E } = e(), { columnList: D, checkedKeys: O, columnOrder: k, saveConfig: A } = p("dTableContext"), j = (e) => {
19
- let t = k.value.map((t) => D.value.find((n) => n.prop === t && (n.fixed ?? !1) === e)).filter(Boolean), n = D.value.filter((t) => (t.fixed ?? !1) === e && !k.value.includes(t.prop));
20
- return [...t, ...n];
21
- }, M = o(() => ({
22
- left: j("left"),
23
- middle: j(!1),
24
- right: j("right")
25
- })), N = o(() => [
26
- {
27
- key: "left",
28
- labelKey: "d.table.fixedLeft",
29
- items: M.value.left,
30
- hideWhenEmpty: !0,
31
- showLabel: !0
32
- },
33
- {
34
- key: "middle",
35
- labelKey: "d.table.columns",
36
- items: M.value.middle,
37
- hideWhenEmpty: !1,
38
- showLabel: M.value.left.length > 0 || M.value.right.length > 0
39
- },
40
- {
41
- key: "right",
42
- labelKey: "d.table.fixedRight",
43
- items: M.value.right,
44
- hideWhenEmpty: !0,
45
- showLabel: !0
46
- }
47
- ]), P = {
48
- left: h(null),
49
- middle: h(null),
50
- right: h(null)
51
- }, F = (e, t) => {
52
- P[t].value = e;
53
- }, I = (e) => ({ oldIndex: t, newIndex: n }) => {
54
- if (t === n) return;
55
- let r = [...M.value[e].map((e) => e.prop)], [i] = r.splice(t, 1);
56
- r.splice(n, 0, i);
57
- let a = e === "left" ? r : M.value.left.map((e) => e.prop), o = e === "middle" ? r : M.value.middle.map((e) => e.prop), s = e === "right" ? r : M.value.right.map((e) => e.prop);
58
- k.value = [
59
- ...a,
60
- ...o,
61
- ...s
62
- ], A();
63
- }, L = (e) => ({
64
- handle: ".d-table-filter__handle",
65
- animation: 150,
66
- onUpdate: () => {},
67
- onEnd: I(e)
68
- }), R = {
69
- left: r(P.left, o(() => M.value.left), L("left")),
70
- middle: r(P.middle, o(() => M.value.middle), L("middle")),
71
- right: r(P.right, o(() => M.value.right), L("right"))
72
- }, z = !1, B = () => {
73
- z || (z = !0, Object.values(R).forEach((e) => e.start()));
74
- }, V = (e, t) => {
75
- if (t) O.value.includes(e) || (O.value = [...O.value, e], A());
76
- else {
77
- if (O.value.length <= 1) return;
78
- O.value = O.value.filter((t) => t !== e), A();
79
- }
80
- }, H = () => {
81
- let e = D.value.map((e) => e.prop);
82
- O.value = e, k.value = e, A();
83
- };
84
- return (e, t) => (m(), s(v(S), {
85
- placement: "bottom-end",
86
- width: "auto",
87
- trigger: "click",
88
- onShow: B
89
- }, {
90
- reference: y(() => [f(v(b), {
91
- link: "",
92
- style: { "font-size": "16px" }
93
- }, {
94
- default: y(() => [f(v(n), null, {
95
- default: y(() => [f(i)]),
96
- _: 1
97
- })]),
98
- _: 1
99
- })]),
100
- default: y(() => [u("div", C, [f(v(b), {
101
- link: "",
102
- type: "primary",
103
- onClick: H
104
- }, {
105
- default: y(() => [d(_(v(E)("d.table.reset")), 1)]),
106
- _: 1
107
- })]), u("div", w, [(m(!0), l(a, null, g(N.value, (e) => (m(), l(a, { key: e.key }, [!e.hideWhenEmpty || e.items.length ? (m(), l(a, { key: 0 }, [e.showLabel ? (m(), l("div", T, _(v(E)(e.labelKey)), 1)) : c("", !0), u("ul", {
108
- ref_for: !0,
109
- ref: (t) => F(t, e.key),
110
- class: "d-table-filter__list"
111
- }, [(m(!0), l(a, null, g(e.items, (e) => (m(), l("li", {
112
- key: e.prop,
113
- class: "d-table-filter__item"
114
- }, [t[0] ||= u("span", { class: "d-table-filter__handle" }, "⠿", -1), f(v(x), {
115
- "model-value": v(O).includes(e.prop),
116
- disabled: v(O).length <= 1 && v(O).includes(e.prop),
117
- onChange: (t) => V(e.prop, t)
118
- }, {
119
- default: y(() => [d(_(e.label), 1)]),
120
- _: 2
121
- }, 1032, [
122
- "model-value",
123
- "disabled",
124
- "onChange"
125
- ])]))), 128))], 512)], 64)) : c("", !0)], 64))), 128))])]),
126
- _: 1
127
- }));
128
- }
129
- }), [["__scopeId", "data-v-70a03e33"]]);
130
- //#endregion
131
- export { E as default };
@@ -1 +0,0 @@
1
- .d-table-filter__body[data-v-70a03e33]{max-height:400px;overflow-y:auto}.d-table-filter__list[data-v-70a03e33]{margin:0;padding:0;list-style:none}.d-table-filter__item[data-v-70a03e33]{align-items:center;gap:6px;display:flex}.d-table-filter__item[data-v-70a03e33] .el-checkbox{height:24px}.d-table-filter__header[data-v-70a03e33]{justify-content:flex-end;margin-bottom:4px;display:flex}.d-table-filter__group-label[data-v-70a03e33]{color:var(--el-text-color-secondary);padding:4px 0 2px;font-size:12px}.d-table-filter__handle[data-v-70a03e33]{color:var(--el-text-color-placeholder);cursor:grab;flex-shrink:0;font-size:16px;line-height:1}.d-table-filter__handle[data-v-70a03e33]:active{cursor:grabbing}
@@ -1 +0,0 @@
1
- .d-table[data-v-a6c85ac1]{flex-direction:column;gap:12px;display:flex}.d-table__toolbar[data-v-a6c85ac1]{justify-content:space-between;align-items:center;gap:12px;display:flex}.d-table__toolbar-left[data-v-a6c85ac1]{flex:1;align-items:center;gap:12px;display:flex}.d-table__toolbar-left[data-v-a6c85ac1] .el-button{margin:0}.d-table__toolbar-right[data-v-a6c85ac1]{flex-shrink:0;align-items:center;gap:12px;display:flex}.d-table__pagination[data-v-a6c85ac1]{flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.d-table__scroll-tip[data-v-a6c85ac1]{color:var(--el-text-color-secondary);font-size:12px}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes