@qynpm/ui 1.0.2 → 1.0.5
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 -59
- package/dist/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +21 -0
- package/dist/lib/dialog/index.vue.cjs +1 -0
- package/dist/{index-CibtL3Up.mjs → lib/dialog/index.vue.mjs} +12 -12
- package/dist/lib/dialog/index.vue3.cjs +1 -0
- package/dist/lib/dialog/index.vue3.mjs +5 -0
- package/dist/lib/index.cjs +1 -0
- package/dist/lib/index.mjs +53 -0
- package/dist/lib/qy-action-bar/index.vue.cjs +1 -0
- package/dist/lib/qy-action-bar/index.vue.mjs +7 -0
- package/dist/lib/qy-action-bar/index.vue2.cjs +1 -0
- package/dist/{index-DlwgfuD9.mjs → lib/qy-action-bar/index.vue2.mjs} +12 -12
- package/dist/lib/qy-form-section/index.vue.cjs +1 -0
- package/dist/lib/qy-form-section/index.vue.mjs +7 -0
- package/dist/lib/qy-form-section/index.vue2.cjs +1 -0
- package/dist/{index-Cuwe7RLf.mjs → lib/qy-form-section/index.vue2.mjs} +19 -20
- package/dist/lib/qy-input/index.vue.cjs +1 -0
- package/dist/{index-CEg8yYrg.mjs → lib/qy-input/index.vue.mjs} +8 -7
- package/dist/lib/qy-input/index.vue2.cjs +1 -0
- package/dist/lib/qy-input/index.vue2.mjs +4 -0
- package/dist/lib/qy-money-input/index.vue.cjs +1 -0
- package/dist/lib/qy-money-input/index.vue.mjs +171 -0
- package/dist/lib/qy-money-input/index.vue2.cjs +1 -0
- package/dist/lib/qy-money-input/index.vue2.mjs +4 -0
- package/dist/lib/qy-radio-group/index.vue.cjs +1 -0
- package/dist/lib/qy-radio-group/index.vue.mjs +90 -0
- package/dist/lib/qy-radio-group/index.vue2.cjs +1 -0
- package/dist/lib/qy-radio-group/index.vue2.mjs +4 -0
- package/dist/lib/qy-record-quote-search/index.vue.cjs +1 -0
- package/dist/lib/qy-record-quote-search/index.vue.mjs +7 -0
- package/dist/lib/qy-record-quote-search/index.vue2.cjs +1 -0
- package/dist/{index-BzzxlJ2O.mjs → lib/qy-record-quote-search/index.vue2.mjs} +68 -69
- package/dist/lib/qy-remote-select/index.vue.cjs +1 -0
- package/dist/lib/qy-remote-select/index.vue.mjs +214 -0
- package/dist/lib/qy-remote-select/index.vue2.cjs +1 -0
- package/dist/lib/qy-remote-select/index.vue2.mjs +4 -0
- package/dist/lib/qy-search-input/index.vue.cjs +1 -0
- package/dist/lib/qy-search-input/index.vue.mjs +7 -0
- package/dist/lib/qy-search-input/index.vue2.cjs +1 -0
- package/dist/{index-C02naY8D.mjs → lib/qy-search-input/index.vue2.mjs} +77 -77
- package/dist/lib/qy-select/index.vue.cjs +1 -0
- package/dist/lib/qy-select/index.vue.mjs +162 -0
- package/dist/lib/qy-select/index.vue2.cjs +1 -0
- package/dist/lib/qy-select/index.vue2.mjs +4 -0
- package/dist/lib/qy-voucher-upload/index.vue.cjs +1 -0
- package/dist/lib/qy-voucher-upload/index.vue.mjs +123 -0
- package/dist/lib/remark-image/index.vue.cjs +1 -0
- package/dist/lib/remark-image/index.vue.mjs +7 -0
- package/dist/lib/remark-image/index.vue2.cjs +1 -0
- package/dist/lib/remark-image/index.vue2.mjs +197 -0
- package/dist/lib/remark-image/utils.cjs +1 -0
- package/dist/lib/remark-image/utils.mjs +22 -0
- package/dist/lib/upload/index.vue.cjs +1 -0
- package/dist/lib/upload/index.vue.mjs +482 -0
- package/dist/lib/utils/auth.cjs +1 -0
- package/dist/lib/utils/auth.mjs +8 -0
- package/dist/lib/utils/install.cjs +1 -0
- package/dist/{install-CxBnxbuN.mjs → lib/utils/install.mjs} +2 -2
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.cjs +1 -0
- package/dist/{js.cookie-tagl12-O.mjs → node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs} +6 -6
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +6 -0
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +7 -0
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +6 -0
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +6 -0
- package/dist/qy-money-input/index.cjs +1 -0
- package/dist/qy-money-input/index.mjs +6 -0
- package/dist/qy-radio-group/index.cjs +1 -0
- package/dist/qy-radio-group/index.mjs +6 -0
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +6 -0
- package/dist/qy-remark-image/index.cjs +2 -2
- package/dist/qy-remark-image/index.mjs +7 -0
- package/dist/qy-remote-select/index.cjs +1 -0
- package/dist/qy-remote-select/index.mjs +6 -0
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +6 -0
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +6 -0
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +6 -0
- package/dist/qy-voucher-upload/index.cjs +1 -0
- package/dist/qy-voucher-upload/index.mjs +6 -0
- package/index.d.ts +20 -11
- package/package.json +36 -12
- package/qy-money-input/index.d.ts +12 -0
- package/qy-money-input/index.js +15 -0
- package/qy-radio-group/index.d.ts +12 -0
- package/qy-radio-group/index.js +15 -0
- package/qy-remote-select/index.d.ts +12 -0
- package/qy-remote-select/index.js +15 -0
- package/qy-voucher-upload/index.d.ts +12 -0
- package/qy-voucher-upload/index.js +15 -0
- package/dist/index-1ocyh-Ge.js +0 -1
- package/dist/index-BYAIkGVF.js +0 -1
- package/dist/index-BaU5rDMh.js +0 -1
- package/dist/index-BddPsC3s.mjs +0 -384
- package/dist/index-CzJWU89H.js +0 -1
- package/dist/index-DQ-EEZgS.js +0 -1
- package/dist/index-Dg93AsO_.mjs +0 -216
- package/dist/index-Djj-T8oy.mjs +0 -137
- package/dist/index-Do5SZ8yS.js +0 -1
- package/dist/index-DooOsQ9d.js +0 -1
- package/dist/index-DzX3lxdp.js +0 -1
- package/dist/index-tC70xKe_.js +0 -1
- package/dist/install-c8il9DQv.js +0 -1
- package/dist/js.cookie-XvHV2tha.js +0 -1
- package/dist/plugin-vue_export-helper-BHFhmbuH.js +0 -1
- package/dist/plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { defineComponent as i, computed as n, createElementBlock as t, openBlock as o, normalizeStyle as u, normalizeClass as f, createCommentVNode as s, renderSlot as a } from "vue";
|
|
2
|
-
import { _ as c } from "./plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
2
|
const y = {
|
|
4
3
|
key: 0,
|
|
5
4
|
class: "qy-action-bar__left"
|
|
6
|
-
},
|
|
5
|
+
}, c = {
|
|
7
6
|
key: 1,
|
|
8
7
|
class: "qy-action-bar__center"
|
|
9
|
-
},
|
|
8
|
+
}, p = {
|
|
10
9
|
key: 2,
|
|
11
10
|
class: "qy-action-bar__right"
|
|
12
|
-
},
|
|
11
|
+
}, k = /* @__PURE__ */ i({
|
|
13
12
|
name: "QyActionBar",
|
|
14
13
|
__name: "index",
|
|
15
14
|
props: {
|
|
@@ -21,12 +20,13 @@ const y = {
|
|
|
21
20
|
justify: { default: "between" },
|
|
22
21
|
background: { default: "#fff" }
|
|
23
22
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const r =
|
|
23
|
+
setup(l) {
|
|
24
|
+
const r = l, d = n(() => ({
|
|
25
|
+
// offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
|
|
26
26
|
bottom: `${r.offsetBottom}px`,
|
|
27
27
|
background: r.background
|
|
28
28
|
}));
|
|
29
|
-
return (e,
|
|
29
|
+
return (e, m) => (o(), t("div", {
|
|
30
30
|
class: f(["qy-action-bar", [
|
|
31
31
|
`is-justify-${e.justify}`,
|
|
32
32
|
{
|
|
@@ -36,20 +36,20 @@ const y = {
|
|
|
36
36
|
"is-wrap": e.wrap
|
|
37
37
|
}
|
|
38
38
|
]]),
|
|
39
|
-
style: u(
|
|
39
|
+
style: u(d.value)
|
|
40
40
|
}, [
|
|
41
41
|
e.$slots.left ? (o(), t("div", y, [
|
|
42
42
|
a(e.$slots, "left", {}, void 0, !0)
|
|
43
43
|
])) : s("", !0),
|
|
44
|
-
e.$slots.default ? (o(), t("div",
|
|
44
|
+
e.$slots.default ? (o(), t("div", c, [
|
|
45
45
|
a(e.$slots, "default", {}, void 0, !0)
|
|
46
46
|
])) : s("", !0),
|
|
47
|
-
e.$slots.right ? (o(), t("div",
|
|
47
|
+
e.$slots.right ? (o(), t("div", p, [
|
|
48
48
|
a(e.$slots, "right", {}, void 0, !0)
|
|
49
49
|
])) : s("", !0)
|
|
50
50
|
], 6));
|
|
51
51
|
}
|
|
52
|
-
})
|
|
52
|
+
});
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
k as default
|
|
55
55
|
};
|
|
@@ -0,0 +1 @@
|
|
|
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-f66fb30e"]]);exports.default=u;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={class:"qy-form-section__heading"},c={key:0,class:"qy-form-section__title"},u={key:0,class:"qy-form-section__description"},p={class:"qy-form-section__actions"},m=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(i,{emit:a}){const l=i,n=a,o=e.ref(l.defaultExpanded);e.watch(()=>l.defaultExpanded,t=>{o.value=t});function s(){l.collapsible&&(o.value=!o.value,n("toggle",o.value))}function r(){l.collapsible&&s()}return(t,f)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:r},[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",c,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",p,[e.renderSlot(t.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(s,["stop"])},e.toDisplayString(o.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(t.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[e.vShow,o.value]])],2))}});exports.default=m;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as y, ref as b, watch as
|
|
2
|
-
|
|
3
|
-
const C = { class: "qy-form-section__heading" }, q = {
|
|
1
|
+
import { defineComponent as y, ref as b, watch as h, createElementBlock as o, openBlock as s, normalizeClass as a, createElementVNode as d, withDirectives as v, renderSlot as i, createCommentVNode as n, toDisplayString as r, withModifiers as g, vShow as _ } from "vue";
|
|
2
|
+
const k = { class: "qy-form-section__heading" }, C = {
|
|
4
3
|
key: 0,
|
|
5
4
|
class: "qy-form-section__title"
|
|
6
|
-
},
|
|
5
|
+
}, q = {
|
|
7
6
|
key: 0,
|
|
8
7
|
class: "qy-form-section__description"
|
|
9
|
-
},
|
|
8
|
+
}, $ = { class: "qy-form-section__actions" }, B = /* @__PURE__ */ y({
|
|
10
9
|
name: "QyFormSection",
|
|
11
10
|
__name: "index",
|
|
12
11
|
props: {
|
|
@@ -22,21 +21,21 @@ const C = { class: "qy-form-section__heading" }, q = {
|
|
|
22
21
|
headerClass: { default: "" }
|
|
23
22
|
},
|
|
24
23
|
emits: ["toggle"],
|
|
25
|
-
setup(
|
|
26
|
-
const l =
|
|
27
|
-
|
|
24
|
+
setup(c, { emit: p }) {
|
|
25
|
+
const l = c, f = p, t = b(l.defaultExpanded);
|
|
26
|
+
h(
|
|
28
27
|
() => l.defaultExpanded,
|
|
29
28
|
(e) => {
|
|
30
29
|
t.value = e;
|
|
31
30
|
}
|
|
32
31
|
);
|
|
33
|
-
function
|
|
32
|
+
function u() {
|
|
34
33
|
l.collapsible && (t.value = !t.value, f("toggle", t.value));
|
|
35
34
|
}
|
|
36
35
|
function m() {
|
|
37
|
-
l.collapsible &&
|
|
36
|
+
l.collapsible && u();
|
|
38
37
|
}
|
|
39
|
-
return (e,
|
|
38
|
+
return (e, E) => (s(), o("section", {
|
|
40
39
|
class: a(["qy-form-section", [
|
|
41
40
|
`is-bg-${e.background}`,
|
|
42
41
|
{
|
|
@@ -49,25 +48,25 @@ const C = { class: "qy-form-section__heading" }, q = {
|
|
|
49
48
|
class: a(["qy-form-section__header", e.headerClass]),
|
|
50
49
|
onClick: m
|
|
51
50
|
}, [
|
|
52
|
-
d("div",
|
|
51
|
+
d("div", k, [
|
|
53
52
|
i(e.$slots, "title", {}, () => [
|
|
54
|
-
e.title ? (s(), o("div",
|
|
53
|
+
e.title ? (s(), o("div", C, r(e.title), 1)) : n("", !0)
|
|
55
54
|
], !0),
|
|
56
55
|
i(e.$slots, "description", {}, () => [
|
|
57
|
-
e.description ? (s(), o("div",
|
|
56
|
+
e.description ? (s(), o("div", q, r(e.description), 1)) : n("", !0)
|
|
58
57
|
], !0)
|
|
59
58
|
]),
|
|
60
|
-
d("div",
|
|
59
|
+
d("div", $, [
|
|
61
60
|
i(e.$slots, "actions", {}, void 0, !0),
|
|
62
61
|
e.collapsible ? (s(), o("button", {
|
|
63
62
|
key: 0,
|
|
64
63
|
type: "button",
|
|
65
64
|
class: "qy-form-section__toggle",
|
|
66
|
-
onClick:
|
|
65
|
+
onClick: g(u, ["stop"])
|
|
67
66
|
}, r(t.value ? "收起" : "展开"), 1)) : n("", !0)
|
|
68
67
|
])
|
|
69
68
|
], 2),
|
|
70
|
-
|
|
69
|
+
v(d("div", {
|
|
71
70
|
class: a(["qy-form-section__body", e.bodyClass])
|
|
72
71
|
}, [
|
|
73
72
|
i(e.$slots, "tip", {}, () => [
|
|
@@ -78,11 +77,11 @@ const C = { class: "qy-form-section__heading" }, q = {
|
|
|
78
77
|
], !0),
|
|
79
78
|
i(e.$slots, "default", {}, void 0, !0)
|
|
80
79
|
], 2), [
|
|
81
|
-
[
|
|
80
|
+
[_, t.value]
|
|
82
81
|
])
|
|
83
82
|
], 2));
|
|
84
83
|
}
|
|
85
|
-
})
|
|
84
|
+
});
|
|
86
85
|
export {
|
|
87
|
-
|
|
86
|
+
B as default
|
|
88
87
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),T=require("element-plus"),P=t.defineComponent({name:"QyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(d,{expose:c,emit:p}){const r=d,u=p,m=t.useAttrs(),l=t.ref(null),a=t.ref(o(r.modelValue)),h=t.computed(()=>o(r.modelValue));t.watch(()=>r.modelValue,e=>{a.value=o(e)});function o(e){return e==null?"":String(e)}function v(e){return r.removeSpace?e.replace(/\s+/g,""):e}function s(e,n){return r.trimMode!==n?e:e.trim()}function f(e){return v(o(e))}function i(e){a.value=e,u("update:modelValue",e)}function V(e){const n=f(e);i(n)}function g(e){a.value=o(e),u("input",o(e))}function x(e){const n=s(f(e),"change");n!==o(r.modelValue)&&i(n),u("change",n)}function y(e){u("focus",e)}function S(e){const n=s(a.value,"blur");n!==o(r.modelValue)&&i(n),u("blur",e)}function C(){a.value="",u("update:modelValue",""),u("clear")}function $(e){u("enter",e)}function b(){var e,n;(n=(e=l.value)==null?void 0:e.focus)==null||n.call(e)}function k(){var e,n;(n=(e=l.value)==null?void 0:e.blur)==null||n.call(e)}function w(){var e,n;(n=(e=l.value)==null?void 0:e.select)==null||n.call(e)}function I(){var e,n;(n=(e=l.value)==null?void 0:e.clear)==null||n.call(e)}function M(){var e,n;(n=(e=l.value)==null?void 0:e.resizeTextarea)==null||n.call(e)}function z(){var e;return((e=l.value)==null?void 0:e.input)||null}function B(){var e;return((e=l.value)==null?void 0:e.textarea)||null}return c({focus:b,blur:k,select:w,clear:I,resizeTextarea:M,getNativeInput:z,getTextarea:B}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(T.ElInput),t.mergeProps({ref_key:"inputRef",ref:l},t.unref(m),{"model-value":h.value,"onUpdate:modelValue":V,onInput:g,onChange:x,onFocus:y,onBlur:S,onClear:C,onKeydown:t.withKeys($,["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=P;
|
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
2
|
-
import { ElInput as
|
|
3
|
-
const
|
|
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
4
|
name: "QyInput",
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -86,6 +86,7 @@ const H = F({
|
|
|
86
86
|
return ((e = u.value) == null ? void 0 : e.textarea) || null;
|
|
87
87
|
}
|
|
88
88
|
return V({
|
|
89
|
+
// 暴露 Element Plus 常用输入框方法,方便业务弹窗做聚焦、选中和 textarea 重算高度。
|
|
89
90
|
focus: z,
|
|
90
91
|
blur: B,
|
|
91
92
|
select: w,
|
|
@@ -93,7 +94,7 @@ const H = F({
|
|
|
93
94
|
resizeTextarea: T,
|
|
94
95
|
getNativeInput: A,
|
|
95
96
|
getTextarea: E
|
|
96
|
-
}), (e, n) => (P(), N(p(
|
|
97
|
+
}), (e, n) => (P(), N(p(D), Q({
|
|
97
98
|
ref_key: "inputRef",
|
|
98
99
|
ref: u
|
|
99
100
|
}, p(v), {
|
|
@@ -104,8 +105,8 @@ const H = F({
|
|
|
104
105
|
onFocus: C,
|
|
105
106
|
onBlur: I,
|
|
106
107
|
onClear: S,
|
|
107
|
-
onKeydown:
|
|
108
|
-
}),
|
|
108
|
+
onKeydown: j(b, ["enter"])
|
|
109
|
+
}), q({ _: 2 }, [
|
|
109
110
|
e.$slots.prefix ? {
|
|
110
111
|
name: "prefix",
|
|
111
112
|
fn: r(() => [
|
|
@@ -138,5 +139,5 @@ const H = F({
|
|
|
138
139
|
}
|
|
139
140
|
});
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
J as default
|
|
142
143
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
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;
|