vg-print-vue2 1.0.301 → 1.0.303
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.en.md +15 -0
- package/README.md +235 -274
- package/package.json +6 -2
- package/dist/Content/assets/hi.png +0 -0
- package/dist/css/print-lock.css +0 -297
- package/dist/favicon.ico +0 -0
- package/dist/purify.es-3bba3893.mjs +0 -988
- package/dist/style.css +0 -4373
- package/dist/vg-print-vue2.es.js +0 -141623
package/README.en.md
CHANGED
|
@@ -48,6 +48,21 @@ import { setSocketIo } from 'vg-print'
|
|
|
48
48
|
setSocketIo(io)
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
If you need the Data Source feature, install the optional dependency in your host app:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
npm i axios
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
In your main entry file (e.g., `main.ts`):
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
import axios from 'axios'
|
|
61
|
+
import { setHttpClient } from 'vg-print-vue2'
|
|
62
|
+
|
|
63
|
+
setHttpClient(axios)
|
|
64
|
+
```
|
|
65
|
+
|
|
51
66
|
## Header Component
|
|
52
67
|
|
|
53
68
|
- Used for the top area of the page, with built-in common operation buttons and printer settings; supports customization via `props` and `slots`.
|