Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上次提交的文件位置有问题 改了一下 下一版本再合并吧 #124

Merged
merged 4 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@
### 💐 感谢各位贡献者的支持。 🔥

## 0.0.57-beta23(2024-05-17)
<details>
<summary>01. 🌈 新增支持 添加 selectElementsByField 属性,通过传入field的字符串数组选中文本类型的元素</summary>

```js
hiprintTemplate.selectElementsByField(['name'])
hiprintTemplate.selectElementsByField(['name'])
```
![选中field为name的字段](img.png)
![选中field为name的字段](./res/selectElementsByField.png)
</details>

## 0.0.57-beta22(2024-05-13)

<details>
Expand Down
File renamed without changes
11 changes: 10 additions & 1 deletion src/demo/templates/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<script>
import templates from './files'
import templatePreview from './preview'
import printData from "../design/print-data";

export default {
name: "templates",
Expand All @@ -35,6 +34,16 @@ export default {
templates
}
},
computed: {
templates() {
return this.templates.map(template => {
return {
...template,
preview: process.env.NODE_ENV === 'development' ? template.preview : `/vue-plugin-hiprint${template.preview}`
}
})
}
},
mounted() {
},
methods: {
Expand Down