@blueking/ai-blueking 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -21,6 +21,7 @@ npm i @blueking/ai-blueking
21
21
  :position-limit="positionLimit"
22
22
  :prompts="prompts"
23
23
  :size-limit="sizeLimit"
24
+ :start-position="startPosition"
24
25
  @choose-prompt="handleChoosePrompt"
25
26
  @clear="handleClear"
26
27
  @close="handleClose"
@@ -97,6 +98,10 @@ npm i @blueking/ai-blueking
97
98
  height: 500,
98
99
  width: 294,
99
100
  };
101
+ const startPosition = {
102
+ right: 0,
103
+ left: window.innerWidth - sizeLimit.width,
104
+ };
100
105
 
101
106
  const handleClear = () => {
102
107
  console.log('trigger clear');
@@ -135,6 +140,7 @@ npm i @blueking/bkui-library
135
140
  :position-limit="positionLimit"
136
141
  :prompts="prompts"
137
142
  :size-limit="sizeLimit"
143
+ :start-position="startPosition"
138
144
  @choose-prompt="handleChoosePrompt"
139
145
  @clear="handleClear"
140
146
  @close="handleClose"
@@ -206,6 +212,10 @@ npm i @blueking/bkui-library
206
212
  height: 500,
207
213
  width: 294,
208
214
  },
215
+ startPosition: {
216
+ right: 0,
217
+ left: window.innerWidth - 294,
218
+ },
209
219
  };
210
220
  },
211
221
  method: {
@@ -16731,10 +16731,10 @@ const ice = /* @__PURE__ */ Lo(oce), sce = "data:image/png;base64,iVBORw0KGgoAAA
16731
16731
  var F, E, S, D;
16732
16732
  const _ = (J, ee) => J === void 0 ? ee : J;
16733
16733
  return {
16734
- top: _((F = n.startPosition) == null ? void 0 : F.top, i.height - n.sizeLimit.height - 100),
16734
+ top: _((F = n.startPosition) == null ? void 0 : F.top, i.height - n.sizeLimit.height),
16735
16735
  bottom: _((E = n.startPosition) == null ? void 0 : E.bottom, 0),
16736
16736
  left: _((S = n.startPosition) == null ? void 0 : S.left, 0),
16737
- right: _((D = n.startPosition) == null ? void 0 : D.right, i.width - n.sizeLimit.width - 270)
16737
+ right: _((D = n.startPosition) == null ? void 0 : D.right, i.width - n.sizeLimit.width)
16738
16738
  };
16739
16739
  }, c = $n(a()), l = fi(() => c.value.top <= n.positionLimit.top && c.value.bottom <= n.positionLimit.bottom), u = (_) => {
16740
16740
  s.isMove = !0, s.type = "move", s.clientX = _.clientX, s.clientY = _.clientY;
@@ -16977,7 +16977,7 @@ const ice = /* @__PURE__ */ Lo(oce), sce = "data:image/png;base64,iVBORw0KGgoAAA
16977
16977
  /* STYLE */
16978
16978
  ));
16979
16979
  }
16980
- }), Ece = /* @__PURE__ */ wc(Dce, [["__scopeId", "data-v-59951cc0"]]), Pce = /* @__PURE__ */ Mo({
16980
+ }), Ece = /* @__PURE__ */ wc(Dce, [["__scopeId", "data-v-16343dd3"]]), Pce = /* @__PURE__ */ Mo({
16981
16981
  __name: "ai-blueking",
16982
16982
  props: {
16983
16983
  messages: {},
@@ -17065,7 +17065,7 @@ const _ce = {
17065
17065
  },
17066
17066
  ...this.$attrs
17067
17067
  };
17068
- return (this.headBackground || t.headBackground) && (r.headBackground = this.headBackground || t.headBackground), (this.background || t.background) && (r.background = this.background || t.background), (this.positionLimit || t.positionLimit) && (r.positionLimit = this.positionLimit || t.positionLimit), (this.sizeLimit || t.sizeLimit) && (r.sizeLimit = this.sizeLimit || t.sizeLimit), (this.userPhoto || t.userPhoto) && (r.userPhoto = this.userPhoto || t.userPhoto), (this.logo || t.logo) && (r.logo = this.logo || t.logo), tg(Pce, r);
17068
+ return (this.headBackground || t.headBackground) && (r.headBackground = this.headBackground || t.headBackground), (this.background || t.background) && (r.background = this.background || t.background), (this.positionLimit || t.positionLimit) && (r.positionLimit = this.positionLimit || t.positionLimit), (this.sizeLimit || t.sizeLimit) && (r.sizeLimit = this.sizeLimit || t.sizeLimit), (this.userPhoto || t.userPhoto) && (r.userPhoto = this.userPhoto || t.userPhoto), (this.logo || t.logo) && (r.logo = this.logo || t.logo), (this.startPosition || t.startPosition) && (r.startPosition = this.startPosition || t.startPosition), tg(Pce, r);
17069
17069
  }
17070
17070
  }), this.unWatchStack = Object.keys(this.$props).map((r) => this.$watch(r, (o) => {
17071
17071
  n[r] = o, n.$forceUpdate();
@@ -17122,8 +17122,7 @@ const _ce = {
17122
17122
  },
17123
17123
  startPosition: {
17124
17124
  default: () => ({
17125
- height: 500,
17126
- width: 294
17125
+ left: 0
17127
17126
  }),
17128
17127
  type: Object
17129
17128
  },