@lingshugroup/web-plus 1.7.8 → 1.7.10

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 (219) hide show
  1. package/lib/cmaps/78-EUC-H.bcmap +0 -0
  2. package/lib/cmaps/78-EUC-V.bcmap +0 -0
  3. package/lib/cmaps/78-H.bcmap +0 -0
  4. package/lib/cmaps/78-RKSJ-H.bcmap +0 -0
  5. package/lib/cmaps/78-RKSJ-V.bcmap +0 -0
  6. package/lib/cmaps/78-V.bcmap +0 -0
  7. package/lib/cmaps/78ms-RKSJ-H.bcmap +0 -0
  8. package/lib/cmaps/78ms-RKSJ-V.bcmap +0 -0
  9. package/lib/cmaps/83pv-RKSJ-H.bcmap +0 -0
  10. package/lib/cmaps/90ms-RKSJ-H.bcmap +0 -0
  11. package/lib/cmaps/90ms-RKSJ-V.bcmap +0 -0
  12. package/lib/cmaps/90msp-RKSJ-H.bcmap +0 -0
  13. package/lib/cmaps/90msp-RKSJ-V.bcmap +0 -0
  14. package/lib/cmaps/90pv-RKSJ-H.bcmap +0 -0
  15. package/lib/cmaps/90pv-RKSJ-V.bcmap +0 -0
  16. package/lib/cmaps/Add-H.bcmap +0 -0
  17. package/lib/cmaps/Add-RKSJ-H.bcmap +0 -0
  18. package/lib/cmaps/Add-RKSJ-V.bcmap +0 -0
  19. package/lib/cmaps/Add-V.bcmap +0 -0
  20. package/lib/cmaps/Adobe-CNS1-0.bcmap +0 -0
  21. package/lib/cmaps/Adobe-CNS1-1.bcmap +0 -0
  22. package/lib/cmaps/Adobe-CNS1-2.bcmap +0 -0
  23. package/lib/cmaps/Adobe-CNS1-3.bcmap +0 -0
  24. package/lib/cmaps/Adobe-CNS1-4.bcmap +0 -0
  25. package/lib/cmaps/Adobe-CNS1-5.bcmap +0 -0
  26. package/lib/cmaps/Adobe-CNS1-6.bcmap +0 -0
  27. package/lib/cmaps/Adobe-CNS1-UCS2.bcmap +0 -0
  28. package/lib/cmaps/Adobe-GB1-0.bcmap +0 -0
  29. package/lib/cmaps/Adobe-GB1-1.bcmap +0 -0
  30. package/lib/cmaps/Adobe-GB1-2.bcmap +0 -0
  31. package/lib/cmaps/Adobe-GB1-3.bcmap +0 -0
  32. package/lib/cmaps/Adobe-GB1-4.bcmap +0 -0
  33. package/lib/cmaps/Adobe-GB1-5.bcmap +0 -0
  34. package/lib/cmaps/Adobe-GB1-UCS2.bcmap +0 -0
  35. package/lib/cmaps/Adobe-Japan1-0.bcmap +0 -0
  36. package/lib/cmaps/Adobe-Japan1-1.bcmap +0 -0
  37. package/lib/cmaps/Adobe-Japan1-2.bcmap +0 -0
  38. package/lib/cmaps/Adobe-Japan1-3.bcmap +0 -0
  39. package/lib/cmaps/Adobe-Japan1-4.bcmap +0 -0
  40. package/lib/cmaps/Adobe-Japan1-5.bcmap +0 -0
  41. package/lib/cmaps/Adobe-Japan1-6.bcmap +0 -0
  42. package/lib/cmaps/Adobe-Japan1-UCS2.bcmap +0 -0
  43. package/lib/cmaps/Adobe-Korea1-0.bcmap +0 -0
  44. package/lib/cmaps/Adobe-Korea1-1.bcmap +0 -0
  45. package/lib/cmaps/Adobe-Korea1-2.bcmap +0 -0
  46. package/lib/cmaps/Adobe-Korea1-UCS2.bcmap +0 -0
  47. package/lib/cmaps/B5-H.bcmap +0 -0
  48. package/lib/cmaps/B5-V.bcmap +0 -0
  49. package/lib/cmaps/B5pc-H.bcmap +0 -0
  50. package/lib/cmaps/B5pc-V.bcmap +0 -0
  51. package/lib/cmaps/CNS-EUC-H.bcmap +0 -0
  52. package/lib/cmaps/CNS-EUC-V.bcmap +0 -0
  53. package/lib/cmaps/CNS1-H.bcmap +0 -0
  54. package/lib/cmaps/CNS1-V.bcmap +0 -0
  55. package/lib/cmaps/CNS2-H.bcmap +0 -0
  56. package/lib/cmaps/CNS2-V.bcmap +3 -0
  57. package/lib/cmaps/ETHK-B5-H.bcmap +0 -0
  58. package/lib/cmaps/ETHK-B5-V.bcmap +0 -0
  59. package/lib/cmaps/ETen-B5-H.bcmap +0 -0
  60. package/lib/cmaps/ETen-B5-V.bcmap +0 -0
  61. package/lib/cmaps/ETenms-B5-H.bcmap +3 -0
  62. package/lib/cmaps/ETenms-B5-V.bcmap +0 -0
  63. package/lib/cmaps/EUC-H.bcmap +0 -0
  64. package/lib/cmaps/EUC-V.bcmap +0 -0
  65. package/lib/cmaps/Ext-H.bcmap +0 -0
  66. package/lib/cmaps/Ext-RKSJ-H.bcmap +0 -0
  67. package/lib/cmaps/Ext-RKSJ-V.bcmap +0 -0
  68. package/lib/cmaps/Ext-V.bcmap +0 -0
  69. package/lib/cmaps/GB-EUC-H.bcmap +0 -0
  70. package/lib/cmaps/GB-EUC-V.bcmap +0 -0
  71. package/lib/cmaps/GB-H.bcmap +4 -0
  72. package/lib/cmaps/GB-V.bcmap +0 -0
  73. package/lib/cmaps/GBK-EUC-H.bcmap +0 -0
  74. package/lib/cmaps/GBK-EUC-V.bcmap +0 -0
  75. package/lib/cmaps/GBK2K-H.bcmap +0 -0
  76. package/lib/cmaps/GBK2K-V.bcmap +0 -0
  77. package/lib/cmaps/GBKp-EUC-H.bcmap +0 -0
  78. package/lib/cmaps/GBKp-EUC-V.bcmap +0 -0
  79. package/lib/cmaps/GBT-EUC-H.bcmap +0 -0
  80. package/lib/cmaps/GBT-EUC-V.bcmap +0 -0
  81. package/lib/cmaps/GBT-H.bcmap +0 -0
  82. package/lib/cmaps/GBT-V.bcmap +0 -0
  83. package/lib/cmaps/GBTpc-EUC-H.bcmap +0 -0
  84. package/lib/cmaps/GBTpc-EUC-V.bcmap +0 -0
  85. package/lib/cmaps/GBpc-EUC-H.bcmap +0 -0
  86. package/lib/cmaps/GBpc-EUC-V.bcmap +0 -0
  87. package/lib/cmaps/H.bcmap +0 -0
  88. package/lib/cmaps/HKdla-B5-H.bcmap +0 -0
  89. package/lib/cmaps/HKdla-B5-V.bcmap +0 -0
  90. package/lib/cmaps/HKdlb-B5-H.bcmap +0 -0
  91. package/lib/cmaps/HKdlb-B5-V.bcmap +0 -0
  92. package/lib/cmaps/HKgccs-B5-H.bcmap +0 -0
  93. package/lib/cmaps/HKgccs-B5-V.bcmap +0 -0
  94. package/lib/cmaps/HKm314-B5-H.bcmap +0 -0
  95. package/lib/cmaps/HKm314-B5-V.bcmap +0 -0
  96. package/lib/cmaps/HKm471-B5-H.bcmap +0 -0
  97. package/lib/cmaps/HKm471-B5-V.bcmap +0 -0
  98. package/lib/cmaps/HKscs-B5-H.bcmap +0 -0
  99. package/lib/cmaps/HKscs-B5-V.bcmap +0 -0
  100. package/lib/cmaps/Hankaku.bcmap +0 -0
  101. package/lib/cmaps/Hiragana.bcmap +0 -0
  102. package/lib/cmaps/KSC-EUC-H.bcmap +0 -0
  103. package/lib/cmaps/KSC-EUC-V.bcmap +0 -0
  104. package/lib/cmaps/KSC-H.bcmap +0 -0
  105. package/lib/cmaps/KSC-Johab-H.bcmap +0 -0
  106. package/lib/cmaps/KSC-Johab-V.bcmap +0 -0
  107. package/lib/cmaps/KSC-V.bcmap +0 -0
  108. package/lib/cmaps/KSCms-UHC-H.bcmap +0 -0
  109. package/lib/cmaps/KSCms-UHC-HW-H.bcmap +0 -0
  110. package/lib/cmaps/KSCms-UHC-HW-V.bcmap +0 -0
  111. package/lib/cmaps/KSCms-UHC-V.bcmap +0 -0
  112. package/lib/cmaps/KSCpc-EUC-H.bcmap +0 -0
  113. package/lib/cmaps/KSCpc-EUC-V.bcmap +0 -0
  114. package/lib/cmaps/Katakana.bcmap +0 -0
  115. package/lib/cmaps/LICENSE +36 -0
  116. package/lib/cmaps/NWP-H.bcmap +0 -0
  117. package/lib/cmaps/NWP-V.bcmap +0 -0
  118. package/lib/cmaps/RKSJ-H.bcmap +0 -0
  119. package/lib/cmaps/RKSJ-V.bcmap +0 -0
  120. package/lib/cmaps/Roman.bcmap +0 -0
  121. package/lib/cmaps/UniCNS-UCS2-H.bcmap +0 -0
  122. package/lib/cmaps/UniCNS-UCS2-V.bcmap +0 -0
  123. package/lib/cmaps/UniCNS-UTF16-H.bcmap +0 -0
  124. package/lib/cmaps/UniCNS-UTF16-V.bcmap +0 -0
  125. package/lib/cmaps/UniCNS-UTF32-H.bcmap +0 -0
  126. package/lib/cmaps/UniCNS-UTF32-V.bcmap +0 -0
  127. package/lib/cmaps/UniCNS-UTF8-H.bcmap +0 -0
  128. package/lib/cmaps/UniCNS-UTF8-V.bcmap +0 -0
  129. package/lib/cmaps/UniGB-UCS2-H.bcmap +0 -0
  130. package/lib/cmaps/UniGB-UCS2-V.bcmap +0 -0
  131. package/lib/cmaps/UniGB-UTF16-H.bcmap +0 -0
  132. package/lib/cmaps/UniGB-UTF16-V.bcmap +0 -0
  133. package/lib/cmaps/UniGB-UTF32-H.bcmap +0 -0
  134. package/lib/cmaps/UniGB-UTF32-V.bcmap +0 -0
  135. package/lib/cmaps/UniGB-UTF8-H.bcmap +0 -0
  136. package/lib/cmaps/UniGB-UTF8-V.bcmap +0 -0
  137. package/lib/cmaps/UniJIS-UCS2-H.bcmap +0 -0
  138. package/lib/cmaps/UniJIS-UCS2-HW-H.bcmap +0 -0
  139. package/lib/cmaps/UniJIS-UCS2-HW-V.bcmap +0 -0
  140. package/lib/cmaps/UniJIS-UCS2-V.bcmap +0 -0
  141. package/lib/cmaps/UniJIS-UTF16-H.bcmap +0 -0
  142. package/lib/cmaps/UniJIS-UTF16-V.bcmap +0 -0
  143. package/lib/cmaps/UniJIS-UTF32-H.bcmap +0 -0
  144. package/lib/cmaps/UniJIS-UTF32-V.bcmap +0 -0
  145. package/lib/cmaps/UniJIS-UTF8-H.bcmap +0 -0
  146. package/lib/cmaps/UniJIS-UTF8-V.bcmap +0 -0
  147. package/lib/cmaps/UniJIS2004-UTF16-H.bcmap +0 -0
  148. package/lib/cmaps/UniJIS2004-UTF16-V.bcmap +0 -0
  149. package/lib/cmaps/UniJIS2004-UTF32-H.bcmap +0 -0
  150. package/lib/cmaps/UniJIS2004-UTF32-V.bcmap +0 -0
  151. package/lib/cmaps/UniJIS2004-UTF8-H.bcmap +0 -0
  152. package/lib/cmaps/UniJIS2004-UTF8-V.bcmap +0 -0
  153. package/lib/cmaps/UniJISPro-UCS2-HW-V.bcmap +0 -0
  154. package/lib/cmaps/UniJISPro-UCS2-V.bcmap +0 -0
  155. package/lib/cmaps/UniJISPro-UTF8-V.bcmap +0 -0
  156. package/lib/cmaps/UniJISX0213-UTF32-H.bcmap +0 -0
  157. package/lib/cmaps/UniJISX0213-UTF32-V.bcmap +0 -0
  158. package/lib/cmaps/UniJISX02132004-UTF32-H.bcmap +0 -0
  159. package/lib/cmaps/UniJISX02132004-UTF32-V.bcmap +0 -0
  160. package/lib/cmaps/UniKS-UCS2-H.bcmap +0 -0
  161. package/lib/cmaps/UniKS-UCS2-V.bcmap +0 -0
  162. package/lib/cmaps/UniKS-UTF16-H.bcmap +0 -0
  163. package/lib/cmaps/UniKS-UTF16-V.bcmap +0 -0
  164. package/lib/cmaps/UniKS-UTF32-H.bcmap +0 -0
  165. package/lib/cmaps/UniKS-UTF32-V.bcmap +0 -0
  166. package/lib/cmaps/UniKS-UTF8-H.bcmap +0 -0
  167. package/lib/cmaps/UniKS-UTF8-V.bcmap +0 -0
  168. package/lib/cmaps/V.bcmap +0 -0
  169. package/lib/cmaps/WP-Symbol.bcmap +0 -0
  170. package/lib/index.css +1 -1
  171. package/lib/index.css.br +0 -0
  172. package/lib/index.css.gz +0 -0
  173. package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
  174. package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
  175. package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
  176. package/lib/packages/ls-components/components/form/Form.vue/index2.js +71 -68
  177. package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
  178. package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
  179. package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
  180. package/lib/packages/ls-components/components/form/FormItem.vue/index.js +2 -2
  181. package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
  182. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +296 -269
  183. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
  184. package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
  185. package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
  186. package/lib/packages/ls-components/components/list/List.vue/index.js +1 -1
  187. package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
  188. package/lib/packages/ls-components/components/list/List.vue/index2.js +188 -148
  189. package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
  190. package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
  191. package/lib/packages/ls-components/components/list/types/index.cjs +1 -1
  192. package/lib/packages/ls-components/components/list/types/index.js +6 -6
  193. package/lib/packages/ls-components/components/list/types/index.js.br +0 -0
  194. package/lib/packages/ls-components/components/list/types/index.js.gz +0 -0
  195. package/lib/packages/ls-components/components/menu/Index.vue/index.cjs +1 -1
  196. package/lib/packages/ls-components/components/menu/Index.vue/index.js +2 -2
  197. package/lib/packages/ls-components/components/menu/Index.vue/index2.cjs +1 -1
  198. package/lib/packages/ls-components/components/menu/Index.vue/index2.js +10 -10
  199. package/lib/packages/ls-components/components/menu/Index.vue/index2.js.br +0 -0
  200. package/lib/packages/ls-components/components/menu/Index.vue/index2.js.gz +0 -0
  201. package/lib/packages/ls-components/components/preview_pdf/Pdf.vue/index.cjs +1 -1
  202. package/lib/packages/ls-components/components/preview_pdf/Pdf.vue/index.js +2 -2
  203. package/lib/packages/ls-components/components/preview_pdf/Pdf.vue/index2.cjs +1 -1
  204. package/lib/packages/ls-components/components/preview_pdf/Pdf.vue/index2.js +64 -63
  205. package/lib/packages/ls-components/components/preview_pdf/Pdf.vue/index2.js.br +0 -0
  206. package/lib/packages/ls-components/components/preview_pdf/Pdf.vue/index2.js.gz +0 -0
  207. package/lib/packages/ls-components/components/preview_pdf/composable/index.cjs +1 -1
  208. package/lib/packages/ls-components/components/preview_pdf/composable/index.js +62 -58
  209. package/lib/packages/ls-components/components/preview_pdf/composable/index.js.br +0 -0
  210. package/lib/packages/ls-components/components/preview_pdf/composable/index.js.gz +0 -0
  211. package/lib/types/components/form/Form.vue.d.ts +1 -0
  212. package/lib/types/components/form/FormItem.vue.d.ts +96 -0
  213. package/lib/types/components/form/index.d.ts +97 -0
  214. package/lib/types/components/list/List.vue.d.ts +13 -12
  215. package/lib/types/components/list/index.d.ts +24 -24
  216. package/lib/types/components/list/types.d.ts +4 -4
  217. package/lib/types/components/preview_pdf/Pdf.vue.d.ts +1 -0
  218. package/lib/types/components/preview_pdf/composable.d.ts +1 -1
  219. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_utils/runtime/index.cjs"),n=o.buildProps({listApi:{type:Function},dealParams:{type:Function},dealData:{type:Function},listHookConfig:{type:Object},delApi:{type:Function},dealDelParams:{type:Function},switchApi:{type:Function},dealSwitchParams:{type:Function},showForm:{type:Boolean,default:!0},formClass:{type:String,default:""},formData:{type:Object,default:t(()=>({}),"default")},formItems:{type:Array,default:t(()=>[],"default")},formAttrs:{type:Object,default:t(()=>{},"default")},queryFn:{type:Function},tableColumn:{type:Array,default:t(()=>[],"default")},tableRowKey:{type:String,default:"id"},tableAttrs:{type:Object,default:t(()=>{},"default")},tableListeners:{type:Object,default:t(()=>{},"default")},showOperate:{type:Boolean,default:!0},showOperateDivider:{type:Boolean,default:!0},operateClass:{type:String,default:""},showAdd:{type:Boolean,default:!0},disabledAddBtn:{type:Boolean,default:!1},addBtnText:{type:String,default:"添加"},addFn:{type:Function},addBtnAttrs:{type:Object,default:t(()=>{},"default")},showTableSwitch:{type:Boolean,default:!1},switchProp:{type:String,default:"status"},tableSwitchColumn:{type:Object,default:t(()=>{},"default")},disabledTableSwitch:{type:[Boolean,Function],default:!1},showTableOperate:{type:Boolean,default:!0},tableOperateColumn:{type:Object,default:t(()=>{},"default")},tableDetailFn:{type:Function},tableEditFn:{type:Function},showTableDetail:{type:[Boolean,Function],default:!0},disabledTableDetail:{type:[Boolean,Function],default:!1},showTableEdit:{type:[Boolean,Function],default:!0},disabledTableEdit:{type:[Boolean,Function],default:!1},showTableDel:{type:[Boolean,Function],default:!0},disabledTableDel:{type:[Boolean,Function],default:!1},addRoutePath:{type:String,default:""},detailRoutePath:{type:String,default:""},editRoutePath:{type:String,default:""},tableDetailText:{type:String,default:"查看"},tableEditText:{type:String,default:"编辑"},tableDelText:{type:String,default:"删除"},skeletonAttrs:{type:Object,default:t(()=>{},"default")},showSkeleton:{type:Boolean,default:!0},popconfirmTxt:{type:String,default:""}});exports.lsListProps=n;
1
+ "use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../_utils/runtime/index.cjs"),n=o.buildProps({listApi:{type:Function},dealParams:{type:Function},dealData:{type:Function},listHookConfig:{type:Object},delApi:{type:Function},dealDelParams:{type:Function},switchApi:{type:Function},dealSwitchParams:{type:Function},showForm:{type:Boolean,default:!0},formClass:{type:String,default:""},formData:{type:Object,default:t(()=>({}),"default")},formItems:{type:Array,default:t(()=>[],"default")},formAttrs:{type:Object,default:t(()=>{},"default")},queryFn:{type:Function},tableColumn:{type:Array,default:t(()=>[],"default")},tableRowKey:{type:String,default:"id"},tableAttrs:{type:Object,default:t(()=>{},"default")},tableListeners:{type:Object,default:t(()=>{},"default")},showOperate:{type:Boolean,default:!0},showOperateDivider:{type:Boolean,default:!0},operateClass:{type:String,default:""},showAdd:{type:Boolean,default:!0},disabledAddBtn:{type:Boolean,default:!1},addBtnText:{type:String,default:"添加"},addFn:{type:Function},addBtnAttrs:{type:Object,default:t(()=>{},"default")},showTableSwitch:{type:Boolean,default:!1},switchProp:{type:String,default:"status"},tableSwitchColumn:{type:Object,default:t(()=>{},"default")},disabledTableSwitch:{type:[Boolean,Function],default:!1},showTableOperate:{type:Boolean,default:!0},tableOperateColumn:{type:Object,default:t(()=>{},"default")},tableDetailFn:{type:Function},tableEditFn:{type:Function},showTableDetail:{type:[Boolean,Function],default:!0},disabledTableDetail:{type:[Boolean,Function],default:!1},showTableEdit:{type:[Boolean,Function],default:!0},disabledTableEdit:{type:[Boolean,Function],default:!1},showTableDel:{type:[Boolean,Function],default:!0},disabledTableDel:{type:[Boolean,Function],default:!1},addRoutePath:{type:String,default:""},detailRoutePath:{type:String,default:""},editRoutePath:{type:String,default:""},tableDetailText:{type:[String,Function],default:"查看"},tableEditText:{type:[String,Function],default:"编辑"},tableDelText:{type:[String,Function],default:"删除"},skeletonAttrs:{type:Object,default:t(()=>{},"default")},showSkeleton:{type:Boolean,default:!0},popconfirmTxt:{type:[String,Function],default:""}});exports.lsListProps=n;
@@ -1,7 +1,7 @@
1
1
  var l = Object.defineProperty;
2
2
  var t = (e, a) => l(e, "name", { value: a, configurable: !0 });
3
3
  import { buildProps as o } from "../../_utils/runtime/index.js";
4
- const u = o({
4
+ const d = o({
5
5
  // 列表api
6
6
  listApi: {
7
7
  type: Function
@@ -212,17 +212,17 @@ const u = o({
212
212
  },
213
213
  // 表格查看按钮文案
214
214
  tableDetailText: {
215
- type: String,
215
+ type: [String, Function],
216
216
  default: "查看"
217
217
  },
218
218
  // 表格编辑按钮文案
219
219
  tableEditText: {
220
- type: String,
220
+ type: [String, Function],
221
221
  default: "编辑"
222
222
  },
223
223
  // 表格删除按钮文案
224
224
  tableDelText: {
225
- type: String,
225
+ type: [String, Function],
226
226
  default: "删除"
227
227
  },
228
228
  // 表格骨架屏配置
@@ -238,10 +238,10 @@ const u = o({
238
238
  },
239
239
  // popconfirm提示语
240
240
  popconfirmTxt: {
241
- type: String,
241
+ type: [String, Function],
242
242
  default: ""
243
243
  }
244
244
  });
245
245
  export {
246
- u as lsListProps
246
+ d as lsListProps
247
247
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const u=,/* empty css */t=u.default(e.default,[["__scopeId","data-v-657a02a9"]]);exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const u=,/* empty css */t=u.default(e.default,[["__scopeId","data-v-91989930"]]);exports.default=t;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-657a02a9"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91989930"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var A=Object.defineProperty;var o=(c,l)=>A(c,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("vue"),g=,/* empty css */h=,/* empty css */N=,/* empty css */B=,/* empty css */E=,/* empty css */D=,/* empty css */P=s.defineComponent({name:"LSMenu"}),I=s.defineComponent({...P,props:h.lsMenuProps,emits:h.lsEmitNames,setup(c,{expose:l,emit:y}){s.useCssVars(e=>({"3e55b540":e.hoverColor}));const{currentRouter:r}=N.default(),S=g.useNamespace("menu").b(),a=c,m=y,q=s.useAttrs();s.provide(E.lsMenuKey,{fontSize:a.fontSize});const C=s.ref(!1),_=s.ref(""),u=s.ref();s.watch(()=>a.permissionList,e=>{a.needPermission&&e&&e.length>0&&f()},{immediate:!0,deep:!0}),s.watch(()=>r.value,()=>{f()},{immediate:!0,deep:!0}),s.watch(()=>q["default-active"],async e=>{e&&(await s.nextTick(),d(e.toString()))},{immediate:!0,deep:!0});function f(){if(!C.value)return;const{meta:e}=(r==null?void 0:r.value)||{};_.value=(e==null?void 0:e.key)||"1"}o(f,"initMenuSider");function M(e){m("onJump",e)}o(M,"onJump");function L(e){const{key:i}=e;d(i),m("defineSubClick",e)}o(L,"defineSubClickFunc");function b(e){const{key:i}=e;d(i),m("defineChildClick",e)}o(b,"defineChildClickFunc");function d(e){if(u.value){let i=!1;const p=u.value.$el.querySelectorAll(".el-sub-menu"),n=u.value.$el.querySelectorAll(".el-menu-item"),v="is-sub-active",k="is-active";n.forEach(t=>{Array.from(t.classList).includes(k)&&t.classList.remove(k),e===t.dataset.index&&(i=!0,t.classList.add(k))}),p.forEach(t=>{Array.from(t.classList).includes(v)&&t.classList.remove(v),!i&&e===t.dataset.index&&t.classList.add(v)})}}return o(d,"updateActiveClass"),s.onMounted(()=>{C.value=!0,f()}),l({lsComMenuRef:u}),(e,i)=>{const p=D.ElMenu;return s.openBlock(),s.createBlock(p,s.mergeProps({ref_key:"lsComMenuRef",ref:u,"default-active":s.unref(_)},e.$attrs,{class:s.unref(S)}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.menuConfigList,n=>(s.openBlock(),s.createBlock(B.default,{key:n.key,item:n,"permission-list":e.permissionList,"need-permission":e.needPermission,"is-define-click":e.isDefineClick,"show-tooltip":e.showTooltip,onOnJump:M,onDefineSubClick:L,onDefineChildClick:b},{[n.iconSlot]:s.withCtx(()=>[s.renderSlot(e.$slots,n.iconSlot,{},void 0,!0)]),_:2},1032,["item","permission-list","need-permission","is-define-click","show-tooltip"]))),128))]),_:3},16,["default-active","class"])}}});exports.default=I;
1
+ "use strict";var A=Object.defineProperty;var o=(c,l)=>A(c,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("vue"),g=,/* empty css */h=,/* empty css */N=,/* empty css */B=,/* empty css */E=,/* empty css */D=,/* empty css */P=s.defineComponent({name:"LSMenu"}),I=s.defineComponent({...P,props:h.lsMenuProps,emits:h.lsEmitNames,setup(c,{expose:l,emit:y}){s.useCssVars(e=>({fe62419e:e.hoverColor}));const{currentRouter:r}=N.default(),S=g.useNamespace("menu").b(),a=c,f=y,q=s.useAttrs();s.provide(E.lsMenuKey,{fontSize:a.fontSize});const C=s.ref(!1),_=s.ref(""),u=s.ref();s.watch(()=>a.permissionList,e=>{a.needPermission&&e&&e.length>0&&m()},{immediate:!0,deep:!0}),s.watch(()=>r.value,()=>{m()},{immediate:!0,deep:!0}),s.watch(()=>q["default-active"],async e=>{e&&(await s.nextTick(),d(e.toString()))},{immediate:!0,deep:!0});function m(){if(!C.value)return;const{meta:e}=(r==null?void 0:r.value)||{};_.value=(e==null?void 0:e.key)||"1"}o(m,"initMenuSider");function M(e){f("onJump",e)}o(M,"onJump");function L(e){const{key:i}=e;d(i),f("defineSubClick",e)}o(L,"defineSubClickFunc");function b(e){const{key:i}=e;d(i),f("defineChildClick",e)}o(b,"defineChildClickFunc");function d(e){if(u.value){let i=!1;const p=u.value.$el.querySelectorAll(".el-sub-menu"),n=u.value.$el.querySelectorAll(".el-menu-item"),v="is-sub-active",k="is-active";n.forEach(t=>{Array.from(t.classList).includes(k)&&t.classList.remove(k),e===t.dataset.index&&(i=!0,t.classList.add(k))}),p.forEach(t=>{Array.from(t.classList).includes(v)&&t.classList.remove(v),!i&&e===t.dataset.index&&t.classList.add(v)})}}return o(d,"updateActiveClass"),s.onMounted(()=>{C.value=!0,m()}),l({lsComMenuRef:u}),(e,i)=>{const p=D.ElMenu;return s.openBlock(),s.createBlock(p,s.mergeProps({ref_key:"lsComMenuRef",ref:u,"default-active":s.unref(_)},e.$attrs,{class:s.unref(S)}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.menuConfigList,n=>(s.openBlock(),s.createBlock(B.default,{key:n.key,item:n,"permission-list":e.permissionList,"need-permission":e.needPermission,"is-define-click":e.isDefineClick,"show-tooltip":e.showTooltip,onOnJump:M,onDefineSubClick:L,onDefineChildClick:b},{[n.iconSlot]:s.withCtx(()=>[s.renderSlot(e.$slots,n.iconSlot,{},void 0,!0)]),_:2},1032,["item","permission-list","need-permission","is-define-click","show-tooltip"]))),128))]),_:3},16,["default-active","class"])}}});exports.default=I;
@@ -4,24 +4,24 @@ var o = (l, c) => P(l, "name", { value: c, configurable: !0 });
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
- import { defineComponent as M, useCssVars as B, useAttrs as F, provide as J, ref as k, watch as v, nextTick as q, onMounted as z, openBlock as h, createBlock as L, mergeProps as I, unref as b, withCtx as A, createElementBlock as K, Fragment as R, renderList as T, renderSlot as H } from "vue";
7
+ import { defineComponent as _, useCssVars as B, useAttrs as F, provide as J, ref as k, watch as v, nextTick as q, onMounted as z, openBlock as h, createBlock as L, mergeProps as I, unref as A, withCtx as M, createElementBlock as K, Fragment as R, renderList as T, renderSlot as H } from "vue";
8
8
  import { useNamespace as O } from "../../_hooks/useNamespace/index.js";
9
9
  import { lsMenuProps as j, lsEmitNames as x } from "../types/index.js";
10
10
  import G from "../../_hooks/useRouterHook/index.js";
11
11
  import Q from "../MenuItem.vue/index.js";
12
12
  import { lsMenuKey as U } from "../../_constants/token/index.js";
13
13
  import { ElMenu as V } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/menu/index/index.js";
14
- const W = M({
14
+ const W = _({
15
15
  name: "LSMenu"
16
- }), ae = /* @__PURE__ */ M({
16
+ }), ae = /* @__PURE__ */ _({
17
17
  ...W,
18
18
  props: j,
19
19
  emits: x,
20
- setup(l, { expose: c, emit: _ }) {
20
+ setup(l, { expose: c, emit: b }) {
21
21
  B((e) => ({
22
- "3e55b540": e.hoverColor
22
+ fe62419e: e.hoverColor
23
23
  }));
24
- const { currentRouter: r } = G(), w = O("menu").b(), u = l, a = _, E = F();
24
+ const { currentRouter: r } = G(), w = O("menu").b(), u = l, a = b, E = F();
25
25
  J(U, { fontSize: u.fontSize });
26
26
  const y = k(!1), S = k(""), n = k();
27
27
  v(
@@ -93,9 +93,9 @@ const W = M({
93
93
  return h(), L(d, I({
94
94
  ref_key: "lsComMenuRef",
95
95
  ref: n,
96
- "default-active": b(S)
97
- }, e.$attrs, { class: b(w) }), {
98
- default: A(() => [
96
+ "default-active": A(S)
97
+ }, e.$attrs, { class: A(w) }), {
98
+ default: M(() => [
99
99
  (h(!0), K(R, null, T(e.menuConfigList, (t) => (h(), L(Q, {
100
100
  key: t.key,
101
101
  item: t,
@@ -107,7 +107,7 @@ const W = M({
107
107
  onDefineSubClick: g,
108
108
  onDefineChildClick: D
109
109
  }, {
110
- [t.iconSlot]: A(() => [
110
+ [t.iconSlot]: M(() => [
111
111
  H(e.$slots, t.iconSlot, {}, void 0, !0)
112
112
  ]),
113
113
  _: 2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-4bd2bd33"]]);exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-083051d7"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4bd2bd33"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-083051d7"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var D=Object.defineProperty;var n=(p,m)=>D(p,"name",{value:m,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),T=,/* empty css */$=,/* empty css */E=,/* empty css */I=,/* empty css */M=,/* empty css */F={class:"opt-wrap"},j={key:0,class:"page-wrap"},O={class:"num-wrap"},A={key:1,class:"size-wrap"},G={class:"num-wrap"},H={class:"pdf-content"},J={key:1,class:"infinite-list-wrapper",style:{overflow:"auto"}},K=["infinite-scroll-disabled"],Q=e.defineComponent({name:"LSPdf"}),R=e.defineComponent({...Q,props:{source:{},onClose:{},showSize:{type:Boolean,default:!0}},emits:["annotation","highlight","loaded","textLoaded","annotationLoaded","xfaLoaded","loadComplete","loadError","update:source"],setup(p,{emit:m}){const v=T.useNamespace("pdf"),B=v.b(),_=e.ref(void 0),l=e.ref(1),a=e.ref(0),t=e.ref(1),i=e.ref(!0),C=e.ref(!1),c=p,k=m;e.watch(()=>c.source,()=>{b()},{immediate:!0,deep:!0});const V=e.computed(()=>i.value?"取消分页":"分页展示");async function b(){if(c.source)try{const{pdf:r,processLoadingTask:o,pages:s}=$.usePDF(c.source,{onError:d});await o(c.source),_.value=r.value,a.value=s.value,g()}catch{d()}finally{C.value=!0}}n(b,"initPdf");const h=n(()=>{C.value=!1,c.onClose&&c.onClose(),k("update:source")},"closeFunc");function w(){l.value>1&&l.value--}n(w,"prevPdf");function P(){l.value<a.value&&l.value++}n(P,"nextPdf");function N(r){r===0?t.value=t.value>.25?t.value-.25:t.value:t.value=t.value<2?t.value+.25:t.value}n(N,"scalePdf");const y=e.ref(!1),u=e.ref(0),S=n(()=>{if(u.value>=a.value){y.value=!0;return}u.value++},"load");function L(){i.value=!i.value,i.value||(y.value=!1,u.value=a.value>10?10:a.value)}n(L,"changePagition");function g(){k("loadComplete")}n(g,"loadComplete");function d(){k("loadError")}return n(d,"loadError"),(r,o)=>{const s=e.resolveComponent("LSButton"),x=e.resolveComponent("LSIcon"),z=I.ElScrollbar,q=M.ElInfiniteScroll;return e.unref(C)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(B))},[e.createElementVNode("div",F,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",j,[e.createVNode(s,{type:"primary",size:"small",disabled:e.unref(l)==1,onClick:w},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode("上一页")])),_:1},8,["disabled"]),e.createElementVNode("span",O,e.toDisplayString(e.unref(l))+" / "+e.toDisplayString(e.unref(a)),1),e.createVNode(s,{type:"primary",size:"small",disabled:e.unref(l)==e.unref(a),onClick:P},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode("下一页")])),_:1},8,["disabled"])])):e.createCommentVNode("",!0),r.showSize?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(s,{type:"primary",icon:"Minus",size:"small",disabled:e.unref(t)==.25,onClick:o[0]||(o[0]=f=>N(0))},null,8,["disabled"]),e.createElementVNode("span",G,e.toDisplayString(e.unref(t)*100)+"%",1),e.createVNode(s,{type:"primary",icon:"Plus",size:"small",disabled:e.unref(t)==2,onClick:o[1]||(o[1]=f=>N(1))},null,8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(s,{type:"primary",size:"small",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(V)),1)]),_:1}),e.createElementVNode("span",{class:e.normalizeClass([e.unref(v).e("btn"),e.unref(v).e("close")]),onClick:h},[e.createVNode(x,{name:"Close",size:26})],2)]),e.createElementVNode("div",H,[e.unref(i)?(e.openBlock(),e.createBlock(E.default,e.mergeProps({key:0},r.$attrs,{pdf:e.unref(_),page:e.unref(l),scale:e.unref(t),onLoadComplete:g,onLoadError:d}),null,16,["pdf","page","scale"])):(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(z,{height:"calc(100vh - 48px)"},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("ul",{"infinite-scroll-disabled":e.unref(y),class:"infinite-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),f=>(e.openBlock(),e.createElementBlock("li",{key:f,class:"infinite-list-item"},[e.createVNode(E.default,e.mergeProps({ref_for:!0},r.$attrs,{pdf:e.unref(_),page:f,scale:e.unref(t),onLoadComplete:g,onLoadError:d}),null,16,["pdf","page","scale"])]))),128))],8,K)),[[q,S]])]),_:1})]))])],2)):e.createCommentVNode("",!0)}}});exports.default=R;
1
+ "use strict";var D=Object.defineProperty;var n=(p,m)=>D(p,"name",{value:m,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),M=,/* empty css */T=,/* empty css */h=,/* empty css */$=,/* empty css */I=,/* empty css */F={class:"opt-wrap"},j={key:0,class:"page-wrap"},O={class:"num-wrap"},U={key:1,class:"size-wrap"},A={class:"num-wrap"},G={class:"pdf-content"},H={key:1,class:"infinite-list-wrapper",style:{overflow:"auto"}},J=["infinite-scroll-disabled"],K=e.defineComponent({name:"LSPdf"}),Q=e.defineComponent({...K,props:{source:{},onClose:{},showSize:{type:Boolean,default:!0},cMapUrlPath:{}},emits:["annotation","highlight","loaded","textLoaded","annotationLoaded","xfaLoaded","loadComplete","loadError","update:source"],setup(p,{emit:m}){const v=M.useNamespace("pdf"),E=v.b(),_=e.ref(void 0),l=e.ref(1),a=e.ref(0),t=e.ref(1),c=e.ref(!0),C=e.ref(!1),r=p,k=m;e.watch(()=>r.source,()=>{V()},{immediate:!0,deep:!0});const B=e.computed(()=>c.value?"取消分页":"分页展示");async function V(){if(r.source)try{const{pdf:s,processLoadingTask:o,pages:i}=T.usePDF(r.source,r.cMapUrlPath,{onError:d});await o(r.source),_.value=s.value,a.value=i.value,g()}catch{d()}finally{C.value=!0}}n(V,"initPdf");const b=n(()=>{C.value=!1,r.onClose&&r.onClose(),k("update:source")},"closeFunc");function P(){l.value>1&&l.value--}n(P,"prevPdf");function w(){l.value<a.value&&l.value++}n(w,"nextPdf");function N(s){s===0?t.value=t.value>.25?t.value-.25:t.value:t.value=t.value<2?t.value+.25:t.value}n(N,"scalePdf");const y=e.ref(!1),u=e.ref(0),S=n(()=>{if(u.value>=a.value){y.value=!0;return}u.value++},"load");function L(){c.value=!c.value,c.value||(y.value=!1,u.value=a.value>10?10:a.value)}n(L,"changePagition");function g(){k("loadComplete")}n(g,"loadComplete");function d(){k("loadError")}return n(d,"loadError"),(s,o)=>{const i=e.resolveComponent("LSButton"),x=e.resolveComponent("LSIcon"),z=$.ElScrollbar,q=I.ElInfiniteScroll;return e.unref(C)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(E))},[e.createElementVNode("div",F,[e.unref(c)?(e.openBlock(),e.createElementBlock("div",j,[e.createVNode(i,{type:"primary",size:"small",disabled:e.unref(l)==1,onClick:P},{default:e.withCtx(()=>o[2]||(o[2]=[e.createTextVNode("上一页")])),_:1},8,["disabled"]),e.createElementVNode("span",O,e.toDisplayString(e.unref(l))+" / "+e.toDisplayString(e.unref(a)),1),e.createVNode(i,{type:"primary",size:"small",disabled:e.unref(l)==e.unref(a),onClick:w},{default:e.withCtx(()=>o[3]||(o[3]=[e.createTextVNode("下一页")])),_:1},8,["disabled"])])):e.createCommentVNode("",!0),s.showSize?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(i,{type:"primary",icon:"Minus",size:"small",disabled:e.unref(t)==.25,onClick:o[0]||(o[0]=f=>N(0))},null,8,["disabled"]),e.createElementVNode("span",A,e.toDisplayString(e.unref(t)*100)+"%",1),e.createVNode(i,{type:"primary",icon:"Plus",size:"small",disabled:e.unref(t)==2,onClick:o[1]||(o[1]=f=>N(1))},null,8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(i,{type:"primary",size:"small",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(B)),1)]),_:1}),e.createElementVNode("span",{class:e.normalizeClass([e.unref(v).e("btn"),e.unref(v).e("close")]),onClick:b},[e.createVNode(x,{name:"Close",size:26})],2)]),e.createElementVNode("div",G,[e.unref(c)?(e.openBlock(),e.createBlock(h.default,e.mergeProps({key:0},s.$attrs,{pdf:e.unref(_),page:e.unref(l),scale:e.unref(t),onLoadComplete:g,onLoadError:d}),null,16,["pdf","page","scale"])):(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(z,{height:"calc(100vh - 48px)"},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("ul",{"infinite-scroll-disabled":e.unref(y),class:"infinite-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),f=>(e.openBlock(),e.createElementBlock("li",{key:f,class:"infinite-list-item"},[e.createVNode(h.default,e.mergeProps({ref_for:!0},s.$attrs,{pdf:e.unref(_),page:f,scale:e.unref(t),onLoadComplete:g,onLoadError:d}),null,16,["pdf","page","scale"])]))),128))],8,J)),[[q,S]])]),_:1})]))])],2)):e.createCommentVNode("",!0)}}});exports.default=Q;
@@ -1,15 +1,15 @@
1
- var Q = Object.defineProperty;
2
- var l = (k, b) => Q(k, "name", { value: b, configurable: !0 });
1
+ var K = Object.defineProperty;
2
+ var l = (h, k) => K(h, "name", { value: k, configurable: !0 });
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- import { defineComponent as F, ref as a, watch as R, computed as U, resolveComponent as N, unref as e, openBlock as n, createElementBlock as d, normalizeClass as $, createElementVNode as m, createVNode as i, withCtx as C, createTextVNode as S, toDisplayString as g, createCommentVNode as x, createBlock as W, mergeProps as V, withDirectives as X, Fragment as Y, renderList as Z } from "vue";
6
+ import { defineComponent as D, ref as s, watch as Q, computed as R, resolveComponent as N, unref as e, openBlock as n, createElementBlock as p, normalizeClass as $, createElementVNode as m, createVNode as i, withCtx as C, createTextVNode as S, toDisplayString as g, createCommentVNode as x, createBlock as W, mergeProps as M, withDirectives as X, Fragment as Y, renderList as Z } from "vue";
7
7
  import { useNamespace as ee } from "../../_hooks/useNamespace/index.js";
8
8
  import { usePDF as oe } from "../composable/index.js";
9
- import D from "../pdfs/PdfItem.vue/index.js";
9
+ import V from "../pdfs/PdfItem.vue/index.js";
10
10
  import { ElScrollbar as te } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/scrollbar/index/index.js";
11
11
  import { ElInfiniteScroll as le } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/infinite-scroll/index/index.js";
12
- const se = { class: "opt-wrap" }, ae = {
12
+ const ae = { class: "opt-wrap" }, se = {
13
13
  key: 0,
14
14
  class: "page-wrap"
15
15
  }, ne = { class: "num-wrap" }, ie = {
@@ -19,69 +19,70 @@ const se = { class: "opt-wrap" }, ae = {
19
19
  key: 1,
20
20
  class: "infinite-list-wrapper",
21
21
  style: { overflow: "auto" }
22
- }, de = ["infinite-scroll-disabled"], pe = F({
22
+ }, de = ["infinite-scroll-disabled"], pe = D({
23
23
  name: "LSPdf"
24
- }), we = /* @__PURE__ */ F({
24
+ }), we = /* @__PURE__ */ D({
25
25
  ...pe,
26
26
  props: {
27
27
  source: {},
28
28
  onClose: {},
29
- showSize: { type: Boolean, default: !0 }
29
+ showSize: { type: Boolean, default: !0 },
30
+ cMapUrlPath: {}
30
31
  },
31
32
  emits: ["annotation", "highlight", "loaded", "textLoaded", "annotationLoaded", "xfaLoaded", "loadComplete", "loadError", "update:source"],
32
- setup(k, { emit: b }) {
33
- const h = ee("pdf"), I = h.b(), w = a(void 0), s = a(1), r = a(0), o = a(1), p = a(!0), L = a(!1), f = k, P = b;
34
- R(
35
- () => f.source,
33
+ setup(h, { emit: k }) {
34
+ const b = ee("pdf"), F = b.b(), w = s(void 0), a = s(1), r = s(0), o = s(1), f = s(!0), L = s(!1), c = h, P = k;
35
+ Q(
36
+ () => c.source,
36
37
  () => {
37
- M();
38
+ T();
38
39
  },
39
40
  {
40
41
  immediate: !0,
41
42
  deep: !0
42
43
  }
43
44
  );
44
- const T = U(() => p.value ? "取消分页" : "分页展示");
45
- async function M() {
46
- if (f.source)
45
+ const I = R(() => f.value ? "取消分页" : "分页展示");
46
+ async function T() {
47
+ if (c.source)
47
48
  try {
48
- const { pdf: c, processLoadingTask: t, pages: u } = oe(f.source, {
49
+ const { pdf: u, processLoadingTask: t, pages: d } = oe(c.source, c.cMapUrlPath, {
49
50
  onError: _
50
51
  });
51
- await t(f.source), w.value = c.value, r.value = u.value, E();
52
+ await t(c.source), w.value = u.value, r.value = d.value, E();
52
53
  } catch {
53
54
  _();
54
55
  } finally {
55
56
  L.value = !0;
56
57
  }
57
58
  }
58
- l(M, "initPdf");
59
- const j = /* @__PURE__ */ l(() => {
60
- L.value = !1, f.onClose && f.onClose(), P("update:source");
59
+ l(T, "initPdf");
60
+ const U = /* @__PURE__ */ l(() => {
61
+ L.value = !1, c.onClose && c.onClose(), P("update:source");
61
62
  }, "closeFunc");
62
- function O() {
63
- s.value > 1 && s.value--;
63
+ function j() {
64
+ a.value > 1 && a.value--;
64
65
  }
65
- l(O, "prevPdf");
66
- function q() {
67
- s.value < r.value && s.value++;
66
+ l(j, "prevPdf");
67
+ function O() {
68
+ a.value < r.value && a.value++;
68
69
  }
69
- l(q, "nextPdf");
70
- function B(c) {
71
- c === 0 ? o.value = o.value > 0.25 ? o.value - 0.25 : o.value : o.value = o.value < 2 ? o.value + 0.25 : o.value;
70
+ l(O, "nextPdf");
71
+ function B(u) {
72
+ u === 0 ? o.value = o.value > 0.25 ? o.value - 0.25 : o.value : o.value = o.value < 2 ? o.value + 0.25 : o.value;
72
73
  }
73
74
  l(B, "scalePdf");
74
- const z = a(!1), v = a(0), A = /* @__PURE__ */ l(() => {
75
+ const z = s(!1), v = s(0), q = /* @__PURE__ */ l(() => {
75
76
  if (v.value >= r.value) {
76
77
  z.value = !0;
77
78
  return;
78
79
  }
79
80
  v.value++;
80
81
  }, "load");
81
- function G() {
82
- p.value = !p.value, p.value || (z.value = !1, v.value = r.value > 10 ? 10 : r.value);
82
+ function A() {
83
+ f.value = !f.value, f.value || (z.value = !1, v.value = r.value > 10 ? 10 : r.value);
83
84
  }
84
- l(G, "changePagition");
85
+ l(A, "changePagition");
85
86
  function E() {
86
87
  P("loadComplete");
87
88
  }
@@ -89,31 +90,31 @@ const se = { class: "opt-wrap" }, ae = {
89
90
  function _() {
90
91
  P("loadError");
91
92
  }
92
- return l(_, "loadError"), (c, t) => {
93
- const u = N("LSButton"), H = N("LSIcon"), J = te, K = le;
94
- return e(L) ? (n(), d("div", {
93
+ return l(_, "loadError"), (u, t) => {
94
+ const d = N("LSButton"), G = N("LSIcon"), H = te, J = le;
95
+ return e(L) ? (n(), p("div", {
95
96
  key: 0,
96
- class: $(e(I))
97
+ class: $(e(F))
97
98
  }, [
98
- m("div", se, [
99
- e(p) ? (n(), d("div", ae, [
100
- i(u, {
99
+ m("div", ae, [
100
+ e(f) ? (n(), p("div", se, [
101
+ i(d, {
101
102
  type: "primary",
102
103
  size: "small",
103
- disabled: e(s) == 1,
104
- onClick: O
104
+ disabled: e(a) == 1,
105
+ onClick: j
105
106
  }, {
106
107
  default: C(() => t[2] || (t[2] = [
107
108
  S("上一页")
108
109
  ])),
109
110
  _: 1
110
111
  }, 8, ["disabled"]),
111
- m("span", ne, g(e(s)) + " / " + g(e(r)), 1),
112
- i(u, {
112
+ m("span", ne, g(e(a)) + " / " + g(e(r)), 1),
113
+ i(d, {
113
114
  type: "primary",
114
115
  size: "small",
115
- disabled: e(s) == e(r),
116
- onClick: q
116
+ disabled: e(a) == e(r),
117
+ onClick: O
117
118
  }, {
118
119
  default: C(() => t[3] || (t[3] = [
119
120
  S("下一页")
@@ -121,8 +122,8 @@ const se = { class: "opt-wrap" }, ae = {
121
122
  _: 1
122
123
  }, 8, ["disabled"])
123
124
  ])) : x("", !0),
124
- c.showSize ? (n(), d("div", ie, [
125
- i(u, {
125
+ u.showSize ? (n(), p("div", ie, [
126
+ i(d, {
126
127
  type: "primary",
127
128
  icon: "Minus",
128
129
  size: "small",
@@ -130,7 +131,7 @@ const se = { class: "opt-wrap" }, ae = {
130
131
  onClick: t[0] || (t[0] = (y) => B(0))
131
132
  }, null, 8, ["disabled"]),
132
133
  m("span", re, g(e(o) * 100) + "%", 1),
133
- i(u, {
134
+ i(d, {
134
135
  type: "primary",
135
136
  icon: "Plus",
136
137
  size: "small",
@@ -138,45 +139,45 @@ const se = { class: "opt-wrap" }, ae = {
138
139
  onClick: t[1] || (t[1] = (y) => B(1))
139
140
  }, null, 8, ["disabled"])
140
141
  ])) : x("", !0),
141
- i(u, {
142
+ i(d, {
142
143
  type: "primary",
143
144
  size: "small",
144
- onClick: G
145
+ onClick: A
145
146
  }, {
146
147
  default: C(() => [
147
- S(g(e(T)), 1)
148
+ S(g(e(I)), 1)
148
149
  ]),
149
150
  _: 1
150
151
  }),
151
152
  m("span", {
152
- class: $([e(h).e("btn"), e(h).e("close")]),
153
- onClick: j
153
+ class: $([e(b).e("btn"), e(b).e("close")]),
154
+ onClick: U
154
155
  }, [
155
- i(H, {
156
+ i(G, {
156
157
  name: "Close",
157
158
  size: 26
158
159
  })
159
160
  ], 2)
160
161
  ]),
161
162
  m("div", ce, [
162
- e(p) ? (n(), W(D, V({ key: 0 }, c.$attrs, {
163
+ e(f) ? (n(), W(V, M({ key: 0 }, u.$attrs, {
163
164
  pdf: e(w),
164
- page: e(s),
165
+ page: e(a),
165
166
  scale: e(o),
166
167
  onLoadComplete: E,
167
168
  onLoadError: _
168
- }), null, 16, ["pdf", "page", "scale"])) : (n(), d("div", ue, [
169
- i(J, { height: "calc(100vh - 48px)" }, {
169
+ }), null, 16, ["pdf", "page", "scale"])) : (n(), p("div", ue, [
170
+ i(H, { height: "calc(100vh - 48px)" }, {
170
171
  default: C(() => [
171
- X((n(), d("ul", {
172
+ X((n(), p("ul", {
172
173
  "infinite-scroll-disabled": e(z),
173
174
  class: "infinite-list"
174
175
  }, [
175
- (n(!0), d(Y, null, Z(e(v), (y) => (n(), d("li", {
176
+ (n(!0), p(Y, null, Z(e(v), (y) => (n(), p("li", {
176
177
  key: y,
177
178
  class: "infinite-list-item"
178
179
  }, [
179
- i(D, V({ ref_for: !0 }, c.$attrs, {
180
+ i(V, M({ ref_for: !0 }, u.$attrs, {
180
181
  pdf: e(w),
181
182
  page: y,
182
183
  scale: e(o),
@@ -185,7 +186,7 @@ const se = { class: "opt-wrap" }, ae = {
185
186
  }), null, 16, ["pdf", "page", "scale"])
186
187
  ]))), 128))
187
188
  ], 8, de)), [
188
- [K, A]
189
+ [J, q]
189
190
  ])
190
191
  ]),
191
192
  _: 1
@@ -1 +1 @@
1
- "use strict";var U=Object.defineProperty;var c=(s,r)=>U(s,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("pdfjs-dist"),N=require("../../../../../node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.cjs"),f=require("vue"),h=require("../pdfs/destination/index.cjs"),L=require("../pdfs/miscellaneous/index.cjs");function O(s){P.GlobalWorkerOptions.workerSrc=s}c(O,"configWorker");function q(s,r={onProgress:void 0,onPassword:void 0,onError:void 0,password:""}){var R;(R=P.GlobalWorkerOptions)!=null&&R.workerSrc||O(N.default);const b=f.shallowRef(),l=f.shallowRef(),D=f.shallowRef(0),k=f.shallowRef({});function g(u){l.value&&l.value.destroy();const o=P.getDocument(u);if(r.onProgress&&(o.onProgress=r.onProgress),r.onPassword)o.onPassword=r.onPassword;else if(r.password){const e=c(i=>{i(r.password??"")},"onPassword");o.onPassword=e}return o.promise.then(async e=>{l.value=e,b.value=e.loadingTask,D.value=e.numPages;const i=await e.getMetadata(),a=await e.getAttachments(),n=await e.getJSActions(),d=await e.getOutline();k.value={metadata:i,attachments:a,javascript:n,outline:d}},e=>{typeof r.onError=="function"&&r.onError(e)})}c(g,"processLoadingTask");async function I(u){var t;const o=await((t=b.value)==null?void 0:t.promise);if(!o)return null;const e=await h.getDestinationArray(o,u),i=await h.getDestinationRef(o,e);if(!i||!e)return null;const a=await o.getPageIndex(i),n=e[1].name,d=e.slice(2),v=h.isSpecLike(d)?h.getLocation(n,d):null;return{pageIndex:a,location:v??{type:"Fit",spec:[]}}}c(I,"getPDFDestination");async function x(u="filename"){var n;if(!l.value)throw new Error("Current PDFDocumentProxy have not loaded yet");const o=await((n=l.value)==null?void 0:n.saveDocument()),e=new Blob([o],{type:"application/pdf"}),i=URL.createObjectURL(e),a=document.createElement("a");document.body.appendChild(a),a.href=i,a.download=u,a.style.display="none",a.click(),setTimeout(()=>{URL.revokeObjectURL(i),document.body.removeChild(a)},10)}c(x,"download");async function E(u=150,o="filename"){var S,C;if(!l.value)throw new Error("Current PDFDocumentProxy have not loaded yet");const e=await((S=l.value)==null?void 0:S.saveDocument()),a=await P.getDocument(e.buffer).promise,n=u/72,d=96/72,v=await L.createIframe(),t=v.contentWindow;t.document.title=o;const F=[...Array(a.numPages).keys()].map(p=>p+1);for(const p of F){const y=await a.getPage(p),m=y.getViewport({scale:1});p===1&&L.addStylesToIframe(t,m.width*n/d,m.height*n/d);const w=document.createElement("canvas");w.width=m.width*n,w.height=m.height*n;const T=w.cloneNode();t==null||t.document.body.appendChild(T),await(y==null?void 0:y.render({canvasContext:w.getContext("2d"),intent:"print",transform:[n,0,0,n,0,0],viewport:m}).promise),(C=T.getContext("2d"))==null||C.drawImage(w,0,0)}t==null||t.focus(),t==null||t.print(),document.body.removeChild(v)}return c(E,"print"),f.isRef(s)?(s.value&&g(s.value),f.watch(s,()=>{s.value&&g(s.value)})):s&&g(s),{pdf:b,pages:D,info:k,print:E,download:x,getPDFDestination:I,processLoadingTask:g}}c(q,"usePDF");exports.usePDF=q;
1
+ "use strict";var N=Object.defineProperty;var c=(s,b)=>N(s,"name",{value:b,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("pdfjs-dist"),O=require("../../../../../node_modules/.pnpm/pdfjs-dist@4.8.69/node_modules/pdfjs-dist/build/pdf.worker.min/index.cjs"),f=require("vue"),h=require("../pdfs/destination/index.cjs"),I=require("../pdfs/miscellaneous/index.cjs");function q(s){P.GlobalWorkerOptions.workerSrc=s}c(q,"configWorker");function A(s,b,i={onProgress:void 0,onPassword:void 0,onError:void 0,password:""}){var S;(S=P.GlobalWorkerOptions)!=null&&S.workerSrc||q(O.default);const D=f.shallowRef(),l=f.shallowRef(),k=f.shallowRef(0),R=f.shallowRef({});function g(u){l.value&&l.value.destroy();const o=P.getDocument({url:u,cMapUrl:b,cMapPacked:!0});if(i.onProgress&&(o.onProgress=i.onProgress),i.onPassword)o.onPassword=i.onPassword;else if(i.password){const e=c(r=>{r(i.password??"")},"onPassword");o.onPassword=e}return o.promise.then(async e=>{l.value=e,D.value=e.loadingTask,k.value=e.numPages;const r=await e.getMetadata(),a=await e.getAttachments(),n=await e.getJSActions(),d=await e.getOutline();R.value={metadata:r,attachments:a,javascript:n,outline:d}},e=>{typeof i.onError=="function"&&i.onError(e)})}c(g,"processLoadingTask");async function U(u){var t;const o=await((t=D.value)==null?void 0:t.promise);if(!o)return null;const e=await h.getDestinationArray(o,u),r=await h.getDestinationRef(o,e);if(!r||!e)return null;const a=await o.getPageIndex(r),n=e[1].name,d=e.slice(2),v=h.isSpecLike(d)?h.getLocation(n,d):null;return{pageIndex:a,location:v??{type:"Fit",spec:[]}}}c(U,"getPDFDestination");async function x(u="filename"){var n;if(!l.value)throw new Error("Current PDFDocumentProxy have not loaded yet");const o=await((n=l.value)==null?void 0:n.saveDocument()),e=new Blob([o],{type:"application/pdf"}),r=URL.createObjectURL(e),a=document.createElement("a");document.body.appendChild(a),a.href=r,a.download=u,a.style.display="none",a.click(),setTimeout(()=>{URL.revokeObjectURL(r),document.body.removeChild(a)},10)}c(x,"download");async function E(u=150,o="filename"){var C,T;if(!l.value)throw new Error("Current PDFDocumentProxy have not loaded yet");const e=await((C=l.value)==null?void 0:C.saveDocument()),a=await P.getDocument(e.buffer).promise,n=u/72,d=96/72,v=await I.createIframe(),t=v.contentWindow;t.document.title=o;const F=[...Array(a.numPages).keys()].map(p=>p+1);for(const p of F){const y=await a.getPage(p),m=y.getViewport({scale:1});p===1&&I.addStylesToIframe(t,m.width*n/d,m.height*n/d);const w=document.createElement("canvas");w.width=m.width*n,w.height=m.height*n;const L=w.cloneNode();t==null||t.document.body.appendChild(L),await(y==null?void 0:y.render({canvasContext:w.getContext("2d"),intent:"print",transform:[n,0,0,n,0,0],viewport:m}).promise),(T=L.getContext("2d"))==null||T.drawImage(w,0,0)}t==null||t.focus(),t==null||t.print(),document.body.removeChild(v)}return c(E,"print"),f.isRef(s)?(s.value&&g(s.value),f.watch(s,()=>{s.value&&g(s.value)})):s&&g(s),{pdf:D,pages:k,info:R,print:E,download:x,getPDFDestination:U,processLoadingTask:g}}c(A,"usePDF");exports.usePDF=A;