@qikdev/vue-ui 0.2.252 → 0.2.254

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/dist/lib.umd.js CHANGED
@@ -7,7 +7,7 @@
7
7
  t((V["@qikdev/vue-ui"] = {}), V.Vue, V["@qikdev/sdk"]));
8
8
  })(this, function (V, t, Or) {
9
9
  "use strict";
10
- const oc = "0.2.252";
10
+ const oc = "0.2.254";
11
11
  class st extends Error {}
12
12
  class rc extends st {
13
13
  constructor(n) {
@@ -8883,7 +8883,7 @@
8883
8883
  }
8884
8884
  const Qi = g(a_, [
8885
8885
  ["render", s_],
8886
- ["__scopeId", "data-v-df62da5c"],
8886
+ ["__scopeId", "data-v-a19aee17"],
8887
8887
  ]),
8888
8888
  bF = "",
8889
8889
  c_ = {
@@ -23671,15 +23671,8 @@
23671
23671
  components: {},
23672
23672
  methods: {
23673
23673
  injectToken(e) {
23674
- const n = this.editor;
23675
- if (!n) return;
23676
- const o = n.session;
23677
- if (!o) return;
23678
- const l = this.editor.selection.getRange();
23679
- l && (l.start, l.end, o.replace(l, e), n.focus());
23680
- },
23681
- editorInit(e) {
23682
- this.editor = e;
23674
+ const n = this.$refs.editor;
23675
+ n && n.inject(e);
23683
23676
  },
23684
23677
  focussed() {
23685
23678
  const e = this;
@@ -23881,13 +23874,19 @@
23881
23874
  t.createVNode(
23882
23875
  d,
23883
23876
  {
23877
+ ref: "editor",
23884
23878
  syntax: o.lang,
23879
+ onBlur: r.blurred,
23880
+ onFocus: r.focussed,
23881
+ readonly: o.readonly,
23882
+ class: "editor-wrap",
23885
23883
  modelValue: i.model,
23886
23884
  "onUpdate:modelValue": n[1] || (n[1] = (f) => (i.model = f)),
23885
+ style: { height: "300px" },
23887
23886
  },
23888
23887
  null,
23889
23888
  8,
23890
- ["syntax", "modelValue"],
23889
+ ["syntax", "onBlur", "onFocus", "readonly", "modelValue"],
23891
23890
  ),
23892
23891
  ]),
23893
23892
  _: 1,
@@ -23897,7 +23896,7 @@
23897
23896
  }
23898
23897
  const ss = g(n0, [
23899
23898
  ["render", l0],
23900
- ["__scopeId", "data-v-fad7a85e"],
23899
+ ["__scopeId", "data-v-661639aa"],
23901
23900
  ]),
23902
23901
  dM = "",
23903
23902
  i0 = {