@worm-vue3-print/common 1.4.0-beta.0 → 1.4.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/README.md +9 -10
- package/dist/browser-bundle.d.ts +1 -1
- package/dist/common.js +49 -42
- package/dist/core/default-template.d.ts +1 -1
- package/dist/core/format.d.ts +1 -1
- package/dist/core/h.d.ts +1 -1
- package/dist/core/icons.d.ts +1 -1
- package/dist/core/store.d.ts +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +390 -383
- package/dist/print-designer.d.ts +1 -1
- package/dist/shell/binding.d.ts +1 -1
- package/dist/shell/canvas.d.ts +1 -1
- package/dist/shell/code.d.ts +1 -1
- package/dist/shell/color-picker.d.ts +1 -1
- package/dist/shell/controls.d.ts +1 -1
- package/dist/shell/crop-anchor.d.ts +1 -1
- package/dist/shell/elements.d.ts +1 -1
- package/dist/shell/expression-editor.d.ts +1 -1
- package/dist/shell/flow-list.d.ts +1 -1
- package/dist/shell/font-select.d.ts +1 -1
- package/dist/shell/format-bar.d.ts +1 -1
- package/dist/shell/help-content/changelog.d.ts +1 -1
- package/dist/shell/help-content/faq.d.ts +1 -1
- package/dist/shell/help-content/features.d.ts +1 -1
- package/dist/shell/help-content/getting-started.d.ts +1 -1
- package/dist/shell/help-content/index.d.ts +1 -1
- package/dist/shell/help-content/shortcuts.d.ts +1 -1
- package/dist/shell/help-modal.d.ts +1 -1
- package/dist/shell/page-extras.d.ts +1 -1
- package/dist/shell/panels.d.ts +1 -1
- package/dist/shell/prop-group.d.ts +1 -1
- package/dist/shell/property-panel.d.ts +1 -1
- package/dist/shell/property-search.d.ts +1 -1
- package/dist/shell/ruler.d.ts +1 -1
- package/dist/shell/table-props.d.ts +1 -1
- package/dist/shell/table.d.ts +1 -1
- package/dist/shell/toolbar-overflow.d.ts +1 -1
- package/dist/shell/toolbar.d.ts +1 -1
- package/dist/shell/watermark.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# @worm-vue3-print/common
|
|
2
2
|
|
|
3
|
-
> ⚠️
|
|
4
|
-
>
|
|
5
|
-
> 本包尚未定版,接口与产物形态仍可能调整,**不建议应用到生产环境**;
|
|
6
|
-
> Vue 3 项目请使用成熟方案 `@worm-vue3-print/canvas`,本包目前仅供评估与非生产环境的集成验证。
|
|
3
|
+
> ⚠️ **实验性质(按正式版本号发布)**:本包已发布到 npm 的 `latest`(当前 `1.4.1`),但接口与产物形态仍可能调整,
|
|
4
|
+
> **不建议应用到生产环境**;Vue 3 项目请使用成熟方案 `@worm-vue3-print/canvas`,本包面向 Vue 3 / Vue 2 / React / jQuery 等非 Vue3 或跨框架宿主。
|
|
7
5
|
|
|
8
6
|
打印模板可视化设计器的 **通用宿主适配形态**:任意框架、或完全没有框架的宿主都能直接接入,
|
|
9
7
|
实现为零框架原生 Custom Element + Shadow DOM,**不依赖 Vue / React 等任何框架运行时**,
|
|
@@ -18,19 +16,20 @@
|
|
|
18
16
|
## 安装
|
|
19
17
|
|
|
20
18
|
```bash
|
|
21
|
-
npm i @worm-vue3-print/common
|
|
19
|
+
npm i @worm-vue3-print/common @worm-vue3-print/core
|
|
22
20
|
```
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
`common` 与主线同号发布正式版,安装直接取 `latest`(当前 `1.4.1`),不需要 `@next`;`core` 装同版本即可(本包依赖 `^1.4.1`),出纸链路也要直接用它。包虽按正式版本号发布,但仍是**实验性质**,不建议用于生产。
|
|
23
|
+
|
|
24
|
+
本页包含三种 NPM 宿主的最小接入示例:[Vue 3](#vue-3) · [Vue 2.7](#vue-27) · [React 18](#react-18);无打包器宿主见下文「浏览器直挂」。
|
|
26
25
|
|
|
27
26
|
四种宿主形态各自的依赖与插件(本包零框架运行时,宿主框架按需装):
|
|
28
27
|
|
|
29
28
|
| 宿主 | 安装 | 框架插件 |
|
|
30
29
|
|---|---|---|
|
|
31
|
-
| Vue 3 | `npm i @worm-vue3-print/common
|
|
32
|
-
| Vue 2.7 | `npm i @worm-vue3-print/common
|
|
33
|
-
| React 18 | `npm i @worm-vue3-print/common
|
|
30
|
+
| Vue 3 | `npm i @worm-vue3-print/common @worm-vue3-print/core vue` | `@vitejs/plugin-vue`,须配 `isCustomElement` |
|
|
31
|
+
| Vue 2.7 | `npm i @worm-vue3-print/common @worm-vue3-print/core vue@2.7` | `@vitejs/plugin-vue2` |
|
|
32
|
+
| React 18 | `npm i @worm-vue3-print/common @worm-vue3-print/core react react-dom` | `@vitejs/plugin-react`,无需自定义元素配置 |
|
|
34
33
|
| jQuery / 无打包器 | 取本包 `dist/common.js` + `dist/common.css` 直挂 | 无,见下节 |
|
|
35
34
|
|
|
36
35
|
## 浏览器直挂(jQuery / 无打包器宿主)
|
package/dist/browser-bundle.d.ts
CHANGED