@opentiny/vue-renderless 3.18.5 → 3.18.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/index.js CHANGED
@@ -237,7 +237,7 @@ const CASCADER = {
237
237
  PropsHover: "hoverThreshold",
238
238
  MenuConnector: "cascader-menu-"
239
239
  };
240
- const version = "3.18.5";
240
+ const version = "3.18.6";
241
241
  const log = (data, type = "log") => {
242
242
  uLog.logger[type](data);
243
243
  };
package/common/runtime.js CHANGED
@@ -22,7 +22,7 @@ import vuePopup from "./deps/vue-popup";
22
22
  import validate from "./validate";
23
23
  import memorize from "./deps/memorize";
24
24
  import * as common from ".";
25
- const version = "3.18.5";
25
+ const version = "3.18.6";
26
26
  const Renderless = {
27
27
  browser,
28
28
  array,
@@ -56,32 +56,33 @@ const betterTable = {
56
56
  color: true
57
57
  }
58
58
  };
59
+ const underline = ["bold", "italic", "underline", "strike"];
60
+ const list = [{ list: "ordered" }, { list: "bullet" }];
61
+ const script = [{ script: "sub" }, { script: "super" }];
62
+ const defaultToolbar = [
63
+ ["undo", "redo", "clean"],
64
+ [
65
+ { font: fontFamilyConfig },
66
+ { size: fontSizeConfig },
67
+ { lineheight: lineHeightConfig },
68
+ { header: [1, 2, 3, 4, 5, 6, false] }
69
+ ],
70
+ underline,
71
+ ["blockquote", "code-block"],
72
+ [{ header: 1 }, { header: 2 }],
73
+ list,
74
+ script,
75
+ [{ indent: "-1" }, { indent: "+1" }],
76
+ [{ direction: "rtl" }],
77
+ [{ color: [] }, { background: [] }],
78
+ [{ align: [] }],
79
+ ["link", "image"],
80
+ ["better-table"],
81
+ ["fullscreen"]
82
+ ];
59
83
  const toolbar = () => {
60
- const underline = ["bold", "italic", "underline", "strike"];
61
- const list = [{ list: "ordered" }, { list: "bullet" }];
62
- const script = [{ script: "sub" }, { script: "super" }];
63
84
  return {
64
- container: [
65
- ["undo", "redo", "clean"],
66
- [
67
- { font: fontFamilyConfig },
68
- { size: fontSizeConfig },
69
- { lineheight: lineHeightConfig },
70
- { header: [1, 2, 3, 4, 5, 6, false] }
71
- ],
72
- underline,
73
- ["blockquote", "code-block"],
74
- [{ header: 1 }, { header: 2 }],
75
- list,
76
- script,
77
- [{ indent: "-1" }, { indent: "+1" }],
78
- [{ direction: "rtl" }],
79
- [{ color: [] }, { background: [] }],
80
- [{ align: [] }],
81
- ["link", "image"],
82
- ["better-table"],
83
- ["fullscreen"]
84
- ]
85
+ container: defaultToolbar
85
86
  };
86
87
  };
87
88
  const mention = (mentionObj) => ({
@@ -290,6 +291,7 @@ const simpleToolbar = [
290
291
  ];
291
292
  export {
292
293
  defaultOption,
294
+ defaultToolbar,
293
295
  iconOption,
294
296
  iconOptionMobileFirst,
295
297
  keyboard,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/vue-renderless",
3
- "version": "3.18.5",
3
+ "version": "3.18.6",
4
4
  "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
5
5
  "author": "OpenTiny Team",
6
6
  "license": "MIT",