让企业管理更智慧、更快捷

Skip to content
源代码提交(5)
## [1.0.22](http://git.leadwaycloud.com/package/lwc-ui-components/compare/v1.0.21...v1.0.22) (2023-06-25)
## [1.0.21](http://git.leadwaycloud.com/package/lwc-ui-components/compare/v1.0.20...v1.0.21) (2023-03-31)
## [1.0.20](http://git.leadwaycloud.com/package/lwc-ui-components/compare/v1.0.19...v1.0.20) (2023-03-31)
......
{
"name": "@package/lwc-ui-components",
"version": "1.0.22",
"version": "1.0.23",
"private": false,
"description": "立威云UI组件库",
"author": "",
......
......@@ -8,6 +8,17 @@
`新特性`
`非兼容性更新`
---
### **v1.0.22 20230625**
#### 新增
- 新增 card 组件 有图片的统一增加imageProps图片props参数
#### 优化
- 优化 lwc-data-displat-badge-text组件和lwc-tags-basic组件未找到对应值组件显示问题
---
### **v1.0.21 20230331**
......
.ql-snow .ql-picker.ql-lineheight .ql-picker-label::before {
content: '行高';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='1']::before {
content: '1';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='1.5']::before {
content: '1.5';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='1.75']::before {
content: '1.75';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='2']::before {
content: '2';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='3']::before {
content: '3';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='4']::before {
content: '4';
}
.ql-snow .ql-picker.ql-lineheight .ql-picker-item[data-value='5']::before {
content: '5';
}
.ql-snow .ql-picker.ql-lineheight {
width: 70px;
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ import { quillEditor, Quill } from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import './custom.css'
import LwcUploadImage from '../../../upload/image/src/index';
import { Video } from '../quill-video';
export default {
......@@ -43,7 +44,8 @@ export default {
[{ 'font': [] }],
[{ 'align': [] }],
['clean'],
['link', 'video', 'image', 'imageUrl']
['link', 'video', 'image', 'imageUrl'],
[{ lineheight: ['initial', '1', '1.5', '1.75', '2', '3', '4', '5'] }]
],
},
placeholder: ''
......@@ -59,6 +61,14 @@ export default {
this.$set(option.modules.toolbar, "handlers", {
imageUrl: this.imageHandler
})
this.$set(option.modules.toolbar, "handlers", {
lineheight: (value) => {
if (value) {
let quill = this.$refs['quill-editor'].quill;
quill.format("lineHeight", value)
}
}
})
if(this.customUpload) {
toolbar.push(["uploadfile"])
this.$set(option.modules.toolbar.handlers, "uploadfile", () => {})
......@@ -100,6 +110,15 @@ export default {
}
Quill.register(Link, true);
Quill.register({ 'formats/video': Video }, true);
},
initLineHeight() {
const Parchment = Quill.import("parchment");
class lineHeightAttributor extends Parchment.Attributor.Style { }
const lineHeightStyle = new lineHeightAttributor("lineHeight", "line-height", {
scope: Parchment.Scope.INLINE,
whitelist: ["1", "1.5", "1.75", "2", "3", "4", "5"]
});
Quill.register({ "formats/lineHeight": lineHeightStyle }, true);
}
},
created() {
......@@ -153,11 +172,11 @@ export default {
quill.container.style.height = self.height
self.$emit("ready", quill)
self.initLink()
self.initLineHeight()
if(self.customUpload) self.initUploadFile(quill)
}
}
})
]);
}
}
}
\ No newline at end of file
......@@ -102,6 +102,7 @@ function renderModel(h, vm) {
// 确认事件
confirm: () => {
vm.initData(vm.multipleList)
vm.$emit("selectList", vm.multipleList)
vm.$emit("update:value", vm.type === "obj" ? vm.multipleList : vm.multipleValue)
},
show: ({ $modal }) => {
......
......@@ -253,6 +253,7 @@ function selectRow({ vm, checked, toggle, row, $grid }) {
}
vm.$emit("select", row)
$grid.setCheckboxRow(row, toggle ? selectIndex < 0 : checked)
vm.$emit("selectList", vm.selectList)
vm.$emit("update:value", vm.type === "obj" ? JSON.parse(JSON.stringify(vm.selectList)) : vm.selectValue)
}
......