@vunk/plus 1.2.0 → 1.3.0

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 (117) hide show
  1. package/components/SendOutlined.mjs +43 -25
  2. package/components/agent-chat-provider/index.mjs +789 -0
  3. package/components/avatar/index.mjs +2 -2
  4. package/components/broadcasting-markdown/index.css +3 -0
  5. package/components/broadcasting-markdown/index.mjs +637 -0
  6. package/components/bubble-list/index.css +18 -0
  7. package/components/bubble-list/index.mjs +386 -0
  8. package/components/bubble-templates/index.css +18 -0
  9. package/components/bubble-templates/index.mjs +258 -0
  10. package/components/chat-independent/index.css +47 -0
  11. package/components/chat-independent/index.mjs +184 -0
  12. package/components/index.mjs +35980 -0
  13. package/components/lottie-animation/index.mjs +2 -2
  14. package/components/monaco-editor/index.mjs +2 -2
  15. package/components/monaco-environment/index.mjs +11 -11
  16. package/components/recorder-button/index.css +7 -10
  17. package/components/recorder-button/index.mjs +115 -83
  18. package/components/routes-menu-content/index.mjs +5 -5
  19. package/components/sender/index.css +6 -5
  20. package/components/sender/index.mjs +174 -26
  21. package/components/speech-button/index.mjs +40 -14
  22. package/components/table-columns/index.mjs +3 -6
  23. package/components/tables-v1/index.mjs +9 -10
  24. package/components/tables-v1-checkbox/index.mjs +269 -33
  25. package/components/typing-markdown/index.mjs +128 -33
  26. package/components/vditor/index.mjs +5 -9
  27. package/composables/el-breakpoints/index.d.ts +1 -1
  28. package/composables/recorder/index.mjs +752 -182
  29. package/icons/_plugin-vue_export-helper.mjs +9 -0
  30. package/icons/end/index.d.ts +4 -0
  31. package/icons/end/index.mjs +36 -0
  32. package/icons/end/src/avatar.d.ts +12 -0
  33. package/icons/end/src/icon.d.ts +57 -0
  34. package/icons/keyboard/index.d.ts +4 -0
  35. package/icons/keyboard/index.mjs +36 -0
  36. package/icons/keyboard/src/avatar.d.ts +12 -0
  37. package/icons/keyboard/src/icon.d.ts +57 -0
  38. package/icons/start/index.d.ts +4 -0
  39. package/icons/start/index.mjs +36 -0
  40. package/icons/start/src/avatar.d.ts +12 -0
  41. package/icons/start/src/icon.d.ts +57 -0
  42. package/icons/voice/index.d.ts +4 -0
  43. package/icons/voice/index.mjs +51 -0
  44. package/icons/voice/src/avatar.d.ts +12 -0
  45. package/icons/voice/src/icon.d.ts +57 -0
  46. package/icons/voice/src/index.vue.d.ts +4 -0
  47. package/index.css +103 -15
  48. package/package.json +51 -7
  49. package/components/avatar/index.d.ts +0 -4
  50. package/components/avatar/src/ctx.d.ts +0 -18
  51. package/components/avatar/src/index.vue.d.ts +0 -180
  52. package/components/avatar/src/types.d.ts +0 -1
  53. package/components/lottie-animation/index.d.ts +0 -4
  54. package/components/lottie-animation/src/ctx.d.ts +0 -10
  55. package/components/lottie-animation/src/index.vue.d.ts +0 -21
  56. package/components/lottie-animation/src/types.d.ts +0 -4
  57. package/components/monaco-editor/index.d.ts +0 -5
  58. package/components/monaco-editor/src/ctx.d.ts +0 -23
  59. package/components/monaco-editor/src/index.vue.d.ts +0 -40
  60. package/components/monaco-editor/src/types.d.ts +0 -1
  61. package/components/monaco-environment/index.d.ts +0 -4
  62. package/components/monaco-environment/src/ctx.d.ts +0 -8
  63. package/components/monaco-environment/src/index.vue.d.ts +0 -2
  64. package/components/monaco-environment/src/types.d.ts +0 -1
  65. package/components/recorder-button/index.d.ts +0 -4
  66. package/components/recorder-button/src/ctx.d.ts +0 -19
  67. package/components/recorder-button/src/index.vue.d.ts +0 -309
  68. package/components/recorder-button/src/speech-to-text.d.ts +0 -1
  69. package/components/recorder-button/src/types.d.ts +0 -6
  70. package/components/routes-menu-content/index.d.ts +0 -4
  71. package/components/routes-menu-content/src/ctx.d.ts +0 -17
  72. package/components/routes-menu-content/src/index.vue.d.ts +0 -350
  73. package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
  74. package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -185
  75. package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
  76. package/components/routes-menu-content/src/item/index.vue.d.ts +0 -316
  77. package/components/routes-menu-content/src/types.d.ts +0 -1
  78. package/components/sender/index.d.ts +0 -4
  79. package/components/sender/src/ctx.d.ts +0 -21
  80. package/components/sender/src/index.vue.d.ts +0 -484
  81. package/components/sender/src/types.d.ts +0 -1
  82. package/components/speech-button/index.d.ts +0 -4
  83. package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
  84. package/components/speech-button/src/ctx.d.ts +0 -10
  85. package/components/speech-button/src/index.vue.d.ts +0 -22
  86. package/components/speech-button/src/types.d.ts +0 -1
  87. package/components/table-columns/index.d.ts +0 -5
  88. package/components/table-columns/src/ctx.d.ts +0 -66
  89. package/components/table-columns/src/el-ctx.d.ts +0 -63
  90. package/components/table-columns/src/index.vue.d.ts +0 -280
  91. package/components/table-columns/src/types.d.ts +0 -21
  92. package/components/tables-v1/index.d.ts +0 -5
  93. package/components/tables-v1/src/ctx.d.ts +0 -283
  94. package/components/tables-v1/src/el-ctx.d.ts +0 -272
  95. package/components/tables-v1/src/index.vue.d.ts +0 -2997
  96. package/components/tables-v1/src/types.d.ts +0 -4
  97. package/components/tables-v1-checkbox/index.d.ts +0 -5
  98. package/components/tables-v1-checkbox/src/ctx.d.ts +0 -322
  99. package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3788
  100. package/components/tables-v1-checkbox/src/types.d.ts +0 -1
  101. package/components/typing-markdown/index.d.ts +0 -4
  102. package/components/typing-markdown/src/core.d.ts +0 -3
  103. package/components/typing-markdown/src/ctx.d.ts +0 -33
  104. package/components/typing-markdown/src/index.vue.d.ts +0 -57
  105. package/components/typing-markdown/src/types.d.ts +0 -1
  106. package/components/vditor/index.d.ts +0 -5
  107. package/components/vditor/src/ctx.d.ts +0 -37
  108. package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
  109. package/components/vditor/src/handle-value.vue.d.ts +0 -18
  110. package/components/vditor/src/index.vue.d.ts +0 -144
  111. package/components/vditor/src/types.d.ts +0 -9
  112. package/components/vditor/src/use.d.ts +0 -4
  113. package/fetch/PlusFetch/index.d.ts +0 -14
  114. package/fetch/PlusFetch/index.mjs +0 -638
  115. package/fetch/PlusFetch/types.d.ts +0 -54
  116. package/fetch/index.d.ts +0 -1
  117. package/fetch/index.mjs +0 -5
@@ -1,11 +1,27 @@
1
- import { defineComponent, ref, createVNode, resolveComponent, openBlock, createBlock, withCtx } from 'vue';
1
+ import { defineComponent, resolveComponent, createBlock, openBlock, withCtx, withDirectives, createElementVNode, mergeProps, toDisplayString, createVNode, renderSlot, vShow, computed, ref, nextTick, createSlots, createCommentVNode } from 'vue';
2
2
  import { useModelComputed, useDeferred } from '@vunk/core/composables';
3
3
  import { Button, Tooltip } from 'ant-design-vue';
4
- import { Sender, Attachments } from 'ant-design-x-vue';
5
- import { L as LinkOutlined, C as CloudUploadOutlined, S as SendOutlined } from '../SendOutlined.mjs';
4
+ import { Attachments, Sender } from 'ant-design-x-vue';
5
+ import { noop } from '@vunk/shared/function';
6
+ import { ElCollapseTransition } from 'element-plus';
7
+ import { C as CloseOutlined, L as LinkOutlined, a as CloudUploadOutlined, S as SendOutlined } from '../SendOutlined.mjs';
6
8
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
7
9
 
8
10
  const props = {
11
+ /**
12
+ * @description v-model 绑定文件列表
13
+ */
14
+ fileList: {
15
+ type: Array,
16
+ default: void 0
17
+ },
18
+ /**
19
+ * @description 文件上传地址
20
+ */
21
+ action: {
22
+ type: String,
23
+ default: ""
24
+ },
9
25
  /**
10
26
  * @description v-model 绑定文本
11
27
  */
@@ -19,22 +35,120 @@ const props = {
19
35
  loading: {
20
36
  type: Boolean,
21
37
  default: void 0
38
+ },
39
+ /**
40
+ * @description 模块
41
+ */
42
+ modules: {
43
+ type: Array,
44
+ default: () => []
22
45
  }
23
46
  };
24
47
  const emits = {
48
+ "update:fileList": (_) => true,
25
49
  "update:modelValue": (_) => true,
26
50
  "submit": (_) => true,
27
51
  "cancel": null
28
52
  };
29
53
 
54
+ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
55
+ name: "AXSenderHeader",
56
+ components: {
57
+ ElCollapseTransition,
58
+ AntButton: Button,
59
+ CloseOutlined
60
+ },
61
+ inheritAttrs: false,
62
+ props: {
63
+ modelValue: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ title: {
68
+ type: String,
69
+ default: "Sender"
70
+ },
71
+ contentRef: {
72
+ type: Function,
73
+ default: noop
74
+ }
75
+ },
76
+ emits: {
77
+ "update:modelValue": null
78
+ },
79
+ setup() {
80
+ return {};
81
+ }
82
+ });
83
+
84
+ const _hoisted_1 = { class: "ant-sender-header-header" };
85
+ const _hoisted_2 = { class: "ant-sender-header-header-title" };
86
+ const _hoisted_3 = { class: "ant-sender-header-header-close" };
87
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
88
+ const _component_CloseOutlined = resolveComponent("CloseOutlined");
89
+ const _component_AntButton = resolveComponent("AntButton");
90
+ const _component_ElCollapseTransition = resolveComponent("ElCollapseTransition");
91
+ return openBlock(), createBlock(_component_ElCollapseTransition, null, {
92
+ default: withCtx(() => [
93
+ withDirectives(createElementVNode(
94
+ "div",
95
+ mergeProps({ class: "ant-sender-header" }, _ctx.$attrs),
96
+ [
97
+ createElementVNode("div", _hoisted_1, [
98
+ createElementVNode(
99
+ "div",
100
+ _hoisted_2,
101
+ toDisplayString(_ctx.title),
102
+ 1
103
+ /* TEXT */
104
+ ),
105
+ createElementVNode("div", _hoisted_3, [
106
+ createVNode(_component_AntButton, {
107
+ type: "text",
108
+ size: "small",
109
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", false))
110
+ }, {
111
+ icon: withCtx(() => [
112
+ createVNode(_component_CloseOutlined)
113
+ ]),
114
+ _: 1
115
+ /* STABLE */
116
+ })
117
+ ])
118
+ ]),
119
+ createElementVNode(
120
+ "div",
121
+ {
122
+ ref: _ctx.contentRef,
123
+ class: "ant-sender-header-content"
124
+ },
125
+ [
126
+ renderSlot(_ctx.$slots, "default")
127
+ ],
128
+ 512
129
+ /* NEED_PATCH */
130
+ )
131
+ ],
132
+ 16
133
+ /* FULL_PROPS */
134
+ ), [
135
+ [vShow, _ctx.modelValue]
136
+ ])
137
+ ]),
138
+ _: 3
139
+ /* FORWARDED */
140
+ });
141
+ }
142
+ var SenderHeader = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
143
+
30
144
  var _sfc_main = /* @__PURE__ */ defineComponent({
31
145
  name: "VkSender",
32
146
  components: {
33
147
  Sender,
34
148
  LinkOutlined,
35
149
  AntButton: Button,
36
- SenderHeader: Sender.Header,
37
- Attachments
150
+ Attachments,
151
+ SenderHeader
38
152
  },
39
153
  props,
40
154
  emits,
@@ -42,6 +156,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
42
156
  emit,
43
157
  slots
44
158
  }) {
159
+ const hasAttachments = computed(() => props2.modules.includes("Attachments"));
45
160
  const loading = useModelComputed({
46
161
  key: "loading",
47
162
  default: false
@@ -91,20 +206,39 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
91
206
  };
92
207
  }
93
208
  };
94
- const fileList = ref([]);
95
- const attachmentsDef = useDeferred();
209
+ const theFileList = useModelComputed({
210
+ key: "fileList",
211
+ default: []
212
+ }, props2, emit);
213
+ const attachmentsRef = ref();
214
+ const attachmentWrapDef = useDeferred();
96
215
  const handlePasteFile = async file => {
97
216
  headerOpen.value = true;
98
- const attachmentsNode = await attachmentsDef.promise;
99
- attachmentsNode.upload(file);
217
+ const attachmentWrap = await attachmentWrapDef.promise;
218
+ await nextTick();
219
+ const fileInput = attachmentWrap.querySelector('input[type="file"]');
220
+ if (fileInput) {
221
+ const dataTransfer = new DataTransfer();
222
+ dataTransfer.items.add(file);
223
+ fileInput.files = dataTransfer.files;
224
+ fileInput.dispatchEvent(new Event("change", {
225
+ bubbles: true
226
+ }));
227
+ }
228
+ };
229
+ const handleChange = e => {
230
+ theFileList.value = e.fileList;
100
231
  };
101
232
  return {
233
+ hasAttachments,
102
234
  actionsRender,
103
235
  headerOpen,
104
236
  attachmentsPlaceholder,
105
237
  handlePasteFile,
106
- attachmentsResolve: attachmentsDef.resolve,
107
- fileList
238
+ attachmentsRef,
239
+ theFileList,
240
+ handleChange,
241
+ attachmentWrapResolve: attachmentWrapDef.resolve
108
242
  };
109
243
  }
110
244
  });
@@ -125,26 +259,32 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
125
259
  "on-cancel": () => _ctx.$emit("cancel"),
126
260
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:modelValue", $event)),
127
261
  onPasteFile: _ctx.handlePasteFile
128
- }, {
262
+ }, createSlots({
129
263
  header: withCtx(() => [
130
- createVNode(_component_SenderHeader, {
131
- open: _ctx.headerOpen,
132
- title: "\u6DFB\u52A0\u9644\u4EF6",
133
- onOpenChange: _cache[0] || (_cache[0] = (v) => _ctx.headerOpen = v)
264
+ _ctx.hasAttachments ? (openBlock(), createBlock(_component_SenderHeader, {
265
+ key: 0,
266
+ modelValue: _ctx.headerOpen,
267
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.headerOpen = $event),
268
+ title: "\u9644\u4EF6",
269
+ "content-ref": _ctx.attachmentWrapResolve
134
270
  }, {
135
271
  default: withCtx(() => [
136
272
  createVNode(_component_Attachments, {
137
- ref: _ctx.attachmentsResolve,
273
+ ref: "attachmentsRef",
274
+ "file-list": _ctx.theFileList,
138
275
  placeholder: _ctx.attachmentsPlaceholder,
139
- "file-list": _ctx.fileList
140
- }, null, 8, ["placeholder", "file-list"])
276
+ action: _ctx.action,
277
+ multiple: "",
278
+ onChange: _ctx.handleChange
279
+ }, null, 8, ["file-list", "placeholder", "action", "onChange"])
141
280
  ]),
142
281
  _: 1
143
282
  /* STABLE */
144
- }, 8, ["open"])
283
+ }, 8, ["modelValue", "content-ref"])) : createCommentVNode("v-if", true)
145
284
  ]),
146
285
  prefix: withCtx(() => [
147
- createVNode(_component_AntButton, {
286
+ _ctx.hasAttachments ? (openBlock(), createBlock(_component_AntButton, {
287
+ key: 0,
148
288
  type: "text",
149
289
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.headerOpen = !_ctx.headerOpen)
150
290
  }, {
@@ -153,13 +293,21 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
153
293
  ]),
154
294
  _: 1
155
295
  /* STABLE */
156
- })
296
+ })) : createCommentVNode("v-if", true)
157
297
  ]),
158
- _: 1
159
- /* STABLE */
160
- }, 8, ["value", "loading", "actions", "on-submit", "on-cancel", "onPasteFile"]);
298
+ _: 2
299
+ /* DYNAMIC */
300
+ }, [
301
+ _ctx.$slots.footer ? {
302
+ name: "footer",
303
+ fn: withCtx(() => [
304
+ renderSlot(_ctx.$slots, "footer")
305
+ ]),
306
+ key: "0"
307
+ } : void 0
308
+ ]), 1032, ["value", "loading", "actions", "on-submit", "on-cancel", "onPasteFile"]);
161
309
  }
162
- var VkSender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/sender/src/index.vue"]]);
310
+ var VkSender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
163
311
 
164
312
  var types = /*#__PURE__*/Object.freeze({
165
313
  __proto__: null
@@ -1,8 +1,7 @@
1
1
  import { defineComponent, createVNode, createTextVNode } from 'vue';
2
2
  import { useRecorder } from '@vunk/plus/composables/recorder';
3
3
  import { Button } from 'ant-design-vue';
4
- import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
5
- import { A as AudioMutedOutlined, a as AudioOutlined } from '../SendOutlined.mjs';
4
+ import { A as AudioMutedOutlined, b as AudioOutlined } from '../SendOutlined.mjs';
6
5
 
7
6
  const props = {
8
7
  disabled: {
@@ -15,6 +14,39 @@ const emits = {
15
14
  start: null
16
15
  };
17
16
 
17
+ const SIZE$1 = 1e3;
18
+ const STROKE_WIDTH = 50;
19
+ const CIRCLE_RADIUS = 200;
20
+ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
21
+ name: "AXSenderLoadingIcon",
22
+ setup() {
23
+ return () => {
24
+ return createVNode("svg", {
25
+ "color": "currentColor",
26
+ "viewBox": `0 0 ${SIZE$1} ${SIZE$1}`,
27
+ "xmlns": "http://www.w3.org/2000/svg",
28
+ "xmlnsXlink": "http://www.w3.org/1999/xlink"
29
+ }, [createVNode("title", null, [createTextVNode("Speech Loading")]), createVNode("circle", {
30
+ "cx": SIZE$1 / 2,
31
+ "cy": SIZE$1 / 2,
32
+ "r": CIRCLE_RADIUS,
33
+ "fill": "none",
34
+ "stroke": "currentColor",
35
+ "stroke-width": STROKE_WIDTH,
36
+ "stroke-linecap": "round",
37
+ "stroke-dasharray": `${Math.PI * CIRCLE_RADIUS * 0.75} ${Math.PI * CIRCLE_RADIUS * 0.25}`
38
+ }, [createVNode("animateTransform", {
39
+ "attributeName": "transform",
40
+ "type": "rotate",
41
+ "from": `0 ${SIZE$1 / 2} ${SIZE$1 / 2}`,
42
+ "to": `360 ${SIZE$1 / 2} ${SIZE$1 / 2}`,
43
+ "dur": "1s",
44
+ "repeatCount": "indefinite"
45
+ }, null)])]);
46
+ };
47
+ }
48
+ });
49
+
18
50
  const SIZE = 1e3;
19
51
  const COUNT = 4;
20
52
  const RECT_WIDTH = 140;
@@ -67,12 +99,10 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
67
99
  }
68
100
  });
69
101
 
70
- var RecordingIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/RecordingIcon.vue"]]);
71
-
72
102
  var _sfc_main = /* @__PURE__ */ defineComponent({
73
103
  name: "VkSpeechButton",
74
104
  components: {
75
- RecordingIcon
105
+ RecordingIcon: _sfc_main$1
76
106
  },
77
107
  props,
78
108
  emits,
@@ -99,11 +129,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
99
129
  };
100
130
  const iconRender = () => {
101
131
  if (props2.disabled) return createVNode(AudioMutedOutlined, null, null);
102
- if (opening.value) return createVNode(AudioOutlined, {
103
- "spin": true
104
- }, null);
132
+ if (opening.value) return createVNode(_sfc_main$2, null, null);
105
133
  if (recording.value) {
106
- return createVNode(RecordingIcon, {
134
+ return createVNode(_sfc_main$1, {
107
135
  "class": "vk-speech-button-recording-icon"
108
136
  }, null);
109
137
  }
@@ -118,14 +146,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
118
146
  }
119
147
  });
120
148
 
121
- var VkSpeechButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/speech-button/src/index.vue"]]);
122
-
123
149
  var types = /*#__PURE__*/Object.freeze({
124
150
  __proto__: null
125
151
  });
126
152
 
127
- VkSpeechButton.install = (app) => {
128
- app.component(VkSpeechButton.name || "VkSpeechButton", VkSpeechButton);
153
+ _sfc_main.install = (app) => {
154
+ app.component(_sfc_main.name || "VkSpeechButton", _sfc_main);
129
155
  };
130
156
 
131
- export { VkSpeechButton, types as __VkSpeechButton, VkSpeechButton as default };
157
+ export { _sfc_main as VkSpeechButton, types as __VkSpeechButton, _sfc_main as default };
@@ -2,7 +2,6 @@ import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
2
2
  import { defineComponent, unref, h } from 'vue';
3
3
  import { ElTableColumn } from 'element-plus';
4
4
  import { isPlainObject, pickObject } from '@vunk/shared/object';
5
- import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
6
5
 
7
6
  const tableColumnProps = {
8
7
  type: {
@@ -125,14 +124,12 @@ var _sfc_main = defineComponent({
125
124
  }
126
125
  });
127
126
 
128
- var VkTableColumns = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/table-columns/src/index.vue"]]);
129
-
130
127
  var types = /*#__PURE__*/Object.freeze({
131
128
  __proto__: null
132
129
  });
133
130
 
134
- VkTableColumns.install = (app) => {
135
- app.component(VkTableColumns.name, VkTableColumns);
131
+ _sfc_main.install = (app) => {
132
+ app.component(_sfc_main.name, _sfc_main);
136
133
  };
137
134
 
138
- export { VkTableColumns, elCtx as _VkTableColumnsElCtx, types as __VkTableColumns, VkTableColumns as default };
135
+ export { _sfc_main as VkTableColumns, elCtx as _VkTableColumnsElCtx, types as __VkTableColumns, _sfc_main as default };
@@ -1,17 +1,16 @@
1
- import { VkTableColumns, _VkTableColumnsElCtx as _VkTableColumnsElCtx$1 } from '@vunk/plus/components/table-columns';
1
+ import { _VkTableColumnsElCtx, VkTableColumns } from '@vunk/plus/components/table-columns';
2
2
  import { useElBreakpoints } from '@vunk/plus/composables/el-breakpoints';
3
3
  import { VkDuplexCalc } from '@vunk/core';
4
- import { useSizeProp, paginationProps, paginationEmits, ElPagination, ElTable } from 'element-plus';
5
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, withCtx, createVNode, mergeProps, toHandlers, createElementBlock, createCommentVNode } from 'vue';
6
- import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
4
+ import { useSizeProp, paginationProps, paginationEmits, ElTable, ElPagination } from 'element-plus';
5
+ import { defineComponent, computed, resolveComponent, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, createVNode, mergeProps, toHandlers } from 'vue';
7
6
  import { pickObject } from '@vunk/core/shared/utils-object';
8
- import { _VkTableColumnsElCtx } from '@vunk/skzz/components/table-columns';
7
+ import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
9
8
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
10
9
 
11
10
  const tableProps$1 = {
12
11
  /**
13
- * @description table data
14
- */
12
+ * @description table data
13
+ */
15
14
  data: {
16
15
  type: Array,
17
16
  default: () => []
@@ -262,7 +261,7 @@ const props = {
262
261
  default: 1
263
262
  },
264
263
  /**
265
- * @description 表示偏移量 v-model:start 和 v-model:currentPage 二选一
264
+ * @description 表示偏移量 v-model:start 和 v-model:currentPage 二选一
266
265
  */
267
266
  start: {
268
267
  type: Number,
@@ -331,7 +330,7 @@ var _sfc_main = defineComponent({
331
330
  const paginationOnEmits = createPaginationOnEmits(emit, [
332
331
  "update:current-page"
333
332
  ]);
334
- const columnsProps = _VkTableColumnsElCtx$1.createTableColumnBindProps(props2);
333
+ const columnsProps = _VkTableColumnsElCtx.createTableColumnBindProps(props2);
335
334
  const tableProps = createTableBindProps(props2);
336
335
  const tableOnEmits = createElTableOnEmits(emit);
337
336
  const { isMobile } = useElBreakpoints();
@@ -418,7 +417,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
418
417
  /* STABLE */
419
418
  });
420
419
  }
421
- var VkTablesV1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/tables-v1/src/index.vue"]]);
420
+ var VkTablesV1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
422
421
 
423
422
  var types = /*#__PURE__*/Object.freeze({
424
423
  __proto__: null