Skip to content

Commit

Permalink
Merge pull request #81 from itlaonong/main
Browse files Browse the repository at this point in the history
  • Loading branch information
CcSimple authored Dec 18, 2023
2 parents a6549ab + 8ed606b commit 58c1d08
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-service": "^4.5.15",
"ant-design-vue": "^1.7.8",
"babel-loader": "^8.1.0",
"bootstrap": "^3.3.7",
"concurrent-tasks": "^1.0.7",
"copy-webpack-plugin": "^5.1.2",
Expand Down
24 changes: 23 additions & 1 deletion src/hiprint/hiprint.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3983,6 +3983,27 @@ var hiprint = function (t) {
this.target.remove();
}, t;
}(),
borderRadius = function () {
function t() {
this.name = "borderRadius";
}

return t.prototype.css = function (t, e) {
if (t && t.length) {
if (e) return t.css('border-raduis', e);
}
return null;
}, t.prototype.createTarget = function () {
return this.target = $(`<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n ${i18n.__('边框圆角')}\n </div>\n <div class="hiprint-option-item-field">\n <input type="text" class="auto-submit"/>\n </div>\n </div>`), this.target;
}, t.prototype.getValue = function () {
var t = this.target.find("input").val();
if (t) return t;
}, t.prototype.setValue = function (t) {
this.target.find("input").val(t);
}, t.prototype.destroy = function () {
this.target.remove();
}, t;
}(),
K = function () {
function t() {
this.name = "optionsGroup";
Expand Down Expand Up @@ -5149,7 +5170,7 @@ var hiprint = function (t) {
t.init(), t.printElementOptionItems[e.name] = e;
}, t.getItem = function (e) {
return t.init(), t.printElementOptionItems[e];
}, t._printElementOptionItems = [new fontFamily(), new r(), new a(), new p(), new i(), new s(), new l(), new pt(), new u(), new d(), new c(), new h(), new f(), new g(), new m(), new d2(), new c2(), new v(), new y(), new b(), new E(), new qrCodeLevel(), new T(), new P(), new _(), new w(), new x(), new coordinate(), new widthHeight(), new C(), new imageFit(), new O(), new H(), new D(), new paperNumberContinue(), new watermarkOptions(), new I(), new R(), new pageBreak(), new M(), new M2(), new S(), new B(), new F(), new L(), new A(), new z(), new k(), new st(), new N(), new V(), new W(), new j(), new U(), new zIndex(), new K(), new G(), new q(), new X(), new Y(), new Q(), new J(), new Z(), new tt(), new et(), new nt(), new it(), new ot(),new textWrap(), new at(), new lt(), new panelLayoutOptions(), new ut(), new ith(), new dt(), new ct(), new ht(), new ft(), new gt(), new mt(), new rowcolumns(), new rowsColumnsMergeClean(), new groupFieldsFormatter(), new groupFormatter(), new groupFooterFormatter(), new vt(), new yt(), new bt(), new Tt(), new Et(), new Pt(), new stylerHeader(), new renderFormatter(), new _t(), new wt(), new maxRows(), new xt(), new tableColumnH(), new tableE(), new tableQRCodeLevel(), new tablept(), new tableSummaryTitle(), new tableSummaryText(), new tableSummaryColspan(), new tableSummary(), new tableSummaryAlign(), new tableSummaryNumFormat(), new tableSummaryFormatter(), new upperCase(), new barcodeType(), new qrcodeType()], t;
}, t._printElementOptionItems = [new fontFamily(), new r(), new a(), new p(), new i(), new s(), new l(), new pt(), new u(), new d(), new c(), new h(), new f(), new g(), new m(), new d2(), new c2(), new v(), new y(), new b(), new E(), new qrCodeLevel(), new T(), new P(), new _(), new w(), new x(), new coordinate(), new widthHeight(), new C(), new imageFit(), new O(), new H(), new D(), new paperNumberContinue(), new watermarkOptions(), new I(), new R(), new pageBreak(), new M(), new M2(), new S(), new B(), new F(), new L(), new A(), new z(), new k(), new st(), new N(), new V(), new W(), new j(), new U(), new borderRadius(), new zIndex(), new K(), new G(), new q(), new X(), new Y(), new Q(), new J(), new Z(), new tt(), new et(), new nt(), new it(), new ot(),new textWrap(), new at(), new lt(), new panelLayoutOptions(), new ut(), new ith(), new dt(), new ct(), new ht(), new ft(), new gt(), new mt(), new rowcolumns(), new rowsColumnsMergeClean(), new groupFieldsFormatter(), new groupFormatter(), new groupFooterFormatter(), new vt(), new yt(), new bt(), new Tt(), new Et(), new Pt(), new stylerHeader(), new renderFormatter(), new _t(), new wt(), new maxRows(), new xt(), new tableColumnH(), new tableE(), new tableQRCodeLevel(), new tablept(), new tableSummaryTitle(), new tableSummaryText(), new tableSummaryColspan(), new tableSummary(), new tableSummaryAlign(), new tableSummaryNumFormat(), new tableSummaryFormatter(), new upperCase(), new barcodeType(), new qrcodeType()], t;
}();
}, function (t, e, n) {
"use strict";
Expand Down Expand Up @@ -8181,6 +8202,7 @@ var hiprint = function (t) {
if (n.length) i.find("img").css('cssText', `width:100%;height:100%;content:url("${n}")!important`)
else i.find("img").css('cssText', 'width:100%;height:100%;')
if (this.options.fit) i.find("img").css("object-fit", this.options.fit);
if (this.options.borderRadius) i.find("img").css("border-radius", this.options.borderRadius);
}, e.prototype.getHtml = function (t, e, n) {
return this.getHtml2(t, e, n);
}, e;
Expand Down
8 changes: 8 additions & 0 deletions src/hiprint/hiprint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@
name: 'zIndex',
hidden: false
},
{
name: 'borderRadius',
hidden: false
},
]
},
{
Expand Down Expand Up @@ -518,6 +522,10 @@
name: 'fit',
hidden: false
},
{
name: 'borderRadius',
hidden: false
},
{
name: 'coordinate',
hidden: false
Expand Down

0 comments on commit 58c1d08

Please sign in to comment.