|
@@ -506,6 +506,8 @@ export default {
|
|
|
this.testDataSetting(),
|
|
this.testDataSetting(),
|
|
|
//重写上传图片空间
|
|
//重写上传图片空间
|
|
|
this.uploadSetting(),
|
|
this.uploadSetting(),
|
|
|
|
|
+ //重写字体颜色
|
|
|
|
|
+ this.textFontColorSetting(),
|
|
|
//自定义元素位置坐标(mm)
|
|
//自定义元素位置坐标(mm)
|
|
|
this.coordinateMM(),
|
|
this.coordinateMM(),
|
|
|
//自定义元素宽高大小(mm)
|
|
//自定义元素宽高大小(mm)
|
|
@@ -553,7 +555,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name:'样式',
|
|
name:'样式',
|
|
|
- options:[]
|
|
|
|
|
|
|
+ options:[
|
|
|
|
|
+ {
|
|
|
|
|
+ name:'color',
|
|
|
|
|
+ after:'letterSpacing',
|
|
|
|
|
+ hidden:false,
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name:'边框',
|
|
name:'边框',
|
|
@@ -915,6 +923,38 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
|
+ * @desc : 重写字体颜色设置(默认黑色)
|
|
|
|
|
+ * @author : 张潇木
|
|
|
|
|
+ * @date : 2024/6/11 13:44
|
|
|
|
|
+ */
|
|
|
|
|
+ textFontColorSetting(){
|
|
|
|
|
+ function t() {
|
|
|
|
|
+ this.name = "color";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return t.prototype.css = function (t, e) {
|
|
|
|
|
+ if (t && t.length) {
|
|
|
|
|
+ if (e) return t.css("color", e), "color:" + e;
|
|
|
|
|
+ t[0].style.color = "";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }, t.prototype.createTarget = function () {
|
|
|
|
|
+ return this.target = $(' <div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 字体颜色\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()|| "#000000";
|
|
|
|
|
+ if (t) return t.toString();
|
|
|
|
|
+ }, t.prototype.setValue = function (t) {
|
|
|
|
|
+ this.target.find("input").minicolors({
|
|
|
|
|
+ defaultValue: t || "#000000",
|
|
|
|
|
+ theme: "bootstrap"
|
|
|
|
|
+ }), this.target.find("input").val(t)|| "#000000";
|
|
|
|
|
+ }, t.prototype.destroy = function () {
|
|
|
|
|
+ this.target.remove();
|
|
|
|
|
+ }, t;
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
* @desc : 重写数据源设置
|
|
* @desc : 重写数据源设置
|
|
|
* @author : 张潇木
|
|
* @author : 张潇木
|
|
|
* @date : 2023/6/21 13:44
|
|
* @date : 2023/6/21 13:44
|