@kayak-sj/design 1.0.0 → 1.0.1

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 (222) hide show
  1. package/dist/assets/components-CgiuwHwW.css +1 -0
  2. package/dist/{components/k-form/formComponent/Editor.vue_vue_type_script_setup_true_lang.js → chunks/Editor-CNxCYFmc.js} +4 -3
  3. package/dist/chunks/ImageCutter-B4uKMA_8.js +41 -0
  4. package/dist/chunks/KEditor-C882CuWG.js +331 -0
  5. package/dist/{_virtual/_plugin-vue_export-helper.js → chunks/_plugin-vue_export-helper-B3ysoDQm.js} +1 -1
  6. package/dist/chunks/components-Cj9QZ2w0.js +4962 -0
  7. package/dist/chunks/editorValue-DSKvW8ty.js +65 -0
  8. package/dist/components/index.js +3 -91
  9. package/dist/components/k-dialog/KDialog.d.ts +6 -6
  10. package/dist/components/k-dialog/KDialog.d.ts.map +1 -1
  11. package/dist/components/k-echarts/KEcharts.d.ts +2 -2
  12. package/dist/components/k-echarts/index.js +479 -2
  13. package/dist/components/k-editor/KEditor.d.ts +4 -4
  14. package/dist/components/k-editor/index.js +3 -3
  15. package/dist/components/k-form/KForm.d.ts +3 -3
  16. package/dist/components/k-form/KForm.d.ts.map +1 -1
  17. package/dist/components/k-form/formComponent/DatePicker.d.ts +1 -1
  18. package/dist/components/k-form/formComponent/DatePicker.d.ts.map +1 -1
  19. package/dist/components/k-form/formComponent/Input.d.ts +2 -2
  20. package/dist/components/k-form/formComponent/Input.d.ts.map +1 -1
  21. package/dist/components/k-form/formComponent/TimePicker.d.ts +1 -1
  22. package/dist/components/k-form/formComponent/TimePicker.d.ts.map +1 -1
  23. package/dist/components/k-form/formComponent/TreeSelect.d.ts +1 -1
  24. package/dist/components/k-form/formComponent/TreeSelect.d.ts.map +1 -1
  25. package/dist/components/k-link-button/KLinkButton.d.ts +1 -1
  26. package/dist/components/k-link-button/KLinkButton.d.ts.map +1 -1
  27. package/dist/components/k-table/KTable.d.ts +1 -1
  28. package/dist/components/k-upload/KUpload.d.ts +5 -5
  29. package/dist/index.js +212 -41
  30. package/package.json +3 -3
  31. package/dist/_virtual/_rolldown/runtime.js +0 -11
  32. package/dist/components/k-button/KButton.js +0 -5
  33. package/dist/components/k-button/KButton.vue_vue_type_script_setup_true_lang.js +0 -15
  34. package/dist/components/k-card/KCard.js +0 -5
  35. package/dist/components/k-card/KCard.vue_vue_type_script_setup_true_lang.js +0 -23
  36. package/dist/components/k-dialog/KDialog.js +0 -5
  37. package/dist/components/k-dialog/KDialog.vue_vue_type_script_setup_true_lang.js +0 -129
  38. package/dist/components/k-dialog/KDialogHeader.js +0 -5
  39. package/dist/components/k-dialog/KDialogHeader.vue_vue_type_script_setup_true_lang.js +0 -42
  40. package/dist/components/k-echarts/KEcharts.js +0 -7
  41. package/dist/components/k-echarts/KEcharts.vue_vue_type_script_setup_true_lang.js +0 -45
  42. package/dist/components/k-echarts/composables/useKEcharts.js +0 -117
  43. package/dist/components/k-echarts/constants/echartEvents.js +0 -4
  44. package/dist/components/k-echarts/themes/customed.js +0 -285
  45. package/dist/components/k-echarts/themes/registerThemes.js +0 -7
  46. package/dist/components/k-echarts/utils/buildChartOptions.js +0 -23
  47. package/dist/components/k-echarts/utils/createToggleFeature.js +0 -12
  48. package/dist/components/k-editor/KEditor.js +0 -7
  49. package/dist/components/k-editor/KEditor.vue_vue_type_script_setup_true_lang.js +0 -96
  50. package/dist/components/k-editor/composables/useEditorImageUpload.js +0 -60
  51. package/dist/components/k-editor/composables/useKEditor.js +0 -98
  52. package/dist/components/k-editor/composables/useKEditorConfig.js +0 -46
  53. package/dist/components/k-editor/utils/editorValue.js +0 -37
  54. package/dist/components/k-editor/utils/registerPreviewMenu.js +0 -38
  55. package/dist/components/k-editor/utils/sanitizePasteHtml.js +0 -8
  56. package/dist/components/k-form/KForm.js +0 -5
  57. package/dist/components/k-form/KForm.vue_vue_type_script_setup_true_lang.js +0 -248
  58. package/dist/components/k-form/KFormField.js +0 -5
  59. package/dist/components/k-form/KFormField.vue_vue_type_script_setup_true_lang.js +0 -50
  60. package/dist/components/k-form/composables/useFormSchema.js +0 -36
  61. package/dist/components/k-form/composables/useKFormFields.js +0 -50
  62. package/dist/components/k-form/composables/useKFormModel.js +0 -194
  63. package/dist/components/k-form/composables/useKFormTemplateRef.js +0 -7
  64. package/dist/components/k-form/constants.js +0 -4
  65. package/dist/components/k-form/formComponent/Cascader.js +0 -7
  66. package/dist/components/k-form/formComponent/Cascader.vue_vue_type_script_setup_true_lang.js +0 -45
  67. package/dist/components/k-form/formComponent/Cascader.vue_vue_type_style_index_0_scoped_ed0da536_lang.css +0 -1
  68. package/dist/components/k-form/formComponent/CheckBox.js +0 -7
  69. package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_script_setup_true_lang.js +0 -86
  70. package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_style_index_0_scoped_fca64c11_lang.css +0 -1
  71. package/dist/components/k-form/formComponent/DatePicker.js +0 -7
  72. package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_script_setup_true_lang.js +0 -144
  73. package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_style_index_0_scoped_578e2613_lang.css +0 -1
  74. package/dist/components/k-form/formComponent/Editor.js +0 -5
  75. package/dist/components/k-form/formComponent/Fallback.js +0 -5
  76. package/dist/components/k-form/formComponent/Fallback.vue_vue_type_script_setup_true_lang.js +0 -22
  77. package/dist/components/k-form/formComponent/Input.js +0 -5
  78. package/dist/components/k-form/formComponent/Input.vue_vue_type_script_setup_true_lang.js +0 -93
  79. package/dist/components/k-form/formComponent/InputMixInput.js +0 -7
  80. package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_script_setup_true_lang.js +0 -108
  81. package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_style_index_0_scoped_6fdf6265_lang.css +0 -1
  82. package/dist/components/k-form/formComponent/InputMixSelect.js +0 -7
  83. package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_script_setup_true_lang.js +0 -185
  84. package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_style_index_0_scoped_1f46ef39_lang.css +0 -1
  85. package/dist/components/k-form/formComponent/InputNumber.js +0 -7
  86. package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_script_setup_true_lang.js +0 -63
  87. package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_style_index_0_scoped_acdc4199_lang.css +0 -1
  88. package/dist/components/k-form/formComponent/Radio.js +0 -7
  89. package/dist/components/k-form/formComponent/Radio.vue_vue_type_script_setup_true_lang.js +0 -50
  90. package/dist/components/k-form/formComponent/Radio.vue_vue_type_style_index_0_scoped_e0ff32b0_lang.css +0 -1
  91. package/dist/components/k-form/formComponent/RadioInput.js +0 -7
  92. package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_script_setup_true_lang.js +0 -130
  93. package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_style_index_0_scoped_1543c319_lang.css +0 -1
  94. package/dist/components/k-form/formComponent/ScrollSelect.js +0 -7
  95. package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_script_setup_true_lang.js +0 -132
  96. package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_style_index_0_scoped_dc0bba37_lang.css +0 -1
  97. package/dist/components/k-form/formComponent/Select.js +0 -7
  98. package/dist/components/k-form/formComponent/Select.vue_vue_type_script_setup_true_lang.js +0 -81
  99. package/dist/components/k-form/formComponent/Select.vue_vue_type_style_index_0_scoped_20fc23b7_lang.css +0 -1
  100. package/dist/components/k-form/formComponent/SelectMultiple.js +0 -7
  101. package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_script_setup_true_lang.js +0 -84
  102. package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_style_index_0_scoped_e6ca06e1_lang.css +0 -1
  103. package/dist/components/k-form/formComponent/Tag.js +0 -7
  104. package/dist/components/k-form/formComponent/Tag.vue_vue_type_script_setup_true_lang.js +0 -86
  105. package/dist/components/k-form/formComponent/Tag.vue_vue_type_style_index_0_scoped_9961a98a_lang.css +0 -1
  106. package/dist/components/k-form/formComponent/Text.js +0 -7
  107. package/dist/components/k-form/formComponent/Text.vue_vue_type_script_setup_true_lang.js +0 -19
  108. package/dist/components/k-form/formComponent/Text.vue_vue_type_style_index_0_scoped_9dc35114_lang.css +0 -1
  109. package/dist/components/k-form/formComponent/TimePicker.js +0 -7
  110. package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_script_setup_true_lang.js +0 -116
  111. package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_style_index_0_scoped_8680ec2d_lang.css +0 -1
  112. package/dist/components/k-form/formComponent/TreeSelect.js +0 -5
  113. package/dist/components/k-form/formComponent/TreeSelect.vue_vue_type_script_setup_true_lang.js +0 -57
  114. package/dist/components/k-form/formComponent/Upload.js +0 -5
  115. package/dist/components/k-form/formComponent/Upload.vue_vue_type_script_setup_true_lang.js +0 -64
  116. package/dist/components/k-form/formComponent/componentRegistry.js +0 -49
  117. package/dist/components/k-form/utils/fieldValue.js +0 -83
  118. package/dist/components/k-form/utils/formRules.js +0 -44
  119. package/dist/components/k-form/utils/resolveFormFieldComponent.js +0 -13
  120. package/dist/components/k-handle-page/KHandlePage.js +0 -5
  121. package/dist/components/k-handle-page/KHandlePage.vue_vue_type_script_setup_true_lang.js +0 -105
  122. package/dist/components/k-handle-page/useHandlePageInit.js +0 -21
  123. package/dist/components/k-icon/KIcon.js +0 -7
  124. package/dist/components/k-icon/KIcon.vue_vue_type_script_setup_true_lang.js +0 -23
  125. package/dist/components/k-icon/KIcon.vue_vue_type_style_index_0_scoped_6fd081ab_lang.css +0 -1
  126. package/dist/components/k-icon/resolveLucideIcon.js +0 -26
  127. package/dist/components/k-link-button/KLinkButton.js +0 -5
  128. package/dist/components/k-link-button/KLinkButton.vue_vue_type_script_setup_true_lang.js +0 -58
  129. package/dist/components/k-long-page/KLongPage.js +0 -7
  130. package/dist/components/k-long-page/KLongPage.vue_vue_type_script_setup_true_lang.js +0 -72
  131. package/dist/components/k-long-page/KLongPage.vue_vue_type_style_index_0_scoped_ac934c5d_lang.css +0 -1
  132. package/dist/components/k-long-page/KLongPagePanel.js +0 -7
  133. package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_script_setup_true_lang.js +0 -18
  134. package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_style_index_0_scoped_9d6e7832_lang.css +0 -1
  135. package/dist/components/k-long-page/composables/useLongPageNavDrag.js +0 -32
  136. package/dist/components/k-long-page/icons/icon-base-2.js +0 -4
  137. package/dist/components/k-long-page/icons/icon-base.js +0 -4
  138. package/dist/components/k-long-page/icons/icon-notice-2.js +0 -4
  139. package/dist/components/k-long-page/icons/icon-notice.js +0 -4
  140. package/dist/components/k-long-page/icons/icon-price-2.js +0 -4
  141. package/dist/components/k-long-page/icons/icon-price.js +0 -4
  142. package/dist/components/k-long-page/icons/icon-restrict-2.js +0 -4
  143. package/dist/components/k-long-page/icons/icon-restrict.js +0 -4
  144. package/dist/components/k-long-page/icons/icon-setup-2.js +0 -4
  145. package/dist/components/k-long-page/icons/icon-setup.js +0 -4
  146. package/dist/components/k-long-page/navConfigs.js +0 -23
  147. package/dist/components/k-pagination/KPagination.js +0 -5
  148. package/dist/components/k-pagination/KPagination.vue_vue_type_script_setup_true_lang.js +0 -36
  149. package/dist/components/k-panel/KPanel.js +0 -5
  150. package/dist/components/k-panel/KPanel.vue_vue_type_script_setup_true_lang.js +0 -47
  151. package/dist/components/k-panel-query/KPanelQuery.js +0 -5
  152. package/dist/components/k-panel-query/KPanelQuery.vue_vue_type_script_setup_true_lang.js +0 -151
  153. package/dist/components/k-panel-query/KPanelQueryActions.js +0 -5
  154. package/dist/components/k-panel-query/KPanelQueryActions.vue_vue_type_script_setup_true_lang.js +0 -45
  155. package/dist/components/k-panel-query/KPanelQueryForm.js +0 -5
  156. package/dist/components/k-panel-query/KPanelQueryForm.vue_vue_type_script_setup_true_lang.js +0 -55
  157. package/dist/components/k-panel-query/KPanelQueryItem.js +0 -5
  158. package/dist/components/k-panel-query/KPanelQueryItem.vue_vue_type_script_setup_true_lang.js +0 -63
  159. package/dist/components/k-table/KTable.js +0 -7
  160. package/dist/components/k-table/KTable.vue_vue_type_script_setup_true_lang.js +0 -190
  161. package/dist/components/k-table/KTable.vue_vue_type_style_index_0_scoped_9ecd6487_lang.css +0 -1
  162. package/dist/components/k-table/KTableColumn.js +0 -7
  163. package/dist/components/k-table/KTableColumn.vue_vue_type_script_setup_true_lang.js +0 -154
  164. package/dist/components/k-table/KTableColumn.vue_vue_type_style_index_0_scoped_578909bc_lang.css +0 -1
  165. package/dist/components/k-table/KTableColumnSelector.js +0 -7
  166. package/dist/components/k-table/KTableColumnSelector.vue_vue_type_script_setup_true_lang.js +0 -59
  167. package/dist/components/k-table/KTableColumnSelector.vue_vue_type_style_index_0_scoped_e0b3cf31_lang.css +0 -1
  168. package/dist/components/k-table/KTableToolbar.js +0 -7
  169. package/dist/components/k-table/KTableToolbar.vue_vue_type_script_setup_true_lang.js +0 -60
  170. package/dist/components/k-table/KTableToolbar.vue_vue_type_style_index_0_scoped_bff19ed1_lang.css +0 -1
  171. package/dist/components/k-table/composables/useColumnDisplay.js +0 -103
  172. package/dist/components/k-table/composables/useKTable.js +0 -179
  173. package/dist/components/k-table/composables/useKTableCrossPageSelection.js +0 -58
  174. package/dist/components/k-table/composables/useKTableTemplateRef.js +0 -7
  175. package/dist/components/k-table/composables/useTableColumns.js +0 -61
  176. package/dist/components/k-table/composables/useTableData.js +0 -47
  177. package/dist/components/k-table/composables/useTablePagination.js +0 -52
  178. package/dist/components/k-table/composables/useTableRadio.js +0 -28
  179. package/dist/components/k-table/composables/useTableRowSort.js +0 -35
  180. package/dist/components/k-table/composables/useTableTreeLoad.js +0 -32
  181. package/dist/components/k-table/dictOptions.js +0 -9
  182. package/dist/components/k-table/kTableProps.js +0 -17
  183. package/dist/components/k-table/report/convertDownloadCol.js +0 -11
  184. package/dist/components/k-table/report/exportKTableReport.js +0 -19
  185. package/dist/components/k-table/report/mergeQueryConfig.js +0 -31
  186. package/dist/components/k-table/report/pickExportColumns.js +0 -7
  187. package/dist/components/k-table/report/useExportKTableReport.js +0 -29
  188. package/dist/components/k-table/types.js +0 -20
  189. package/dist/components/k-table/utils/columnIdentity.js +0 -6
  190. package/dist/components/k-table/utils/formatCellValue.js +0 -30
  191. package/dist/components/k-table/utils/rowKey.js +0 -10
  192. package/dist/components/k-upload/KUpload.js +0 -7
  193. package/dist/components/k-upload/KUpload.vue_vue_type_script_setup_true_lang.js +0 -355
  194. package/dist/components/k-upload/KUpload.vue_vue_type_style_index_0_scoped_6050c2c6_lang.css +0 -1
  195. package/dist/components/k-upload/components/ImageCutter.js +0 -7
  196. package/dist/components/k-upload/components/ImageCutter.vue_vue_type_script_setup_true_lang.js +0 -40
  197. package/dist/components/k-upload/components/UploadFileItem.js +0 -7
  198. package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_script_setup_true_lang.js +0 -73
  199. package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_style_index_0_scoped_01959ada_lang.css +0 -1
  200. package/dist/components/k-upload/components/UploadInlineActions.js +0 -7
  201. package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_script_setup_true_lang.js +0 -39
  202. package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_style_index_0_scoped_55d9c320_lang.css +0 -1
  203. package/dist/components/k-upload/components/UploadMediaDialog.js +0 -7
  204. package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_script_setup_true_lang.js +0 -44
  205. package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_style_index_0_scoped_b9720661_lang.css +0 -1
  206. package/dist/components/k-upload/components/UploadTipArea.js +0 -7
  207. package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_script_setup_true_lang.js +0 -26
  208. package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_style_index_0_scoped_f2b7df65_lang.css +0 -1
  209. package/dist/components/k-upload/composables/useImagePreview.js +0 -23
  210. package/dist/components/k-upload/composables/useMediaPreview.js +0 -20
  211. package/dist/components/k-upload/composables/useUploadFileList.js +0 -46
  212. package/dist/components/k-upload/composables/useUploadRequest.js +0 -43
  213. package/dist/components/k-upload/composables/useUploadValidation.js +0 -22
  214. package/dist/components/k-upload/resolveUploadAction.js +0 -13
  215. package/dist/components/k-upload/utils/uploadFileValue.js +0 -44
  216. package/dist/config/uploadConfig.js +0 -29
  217. package/dist/theme/index.js +0 -22
  218. package/dist/utils/createStubComponent.js +0 -43
  219. package/dist/utils/validators.js +0 -152
  220. /package/dist/{components/k-upload/components/ImageCutter.vue_vue_type_style_index_0_scoped_900b5e3b_lang.css → assets/ImageCutter-B771uShK.css} +0 -0
  221. /package/dist/{components/k-editor/KEditor.vue_vue_type_style_index_0_scoped_b9ef08e0_lang.css → assets/KEditor-LzsE5URl.css} +0 -0
  222. /package/dist/{components/k-echarts/KEcharts.vue_vue_type_style_index_0_scoped_d6da558a_lang.css → assets/index-DMxcQQBQ.css} +0 -0
@@ -1,58 +0,0 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, renderList as d, renderSlot as f, toDisplayString as p, unref as m, withCtx as h, withModifiers as g } from "vue";
2
- import { ElTooltip as _ } from "element-plus";
3
- //#region src/components/k-link-button/KLinkButton.vue?vue&type=script&setup=true&lang.ts
4
- var v = { class: "k-link-button__item" }, y = {
5
- key: 0,
6
- class: "k-link-button__divider"
7
- }, b = ["onClick"], x = /*@__PURE__*/ s({
8
- name: "KLinkButton",
9
- __name: "KLinkButton",
10
- props: {
11
- data: { default: () => [] },
12
- disabled: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- align: { default: "center" },
17
- tableMode: {
18
- type: Boolean,
19
- default: !1
20
- }
21
- },
22
- emits: ["click"],
23
- setup(s, { emit: x }) {
24
- let S = s, C = x, w = t(() => S.data.filter((e) => e.isDisplay !== !1));
25
- function T(e) {
26
- return S.disabled && e.label !== "查看";
27
- }
28
- function E(e) {
29
- return e.style ? `k-link-button__btn--${e.style}` : "";
30
- }
31
- function D(e, t) {
32
- T(e) || (C("click", e, t), !S.tableMode && e.onClick && e.onClick({}, t));
33
- }
34
- function O(e) {
35
- return !!e.slot;
36
- }
37
- function k(e) {
38
- return typeof e.slot == "string" ? e.slot : "default";
39
- }
40
- return (t, x) => (u(), i("div", {
41
- class: "k-link-button",
42
- style: l({ justifyContent: s.align })
43
- }, [(u(!0), i(e, null, d(w.value, (s, l) => (u(), n(m(_), {
44
- key: `${s.label}-${l}`,
45
- content: s.tooltip,
46
- placement: "top",
47
- disabled: !s.tooltip
48
- }, {
49
- default: h(() => [a("div", v, [l > 0 ? (u(), i("span", y)) : r("", !0), a("a", {
50
- class: c(["k-link-button__btn", [E(s), { "k-link-button__btn--readonly": T(s) }]]),
51
- onClick: g((e) => D(s, l), ["prevent"])
52
- }, [O(s) ? f(t.$slots, k(s), { item: s }, () => [o(p(s.label), 1)], void 0, 0) : (u(), i(e, { key: 1 }, [o(p(s.label), 1)], 64))], 10, b)])]),
53
- _: 2
54
- }, 1032, ["content", "disabled"]))), 128))], 4));
55
- }
56
- });
57
- //#endregion
58
- export { x as default };
@@ -1,7 +0,0 @@
1
- import e from "../../_virtual/_plugin-vue_export-helper.js";
2
- import t from "./KLongPage.vue_vue_type_script_setup_true_lang.js";
3
- import './KLongPage.vue_vue_type_style_index_0_scoped_ac934c5d_lang.css';/* empty css */
4
- //#region src/components/k-long-page/KLongPage.vue
5
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-ac934c5d"]]);
6
- //#endregion
7
- export { n as default };
@@ -1,72 +0,0 @@
1
- import e from "./KLongPagePanel.js";
2
- import { useLongPageNavDrag as t } from "./composables/useLongPageNavDrag.js";
3
- import { resolveLongPageNavIcons as n } from "./navConfigs.js";
4
- import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, openBlock as l, renderList as u, renderSlot as d, toDisplayString as f, unref as p, useTemplateRef as m, withCtx as h } from "vue";
5
- //#region src/components/k-long-page/KLongPage.vue?vue&type=script&setup=true&lang.ts
6
- var g = ["onClick"], _ = ["src", "alt"], v = ["src", "alt"], y = /*@__PURE__*/ s({
7
- name: "KLongPage",
8
- __name: "KLongPage",
9
- props: { panels: { default: () => [{
10
- name: "1",
11
- label: "面板一"
12
- }] } },
13
- setup(s) {
14
- let y = m("rootRef"), b = m("navRef"), { onPointerDown: x, consumeClickIfDragged: S } = t(b);
15
- function C(e) {
16
- return n(e);
17
- }
18
- async function w(e) {
19
- if (S()) return;
20
- await c();
21
- let t = y.value?.querySelector(`#${CSS.escape(e)}`);
22
- (t?.querySelector(".k-long-page-panel__title") ?? t)?.scrollIntoView({
23
- block: "start",
24
- behavior: "smooth"
25
- });
26
- }
27
- return (t, n) => (l(), a("div", {
28
- ref_key: "rootRef",
29
- ref: y,
30
- class: "k-long-page"
31
- }, [(l(!0), a(r, null, u(s.panels, (n) => (l(), i(e, {
32
- key: n.name,
33
- class: "k-long-page__panel",
34
- "panel-id": n.name,
35
- title: n.label
36
- }, {
37
- default: h(() => [d(t.$slots, n.name, {}, void 0, !0)]),
38
- _: 2
39
- }, 1032, ["panel-id", "title"]))), 128)), o("div", {
40
- ref_key: "navRef",
41
- ref: b,
42
- class: "k-long-page__nav",
43
- onPointerdown: n[0] ||= (...e) => p(x) && p(x)(...e)
44
- }, [(l(!0), a(r, null, u(s.panels, (e) => (l(), a("div", {
45
- key: e.name,
46
- class: "k-long-page__nav-item",
47
- role: "button",
48
- tabindex: "0",
49
- onClick: (t) => w(e.name)
50
- }, [
51
- o("img", {
52
- class: "k-long-page__nav-item-icon k-long-page__nav-item-icon--default",
53
- src: C(e.name)[0],
54
- alt: e.label,
55
- width: "28",
56
- height: "28",
57
- draggable: "false"
58
- }, null, 8, _),
59
- o("img", {
60
- class: "k-long-page__nav-item-icon k-long-page__nav-item-icon--active",
61
- src: C(e.name)[1],
62
- alt: e.label,
63
- width: "28",
64
- height: "28",
65
- draggable: "false"
66
- }, null, 8, v),
67
- o("span", null, f(e.label), 1)
68
- ], 8, g))), 128))], 544)], 512));
69
- }
70
- });
71
- //#endregion
72
- export { y as default };
@@ -1 +0,0 @@
1
- .k-long-page[data-v-ac934c5d]{z-index:1000}.k-long-page__panel[data-v-ac934c5d]{margin-top:10px}.k-long-page__nav[data-v-ac934c5d]{z-index:12;background:var(--k-color-bg-surface,#fff);width:80px;min-height:30px;box-shadow:var(--k-shadow-md,0 0 14px 0 #cbcbcb8f);cursor:grab;-webkit-user-select:none;user-select:none;border-radius:10px 0 0 10px;position:fixed;top:33%;right:0}.k-long-page__nav[data-v-ac934c5d]:active{cursor:grabbing}.k-long-page__nav-item[data-v-ac934c5d]{text-align:center;cursor:pointer;width:100%;color:var(--k-color-text-regular,#606266);flex-direction:column;align-items:center;padding:10px 0;display:flex}.k-long-page__nav-item>span[data-v-ac934c5d]{font-size:12px;line-height:2}.k-long-page__nav-item-icon--active[data-v-ac934c5d]{display:none}.k-long-page__nav-item[data-v-ac934c5d]:hover{color:var(--k-color-primary-hover,var(--k-color-primary))}.k-long-page__nav-item:hover .k-long-page__nav-item-icon--default[data-v-ac934c5d]{display:none}.k-long-page__nav-item:hover .k-long-page__nav-item-icon--active[data-v-ac934c5d]{display:initial}
@@ -1,7 +0,0 @@
1
- import e from "../../_virtual/_plugin-vue_export-helper.js";
2
- import t from "./KLongPagePanel.vue_vue_type_script_setup_true_lang.js";
3
- import './KLongPagePanel.vue_vue_type_style_index_0_scoped_9d6e7832_lang.css';/* empty css */
4
- //#region src/components/k-long-page/KLongPagePanel.vue
5
- var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-9d6e7832"]]);
6
- //#endregion
7
- export { n as default };
@@ -1,18 +0,0 @@
1
- import { createElementBlock as e, createElementVNode as t, defineComponent as n, openBlock as r, renderSlot as i, toDisplayString as a } from "vue";
2
- //#region src/components/k-long-page/KLongPagePanel.vue?vue&type=script&setup=true&lang.ts
3
- var o = ["id"], s = { class: "k-long-page-panel__title" }, c = { class: "k-long-page-panel__content" }, l = /*@__PURE__*/ n({
4
- name: "KLongPagePanel",
5
- __name: "KLongPagePanel",
6
- props: {
7
- panelId: { default: "" },
8
- title: { default: "" }
9
- },
10
- setup(n) {
11
- return (l, u) => (r(), e("div", {
12
- id: n.panelId || void 0,
13
- class: "k-long-page-panel"
14
- }, [t("div", s, a(n.title), 1), t("div", c, [i(l.$slots, "default", {}, void 0, !0)])], 8, o));
15
- }
16
- });
17
- //#endregion
18
- export { l as default };
@@ -1 +0,0 @@
1
- .k-long-page-panel[data-v-9d6e7832]{background:var(--k-color-bg-surface,#fff);width:100%}.k-long-page-panel__title[data-v-9d6e7832]{height:50px;color:var(--k-color-text-regular,#333);padding-left:20px;font-size:16px;font-weight:700;line-height:70px;position:relative}.k-long-page-panel__title[data-v-9d6e7832]:after{content:"";background:var(--k-color-primary);border-radius:2px;width:30px;height:3px;position:absolute;bottom:0;left:23px}.k-long-page-panel__content[data-v-9d6e7832]{padding:10px 20px}
@@ -1,32 +0,0 @@
1
- import { onBeforeUnmount as e } from "vue";
2
- //#region src/components/k-long-page/composables/useLongPageNavDrag.ts
3
- var t = 4;
4
- function n(n) {
5
- let r = 0, i = 0, a = !1, o = !1, s = null;
6
- function c(e) {
7
- if (!a || !n.value || e.pointerId !== s) return;
8
- let c = e.clientY - r;
9
- if (!o && Math.abs(c) < t) return;
10
- o = !0, e.preventDefault();
11
- let l = Math.min(Math.max(i + c, 0), window.innerHeight - n.value.offsetHeight);
12
- n.value.style.top = `${l}px`;
13
- }
14
- function l() {
15
- a = !1, s = null, window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", u), window.removeEventListener("pointercancel", u);
16
- }
17
- function u() {
18
- l();
19
- }
20
- function d(e) {
21
- !n.value || e.button !== 0 || (a = !0, o = !1, s = e.pointerId, r = e.clientY, i = n.value.getBoundingClientRect().top, window.addEventListener("pointermove", c), window.addEventListener("pointerup", u), window.addEventListener("pointercancel", u));
22
- }
23
- function f() {
24
- return o ? (o = !1, !0) : !1;
25
- }
26
- return e(l), {
27
- onPointerDown: d,
28
- consumeClickIfDragged: f
29
- };
30
- }
31
- //#endregion
32
- export { n as useLongPageNavDrag };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-base-2.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAXZJREFUaEPtmkFuwjAQRf8coEjtIjlCOUJ7DVrW4RLtKTgE0FUleo62N4AjJAtYwBZcsWBTxeDYmcgOn7U9np//ZjRCI+j5T3quDxSYusOXHVxUYxzxBmAImLu4xMoOgjWAKYrs05abXeBH+YIDlnGJsmQjMkaR1eZqFzgrvwE8JSEQ+MEkf67L1S5wXm1gzH0SAkW2KLKHZgJnpUlC3DnJSV5r1iVEKTAqh+ngfztYg1EBCqghagnsLL8tUijQtwbp4BVYo0fUudiUD6rVoHLezuEp0LfJOH9i5YN0kA4qIxYanoj6IspJJvVJhg6m7mBo92vrPruobxdty4HQOHSQDoYypHyfiBJRC2Khk4wrudf+nFJDlAJdLQoc6eggm0xLqGmFUUNUK+GmcSmQNdiUmY7PE9GbQ/QGVrnSWcYT/KLIaxcH7atci3KEI746bhV+z3mtU56emlevMHiH4BHGDPxeV7olsgew8l+IVcqr67C9X0r/AxB90TnUAO03AAAAAElFTkSuQmCC";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-base.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAd9JREFUaEPtmj9PwmAQxp/rJKgxam0/gomrjvoRdGQE3FzFUUdnGXUsDOx+Agd1dDVxdrGURENQEk16hpgClj+l5W3SlmM+3j6/3j13b5ojZPxHGefDZMBGx8TP1wXAu2DaAXgtUS+DqA3mZ4CekMclCsbbOH3jAS3nCMQWmNcTBTVJDNE7oB2jpN/6Q0YBG20d390XABupgPNE9iBzuW0UVp1h3aOAdfsKLk5TBeeJ1VBF0axMB6w178G8PwjSKsjrNyhQN1HQd7yE19YJXLfa10X0gJJxEABot8DY7AdpxgqK9JkoOE9MnZfhNjsDQLRQMremA1o2/4Mpm8keJQF6R8ULYMKKVTLoT4iU6KKVqD/jYfnn7dKxe1AAA1IqGQx4QbGXaFjPqY4XQJmDctlW7apw54kHxYOL7kG5qslVbb5vPrF30cyXaLippT469gyqlxzuRAGUQb/ogz6cY9RHiwfFgwEenHfQz1q0k76+xV6iAjhriiJeyiWD0mRk0CsyWcRjYvdgRF3K/iaA0mSkySizU6SDQnuwZjtg6P2HZW6Vy7+MR9oZcvp1KpbxQI8oG0OLhBiz8Zv5dcrML8T2zFd3DuG6Vnq2fukDpJVnW2n2usvfUvo5wHtpXkr/BcJBl0jaM+c0AAAAAElFTkSuQmCC";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-notice-2.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAZtJREFUaEPtmrFKxEAQhv9JGkEbkTO9rZUvoFyhvoR6eQXB1iewsbCyugj3ClYiWPoC1/kASXUggopkJMdBSM4j5m53wu5NusBmZv//m03Y7BA8v8hzfVCBrhNWgv4QHE328PN9A/ARmLYBDhwT9wnCG4jucd67A1FezL8s0SR7BnPfMVF/TzcILnHRu60LfAfzlhcCgTHiaL8qcJiyJ+IKGV+Iow2fBQJxNF1+5Rr0i6AKdH85aom6zlAJri3BGfqF+uufm6bxbY387+ds6RJtmrAKbIusNl4JzgxZukRXBCD2uAoUs9pSIiVoyVixsEpQzGpLiZSgJWPFwipBMastJVKClowVC6sEF1mtG97aGUeTIW1rVje8q254m4g4/0+mbUl1NV7fol05byqvEjTlZFdx1o9gknnUZUE54t2wekafZC9gPuyqoozmJXxgEE1bYsomhIf0FDk9OtjhNO8N4QmD6LgqsLgbpicgugb4AIxNo65aD1a0bvEERK8Iwyuc7YznBVqfhHwCbaeU99xsRiVo1k/5aN4T/AU3/9Q50uKLVAAAAABJRU5ErkJggg==";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-notice.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAAb5JREFUaEPtmr1OAkEUhc9dg5ho4wvo0plY2VlZ+fM0AiY2FiY+gMUiVj6IjTaWvgCdYcMTmKiJsHGuARKEkc3+zYSdzaUj2blzzj3fzGZgCBX/UMX9QQy6nrAkWJkE17v9PSi6ZeAQjG2APafMEX0T4408erg637m/IVJj/TNEa53wCczHTpmKEet5uBg2G8GiwSD8BHizCgaJqDdq+ft6ggrM1dh0CMOo1djQEuzzfHpRu+GU2VqwXP/fGox5wBVkxWBcByTBknRAEBVES4JinAxjiOqF9An192fS81n7Fvd+FoNp12BSIpJgVia1560jWlCfteHG1qA1hQULi8G0m0zBRlsbLglKgtbgMlNYEBVEzZBkrYogKohag8tMYUE0LaJyHtR+8k9qSFZArZ8HkwTLiT5rZHKin3ZAdtG0u2hBwqwNlwQlQWtwmSmcjGgn/ADzlpnpVl2FVNT218Yq5v+jfwFwtGppZuanr6jtT8KaGax3B2fqRz06d8NpWUeInqOWf7JgcPylfjc4VayuwThw71LQ5OrWOwGv8Ohy1Nzt/TNoBo9yVXHqsk+e1onBPF0r0xhJsExp5NHyCy1Uo0i2wgkBAAAAAElFTkSuQmCC";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-price-2.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAAA0pJREFUaEPtmktoE1EUhr+T9KHiE9uJFMWtiEtX4qa6VwrFRW2NoKhFF+JCiogPXGjcSSsuKrRpRbHgwoUi6FZwoYuiO3EhipA0iuCj1aRz5LaJtW0eM9NJnYS5m9Bw7n/ON/+5uTOdK9T5kDrnozzg3e8xsj8TKHsQNgM2ig1qI+bT/C2zn6BFv5+J0/w8bCQfv1AH0Tl9E6fz9f/my38v8h54Rty6X86k0oBj6U1M6jiKFWyX5RGrWvdzQKaL1VkacCSdxNZDwYbLVyfSR9xKuANMpj+gatqyBoa84rC10x3gcMqsidoYwg/isdX1CwhTHI6tDAHnXYFk2ka1VvZJDw6GgIH6/QkdXGzHcHoaNBIon0oX48HBEDBQ3oYOLrYjmc6hGg2UT76uQaeAkcgtGlZepmt1yteLYZ5Fc5MXse1eB7oeWtQp4A6riZ2SdVCE+5CX2sib9G8HE0NA72uwhls0i2qDg/YIQoinFg0Bg2BdvgYPDg6bXy9tDBBEuVJCwGJPE6GDM1eldreJ1C+UpoprsHbvZELAWXPrvkUr9vCyBHjZJlJTQPOylLf0JCFgkX0wdHDpjeWfgqcWnQRW+FdDVZVCwGJrsO4dfAbsrWpj+SUuMk3cKvrfh9Lv/8y7wdHMUWy9Drrer1p815GZ4ydDxK0jxbQrv+CcOU5CP6qdvhe3dMHXNNBLd+x5KanKgIWZwxP7EL0ZiJMXIt8RucSWlhu0S67cdXIOaFQeTqzhq15DOfH/Xq3JAxqip+ne+NFJA7gDLCiOpnYxzSCw3UkSX2JE3hHhFD3WEzd63gBNhjFtYirTh22fq/JN+S8gwVbrKu1iHgBcDe+AhTR3M9vI2oOo7naV2VnwUxrlJAett87CF0ctHdBomi1lJHMM1QToOq/FzM2TTwhnKp0kdJLHH8BCpnsTbfy2B1A6nCRfFGM2bKWfDXKB/a3fPGksmOQvYEE8melA7QHQNhdFviDKCXpi4y7mVAytDqBJe+fzWnK5BCLHK5yY+kIk0kdPy21m70p8HdUDLJQ5kt6NbbYU3VakJYdoXHGWrrUZX6n+Eas+oEn2WJvJTJzHphOhDWWcaPQKPRufVgusoLs8gNWmKKNf94B/APfSrEjF2XEzAAAAAElFTkSuQmCC";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-price.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAAAXNSR0IArs4c6QAABOZJREFUaEPtml+IVFUYwH/fmdl1d/NP5s6d2IqFnqx8CXwKX0zooYfEkIXMdRaSUssIi5BFMsmolYhMK8LAmV1bS+hBqAg08iUIwgfpISiC0ojmT2Jp7ro7c784u7Oz3pk7zr87ujvteblzzz3nO9/vfN937jfnHqHFi7Q4HzcGHL0SZfLqEMrDCHcDLooL6iL2au9l+grqWz/VTvP9cJF8+2I5iM7Kt+3UK78wXr4eOY+R02yJfHIjI5UHPJG6kzE9h+LMbSvLF3RF1tMnOT89ywMOpxK4umVuw+W1E9lNzBmqDTCRuoCqdct5UOQsA87q2gDjSRsTsyXmhDiDIY1hMcIVDOMYlmUMl40goRBZY+gUWy90jBlyYsgZgyuGNpm+uhMGYyNYDJqvC9vfk9PPbZ19bq8he5/NtyN/n3+ezZ0uKCf8Syy6uFFAg0wtBHOjeA0wzkC0cwHQMwOJlIvq7CIUc1rMgqWAofw7rEVcdAHwFhuy8UUmlQM1BQz7mphOs+ZGCRywywmXS4duCfEC4PS0l89F40Uu2nIWTKSyqIYK7tfygL1OG2slWxJv8eR2YC8QDTgWk8A+BqIf+MptOAaLLVgWMDUB2hYwXF6cTDLgtC8AQh3JdiI1iWq4MHst6KJewFVOO6tlsjmuWIfUAGJwAbCOeQ+uS8MWjBetji3nosWAXc4i+mQiOBM0KClwC/5vAedvJpO8hjKbRZSzYLErN+h53u5NzWSKAB2ng0flWmkuOm9TtWoB522yXSVgoC5Zg7DGV9HkOLCoMGQ5F61Bp0CbBg7Y63SyViz03CgLgBX3ZIpctAUtOAZ0XPd/sOVc1AvY1bGCvmUX50YAAgHEoBdQOA+h54l1n7zlkMOXHdyrdlNqptSxZRFP2i+o60pgRD6nvW0nTyz/9aaDfqNhfsvsBN0LuqwwvkiOmDO7vXKdYuU3fu23wZHMVlw9AHp7EcxVkP2sirx107Yx4slHEHkH1fs8ukx/dT5KzHnKb8IrHwSaOk7CIVQ3+ljzR4zsoD9ypmnW/PjSvWSvvY2y3meMHwiznc3Rb8uNXxlwpmc8/Rii7/mevBAzgnS8xJYlqcBAh/U2ND2I6ouejMoOIHIFkVe5p/ug72Z0VS7qp+nJ9BIu6Zso2zyf1qbayiXQQWLOhw1/ZhtOb0L1AKp3laohnxEOvcDmFb9XM5nVW/B6aSPJh8hxBLjfR4HvQbYzEDlbjQKeNonUg8C7qK7xCYdfMDxHv/NVLXLrA7QjnNB2xjO7cd3BEhdC7Fm29+kM76Hvjr8rKjT6TzcTY6+DbC31DOx/0CF6nTfqyYXrB5zRejSzkkn3iO+sI3+C7GIgctwX0i77F9I7cNnns1LbLqdok2d50vm54iSVadA4oBVsXynDmadRHfK8n2YH/RoxO4hFfipUHcusI5c7iPKAj5v/gbCLmPNpvWAz/YIBnJF2PN3DhHsYZUNpDDGByAEwo6i7H9XHfeIsh3KI5fIK6yOXG4WbWvqCEFIiI5HZgLqHQXtqkP8dIbbRHz1XQ5+KTZsDaIc99tdSstkhRJ7xnJgqVekixuymv/ujZpyFax7gDMhwag2ufaXoSh+XPEpbx8tsWpqpaIo6GzQf0Cr2pS4ik96Dy0aEHpRzhEKv0b/iVJ16V93t5gBWrU7wDVse8D/nUZNXtgY75gAAAABJRU5ErkJggg==";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-restrict-2.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAHAAAAABkvfSiAAAC6ElEQVRIDd2WS2gTYRDH59tX8yBpkk2qWKpipBWkB4toD0qj9CUK1XpoFEU9WEQQzyJe9OJVvenBiliqByuIpVZbWxDxAQo+EKu5iIJNmoeNzWsfn/PVmi6xrmWNCP1gk28y385v5z8zSwAW+yLFBHuiDwBoqGiXZUNG4WDVFmMobs4oN4xF/jWmATiH/pe7xQ8UTOUT+GbY5x82PVPqvEElyMamgdJ5Y5tLKsmPSuP9rT3vUxSDZqIZ6JkomgvaZKKmx8wzNL3VmnPxA81ryAutsF++91vxrsZbQFOHmN8rEQgtFSHo+hEyklZh9IsCyZKbyyJp18oKGN8lQ3etgy5z8Hq1k9eO1DnU950yxdVlZBpe3hPU6FjovnezGxoDIrTfT0FBo9BaLYFcwcGrpArjUxq8wwf5pkK/SySdLKa5pH+ghjGzPats4OmNQV0lD0+2y5As6L0iB5N5jTR/mFJXBPpizpcdcjvLlBBy3bKkrGbnN7pgTX8cvioUPk3rEM3pWbvAvXaJ/HG/jVvbIIuXY+EAhAaT9rwOlxDqtQxsWiLCi4Sq5VBGeqAKIrtltfFOwp7I6yezGj3BxJF4cmyqQD/Wunl4Oqlo+FPIMjDo4uFtSqNtWLNUQb8GhJx6uM2X2TSQcBqhHEdv1XsFeB5XHQgMWgayDABbjjWIwEHczpOzPht3phSq6OCPo54w25KWgZG0BvUeQWXdqOtkJ+MboR3DKSfV6WmvxO0d+lyABr+QwSMRy8CxCQXW+XiRtb5bIstxJC4YoQMt3uzqm3GBXImyWsIGv8ijf9QyMFmgcPRxmh9p8+aw9bFGyqHJnP4mrWjn8ph8oILYa5wcVIpkZhZR+cM4FknD4Fv713Z7qyexo0by1eF4sG5kDcJqdhdltGFmI22erFviBl0iNzP4c0Cmh8WF8xVGxsVn2Pqz3QgNspBZLws8Qrsxs76focsCZMHYUONXE15BZuOK4DXGZJyx/tfHdy08HYaciWVFAAAAAElFTkSuQmCC";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-restrict.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAHKADAAQAAAABAAAAHAAAAABkvfSiAAACE0lEQVRIDd1WzS5DQRT+pi0RhBBaIryALRFWGr+xwlpTCR7B1sLWGwiJpg/AiggNKxbWPIANFwskEvHTcc6M296OcXNrbJhF78yZb+ab75wzpwP89yZKArdujgA5XBr/SkccYz6ZDm6VKA98MnFGtpuy/Ue9JB2+3yYgQEgbC5wimxz6EYW5KOedQGLQNMcMw7Uxdhla9zIJXQgira10qblkyzsk04hpDh0LvKAn2YBLexqEKxT4nXgGThiuMJuqD2Cr6+Y8Kz5coXWJm/H/E4bHMOcd0OUdDXHiAeZT4yHzX6bCCb/AvzFIKZC/W4QsLlC56tUoGVdfnhNC+isDxduTVNq2kU3N+pORvvnbTrwX84T97r4WEI9lkGm/4v3ckoZPX0m2ikSiG821LaRqigScq4MwhrHOhOzGoDIhBtDVeoeZlnv6E9ijitNXItVYV4UcM9VWSdE+qZjA5e0OjmSdsqbFM8V0WfVVfF1d6ieIiK+jp33aStpUc6rPpJPJLYZ6J6Ap/gRWYyN9KjZqhXTBqDkSSk4K4PFV/9HaSN/elhRGyAv+moQdajLqj4htaqhcq4hbUCmwojCf2Mp7qGeiv2noSpOjJuntEtPZSAnCMWM3amWaDChQ1o5xAQhUGnphqVcbP34itlL9ILwEVRi5i4cXc3EB9WKOyXiirNCEVTO2l7ZzsBszbRs+WTVb/l3sB9Ngrj5Eqcg3AAAAAElFTkSuQmCC";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-setup-2.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAS1JREFUSEtjZKAzYITbt+C1HwPDv5kMDAwSVHbDCwYGpnSGBNFNIHORLHz5nAaWwdz+giFBXBLdwv9U9hmqcQniYM8h+3DUQspCnNggLdPmZPj7n4Gh99p32lu4142fwVqMDWzR0Ve/GJx3fWQ45inAYAkVw+aCE69/MVhu+4ApRYwPM9Q4GKZb8oE155z4zDD15neCFh5/9YvBajuZFgbKsjGU6HAx/P/PwNB/7RvD2ke/yA9WYnxIvulYdBJrISjR/PnPwNBHn0QjwGAtxgp27uGXvxhcd9M40aSrcTDMgCaa7BOfGKbd/EHbRBMgx8ZQos3FwDCsEw3VUiopqZRuRds+N0gqBdVbR179YnChddE2IKm0VHu4F210T6W0tJDezUR6N4SpFnb4DQIA0EbFHZOoHXgAAAAASUVORK5CYII=";
3
- //#endregion
4
- export { e as default };
@@ -1,4 +0,0 @@
1
- //#region src/components/k-long-page/icons/icon-setup.png
2
- var e = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAATtJREFUSEvtljtOw0AQQN+YKxAWjgIpgRbBCbxURgpl4BaQil+B4hyAhj40fG+Cl3AE4kV2ABuEkNdOtohwu5p5M7PPoxU8f/LFi0dbkF4Ay1OuIYEgQreus7wloHmeAeyz9gStVn4CbX6qVVHENFqNzbe85Q7/gfUG7DzS2BwCY7Q6qkV0AvaTISJtstsNuCdU68TmAVj9A/6EVsW5G9DsIZxNkss+eumkAvARrdaK/9vF0kuzQ0AXyXvsodWV81idOnTO/kuAMzCTRoI3wtZxLb4TcGCGWNpYCyK3aLVZ4Q4bSDMwEZbzvDNLh111WgHYQJr+6zYy7n6Mcl6lqWVKKchJmizO62qLX24gzVabReQOrTYqSNPE0lGETSeWykKHcNGDpYwP5ny1ebd0hkDfz0TfD+Gmo6sY/w4Pru8dyjG8wAAAAABJRU5ErkJggg==";
3
- //#endregion
4
- export { e as default };
@@ -1,23 +0,0 @@
1
- import e from "./icons/icon-base.js";
2
- import t from "./icons/icon-base-2.js";
3
- import n from "./icons/icon-notice.js";
4
- import r from "./icons/icon-notice-2.js";
5
- import i from "./icons/icon-price.js";
6
- import a from "./icons/icon-price-2.js";
7
- import o from "./icons/icon-restrict.js";
8
- import s from "./icons/icon-restrict-2.js";
9
- import c from "./icons/icon-setup.js";
10
- import l from "./icons/icon-setup-2.js";
11
- //#region src/components/k-long-page/navConfigs.ts
12
- var u = {
13
- base: [e, t],
14
- price: [i, a],
15
- notice: [n, r],
16
- setup: [c, l],
17
- restrict: [o, s]
18
- };
19
- function d(e) {
20
- return u[e] ?? u.base;
21
- }
22
- //#endregion
23
- export { u as LONG_PAGE_NAV_CONFIGS, d as resolveLongPageNavIcons };
@@ -1,5 +0,0 @@
1
- import e from "./KPagination.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/components/k-pagination/KPagination.vue
3
- var t = e;
4
- //#endregion
5
- export { t as default };
@@ -1,36 +0,0 @@
1
- import { createBlock as e, defineComponent as t, mergeProps as n, openBlock as r, unref as i } from "vue";
2
- import { ElPagination as a } from "element-plus";
3
- //#region src/components/k-pagination/KPagination.vue?vue&type=script&setup=true&lang.ts
4
- var o = /*@__PURE__*/ t({
5
- name: "KPagination",
6
- __name: "KPagination",
7
- props: {
8
- layout: { default: "total, sizes, prev, pager, next, jumper" },
9
- pageSize: { default: 10 },
10
- pageSizes: { default: () => [
11
- 10,
12
- 20,
13
- 30,
14
- 40,
15
- 50,
16
- 60,
17
- 70,
18
- 80,
19
- 90,
20
- 100
21
- ] }
22
- },
23
- setup(t) {
24
- return (o, s) => (r(), e(i(a), n(o.$attrs, {
25
- layout: t.layout,
26
- "page-size": t.pageSize,
27
- "page-sizes": t.pageSizes
28
- }), null, 16, [
29
- "layout",
30
- "page-size",
31
- "page-sizes"
32
- ]));
33
- }
34
- });
35
- //#endregion
36
- export { o as default };
@@ -1,5 +0,0 @@
1
- import e from "./KPanel.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/components/k-panel/KPanel.vue
3
- var t = e;
4
- //#endregion
5
- export { t as default };
@@ -1,47 +0,0 @@
1
- import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
2
- import { ElCollapse as g, ElCollapseItem as _ } from "element-plus";
3
- //#region src/components/k-panel/KPanel.vue?vue&type=script&setup=true&lang.ts
4
- var v = {
5
- key: 0,
6
- class: "panel-head"
7
- }, y = { class: "panel-head_left" }, b = { class: "panel-content" }, x = /*@__PURE__*/ c({
8
- name: "KPanel",
9
- __name: "KPanel",
10
- props: {
11
- title: {},
12
- isFold: {
13
- type: Boolean,
14
- default: !1
15
- },
16
- unfold: {
17
- type: Boolean,
18
- default: !0
19
- },
20
- hover: {
21
- type: Boolean,
22
- default: !0
23
- }
24
- },
25
- setup(c) {
26
- let x = c, S = d(x.unfold ? ["content"] : []), C = t(() => ({
27
- panel: !0,
28
- "panel-hover": x.hover
29
- }));
30
- return (t, d) => (u(), i("div", { class: l(C.value) }, [c.isFold ? (u(), n(m(g), {
31
- key: 0,
32
- modelValue: S.value,
33
- "onUpdate:modelValue": d[0] ||= (e) => S.value = e
34
- }, {
35
- default: h(() => [s(m(_), {
36
- name: "content",
37
- title: c.title
38
- }, {
39
- default: h(() => [f(t.$slots, "default")]),
40
- _: 3
41
- }, 8, ["title"])]),
42
- _: 3
43
- }, 8, ["modelValue"])) : (u(), i(e, { key: 1 }, [c.title || t.$slots.title ? (u(), i("div", v, [a("div", y, [f(t.$slots, "title", {}, () => [o(p(c.title), 1)])])])) : r("", !0), a("div", b, [f(t.$slots, "default")])], 64))], 2));
44
- }
45
- });
46
- //#endregion
47
- export { x as default };
@@ -1,5 +0,0 @@
1
- import e from "./KPanelQuery.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/components/k-panel-query/KPanelQuery.vue
3
- var t = e;
4
- //#endregion
5
- export { t as default };
@@ -1,151 +0,0 @@
1
- import e from "../k-panel/KPanel.js";
2
- import t from "./KPanelQueryActions.js";
3
- import n from "./KPanelQueryForm.js";
4
- import r from "./KPanelQueryItem.js";
5
- import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createSlots as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, unref as g, withCtx as _ } from "vue";
6
- //#region src/components/k-panel-query/KPanelQuery.vue?vue&type=script&setup=true&lang.ts
7
- var v = /*@__PURE__*/ d({
8
- name: "KPanelQuery",
9
- __name: "KPanelQuery",
10
- props: {
11
- title: { default: "快速查询" },
12
- showPanel: {
13
- type: Boolean,
14
- default: !0
15
- },
16
- model: { default: "form" },
17
- isFold: {
18
- type: Boolean,
19
- default: !0
20
- },
21
- unfold: {
22
- type: Boolean,
23
- default: !0
24
- },
25
- hover: {
26
- type: Boolean,
27
- default: !0
28
- },
29
- hideButton: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- hideLabel: {
34
- type: Boolean,
35
- default: !1
36
- },
37
- form: {}
38
- },
39
- emits: ["query", "reset"],
40
- setup(d, { expose: v, emit: y }) {
41
- let b = d, x = y, S = h(), C = /* @__PURE__ */ new Set([
42
- "Input",
43
- "Select",
44
- "TreeSelect",
45
- "Cascader"
46
- ]);
47
- function w(e) {
48
- return b.hideLabel ? e.map((e) => {
49
- let t = String(e.component ?? ""), n = { ...e.componentProps ?? {} };
50
- return C.has(t) ? (n.placeholder = n.placeholder || e.label, {
51
- ...e,
52
- label: "",
53
- componentProps: n
54
- }) : t === "DatePicker" ? {
55
- ...e,
56
- label: "",
57
- componentProps: n
58
- } : e;
59
- }) : e;
60
- }
61
- let T = a(() => {
62
- let e = b.form;
63
- if (!e) return;
64
- let t = e.formConfigs.length, n = e.colLength ?? (t > 0 ? Math.min(t, 3) : 3);
65
- return {
66
- ...e,
67
- colLength: n,
68
- autoLayout: e.autoLayout ?? !0,
69
- formConfigs: w(e.formConfigs)
70
- };
71
- }), E = a(() => b.model === "item");
72
- async function D() {
73
- let e = await S.value?.validateFields();
74
- e && x("query", e);
75
- }
76
- async function O() {
77
- S.value?.resetForm(), x("reset");
78
- let e = await S.value?.validateFields();
79
- e && x("query", e);
80
- }
81
- function k() {
82
- return S.value?.getParams() ?? {};
83
- }
84
- function A() {
85
- S.value?.resetForm();
86
- }
87
- return v({
88
- getParams: k,
89
- resetForm: A,
90
- getFormRef: () => S.value?.getFormRef(),
91
- submit: D
92
- }), (a, h) => (m(), c("div", { class: p(["k-panel-query", {
93
- "k-panel-query__form": d.model === "form" && !d.showPanel,
94
- "k-panel-query__item": E.value
95
- }]) }, [d.showPanel ? (m(), o(g(e), {
96
- key: 1,
97
- title: d.title,
98
- "is-fold": d.isFold,
99
- unfold: d.unfold,
100
- hover: d.hover
101
- }, {
102
- default: _(() => [T.value ? (m(), c(i, { key: 0 }, [E.value ? (m(), o(r, f({
103
- key: 0,
104
- ref_key: "formRef",
105
- ref: S
106
- }, T.value), l({ _: 2 }, [d.hideButton ? void 0 : {
107
- name: "button",
108
- fn: _(() => [u(t, {
109
- onQuery: D,
110
- onReset: O
111
- })]),
112
- key: "0"
113
- }]), 1040)) : (m(), c(i, { key: 1 }, [u(n, f({
114
- ref_key: "formRef",
115
- ref: S
116
- }, T.value, { "hide-label": d.hideLabel }), null, 16, ["hide-label"]), d.hideButton ? s("", !0) : (m(), o(t, {
117
- key: 0,
118
- footer: "",
119
- onQuery: D,
120
- onReset: O
121
- }))], 64))], 64)) : s("", !0)]),
122
- _: 1
123
- }, 8, [
124
- "title",
125
- "is-fold",
126
- "unfold",
127
- "hover"
128
- ])) : (m(), c(i, { key: 0 }, [T.value ? (m(), c(i, { key: 0 }, [E.value ? (m(), o(r, f({
129
- key: 0,
130
- ref_key: "formRef",
131
- ref: S
132
- }, T.value), l({ _: 2 }, [d.hideButton ? void 0 : {
133
- name: "button",
134
- fn: _(() => [u(t, {
135
- onQuery: D,
136
- onReset: O
137
- })]),
138
- key: "0"
139
- }]), 1040)) : (m(), c(i, { key: 1 }, [u(n, f({
140
- ref_key: "formRef",
141
- ref: S
142
- }, T.value, { "hide-label": d.hideLabel }), null, 16, ["hide-label"]), d.hideButton ? s("", !0) : (m(), o(t, {
143
- key: 0,
144
- footer: "",
145
- onQuery: D,
146
- onReset: O
147
- }))], 64))], 64)) : s("", !0)], 64))], 2));
148
- }
149
- });
150
- //#endregion
151
- export { v as default };
@@ -1,5 +0,0 @@
1
- import e from "./KPanelQueryActions.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/components/k-panel-query/KPanelQueryActions.vue
3
- var t = e;
4
- //#endregion
5
- export { t as default };
@@ -1,45 +0,0 @@
1
- import e from "../k-button/KButton.js";
2
- import { Fragment as t, createElementBlock as n, createTextVNode as r, createVNode as i, defineComponent as a, openBlock as o, withCtx as s } from "vue";
3
- //#region src/components/k-panel-query/KPanelQueryActions.vue?vue&type=script&setup=true&lang.ts
4
- var c = {
5
- key: 0,
6
- class: "k-panel-query__footer"
7
- }, l = /*@__PURE__*/ a({
8
- name: "KPanelQueryActions",
9
- __name: "KPanelQueryActions",
10
- props: { footer: {
11
- type: Boolean,
12
- default: !1
13
- } },
14
- emits: ["query", "reset"],
15
- setup(a, { emit: l }) {
16
- let u = l;
17
- return (l, d) => a.footer ? (o(), n("div", c, [i(e, {
18
- type: "primary",
19
- onClick: d[0] ||= (e) => u("query")
20
- }, {
21
- default: s(() => [...d[4] ||= [r("查询", -1)]]),
22
- _: 1
23
- }), i(e, {
24
- class: "k-panel-query__btn-reset",
25
- onClick: d[1] ||= (e) => u("reset")
26
- }, {
27
- default: s(() => [...d[5] ||= [r("重置", -1)]]),
28
- _: 1
29
- })])) : (o(), n(t, { key: 1 }, [i(e, {
30
- type: "primary",
31
- onClick: d[2] ||= (e) => u("query")
32
- }, {
33
- default: s(() => [...d[6] ||= [r("查询", -1)]]),
34
- _: 1
35
- }), i(e, {
36
- class: "k-panel-query__btn-reset",
37
- onClick: d[3] ||= (e) => u("reset")
38
- }, {
39
- default: s(() => [...d[7] ||= [r("重置", -1)]]),
40
- _: 1
41
- })], 64));
42
- }
43
- });
44
- //#endregion
45
- export { l as default };
@@ -1,5 +0,0 @@
1
- import e from "./KPanelQueryForm.vue_vue_type_script_setup_true_lang.js";
2
- //#region src/components/k-panel-query/KPanelQueryForm.vue
3
- var t = e;
4
- //#endregion
5
- export { t as default };