yh-hiprint 2.2.10 → 2.3.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.
package/column-field.js CHANGED
@@ -1,7 +1,7 @@
1
- import $ from "jquery";
1
+ import $ from "./lib/jquery";
2
2
 
3
3
  export default function (tableFields) {
4
- function t() {
4
+ function t () {
5
5
  this.name = "field";
6
6
  }
7
7
 
@@ -14,8 +14,8 @@ export default function (tableFields) {
14
14
  <div class="hiprint-option-item-label">字段选择</div>
15
15
  <div class="hiprint-option-item-field">
16
16
  <select class="auto-submit">${tableFields.value.map((item) => {
17
- return `<option value="${item}">${item}</option>`;
18
- })}</select>
17
+ return `<option value="${item}">${item}</option>`;
18
+ })}</select>
19
19
  </div>
20
20
  </div>`
21
21
  )),
package/font-size.js CHANGED
@@ -1,6 +1,6 @@
1
- import $ from "jquery";
1
+ import $ from "./libs/jquery";
2
2
  export default (function () {
3
- function t() {
3
+ function t () {
4
4
  this.name = "fontSize"; // 重写的参数 key
5
5
  }
6
6
  // 涉及修改元素样式, 添加一个 css 方法
package/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  export { hiprint, defaultElementTypeProvider, print, print2, usePaper, useScale, useDataSource } from "./hooks/useHiprint";
2
2
 
3
- export { default as jquery } from "jquery";
3
+ export { default as jquery } from "./libs/jquery";
4
4
  export { default as fontSize } from "./font-size";
5
5
  export { default as scale } from "./scale";
6
6
  export { default as zIndex } from "./z-index";
7
7
  export { default as panel } from "./panel";
8
8
 
9
- export function cLog(string, isError = false) {
9
+ export function cLog (string, isError = false) {
10
10
  if (isError) {
11
11
  console.error("%cyhHiprint:%c", "font-size: 16px;font-weight: bold;color: #00ffff", "font-size: 16px;font-weight: bold;color: #ccccc", string);
12
12
  } else {
@@ -35,7 +35,7 @@ const hiprint = ({ code, params, data, isCustom }) => {
35
35
  let windowOpen = window.open(url, "hiprintWindow", `height=${height}, width=1200, top=20, left=${width}, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no`);
36
36
  };
37
37
  export default {
38
- install(app, { router, pinia, isAdmin }) {
38
+ install (app, { router, pinia, isAdmin }) {
39
39
  app.provide("$hiprint", hiprint);
40
40
  if (router) {
41
41
  router.addRoute("Index", {