|
|
@@ -506,8 +506,6 @@ export default {
|
|
|
this.testDataSetting(),
|
|
|
//重写上传图片空间
|
|
|
this.uploadSetting(),
|
|
|
- //重写字体颜色
|
|
|
- this.textFontColorSetting(),
|
|
|
//自定义元素位置坐标(mm)
|
|
|
this.coordinateMM(),
|
|
|
//自定义元素宽高大小(mm)
|
|
|
@@ -555,13 +553,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
name:'样式',
|
|
|
- options:[
|
|
|
- {
|
|
|
- name:'color',
|
|
|
- after:'letterSpacing',
|
|
|
- hidden:false,
|
|
|
- }
|
|
|
- ]
|
|
|
+ options:[]
|
|
|
},
|
|
|
{
|
|
|
name:'边框',
|
|
|
@@ -923,38 +915,6 @@ 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 : 重写数据源设置
|
|
|
* @author : 张潇木
|
|
|
* @date : 2023/6/21 13:44
|