vg-print 1.0.204 → 1.0.206

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/README.md CHANGED
@@ -28,6 +28,7 @@ import { createApp } from 'vue'
28
28
  import App from './App.vue'
29
29
  import HiprintDesigner from 'vg-print'
30
30
  import 'vg-print/style.css'
31
+ import 'element-plus/dist/index.css'
31
32
 
32
33
  const app = createApp(App)
33
34
  app.use(HiprintDesigner, { name: '$hiPrint', autoConnect: true })
@@ -266,8 +267,10 @@ await tpl.toImage({ name: 'i不简' }, { isDownload: true, type: 'image/jpeg', p
266
267
  - 纸张列表可参考 A/B 系列(来自 sv-print 文档)
267
268
  - 可通过 `hiprint.setConfig` 与组件插槽定制 UI/交互
268
269
  - 报错 `defaultElementTypeProvider(...) is not a constructor`:请使用 `new defaultElementTypeProvider()`,不要先调用再 `new`
269
- - 导入样式 `import 'vg-print/dist/style.css'` 报错:确认包已构建且 `dist/style.css` 存在;若从本地/仓库直接安装,先执行 `npm run build:lib` 或依赖包的 `prepare`
270
+ - 导入样式 `import 'vg-print/style.css'` 报错:确认包已构建且 `node_modules/vg-print/dist/style.css` 存在;若从本地/仓库直接安装,先执行 `npm run build:lib` 或依赖包的 `prepare`
270
271
  - WebSocket `TransportError`:这是自动连接打印客户端失败的提示;如不使用客户端,安装时传入 `{ autoConnect: false }` 或在运行期调用 `disAutoConnect()`
272
+ - 无样式/不可拖拽:请确保在应用入口已 `import 'vg-print/style.css'`,且安装了 `jquery` 依赖;如果使用 `pnpm`,也要确认 `jquery` 没被去重导致未被实际安装
273
+ - 组件按钮/弹窗无样式:请在入口额外引入 Element Plus 样式 `import 'element-plus/dist/index.css'`
271
274
 
272
275
  ## 打包与发布
273
276