From da3909bf7724cafd1f8c8c6df82f3357580f5ab7 Mon Sep 17 00:00:00 2001 From: wxik_noohle Date: Tue, 5 Jan 2021 16:04:01 +0800 Subject: [PATCH] publish 1.6.2 --- examples/src/example.js | 39 +-- index.d.ts | 508 ++++++++++++++++++++-------------------- package.json | 2 +- 3 files changed, 284 insertions(+), 265 deletions(-) diff --git a/examples/src/example.js b/examples/src/example.js index e8bd858..7dd5b42 100644 --- a/examples/src/example.js +++ b/examples/src/example.js @@ -180,7 +180,7 @@ class Example extends React.Component { createContentStyle(theme) { // Can be selected for more situations (cssText or contentCSSText). const contentStyle = { - backgroundColor: '#000033', + backgroundColor: '#2e3847', color: '#fff', placeholderColor: 'gray', // cssText: '#editor {background-color: #f3f3f3}', // initial valid @@ -251,10 +251,10 @@ class Example extends React.Component { let that = this; const {contentStyle, theme, emojiVisible, disabled} = that.state; const {backgroundColor, color, placeholderColor} = contentStyle; - const themeBg = {backgroundColor}; + const dark = theme === 'dark'; return ( - +