@factoringplus/pl-components-pack-v3 0.4.72-pre-2 → 0.4.72-pre-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.
|
@@ -37597,13 +37597,13 @@ const _sfc_main$n = {
|
|
|
37597
37597
|
props: {
|
|
37598
37598
|
rules: {
|
|
37599
37599
|
type: Object,
|
|
37600
|
-
default() {
|
|
37600
|
+
default: function() {
|
|
37601
37601
|
return {};
|
|
37602
37602
|
}
|
|
37603
37603
|
},
|
|
37604
37604
|
suggestionList: {
|
|
37605
37605
|
type: Array,
|
|
37606
|
-
default() {
|
|
37606
|
+
default: function() {
|
|
37607
37607
|
return [];
|
|
37608
37608
|
}
|
|
37609
37609
|
},
|
|
@@ -37641,21 +37641,9 @@ const _sfc_main$n = {
|
|
|
37641
37641
|
data() {
|
|
37642
37642
|
return {
|
|
37643
37643
|
selectedValue: "",
|
|
37644
|
-
ruleForm: {}
|
|
37645
|
-
modelValue: ""
|
|
37644
|
+
ruleForm: {}
|
|
37646
37645
|
};
|
|
37647
37646
|
},
|
|
37648
|
-
computed: {
|
|
37649
|
-
blocks() {
|
|
37650
|
-
if (this.modelValue) {
|
|
37651
|
-
const regex = new RegExp(this.modelValue, "g");
|
|
37652
|
-
return this.suggestionList.map((c2) => ({
|
|
37653
|
-
value: c2.value.replace(regex, `<span class="highlight">${this.modelValue}</span>`)
|
|
37654
|
-
}));
|
|
37655
|
-
}
|
|
37656
|
-
return this.suggestionList;
|
|
37657
|
-
}
|
|
37658
|
-
},
|
|
37659
37647
|
mounted() {
|
|
37660
37648
|
const dropElements = document.querySelectorAll(".suggestion .el-select-dropdown");
|
|
37661
37649
|
this.ruleForm = {
|
|
@@ -37666,13 +37654,13 @@ const _sfc_main$n = {
|
|
|
37666
37654
|
}
|
|
37667
37655
|
},
|
|
37668
37656
|
watch: {
|
|
37669
|
-
selectedValue(newVal) {
|
|
37657
|
+
selectedValue: function(newVal) {
|
|
37670
37658
|
this.ruleForm[this.prop] = newVal;
|
|
37671
37659
|
},
|
|
37672
|
-
selectedItem(newVal) {
|
|
37660
|
+
selectedItem: function(newVal) {
|
|
37673
37661
|
this.selectedValue = newVal.value;
|
|
37674
37662
|
},
|
|
37675
|
-
getValidate(newVal) {
|
|
37663
|
+
getValidate: function(newVal) {
|
|
37676
37664
|
if (newVal) {
|
|
37677
37665
|
this.validateInpBlur();
|
|
37678
37666
|
this.$emit("setValid");
|
|
@@ -37697,14 +37685,13 @@ const _sfc_main$n = {
|
|
|
37697
37685
|
}, 300);
|
|
37698
37686
|
},
|
|
37699
37687
|
initSuggestion(query) {
|
|
37700
|
-
this.modelValue = query;
|
|
37701
37688
|
this.$emit("fetchDadata", query);
|
|
37702
37689
|
}
|
|
37703
37690
|
}
|
|
37704
37691
|
};
|
|
37705
37692
|
const _hoisted_1$n = { class: "suggestion" };
|
|
37706
37693
|
const _hoisted_2$k = { class: "d-flex flex-column" };
|
|
37707
|
-
const _hoisted_3$i =
|
|
37694
|
+
const _hoisted_3$i = { class: "text-truncate" };
|
|
37708
37695
|
const _hoisted_4$b = { class: "suggestion__item-info text-truncate" };
|
|
37709
37696
|
const _hoisted_5$8 = {
|
|
37710
37697
|
key: 0,
|
|
@@ -37745,7 +37732,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37745
37732
|
"no-data-text": $props.noData
|
|
37746
37733
|
}, {
|
|
37747
37734
|
default: withCtx(() => [
|
|
37748
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList($
|
|
37735
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList($props.suggestionList, (item, index) => {
|
|
37749
37736
|
return openBlock(), createBlock(_component_el_option, {
|
|
37750
37737
|
onClick: ($event) => $options.change(item),
|
|
37751
37738
|
key: index,
|
|
@@ -37754,10 +37741,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37754
37741
|
}, {
|
|
37755
37742
|
default: withCtx(() => [
|
|
37756
37743
|
createElementVNode("div", _hoisted_2$k, [
|
|
37757
|
-
createElementVNode("span",
|
|
37758
|
-
class: "text-truncate",
|
|
37759
|
-
innerHTML: item.value
|
|
37760
|
-
}, null, 8, _hoisted_3$i),
|
|
37744
|
+
createElementVNode("span", _hoisted_3$i, toDisplayString(item.value), 1),
|
|
37761
37745
|
createElementVNode("span", _hoisted_4$b, toDisplayString(item.bottomText), 1)
|
|
37762
37746
|
]),
|
|
37763
37747
|
item.id === $props.selectedItem.id ? (openBlock(), createElementBlock("img", _hoisted_5$8)) : createCommentVNode("", true)
|
|
@@ -38126,7 +38110,7 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
38126
38110
|
var PLChevron = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$1]]);
|
|
38127
38111
|
var plSelect_vue_vue_type_style_index_0_lang$1 = "";
|
|
38128
38112
|
const _hoisted_1$h = { id: "form" };
|
|
38129
|
-
const _hoisted_2$f = { class: "flex item-select
|
|
38113
|
+
const _hoisted_2$f = { class: "flex item-select" };
|
|
38130
38114
|
const _sfc_main$h = {
|
|
38131
38115
|
__name: "pl-select",
|
|
38132
38116
|
props: {
|