@kyfe/fms-vue2-components 0.0.7 → 0.0.8
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/assets/css/fms-ks-search-tips-new.css +1 -1
- package/dist/{date-picker-bottom.17e75dc0.js → date-picker-bottom.08bb5468.js} +1 -1
- package/dist/{date-picker-dropdown.1d8e9f00.js → date-picker-dropdown.6bdf8884.js} +1 -1
- package/dist/{date-picker-right.b939e886.js → date-picker-right.0b16e9e5.js} +1 -1
- package/dist/{date-picker-top.c38046f7.js → date-picker-top.bb84a0cf.js} +1 -1
- package/dist/{date-week-month.169b98bc.js → date-week-month.7ac3a67e.js} +1 -1
- package/dist/fms-ks-components/index.js +2 -2
- package/dist/{fms-ks-components.a5d9329b.js → fms-ks-components.53289d17.js} +6 -6
- package/dist/fms-ks-form-grid/index.js +1 -1
- package/dist/fms-ks-search-tips-new/index.js +2 -2
- package/dist/{fms-ks-search-tips-new.7d08f710.js → fms-ks-search-tips-new.d68b86e6.js} +19 -16
- package/dist/{mixin.f4bc60f0.js → mixin.7a8d8392.js} +1 -1
- package/dist/oa-datetime-picker-new/style.css +1 -1
- package/package.json +1 -1
- package/src/components/fms-ks-search-tips-new/fms-ks-search-tips-new.vue +7 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.fms-search-tips-new[data-v-
|
|
1
|
+
.fms-search-tips-new[data-v-349961a0] .van-cell__value{overflow:initial}.fms-search-tips-new__content[data-v-349961a0]{display:flex;flex-direction:column;border-radius:12px 12px 0 0;font-size:14px;overflow:hidden}.fms-search-tips-new__content-title[data-v-349961a0]{height:48px;color:#333;font-weight:700;padding:0 16px;border-bottom:1px solid #ebedf5;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;flex-grow:0;font-size:16px}.fms-search-tips-new__content-title .van-icon[data-v-349961a0]{cursor:pointer}.fms-search-tips-new__content-title.close-left[data-v-349961a0]{justify-content:flex-start}.fms-search-tips-new__content-title.close-left .van-icon[data-v-349961a0]{margin-right:8px}.fms-search-tips-new__content-search[data-v-349961a0]{flex-shrink:0;flex-grow:0;padding:8px 16px!important}.fms-search-tips-new__content-search[data-v-349961a0] .van-cell{background-color:transparent!important}.fms-search-tips-new__content-search[data-v-349961a0] .van-cell .van-field__body{padding-left:0}.fms-search-tips-new__content-search.has-action[data-v-349961a0] .van-search__content{border-radius:8px 0 0 8px!important}.fms-search-tips-new__content-search.has-action[data-v-349961a0] .van-search__action{padding:0;height:100%}.fms-search-tips-new__content-search.has-action[data-v-349961a0] .van-search__action .van-button{border-radius:0 8px 8px 0!important;height:36px}.fms-search-tips-new__content-loading[data-v-349961a0]{display:flex;justify-content:center;padding:12px 0}.fms-search-tips-new__content-current[data-v-349961a0]{flex-shrink:0;flex-grow:0;margin:0 16px;border-bottom:1px solid #ebedf5}.fms-search-tips-new__content-current .current-title[data-v-349961a0]{color:#1a1a1a;font-weight:700}.fms-search-tips-new__content-current .current-value[data-v-349961a0]{height:36px;line-height:36px;border-radius:18px;background:#f7f8fa;display:inline-flex;padding:0 12px;align-items:center;margin:8px 0;max-width:100%;overflow:hidden}.fms-search-tips-new__content-current .current-value__text[data-v-349961a0]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fms-search-tips-new__content-current .current-value__line[data-v-349961a0]{width:1px;height:12px;opacity:1;flex-grow:0;flex-shrink:0;background:#d7d7db;margin:0 8px}.fms-search-tips-new__content-current .current-value__icon[data-v-349961a0]{flex-grow:0;flex-shrink:0}.fms-search-tips-new__content-list[data-v-349961a0]{padding:0 16px;overflow:auto;height:0;flex:1;-webkit-overflow-scrolling:touch}.fms-search-tips-new__content-list .list-item[data-v-349961a0]{line-height:1.2;padding:12px 0;color:#333;word-break:break-all}.ios .fms-search-tips-new__content.is-full-popup{padding-top:20px!important}.ipx .fms-search-tips-new__content.is-full-popup{padding-top:46px!important}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as r, M as s, W as c } from "./fms-ks-components.
|
|
1
|
+
import { D as r, M as s, W as c } from "./fms-ks-components.53289d17.js";
|
|
2
2
|
import { t as o } from "./utils.159fba19.js";
|
|
3
3
|
import { n as i } from "./plugin-vue2_normalizer.ed7092a9.js";
|
|
4
4
|
import './oa-datetime-picker-new/style.css';const _ = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-components.
|
|
3
|
-
import { F as a } from "../fms-ks-components.
|
|
2
|
+
import { F as o } from "../fms-ks-components.53289d17.js";
|
|
3
|
+
import { F as a } from "../fms-ks-components.53289d17.js";
|
|
4
4
|
o.install = function(n) {
|
|
5
5
|
n.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -7,7 +7,7 @@ import { F as d_ } from "./fms-ks-select.59416fd8.js";
|
|
|
7
7
|
import { F as __ } from "./fms-ks-picker.766b55f9.js";
|
|
8
8
|
import { F as v_ } from "./fms-ks-select-box.a00f0f08.js";
|
|
9
9
|
import { F as m_ } from "./fms-ks-search-tips.d36859c3.js";
|
|
10
|
-
import { F as g_ } from "./fms-ks-search-tips-new.
|
|
10
|
+
import { F as g_ } from "./fms-ks-search-tips-new.d68b86e6.js";
|
|
11
11
|
import { F as y_ } from "./fms-ks-clamp-text.24eb5e8d.js";
|
|
12
12
|
import './assets/css/fms-ks-components.css';var fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Bt = {
|
|
13
13
|
exports: {}
|
|
@@ -3902,19 +3902,19 @@ const B_ = I_.exports, z_ = {
|
|
|
3902
3902
|
"./quarter-select.b6256880.js"
|
|
3903
3903
|
), Z_ = () => import(
|
|
3904
3904
|
/* webpackChunkName: "date-week-month" */
|
|
3905
|
-
"./date-week-month.
|
|
3905
|
+
"./date-week-month.7ac3a67e.js"
|
|
3906
3906
|
), Q_ = () => import(
|
|
3907
3907
|
/* webpackChunkName: "date-picker-bottom" */
|
|
3908
|
-
"./date-picker-bottom.
|
|
3908
|
+
"./date-picker-bottom.08bb5468.js"
|
|
3909
3909
|
), G_ = () => import(
|
|
3910
3910
|
/* webpackChunkName: "date-picker-top" */
|
|
3911
|
-
"./date-picker-top.
|
|
3911
|
+
"./date-picker-top.bb84a0cf.js"
|
|
3912
3912
|
), J_ = () => import(
|
|
3913
3913
|
/* webpackChunkName: "date-picker-right" */
|
|
3914
|
-
"./date-picker-right.
|
|
3914
|
+
"./date-picker-right.0b16e9e5.js"
|
|
3915
3915
|
), X_ = () => import(
|
|
3916
3916
|
/* webpackChunkName: "date-picker-dropdown" */
|
|
3917
|
-
"./date-picker-dropdown.
|
|
3917
|
+
"./date-picker-dropdown.6bdf8884.js"
|
|
3918
3918
|
), Rv = q_, Ov = V_, Nv = U_, Ev = K_, Iv = W_, Bv = H_, zv = Z_, ev = Q_, tv = G_, rv = J_, nv = X_;
|
|
3919
3919
|
const iv = {
|
|
3920
3920
|
month: "YYYY/MM",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
2
|
import { get as n } from "lodash";
|
|
3
|
-
import { F as f } from "../fms-ks-components.
|
|
3
|
+
import { F as f } from "../fms-ks-components.53289d17.js";
|
|
4
4
|
import { n as a } from "../plugin-vue2_normalizer.ed7092a9.js";
|
|
5
5
|
import './style.css';class c {
|
|
6
6
|
constructor(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-search-tips-new.
|
|
3
|
-
import { F as s } from "../fms-ks-search-tips-new.
|
|
2
|
+
import { F as o } from "../fms-ks-search-tips-new.d68b86e6.js";
|
|
3
|
+
import { F as s } from "../fms-ks-search-tips-new.d68b86e6.js";
|
|
4
4
|
o.install = function(a) {
|
|
5
5
|
a.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n } from "./plugin-vue2_normalizer.ed7092a9.js";
|
|
2
|
-
import './assets/css/fms-ks-search-tips-new.css';const
|
|
2
|
+
import './assets/css/fms-ks-search-tips-new.css';const l = window.vant && window.vant.Toast, i = {
|
|
3
3
|
name: "FmsKsSearchTipsNew",
|
|
4
4
|
props: {
|
|
5
5
|
label: String,
|
|
@@ -69,23 +69,26 @@ import './assets/css/fms-ks-search-tips-new.css';const a = window.vant && window
|
|
|
69
69
|
t.value = "", this.searchStr = "", s.inputValue = "";
|
|
70
70
|
},
|
|
71
71
|
async onChange(s) {
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
this.searchStr = s;
|
|
73
|
+
},
|
|
74
|
+
async onSearch() {
|
|
75
|
+
let s = this.searchStr, e = s.length;
|
|
76
|
+
if (e !== 0)
|
|
74
77
|
if (e >= this.inputLength && this.url && this.appkey)
|
|
75
78
|
try {
|
|
76
79
|
this.loading = !0;
|
|
77
|
-
let t = this.formatData(s),
|
|
78
|
-
|
|
80
|
+
let t = this.formatData(s), a = await this.$http(this.url, this.appkey, t) || [];
|
|
81
|
+
a = this.formatResult ? this.formatResult(a, s) : a, a.length === 0 && !this.noEmptyMessage && l(this.message || "\u641C\u7D22\u7ED3\u679C\u4E3A\u7A7A"), this.searchList = a;
|
|
79
82
|
} catch {
|
|
80
83
|
this.onClose();
|
|
81
84
|
} finally {
|
|
82
85
|
this.loading = !1;
|
|
83
86
|
}
|
|
84
87
|
else
|
|
85
|
-
|
|
88
|
+
l(`\u5B57\u6570\u4E0D\u5C11\u4E8E${this.inputLength}`);
|
|
86
89
|
},
|
|
87
90
|
getValue(s) {
|
|
88
|
-
return this.keys.reduce((t,
|
|
91
|
+
return this.keys.reduce((t, a) => (t.push(s[a]), t), []).join(", ");
|
|
89
92
|
},
|
|
90
93
|
onSelect(s) {
|
|
91
94
|
this.$emit("select", s), this.$emit("selectItem", s), this.hidePopup(), this.onClose();
|
|
@@ -100,14 +103,14 @@ import './assets/css/fms-ks-search-tips-new.css';const a = window.vant && window
|
|
|
100
103
|
};
|
|
101
104
|
var o = function() {
|
|
102
105
|
var e = this, t = e._self._c;
|
|
103
|
-
return t("div", { staticClass: "fms-search-tips-new" }, [t("van-field", { attrs: { required: e.required, inputAlign: e.inputAlign, placeholder: e.placeholder, value: e.value, rules: e.rules, label: e.label, maxlength: e.maxlength, "is-link": e.isLink, readonly: "" }, on: { click: e.showPopup } }, [e.$slots.label ? t("template", { slot: "label" }, [e._t("label")], 2) : e._e(), e.$slots.rightIcon ? t("template", { slot: "right-icon" }, [e._t("rightIcon")], 2) : e._e()], 2), t("van-popup", { staticClass: "fms-search-tips-new__content", class: { "is-full-popup": e.isFullPopup }, style: { height: e.isFullPopup ? "100%" : e.popupHeight, ...e.popupStyle }, attrs: { position: "bottom", "get-container": e.getContainer }, on: { opened: e.onOpened, close: e.onClose }, model: { value: e.show, callback: function(
|
|
104
|
-
e.show =
|
|
105
|
-
}, expression: "show" } }, [e.isFullPopup ? t("div", { staticClass: "fms-search-tips-new__content-title close-left" }, [t("van-icon", { attrs: { name: "arrow-left", color: "#333", size: "20" }, on: { click: e.hidePopup } }), e._v(" " + e._s(e.label) + " ")], 1) : t("div", { staticClass: "fms-search-tips-new__content-title" }, [e._v(" " + e._s(e.label) + " "), t("van-icon", { attrs: { name: "cross", color: "#A2A2AD" }, on: { click: e.hidePopup } })], 1), t("form", { attrs: { action: "/" } }, [t("ks-input-search", { ref: "search", staticClass: "fms-search-tips-new__content-search", class: { "has-action": e.$scopedSlots.action }, attrs: { placeholder: e.placeholder, "show-action": !!e.$scopedSlots.action, maxlength: e.maxlength }, on: { change: e.onChange }, model: { value: e.searchStr, callback: function(
|
|
106
|
-
e.searchStr =
|
|
107
|
-
}, expression: "searchStr" } }, [e._t("action", null, { slot: "action", input: e.searchStr, close: e.hidePopup })], 2)], 1), e._t("default", null, { list: e.searchList, input: e.searchStr, loading: e.loading }), e.$scopedSlots.default ? e._e() : [e.value ? t("div", { staticClass: "fms-search-tips-new__content-current" }, [t("div", { staticClass: "current-title" }, [e._v("\u5F53\u524D\u9009\u62E9")]), t("div", { staticClass: "current-value" }, [t("span", { staticClass: "current-value__text" }, [e._v(e._s(e.value))]), t("i", { staticClass: "current-value__line" }), t("van-icon", { staticClass: "currnet-value__icon", attrs: { name: "cross", color: "#A2A2AD" }, on: { click: e.onClear } })], 1)]) : e._e(), t("div", { staticClass: "fms-search-tips-new__content-list" }, [e.loading ? t("div", { staticClass: "fms-search-tips-new__content-loading" }, [t("van-loading", { attrs: { size: "36px" } })], 1) : e._l(e.searchList, function(
|
|
108
|
-
return t("div", { key:
|
|
109
|
-
return e.onSelect(
|
|
110
|
-
} } }, [e._v(" " + e._s(e.getValue(
|
|
106
|
+
return t("div", { staticClass: "fms-search-tips-new" }, [t("van-field", { attrs: { required: e.required, inputAlign: e.inputAlign, placeholder: e.placeholder, value: e.value, rules: e.rules, label: e.label, maxlength: e.maxlength, "is-link": e.isLink, readonly: "" }, on: { click: e.showPopup } }, [e.$slots.label ? t("template", { slot: "label" }, [e._t("label")], 2) : e._e(), e.$slots.rightIcon ? t("template", { slot: "right-icon" }, [e._t("rightIcon")], 2) : e._e()], 2), t("van-popup", { staticClass: "fms-search-tips-new__content", class: { "is-full-popup": e.isFullPopup }, style: { height: e.isFullPopup ? "100%" : e.popupHeight, ...e.popupStyle }, attrs: { position: "bottom", "get-container": e.getContainer }, on: { opened: e.onOpened, close: e.onClose }, model: { value: e.show, callback: function(a) {
|
|
107
|
+
e.show = a;
|
|
108
|
+
}, expression: "show" } }, [e.isFullPopup ? t("div", { staticClass: "fms-search-tips-new__content-title close-left" }, [t("van-icon", { attrs: { name: "arrow-left", color: "#333", size: "20" }, on: { click: e.hidePopup } }), e._v(" " + e._s(e.label) + " ")], 1) : t("div", { staticClass: "fms-search-tips-new__content-title" }, [e._v(" " + e._s(e.label) + " "), t("van-icon", { attrs: { name: "cross", color: "#A2A2AD" }, on: { click: e.hidePopup } })], 1), t("form", { attrs: { action: "/" } }, [t("ks-input-search", { ref: "search", staticClass: "fms-search-tips-new__content-search", class: { "has-action": e.$scopedSlots.action }, attrs: { placeholder: e.placeholder, "show-action": !!e.$scopedSlots.action, maxlength: e.maxlength }, on: { change: e.onChange, blur: e.onSearch }, model: { value: e.searchStr, callback: function(a) {
|
|
109
|
+
e.searchStr = a;
|
|
110
|
+
}, expression: "searchStr" } }, [e._t("action", null, { slot: "action", input: e.searchStr, close: e.hidePopup })], 2)], 1), e._t("default", null, { list: e.searchList, input: e.searchStr, loading: e.loading }), e.$scopedSlots.default ? e._e() : [e.value ? t("div", { staticClass: "fms-search-tips-new__content-current" }, [t("div", { staticClass: "current-title" }, [e._v("\u5F53\u524D\u9009\u62E9")]), t("div", { staticClass: "current-value" }, [t("span", { staticClass: "current-value__text" }, [e._v(e._s(e.value))]), t("i", { staticClass: "current-value__line" }), t("van-icon", { staticClass: "currnet-value__icon", attrs: { name: "cross", color: "#A2A2AD" }, on: { click: e.onClear } })], 1)]) : e._e(), t("div", { staticClass: "fms-search-tips-new__content-list" }, [e.loading ? t("div", { staticClass: "fms-search-tips-new__content-loading" }, [t("van-loading", { attrs: { size: "36px" } })], 1) : e._l(e.searchList, function(a) {
|
|
111
|
+
return t("div", { key: a[e.valueKey], staticClass: "list-item", on: { click: function(u) {
|
|
112
|
+
return e.onSelect(a);
|
|
113
|
+
} } }, [e._v(" " + e._s(e.getValue(a)) + " ")]);
|
|
111
114
|
})], 2)]], 2)], 1);
|
|
112
115
|
}, r = [], c = /* @__PURE__ */ n(
|
|
113
116
|
i,
|
|
@@ -115,7 +118,7 @@ var o = function() {
|
|
|
115
118
|
r,
|
|
116
119
|
!1,
|
|
117
120
|
null,
|
|
118
|
-
"
|
|
121
|
+
"349961a0",
|
|
119
122
|
null,
|
|
120
123
|
null
|
|
121
124
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as s } from "./utils.159fba19.js";
|
|
2
|
-
import { D as a, a as n, M as r, b as i, W as l, Q as h, c as o } from "./fms-ks-components.
|
|
2
|
+
import { D as a, a as n, M as r, b as i, W as l, Q as h, c as o } from "./fms-ks-components.53289d17.js";
|
|
3
3
|
const m = {
|
|
4
4
|
components: {
|
|
5
5
|
DateSelect: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ks-
|
|
1
|
+
.ks-week__day{width:50%;height:44px}.ks-week__selected-day{color:#7972fe!important;position:relative}.ks-week__selected-day:after{font: 14px/1 vant-icon;font-size:12px;text-rendering:auto;-webkit-font-smoothing:antialiased;content:"\f0c8";display:inline-block;position:absolute;right:4px;top:16px}
|
package/package.json
CHANGED
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
ref="search"
|
|
51
51
|
:maxlength="maxlength"
|
|
52
52
|
v-model="searchStr"
|
|
53
|
-
@change="onChange"
|
|
53
|
+
@change="onChange"
|
|
54
|
+
@blur="onSearch">
|
|
54
55
|
<slot name="action"
|
|
55
56
|
:input="searchStr"
|
|
56
57
|
:close="hidePopup"
|
|
@@ -175,8 +176,12 @@
|
|
|
175
176
|
$search.inputValue = ''
|
|
176
177
|
},
|
|
177
178
|
async onChange (val) {
|
|
178
|
-
let len = val.length
|
|
179
179
|
this.searchStr = val
|
|
180
|
+
},
|
|
181
|
+
// 发起请求
|
|
182
|
+
async onSearch () {
|
|
183
|
+
let val = this.searchStr
|
|
184
|
+
let len = val.length
|
|
180
185
|
if (len === 0) return
|
|
181
186
|
if (len >= this.inputLength && this.url && this.appkey) {
|
|
182
187
|
try {
|