@cgboiler/biz-basic 1.0.29 → 1.0.31

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/es/index.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export function install(app: any): void;
8
- export const version: "1.0.28";
8
+ export const version: "1.0.30";
9
9
  import RichTextEditor from './rich-text-editor';
10
10
  export { RichTextEditor };
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import RichTextEditor from "./rich-text-editor";
2
- const version = "1.0.28";
2
+ const version = "1.0.30";
3
3
  function install(app) {
4
4
  const components = [
5
5
  RichTextEditor
@@ -1,4 +1,4 @@
1
- import "viewerjs/dist/viewer.css";
1
+ import 'viewerjs/dist/viewer.css';
2
2
  import './index.less';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
@@ -180,7 +180,9 @@ var stdin_default = defineComponent({
180
180
  initEditor();
181
181
  const now = /* @__PURE__ */ new Date();
182
182
  noteId.value = `note-${now.getTime()}`;
183
- saveLoop();
183
+ if (props.editable) {
184
+ saveLoop();
185
+ }
184
186
  nextTick(() => {
185
187
  var _a, _b;
186
188
  const editorElement = (_b = (_a = editor.value) == null ? void 0 : _a.view) == null ? void 0 : _b.dom;
package/lib/index.d.ts CHANGED
@@ -5,6 +5,6 @@ declare namespace _default {
5
5
  }
6
6
  export default _default;
7
7
  export function install(app: any): void;
8
- export const version: "1.0.28";
8
+ export const version: "1.0.30";
9
9
  import RichTextEditor from './rich-text-editor';
10
10
  export { RichTextEditor };
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ __export(stdin_exports, {
36
36
  module.exports = __toCommonJS(stdin_exports);
37
37
  var import_rich_text_editor = __toESM(require("./rich-text-editor"));
38
38
  __reExport(stdin_exports, require("./rich-text-editor"), module.exports);
39
- const version = "1.0.28";
39
+ const version = "1.0.30";
40
40
  function install(app) {
41
41
  const components = [
42
42
  import_rich_text_editor.default
@@ -1,4 +1,4 @@
1
- import "viewerjs/dist/viewer.css";
1
+ import 'viewerjs/dist/viewer.css';
2
2
  import './index.less';
3
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  modelValue: {
@@ -212,7 +212,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
212
212
  initEditor();
213
213
  const now = /* @__PURE__ */ new Date();
214
214
  noteId.value = `note-${now.getTime()}`;
215
- saveLoop();
215
+ if (props.editable) {
216
+ saveLoop();
217
+ }
216
218
  (0, import_vue2.nextTick)(() => {
217
219
  var _a, _b;
218
220
  const editorElement = (_b = (_a = editor.value) == null ? void 0 : _a.view) == null ? void 0 : _b.dom;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgboiler/biz-basic",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",