Bläddra i källkod

增加透明颜色

fuyu 5 år sedan
förälder
incheckning
a79f8d2489

+ 13 - 0
shop/static/manager/src.b/components/page/EditNew.vue

@@ -138,6 +138,19 @@ export default {
     editor.customConfig.onchange = function(html) {
       that.html = html;
     };
+    editor.customConfig.colors = [
+        '#00000000',
+        '#000000',
+        '#eeece0',
+        '#1c487f',
+        '#4d80bf',
+        '#c24f4a',
+        '#8baa4a',
+        '#7b5ba1',
+        '#46acc8',
+        '#f9963b',
+        '#ffffff'
+    ];
     editor.create();
     this.editor = editor;
     console.log(id);

+ 13 - 0
shop/static/manager/src.b/components/page/config/EditShopConfig.vue

@@ -45,6 +45,19 @@ export default {
     var that = this;
     var editor = new E("#bar", "#editor");
     editor.customConfig.uploadImgShowBase64 = true;
+    editor.customConfig.colors = [
+        '#00000000',
+        '#000000',
+        '#eeece0',
+        '#1c487f',
+        '#4d80bf',
+        '#c24f4a',
+        '#8baa4a',
+        '#7b5ba1',
+        '#46acc8',
+        '#f9963b',
+        '#ffffff'
+    ];
     //editor.customConfig.uploadImgServer = process.env.SERVER_PATH + 'editupload'
     //editor.customConfig.uploadFileName = 'file'
     editor.customConfig.onchange = function(html) {

+ 13 - 0
shop/static/manager/src.b/components/page/equipment/EditEquipment.vue

@@ -125,6 +125,19 @@ export default {
     editor.customConfig.onchange = function(html) {
       that.html = html;
     };
+    editor.customConfig.colors = [
+        '#00000000',
+        '#000000',
+        '#eeece0',
+        '#1c487f',
+        '#4d80bf',
+        '#c24f4a',
+        '#8baa4a',
+        '#7b5ba1',
+        '#46acc8',
+        '#f9963b',
+        '#ffffff'
+    ];
     editor.create();
     this.editor = editor;
     var id = this.$route.query.id;

+ 13 - 0
shop/static/manager/src/components/page/EditNew.vue

@@ -138,6 +138,19 @@ export default {
     editor.customConfig.onchange = function(html) {
       that.html = html;
     };
+    editor.customConfig.colors = [
+        '#00000000',
+        '#000000',
+        '#eeece0',
+        '#1c487f',
+        '#4d80bf',
+        '#c24f4a',
+        '#8baa4a',
+        '#7b5ba1',
+        '#46acc8',
+        '#f9963b',
+        '#ffffff'
+    ];
     editor.create();
     this.editor = editor;
     console.log(id);

+ 13 - 0
shop/static/manager/src/components/page/config/EditShopConfig.vue

@@ -50,6 +50,19 @@ export default {
     editor.customConfig.onchange = function(html) {
       that.value = html;
     };
+    editor.customConfig.colors = [
+        '#00000000',
+        '#000000',
+        '#eeece0',
+        '#1c487f',
+        '#4d80bf',
+        '#c24f4a',
+        '#8baa4a',
+        '#7b5ba1',
+        '#46acc8',
+        '#f9963b',
+        '#ffffff'
+    ];
     editor.create();
 
     var key = this.$route.query.key;

+ 13 - 0
shop/static/manager/src/components/page/equipment/EditEquipment.vue

@@ -125,6 +125,19 @@ export default {
     editor.customConfig.onchange = function(html) {
       that.html = html;
     };
+    editor.customConfig.colors = [
+        '#00000000',
+        '#000000',
+        '#eeece0',
+        '#1c487f',
+        '#4d80bf',
+        '#c24f4a',
+        '#8baa4a',
+        '#7b5ba1',
+        '#46acc8',
+        '#f9963b',
+        '#ffffff'
+    ];
     editor.create();
     this.editor = editor;
     var id = this.$route.query.id;