@qynpm/ui 1.0.5 → 1.0.7
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 +228 -228
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +18 -18
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +2 -4
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +2 -5
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +2 -4
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +2 -4
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +2 -4
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +2 -4
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +2 -4
- package/dist/qy-remark-image/index.cjs +1 -2
- package/dist/qy-remark-image/index.mjs +2 -5
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +2 -4
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +2 -4
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +2 -4
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +2 -4
- package/dist/qy-voucher-upload/index.cjs +1 -1
- package/dist/qy-voucher-upload/index.mjs +2 -4
- package/dist/shared/index-CbFvRxuh.mjs +2592 -0
- package/dist/shared/index-GDrnDY44.cjs +1 -0
- package/index.d.ts +20 -20
- package/package.json +1 -1
- package/qy-action-bar/index.js +1 -4
- package/qy-dialog/index.js +1 -4
- package/qy-form-section/index.js +1 -4
- package/qy-input/index.js +1 -4
- package/qy-money-input/index.d.ts +12 -12
- package/qy-money-input/index.js +1 -15
- package/qy-radio-group/index.d.ts +12 -12
- package/qy-radio-group/index.js +1 -15
- package/qy-record-quote-search/index.js +1 -4
- package/qy-remark-image/index.js +1 -4
- package/qy-remote-select/index.d.ts +12 -12
- package/qy-remote-select/index.js +1 -15
- package/qy-search-input/index.js +1 -4
- package/qy-select/index.js +1 -4
- package/qy-upload/index.js +1 -4
- package/qy-voucher-upload/index.d.ts +12 -12
- package/qy-voucher-upload/index.js +1 -15
- package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/dist/lib/dialog/index.vue.cjs +0 -1
- package/dist/lib/dialog/index.vue.mjs +0 -325
- package/dist/lib/dialog/index.vue3.cjs +0 -1
- package/dist/lib/dialog/index.vue3.mjs +0 -5
- package/dist/lib/index.cjs +0 -1
- package/dist/lib/index.mjs +0 -53
- package/dist/lib/qy-action-bar/index.vue.cjs +0 -1
- package/dist/lib/qy-action-bar/index.vue.mjs +0 -7
- package/dist/lib/qy-action-bar/index.vue2.cjs +0 -1
- package/dist/lib/qy-action-bar/index.vue2.mjs +0 -55
- package/dist/lib/qy-form-section/index.vue.cjs +0 -1
- package/dist/lib/qy-form-section/index.vue.mjs +0 -7
- package/dist/lib/qy-form-section/index.vue2.cjs +0 -1
- package/dist/lib/qy-form-section/index.vue2.mjs +0 -87
- package/dist/lib/qy-input/index.vue.cjs +0 -1
- package/dist/lib/qy-input/index.vue.mjs +0 -143
- package/dist/lib/qy-input/index.vue2.cjs +0 -1
- package/dist/lib/qy-input/index.vue2.mjs +0 -4
- package/dist/lib/qy-money-input/index.vue.cjs +0 -1
- package/dist/lib/qy-money-input/index.vue.mjs +0 -171
- package/dist/lib/qy-money-input/index.vue2.cjs +0 -1
- package/dist/lib/qy-money-input/index.vue2.mjs +0 -4
- package/dist/lib/qy-radio-group/index.vue.cjs +0 -1
- package/dist/lib/qy-radio-group/index.vue.mjs +0 -90
- package/dist/lib/qy-radio-group/index.vue2.cjs +0 -1
- package/dist/lib/qy-radio-group/index.vue2.mjs +0 -4
- package/dist/lib/qy-record-quote-search/index.vue.cjs +0 -1
- package/dist/lib/qy-record-quote-search/index.vue.mjs +0 -7
- package/dist/lib/qy-record-quote-search/index.vue2.cjs +0 -1
- package/dist/lib/qy-record-quote-search/index.vue2.mjs +0 -204
- package/dist/lib/qy-remote-select/index.vue.cjs +0 -1
- package/dist/lib/qy-remote-select/index.vue.mjs +0 -214
- package/dist/lib/qy-remote-select/index.vue2.cjs +0 -1
- package/dist/lib/qy-remote-select/index.vue2.mjs +0 -4
- package/dist/lib/qy-search-input/index.vue.cjs +0 -1
- package/dist/lib/qy-search-input/index.vue.mjs +0 -7
- package/dist/lib/qy-search-input/index.vue2.cjs +0 -1
- package/dist/lib/qy-search-input/index.vue2.mjs +0 -276
- package/dist/lib/qy-select/index.vue.cjs +0 -1
- package/dist/lib/qy-select/index.vue.mjs +0 -162
- package/dist/lib/qy-select/index.vue2.cjs +0 -1
- package/dist/lib/qy-select/index.vue2.mjs +0 -4
- package/dist/lib/qy-voucher-upload/index.vue.cjs +0 -1
- package/dist/lib/qy-voucher-upload/index.vue.mjs +0 -123
- package/dist/lib/remark-image/index.vue.cjs +0 -1
- package/dist/lib/remark-image/index.vue.mjs +0 -7
- package/dist/lib/remark-image/index.vue2.cjs +0 -1
- package/dist/lib/remark-image/index.vue2.mjs +0 -197
- package/dist/lib/remark-image/utils.cjs +0 -1
- package/dist/lib/remark-image/utils.mjs +0 -22
- package/dist/lib/upload/index.vue.cjs +0 -1
- package/dist/lib/upload/index.vue.mjs +0 -482
- package/dist/lib/utils/auth.cjs +0 -1
- package/dist/lib/utils/auth.mjs +0 -8
- package/dist/lib/utils/install.cjs +0 -1
- package/dist/lib/utils/install.mjs +0 -8
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.cjs +0 -1
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs +0 -74
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, useAttrs as K, ref as d, computed as R, watch as U, createBlock as N, openBlock as P, unref as p, mergeProps as Q, withKeys as j, createSlots as q, withCtx as r, renderSlot as i } from "vue";
|
|
2
|
-
import { ElInput as D } from "element-plus";
|
|
3
|
-
const J = /* @__PURE__ */ F({
|
|
4
|
-
name: "QyInput",
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { default: "" },
|
|
9
|
-
removeSpace: { type: Boolean, default: !1 },
|
|
10
|
-
trimMode: { default: "none" }
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
|
|
13
|
-
setup(m, { expose: V, emit: h }) {
|
|
14
|
-
const l = m, t = h, v = K(), u = d(null), a = d(o(l.modelValue)), g = R(() => o(l.modelValue));
|
|
15
|
-
U(
|
|
16
|
-
() => l.modelValue,
|
|
17
|
-
(e) => {
|
|
18
|
-
a.value = o(e);
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
function o(e) {
|
|
22
|
-
return e == null ? "" : String(e);
|
|
23
|
-
}
|
|
24
|
-
function y(e) {
|
|
25
|
-
return l.removeSpace ? e.replace(/\s+/g, "") : e;
|
|
26
|
-
}
|
|
27
|
-
function f(e, n) {
|
|
28
|
-
return l.trimMode !== n ? e : e.trim();
|
|
29
|
-
}
|
|
30
|
-
function c(e) {
|
|
31
|
-
return y(o(e));
|
|
32
|
-
}
|
|
33
|
-
function s(e) {
|
|
34
|
-
a.value = e, t("update:modelValue", e);
|
|
35
|
-
}
|
|
36
|
-
function x(e) {
|
|
37
|
-
const n = c(e);
|
|
38
|
-
s(n);
|
|
39
|
-
}
|
|
40
|
-
function $(e) {
|
|
41
|
-
a.value = o(e), t("input", o(e));
|
|
42
|
-
}
|
|
43
|
-
function k(e) {
|
|
44
|
-
const n = f(c(e), "change");
|
|
45
|
-
n !== o(l.modelValue) && s(n), t("change", n);
|
|
46
|
-
}
|
|
47
|
-
function C(e) {
|
|
48
|
-
t("focus", e);
|
|
49
|
-
}
|
|
50
|
-
function I(e) {
|
|
51
|
-
const n = f(a.value, "blur");
|
|
52
|
-
n !== o(l.modelValue) && s(n), t("blur", e);
|
|
53
|
-
}
|
|
54
|
-
function S() {
|
|
55
|
-
a.value = "", t("update:modelValue", ""), t("clear");
|
|
56
|
-
}
|
|
57
|
-
function b(e) {
|
|
58
|
-
t("enter", e);
|
|
59
|
-
}
|
|
60
|
-
function z() {
|
|
61
|
-
var e, n;
|
|
62
|
-
(n = (e = u.value) == null ? void 0 : e.focus) == null || n.call(e);
|
|
63
|
-
}
|
|
64
|
-
function B() {
|
|
65
|
-
var e, n;
|
|
66
|
-
(n = (e = u.value) == null ? void 0 : e.blur) == null || n.call(e);
|
|
67
|
-
}
|
|
68
|
-
function w() {
|
|
69
|
-
var e, n;
|
|
70
|
-
(n = (e = u.value) == null ? void 0 : e.select) == null || n.call(e);
|
|
71
|
-
}
|
|
72
|
-
function M() {
|
|
73
|
-
var e, n;
|
|
74
|
-
(n = (e = u.value) == null ? void 0 : e.clear) == null || n.call(e);
|
|
75
|
-
}
|
|
76
|
-
function T() {
|
|
77
|
-
var e, n;
|
|
78
|
-
(n = (e = u.value) == null ? void 0 : e.resizeTextarea) == null || n.call(e);
|
|
79
|
-
}
|
|
80
|
-
function A() {
|
|
81
|
-
var e;
|
|
82
|
-
return ((e = u.value) == null ? void 0 : e.input) || null;
|
|
83
|
-
}
|
|
84
|
-
function E() {
|
|
85
|
-
var e;
|
|
86
|
-
return ((e = u.value) == null ? void 0 : e.textarea) || null;
|
|
87
|
-
}
|
|
88
|
-
return V({
|
|
89
|
-
// 暴露 Element Plus 常用输入框方法,方便业务弹窗做聚焦、选中和 textarea 重算高度。
|
|
90
|
-
focus: z,
|
|
91
|
-
blur: B,
|
|
92
|
-
select: w,
|
|
93
|
-
clear: M,
|
|
94
|
-
resizeTextarea: T,
|
|
95
|
-
getNativeInput: A,
|
|
96
|
-
getTextarea: E
|
|
97
|
-
}), (e, n) => (P(), N(p(D), Q({
|
|
98
|
-
ref_key: "inputRef",
|
|
99
|
-
ref: u
|
|
100
|
-
}, p(v), {
|
|
101
|
-
"model-value": g.value,
|
|
102
|
-
"onUpdate:modelValue": x,
|
|
103
|
-
onInput: $,
|
|
104
|
-
onChange: k,
|
|
105
|
-
onFocus: C,
|
|
106
|
-
onBlur: I,
|
|
107
|
-
onClear: S,
|
|
108
|
-
onKeydown: j(b, ["enter"])
|
|
109
|
-
}), q({ _: 2 }, [
|
|
110
|
-
e.$slots.prefix ? {
|
|
111
|
-
name: "prefix",
|
|
112
|
-
fn: r(() => [
|
|
113
|
-
i(e.$slots, "prefix")
|
|
114
|
-
]),
|
|
115
|
-
key: "0"
|
|
116
|
-
} : void 0,
|
|
117
|
-
e.$slots.suffix ? {
|
|
118
|
-
name: "suffix",
|
|
119
|
-
fn: r(() => [
|
|
120
|
-
i(e.$slots, "suffix")
|
|
121
|
-
]),
|
|
122
|
-
key: "1"
|
|
123
|
-
} : void 0,
|
|
124
|
-
e.$slots.prepend ? {
|
|
125
|
-
name: "prepend",
|
|
126
|
-
fn: r(() => [
|
|
127
|
-
i(e.$slots, "prepend")
|
|
128
|
-
]),
|
|
129
|
-
key: "2"
|
|
130
|
-
} : void 0,
|
|
131
|
-
e.$slots.append ? {
|
|
132
|
-
name: "append",
|
|
133
|
-
fn: r(() => [
|
|
134
|
-
i(e.$slots, "append")
|
|
135
|
-
]),
|
|
136
|
-
key: "3"
|
|
137
|
-
} : void 0
|
|
138
|
-
]), 1040, ["model-value"]));
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
J as default
|
|
143
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),q=require("element-plus"),E=t.defineComponent({name:"QyMoneyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},precision:{default:2},min:{default:void 0},max:{default:void 0},allowNegative:{type:Boolean,default:!1},formatTrigger:{default:"blur"},emptyValue:{default:""}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(v,{expose:x,emit:y}){const u=v,i=y,b=t.useAttrs(),r=t.ref(null),f=t.ref(o(u.modelValue)),M=t.computed(()=>o(u.modelValue));t.watch(()=>u.modelValue,e=>{f.value=o(e)});function o(e){return e==null?"":String(e)}function h(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function d(e){const n=o(e);let a="",c=!1,g=!1;const p=h(u.precision);for(let s=0;s<n.length;s+=1){const l=n[s];if(l>="0"&&l<="9"){a+=l;continue}if(l==="."&&p>0&&!c){a+=l,c=!0;continue}l==="-"&&u.allowNegative&&s===0&&!g&&(a+=l,g=!0)}if(p>0&&c){const[s,l=""]=a.split(".");return`${s}.${l.slice(0,p)}`}return a}function N(e){let n=e;return typeof u.min=="number"&&Number.isFinite(u.min)&&(n=Math.max(n,u.min)),typeof u.max=="number"&&Number.isFinite(u.max)&&(n=Math.min(n,u.max)),n}function V(e){const n=d(e);if(!n||n==="-"||n===".")return o(u.emptyValue);const a=Number(n);if(Number.isNaN(a))return o(u.emptyValue);const c=h(u.precision);return N(a).toFixed(c)}function m(e){f.value=e,i("update:modelValue",e)}function $(e){const n=d(e);m(n)}function w(e){const n=d(e);f.value=n,i("input",n)}function C(e){const n=u.formatTrigger==="change"?V(e):d(e);n!==o(u.modelValue)&&m(n),i("change",n)}function S(e){i("focus",e)}function k(e){if(u.formatTrigger==="blur"){const n=V(f.value);n!==o(u.modelValue)&&m(n)}i("blur",e)}function F(){const e=o(u.emptyValue);f.value=e,i("update:modelValue",e),i("clear")}function I(e){i("enter",e)}function B(){var e,n;(n=(e=r.value)==null?void 0:e.focus)==null||n.call(e)}function P(){var e,n;(n=(e=r.value)==null?void 0:e.blur)==null||n.call(e)}function T(){var e,n;(n=(e=r.value)==null?void 0:e.select)==null||n.call(e)}function z(){var e,n;(n=(e=r.value)==null?void 0:e.clear)==null||n.call(e)}function A(){var e;return((e=r.value)==null?void 0:e.input)||null}return x({focus:B,blur:P,select:T,clear:z,getNativeInput:A}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(q.ElInput),t.mergeProps({ref_key:"inputRef",ref:r},t.unref(b),{"model-value":M.value,inputmode:"decimal","onUpdate:modelValue":$,onInput:w,onChange:C,onFocus:S,onBlur:k,onClear:F,onKeydown:t.withKeys(I,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}});exports.default=E;
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, useAttrs as D, ref as v, computed as Q, watch as j, createBlock as q, openBlock as G, unref as x, mergeProps as H, withKeys as J, createSlots as L, withCtx as m, renderSlot as p } from "vue";
|
|
2
|
-
import { ElInput as O } from "element-plus";
|
|
3
|
-
const Y = /* @__PURE__ */ U({
|
|
4
|
-
name: "QyMoneyInput",
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { default: "" },
|
|
9
|
-
precision: { default: 2 },
|
|
10
|
-
min: { default: void 0 },
|
|
11
|
-
max: { default: void 0 },
|
|
12
|
-
allowNegative: { type: Boolean, default: !1 },
|
|
13
|
-
formatTrigger: { default: "blur" },
|
|
14
|
-
emptyValue: { default: "" }
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:modelValue", "input", "change", "focus", "blur", "clear", "enter"],
|
|
17
|
-
setup(b, { expose: N, emit: $ }) {
|
|
18
|
-
const t = b, l = $, M = D(), i = v(null), s = v(o(t.modelValue)), k = Q(() => o(t.modelValue));
|
|
19
|
-
j(
|
|
20
|
-
() => t.modelValue,
|
|
21
|
-
(e) => {
|
|
22
|
-
s.value = o(e);
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
function o(e) {
|
|
26
|
-
return e == null ? "" : String(e);
|
|
27
|
-
}
|
|
28
|
-
function V(e) {
|
|
29
|
-
return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 2;
|
|
30
|
-
}
|
|
31
|
-
function c(e) {
|
|
32
|
-
const n = o(e);
|
|
33
|
-
let a = "", f = !1, y = !1;
|
|
34
|
-
const h = V(t.precision);
|
|
35
|
-
for (let r = 0; r < n.length; r += 1) {
|
|
36
|
-
const u = n[r];
|
|
37
|
-
if (u >= "0" && u <= "9") {
|
|
38
|
-
a += u;
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (u === "." && h > 0 && !f) {
|
|
42
|
-
a += u, f = !0;
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
u === "-" && t.allowNegative && r === 0 && !y && (a += u, y = !0);
|
|
46
|
-
}
|
|
47
|
-
if (h > 0 && f) {
|
|
48
|
-
const [r, u = ""] = a.split(".");
|
|
49
|
-
return `${r}.${u.slice(0, h)}`;
|
|
50
|
-
}
|
|
51
|
-
return a;
|
|
52
|
-
}
|
|
53
|
-
function w(e) {
|
|
54
|
-
let n = e;
|
|
55
|
-
return typeof t.min == "number" && Number.isFinite(t.min) && (n = Math.max(n, t.min)), typeof t.max == "number" && Number.isFinite(t.max) && (n = Math.min(n, t.max)), n;
|
|
56
|
-
}
|
|
57
|
-
function g(e) {
|
|
58
|
-
const n = c(e);
|
|
59
|
-
if (!n || n === "-" || n === ".")
|
|
60
|
-
return o(t.emptyValue);
|
|
61
|
-
const a = Number(n);
|
|
62
|
-
if (Number.isNaN(a)) return o(t.emptyValue);
|
|
63
|
-
const f = V(t.precision);
|
|
64
|
-
return w(a).toFixed(f);
|
|
65
|
-
}
|
|
66
|
-
function d(e) {
|
|
67
|
-
s.value = e, l("update:modelValue", e);
|
|
68
|
-
}
|
|
69
|
-
function C(e) {
|
|
70
|
-
const n = c(e);
|
|
71
|
-
d(n);
|
|
72
|
-
}
|
|
73
|
-
function F(e) {
|
|
74
|
-
const n = c(e);
|
|
75
|
-
s.value = n, l("input", n);
|
|
76
|
-
}
|
|
77
|
-
function I(e) {
|
|
78
|
-
const n = t.formatTrigger === "change" ? g(e) : c(e);
|
|
79
|
-
n !== o(t.modelValue) && d(n), l("change", n);
|
|
80
|
-
}
|
|
81
|
-
function B(e) {
|
|
82
|
-
l("focus", e);
|
|
83
|
-
}
|
|
84
|
-
function z(e) {
|
|
85
|
-
if (t.formatTrigger === "blur") {
|
|
86
|
-
const n = g(s.value);
|
|
87
|
-
n !== o(t.modelValue) && d(n);
|
|
88
|
-
}
|
|
89
|
-
l("blur", e);
|
|
90
|
-
}
|
|
91
|
-
function A() {
|
|
92
|
-
const e = o(t.emptyValue);
|
|
93
|
-
s.value = e, l("update:modelValue", e), l("clear");
|
|
94
|
-
}
|
|
95
|
-
function S(e) {
|
|
96
|
-
l("enter", e);
|
|
97
|
-
}
|
|
98
|
-
function T() {
|
|
99
|
-
var e, n;
|
|
100
|
-
(n = (e = i.value) == null ? void 0 : e.focus) == null || n.call(e);
|
|
101
|
-
}
|
|
102
|
-
function E() {
|
|
103
|
-
var e, n;
|
|
104
|
-
(n = (e = i.value) == null ? void 0 : e.blur) == null || n.call(e);
|
|
105
|
-
}
|
|
106
|
-
function K() {
|
|
107
|
-
var e, n;
|
|
108
|
-
(n = (e = i.value) == null ? void 0 : e.select) == null || n.call(e);
|
|
109
|
-
}
|
|
110
|
-
function P() {
|
|
111
|
-
var e, n;
|
|
112
|
-
(n = (e = i.value) == null ? void 0 : e.clear) == null || n.call(e);
|
|
113
|
-
}
|
|
114
|
-
function R() {
|
|
115
|
-
var e;
|
|
116
|
-
return ((e = i.value) == null ? void 0 : e.input) || null;
|
|
117
|
-
}
|
|
118
|
-
return N({
|
|
119
|
-
focus: T,
|
|
120
|
-
blur: E,
|
|
121
|
-
select: K,
|
|
122
|
-
clear: P,
|
|
123
|
-
getNativeInput: R
|
|
124
|
-
}), (e, n) => (G(), q(x(O), H({
|
|
125
|
-
ref_key: "inputRef",
|
|
126
|
-
ref: i
|
|
127
|
-
}, x(M), {
|
|
128
|
-
"model-value": k.value,
|
|
129
|
-
inputmode: "decimal",
|
|
130
|
-
"onUpdate:modelValue": C,
|
|
131
|
-
onInput: F,
|
|
132
|
-
onChange: I,
|
|
133
|
-
onFocus: B,
|
|
134
|
-
onBlur: z,
|
|
135
|
-
onClear: A,
|
|
136
|
-
onKeydown: J(S, ["enter"])
|
|
137
|
-
}), L({ _: 2 }, [
|
|
138
|
-
e.$slots.prefix ? {
|
|
139
|
-
name: "prefix",
|
|
140
|
-
fn: m(() => [
|
|
141
|
-
p(e.$slots, "prefix")
|
|
142
|
-
]),
|
|
143
|
-
key: "0"
|
|
144
|
-
} : void 0,
|
|
145
|
-
e.$slots.suffix ? {
|
|
146
|
-
name: "suffix",
|
|
147
|
-
fn: m(() => [
|
|
148
|
-
p(e.$slots, "suffix")
|
|
149
|
-
]),
|
|
150
|
-
key: "1"
|
|
151
|
-
} : void 0,
|
|
152
|
-
e.$slots.prepend ? {
|
|
153
|
-
name: "prepend",
|
|
154
|
-
fn: m(() => [
|
|
155
|
-
p(e.$slots, "prepend")
|
|
156
|
-
]),
|
|
157
|
-
key: "2"
|
|
158
|
-
} : void 0,
|
|
159
|
-
e.$slots.append ? {
|
|
160
|
-
name: "append",
|
|
161
|
-
fn: m(() => [
|
|
162
|
-
p(e.$slots, "append")
|
|
163
|
-
]),
|
|
164
|
-
key: "3"
|
|
165
|
-
} : void 0
|
|
166
|
-
]), 1040, ["model-value"]));
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
export {
|
|
170
|
-
Y as default
|
|
171
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),r=require("element-plus"),k=l.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:"default"},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{expose:f,emit:b}){const a=n,s=b,m=l.useAttrs(),t=l.ref(null),c=l.computed(()=>a.type==="button"?r.ElRadioButton:r.ElRadio),v=l.computed(()=>(a.options||[]).map(e=>({raw:e,label:(e==null?void 0:e[a.labelKey])??(e==null?void 0:e.label)??(e==null?void 0:e.value)??"",value:(e==null?void 0:e[a.valueKey])??(e==null?void 0:e.value)??(e==null?void 0:e.label),disabled:!!(e!=null&&e[a.disabledKey])})));function y(e){const d={value:e.value,label:e.value,disabled:e.disabled};return a.type==="button"?d:{...d,border:a.border}}function i(e,d){return`${String(e.value??e.label??"")}-${d}`}function o(e){s("update:modelValue",e)}function g(e){s("change",e)}function B(){return t.value}return f({getRadioGroupInstance:B}),(e,d)=>(l.openBlock(),l.createBlock(l.unref(r.ElRadioGroup),l.mergeProps({ref_key:"radioGroupRef",ref:t},l.unref(m),{"model-value":e.modelValue,disabled:e.disabled,size:e.size,name:e.name,"onUpdate:modelValue":o,onChange:g}),{default:l.withCtx(()=>[e.$slots.default?l.renderSlot(e.$slots,"default",{key:0}):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(v.value,(u,h)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.value),l.mergeProps({key:i(u,h)},{ref_for:!0},y(u)),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"option",{option:u.raw,label:u.label,value:u.value,disabled:u.disabled},()=>[l.createTextVNode(l.toDisplayString(u.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports.default=k;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { defineComponent as z, useAttrs as G, ref as $, computed as t, createBlock as f, openBlock as u, unref as n, mergeProps as m, withCtx as b, renderSlot as c, createElementBlock as E, Fragment as S, renderList as w, resolveDynamicComponent as P, createTextVNode as _, toDisplayString as A } from "vue";
|
|
2
|
-
import { ElRadioButton as D, ElRadio as N, ElRadioGroup as O } from "element-plus";
|
|
3
|
-
const I = /* @__PURE__ */ z({
|
|
4
|
-
name: "QyRadioGroup",
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
9
|
-
options: { default: () => [] },
|
|
10
|
-
labelKey: { default: "label" },
|
|
11
|
-
valueKey: { default: "value" },
|
|
12
|
-
disabledKey: { default: "disabled" },
|
|
13
|
-
disabled: { type: Boolean, default: !1 },
|
|
14
|
-
size: { default: "default" },
|
|
15
|
-
name: { default: void 0 },
|
|
16
|
-
type: { default: "radio" },
|
|
17
|
-
border: { type: Boolean, default: !1 }
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:modelValue", "change"],
|
|
20
|
-
setup(v, { expose: y, emit: i }) {
|
|
21
|
-
const a = v, r = i, g = G(), s = $(null), h = t(
|
|
22
|
-
() => a.type === "button" ? D : N
|
|
23
|
-
), B = t(
|
|
24
|
-
() => (a.options || []).map((e) => ({
|
|
25
|
-
raw: e,
|
|
26
|
-
label: (e == null ? void 0 : e[a.labelKey]) ?? (e == null ? void 0 : e.label) ?? (e == null ? void 0 : e.value) ?? "",
|
|
27
|
-
value: (e == null ? void 0 : e[a.valueKey]) ?? (e == null ? void 0 : e.value) ?? (e == null ? void 0 : e.label),
|
|
28
|
-
disabled: !!(e != null && e[a.disabledKey])
|
|
29
|
-
}))
|
|
30
|
-
);
|
|
31
|
-
function R(e) {
|
|
32
|
-
const d = {
|
|
33
|
-
value: e.value,
|
|
34
|
-
label: e.value,
|
|
35
|
-
disabled: e.disabled
|
|
36
|
-
};
|
|
37
|
-
return a.type === "button" ? d : {
|
|
38
|
-
...d,
|
|
39
|
-
border: a.border
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function k(e, d) {
|
|
43
|
-
return `${String(e.value ?? e.label ?? "")}-${d}`;
|
|
44
|
-
}
|
|
45
|
-
function o(e) {
|
|
46
|
-
r("update:modelValue", e);
|
|
47
|
-
}
|
|
48
|
-
function K(e) {
|
|
49
|
-
r("change", e);
|
|
50
|
-
}
|
|
51
|
-
function V() {
|
|
52
|
-
return s.value;
|
|
53
|
-
}
|
|
54
|
-
return y({
|
|
55
|
-
getRadioGroupInstance: V
|
|
56
|
-
}), (e, d) => (u(), f(n(O), m({
|
|
57
|
-
ref_key: "radioGroupRef",
|
|
58
|
-
ref: s
|
|
59
|
-
}, n(g), {
|
|
60
|
-
"model-value": e.modelValue,
|
|
61
|
-
disabled: e.disabled,
|
|
62
|
-
size: e.size,
|
|
63
|
-
name: e.name,
|
|
64
|
-
"onUpdate:modelValue": o,
|
|
65
|
-
onChange: K
|
|
66
|
-
}), {
|
|
67
|
-
default: b(() => [
|
|
68
|
-
e.$slots.default ? c(e.$slots, "default", { key: 0 }) : (u(!0), E(S, { key: 1 }, w(B.value, (l, C) => (u(), f(P(h.value), m({
|
|
69
|
-
key: k(l, C)
|
|
70
|
-
}, { ref_for: !0 }, R(l)), {
|
|
71
|
-
default: b(() => [
|
|
72
|
-
c(e.$slots, "option", {
|
|
73
|
-
option: l.raw,
|
|
74
|
-
label: l.label,
|
|
75
|
-
value: l.value,
|
|
76
|
-
disabled: l.disabled
|
|
77
|
-
}, () => [
|
|
78
|
-
_(A(l.label), 1)
|
|
79
|
-
])
|
|
80
|
-
]),
|
|
81
|
-
_: 2
|
|
82
|
-
}, 1040))), 128))
|
|
83
|
-
]),
|
|
84
|
-
_: 3
|
|
85
|
-
}, 16, ["model-value", "disabled", "size", "name"]));
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
export {
|
|
89
|
-
I as default
|
|
90
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-6f12a6f5"]]);exports.default=u;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),T=require("../qy-search-input/index.vue.cjs"),Q={class:"qy-record-quote-search"},F={key:0,class:"qy-record-quote-search__header"},P={key:0,class:"qy-record-quote-search__label"},L={key:1,class:"qy-record-quote-search__description"},R=t.defineComponent({name:"QyRecordQuoteSearch",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入报价单号"},buttonText:{default:"查询报价单"},autoNormalize:{type:Boolean,default:!0},showStatus:{type:Boolean,default:!0},status:{default:"default"},statusText:{default:""},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},searchOnSelect:{type:Boolean,default:!0},searchMethod:{type:[Function,null],default:null},extractMethod:{type:[Function,null],default:null},normalizeMethod:{type:[Function,null],default:null},label:{default:"报价单号"},description:{default:""},trimMode:{default:"blur"}},emits:["update:modelValue","search","clear","normalize","enter","select","error","success"],setup(y,{expose:v,emit:S}){const l=y,n=S,b=t.useAttrs(),a=t.ref(null),d=t.ref(!1),i=t.computed(()=>l.statusText||""),k=t.computed(()=>l.loading||d.value);function s(e){return e==null?"":String(e)}function C(e){const o=s(e).trim(),r=c(o),u=r.match(/BJ\d{8}[A-Z0-9]{4}/i);return u?u[0]:r}function c(e){return s(e).replace(/\s+/g,"").trim().toUpperCase()}function f(e){return l.extractMethod?l.extractMethod(e):C(e)}function m(e){return l.normalizeMethod?l.normalizeMethod(e):c(e)}function h(e,o){const r=s(e),u=f(r),g=l.autoNormalize?m(u):u;return n("normalize",{rawValue:r,code:g}),{rawValue:r,code:g,item:o}}function V(e){n("update:modelValue",e)}async function p(e){if(n("search",e),!!l.searchMethod){d.value=!0;try{const o=await l.searchMethod(e);n("success",o)}catch(o){n("error",o)}finally{d.value=!1}}}function M(e){const o=h(e);o.code!==s(l.modelValue)&&n("update:modelValue",o.code),p(o)}function B(){n("clear")}function $(e){n("enter",e)}function q(e){if(n("select",e),!l.searchOnSelect)return;const o=h(e.value,e);o.code!==s(l.modelValue)&&n("update:modelValue",o.code),p(o)}function z(e){n("error",e)}function E(){var e,o;(o=(e=a.value)==null?void 0:e.focus)==null||o.call(e)}function w(){var e,o;(o=(e=a.value)==null?void 0:e.blur)==null||o.call(e)}function N(){var e,o;(o=(e=a.value)==null?void 0:e.select)==null||o.call(e)}function O(){var e,o;(o=(e=a.value)==null?void 0:e.clear)==null||o.call(e)}return v({focus:E,blur:w,select:N,clear:O,extractQuoteOrderCode:f,normalizeQuoteOrderCode:m}),(e,o)=>(t.openBlock(),t.createElementBlock("div",Q,[t.renderSlot(e.$slots,"label",{},()=>[e.label||e.description?(t.openBlock(),t.createElementBlock("div",F,[e.label?(t.openBlock(),t.createElementBlock("div",P,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.description?(t.openBlock(),t.createElementBlock("div",L,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],!0),t.createVNode(T.default,t.mergeProps({ref_key:"searchRef",ref:a},t.unref(b),{"model-value":e.modelValue,loading:k.value,disabled:e.disabled,placeholder:e.placeholder,"remove-space":!0,"trim-mode":e.trimMode,"button-text":e.buttonText,suggestions:e.suggestions,"fetch-suggestions":e.fetchSuggestions,"fetch-suggestions-method":e.fetchSuggestionsMethod,debounce:e.debounce,"min-length":e.minLength,"search-on-select":!1,"onUpdate:modelValue":V,onSearch:M,onClear:B,onEnter:$,onSelect:q,onError:z}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,e.$slots.item?{name:"item",fn:t.withCtx(r=>[t.renderSlot(e.$slots,"item",t.normalizeProps(t.guardReactiveProps(r)),void 0,!0)]),key:"2"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"3"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","loading","disabled","placeholder","trim-mode","button-text","suggestions","fetch-suggestions","fetch-suggestions-method","debounce","min-length"]),e.showStatus&&i.value?t.renderSlot(e.$slots,"status",{key:0,status:e.status,statusText:i.value},()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-record-quote-search__status",`is-${e.status}`])},t.toDisplayString(i.value),3)],!0):t.createCommentVNode("",!0)]))}});exports.default=R;
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, useAttrs as D, ref as M, computed as $, createElementBlock as i, openBlock as c, renderSlot as a, createVNode as I, createCommentVNode as f, toDisplayString as p, mergeProps as J, unref as Z, createSlots as j, withCtx as d, normalizeProps as G, guardReactiveProps as H, createElementVNode as K, normalizeClass as W } from "vue";
|
|
2
|
-
import X from "../qy-search-input/index.vue.mjs";
|
|
3
|
-
const Y = { class: "qy-record-quote-search" }, x = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "qy-record-quote-search__header"
|
|
6
|
-
}, _ = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "qy-record-quote-search__label"
|
|
9
|
-
}, ee = {
|
|
10
|
-
key: 1,
|
|
11
|
-
class: "qy-record-quote-search__description"
|
|
12
|
-
}, ne = /* @__PURE__ */ U({
|
|
13
|
-
name: "QyRecordQuoteSearch",
|
|
14
|
-
inheritAttrs: !1,
|
|
15
|
-
__name: "index",
|
|
16
|
-
props: {
|
|
17
|
-
modelValue: { default: "" },
|
|
18
|
-
loading: { type: Boolean, default: !1 },
|
|
19
|
-
disabled: { type: Boolean, default: !1 },
|
|
20
|
-
placeholder: { default: "请输入报价单号" },
|
|
21
|
-
buttonText: { default: "查询报价单" },
|
|
22
|
-
autoNormalize: { type: Boolean, default: !0 },
|
|
23
|
-
showStatus: { type: Boolean, default: !0 },
|
|
24
|
-
status: { default: "default" },
|
|
25
|
-
statusText: { default: "" },
|
|
26
|
-
suggestions: { default: () => [] },
|
|
27
|
-
fetchSuggestions: { type: [Function, null], default: null },
|
|
28
|
-
fetchSuggestionsMethod: { type: [Function, null], default: null },
|
|
29
|
-
debounce: { default: 300 },
|
|
30
|
-
minLength: { default: 1 },
|
|
31
|
-
searchOnSelect: { type: Boolean, default: !0 },
|
|
32
|
-
searchMethod: { type: [Function, null], default: null },
|
|
33
|
-
extractMethod: { type: [Function, null], default: null },
|
|
34
|
-
normalizeMethod: { type: [Function, null], default: null },
|
|
35
|
-
label: { default: "报价单号" },
|
|
36
|
-
description: { default: "" },
|
|
37
|
-
trimMode: { default: "blur" }
|
|
38
|
-
},
|
|
39
|
-
emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
|
|
40
|
-
setup(k, { expose: z, emit: C }) {
|
|
41
|
-
const o = k, n = C, q = D(), r = M(null), h = M(!1), m = $(() => o.statusText || ""), B = $(() => o.loading || h.value);
|
|
42
|
-
function s(e) {
|
|
43
|
-
return e == null ? "" : String(e);
|
|
44
|
-
}
|
|
45
|
-
function E(e) {
|
|
46
|
-
const t = s(e).trim(), l = g(t), u = l.match(/BJ\d{8}[A-Z0-9]{4}/i);
|
|
47
|
-
return u ? u[0] : l;
|
|
48
|
-
}
|
|
49
|
-
function g(e) {
|
|
50
|
-
return s(e).replace(/\s+/g, "").trim().toUpperCase();
|
|
51
|
-
}
|
|
52
|
-
function y(e) {
|
|
53
|
-
return o.extractMethod ? o.extractMethod(e) : E(e);
|
|
54
|
-
}
|
|
55
|
-
function v(e) {
|
|
56
|
-
return o.normalizeMethod ? o.normalizeMethod(e) : g(e);
|
|
57
|
-
}
|
|
58
|
-
function b(e, t) {
|
|
59
|
-
const l = s(e), u = y(l), V = o.autoNormalize ? v(u) : u;
|
|
60
|
-
return n("normalize", { rawValue: l, code: V }), {
|
|
61
|
-
rawValue: l,
|
|
62
|
-
code: V,
|
|
63
|
-
item: t
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function Q(e) {
|
|
67
|
-
n("update:modelValue", e);
|
|
68
|
-
}
|
|
69
|
-
async function S(e) {
|
|
70
|
-
if (n("search", e), !!o.searchMethod) {
|
|
71
|
-
h.value = !0;
|
|
72
|
-
try {
|
|
73
|
-
const t = await o.searchMethod(e);
|
|
74
|
-
n("success", t);
|
|
75
|
-
} catch (t) {
|
|
76
|
-
n("error", t);
|
|
77
|
-
} finally {
|
|
78
|
-
h.value = !1;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function N(e) {
|
|
83
|
-
const t = b(e);
|
|
84
|
-
t.code !== s(o.modelValue) && n("update:modelValue", t.code), S(t);
|
|
85
|
-
}
|
|
86
|
-
function O() {
|
|
87
|
-
n("clear");
|
|
88
|
-
}
|
|
89
|
-
function T(e) {
|
|
90
|
-
n("enter", e);
|
|
91
|
-
}
|
|
92
|
-
function w(e) {
|
|
93
|
-
if (n("select", e), !o.searchOnSelect) return;
|
|
94
|
-
const t = b(e.value, e);
|
|
95
|
-
t.code !== s(o.modelValue) && n("update:modelValue", t.code), S(t);
|
|
96
|
-
}
|
|
97
|
-
function F(e) {
|
|
98
|
-
n("error", e);
|
|
99
|
-
}
|
|
100
|
-
function L() {
|
|
101
|
-
var e, t;
|
|
102
|
-
(t = (e = r.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
103
|
-
}
|
|
104
|
-
function P() {
|
|
105
|
-
var e, t;
|
|
106
|
-
(t = (e = r.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
107
|
-
}
|
|
108
|
-
function R() {
|
|
109
|
-
var e, t;
|
|
110
|
-
(t = (e = r.value) == null ? void 0 : e.select) == null || t.call(e);
|
|
111
|
-
}
|
|
112
|
-
function A() {
|
|
113
|
-
var e, t;
|
|
114
|
-
(t = (e = r.value) == null ? void 0 : e.clear) == null || t.call(e);
|
|
115
|
-
}
|
|
116
|
-
return z({
|
|
117
|
-
focus: L,
|
|
118
|
-
blur: P,
|
|
119
|
-
select: R,
|
|
120
|
-
clear: A,
|
|
121
|
-
extractQuoteOrderCode: y,
|
|
122
|
-
normalizeQuoteOrderCode: v
|
|
123
|
-
}), (e, t) => (c(), i("div", Y, [
|
|
124
|
-
a(e.$slots, "label", {}, () => [
|
|
125
|
-
e.label || e.description ? (c(), i("div", x, [
|
|
126
|
-
e.label ? (c(), i("div", _, p(e.label), 1)) : f("", !0),
|
|
127
|
-
e.description ? (c(), i("div", ee, p(e.description), 1)) : f("", !0)
|
|
128
|
-
])) : f("", !0)
|
|
129
|
-
], !0),
|
|
130
|
-
I(X, J({
|
|
131
|
-
ref_key: "searchRef",
|
|
132
|
-
ref: r
|
|
133
|
-
}, Z(q), {
|
|
134
|
-
"model-value": e.modelValue,
|
|
135
|
-
loading: B.value,
|
|
136
|
-
disabled: e.disabled,
|
|
137
|
-
placeholder: e.placeholder,
|
|
138
|
-
"remove-space": !0,
|
|
139
|
-
"trim-mode": e.trimMode,
|
|
140
|
-
"button-text": e.buttonText,
|
|
141
|
-
suggestions: e.suggestions,
|
|
142
|
-
"fetch-suggestions": e.fetchSuggestions,
|
|
143
|
-
"fetch-suggestions-method": e.fetchSuggestionsMethod,
|
|
144
|
-
debounce: e.debounce,
|
|
145
|
-
"min-length": e.minLength,
|
|
146
|
-
"search-on-select": !1,
|
|
147
|
-
"onUpdate:modelValue": Q,
|
|
148
|
-
onSearch: N,
|
|
149
|
-
onClear: O,
|
|
150
|
-
onEnter: T,
|
|
151
|
-
onSelect: w,
|
|
152
|
-
onError: F
|
|
153
|
-
}), j({ _: 2 }, [
|
|
154
|
-
e.$slots.prefix ? {
|
|
155
|
-
name: "prefix",
|
|
156
|
-
fn: d(() => [
|
|
157
|
-
a(e.$slots, "prefix", {}, void 0, !0)
|
|
158
|
-
]),
|
|
159
|
-
key: "0"
|
|
160
|
-
} : void 0,
|
|
161
|
-
e.$slots.suffix ? {
|
|
162
|
-
name: "suffix",
|
|
163
|
-
fn: d(() => [
|
|
164
|
-
a(e.$slots, "suffix", {}, void 0, !0)
|
|
165
|
-
]),
|
|
166
|
-
key: "1"
|
|
167
|
-
} : void 0,
|
|
168
|
-
e.$slots.item ? {
|
|
169
|
-
name: "item",
|
|
170
|
-
fn: d((l) => [
|
|
171
|
-
a(e.$slots, "item", G(H(l)), void 0, !0)
|
|
172
|
-
]),
|
|
173
|
-
key: "2"
|
|
174
|
-
} : void 0,
|
|
175
|
-
e.$slots.empty ? {
|
|
176
|
-
name: "empty",
|
|
177
|
-
fn: d(() => [
|
|
178
|
-
a(e.$slots, "empty", {}, void 0, !0)
|
|
179
|
-
]),
|
|
180
|
-
key: "3"
|
|
181
|
-
} : void 0,
|
|
182
|
-
e.$slots.loading ? {
|
|
183
|
-
name: "loading",
|
|
184
|
-
fn: d(() => [
|
|
185
|
-
a(e.$slots, "loading", {}, void 0, !0)
|
|
186
|
-
]),
|
|
187
|
-
key: "4"
|
|
188
|
-
} : void 0
|
|
189
|
-
]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
|
|
190
|
-
e.showStatus && m.value ? a(e.$slots, "status", {
|
|
191
|
-
key: 0,
|
|
192
|
-
status: e.status,
|
|
193
|
-
statusText: m.value
|
|
194
|
-
}, () => [
|
|
195
|
-
K("div", {
|
|
196
|
-
class: W(["qy-record-quote-search__status", `is-${e.status}`])
|
|
197
|
-
}, p(m.value), 3)
|
|
198
|
-
], !0) : f("", !0)
|
|
199
|
-
]));
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
export {
|
|
203
|
-
ne as default
|
|
204
|
-
};
|