@zkwq/business 0.1.99 → 0.2.1

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/index.js CHANGED
@@ -1240,7 +1240,7 @@ var Af = function() {
1240
1240
  }, "textarea", e.$attrs, !1)), e.showLabel && e.placeholder ? s("div", {
1241
1241
  staticClass: "base-input__placeholder",
1242
1242
  class: {
1243
- "is-active": e.focused || !(e.value == null || e.value === null || e.value === "")
1243
+ "is-active": e.focused || e.tags.length > 0 || !(e.value == null || e.value === null || e.value === "")
1244
1244
  }
1245
1245
  }, [e._v(e._s(e.placeholder))]) : e._e(), e.isWordLimitVisible && e.type === "textarea" ? s("span", {
1246
1246
  staticClass: "base-input__count"
@@ -1330,6 +1330,10 @@ const Of = {
1330
1330
  enableFocusClass: {
1331
1331
  type: Boolean,
1332
1332
  default: !0
1333
+ },
1334
+ tags: {
1335
+ type: Array,
1336
+ default: () => []
1333
1337
  }
1334
1338
  },
1335
1339
  computed: {
@@ -15695,7 +15699,8 @@ var zx = function() {
15695
15699
  "validate-event": !1,
15696
15700
  tabindex: e.multiple && e.filterable ? "-1" : null,
15697
15701
  "enable-focus-class": !1,
15698
- "show-label": e.showLabel
15702
+ "show-label": e.showLabel,
15703
+ tags: e.selected
15699
15704
  },
15700
15705
  on: {
15701
15706
  focus: e.handleFocus,
@@ -15964,7 +15969,7 @@ const Wx = {
15964
15969
  this.cachedPlaceHolder = this.currentPlaceholder = e;
15965
15970
  },
15966
15971
  value(e, t) {
15967
- this.multiple && (this.resetInputHeight(), e && e.length > 0 || this.$refs.input && this.query !== "" ? this.currentPlaceholder = "" : this.currentPlaceholder = this.cachedPlaceHolder, this.filterable && !this.reserveKeyword && (this.query = "", this.handleQueryChange(this.query))), this.setSelected(), this.filterable && !this.multiple && (this.inputLength = 20), ri(e, t) || this.dispatch("BaseFormItem", "base.form.change", e);
15972
+ this.multiple && (this.resetInputHeight(), !this.showLabel && (e && e.length > 0 || this.$refs.input && this.query !== "") ? this.currentPlaceholder = "" : this.currentPlaceholder = this.cachedPlaceHolder, this.filterable && !this.reserveKeyword && (this.query = "", this.handleQueryChange(this.query))), this.setSelected(), this.filterable && !this.multiple && (this.inputLength = 20), ri(e, t) || this.dispatch("BaseFormItem", "base.form.change", e);
15968
15973
  },
15969
15974
  visible(e) {
15970
15975
  e ? (this.broadcast("BaseSelectDropdown", "updatePopper"), this.filterable && (this.query = this.remote ? "" : this.selectedLabel, this.handleQueryChange(this.query), this.multiple ? this.$refs.input.focus() : (this.remote || (this.broadcast("BaseOption", "queryChange", ""), this.broadcast("BaseOptionGroup", "queryChange")), this.selectedLabel && (this.currentPlaceholder = this.selectedLabel, this.selectedLabel = "")))) : (this.broadcast("BaseSelectDropdown", "destroyPopper"), this.$refs.input && this.$refs.input.blur(), this.query = "", this.previousQuery = null, this.selectedLabel = "", this.inputLength = 20, this.menuVisibleOnFocus = !1, this.resetHoverIndex(), this.$nextTick(() => {