@qynpm/ui 1.0.35 → 1.0.37
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 +85 -34
- package/dist/index.cjs +5 -4
- package/dist/index.mjs +61 -59
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +1 -1
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +2 -2
- package/dist/qy-icon-picker/index.mjs +2 -2
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -0
- package/dist/qy-input-tag/index.mjs +7 -0
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +5 -2
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +5 -2
- package/dist/shared/index-3KGa3jVi.mjs +2754 -0
- package/dist/shared/{index-DY-CA7Vr.mjs → index-BF6f9QDU.mjs} +1 -1
- package/dist/shared/{index-Bi9wgcgT.cjs → index-BQEymEbE.cjs} +1 -1
- package/dist/shared/{index-3qEac4h8.cjs → index-BTbiht5h.cjs} +1 -1
- package/dist/shared/index-BYX0biqw.mjs +766 -0
- package/dist/shared/index-BxxwEr52.mjs +107 -0
- package/dist/shared/index-C1i-hd-W.cjs +1 -0
- package/dist/shared/{index-S8HW36Mc.mjs → index-Crr3HB8g.mjs} +1 -1
- package/dist/shared/index-D8kce2jH.cjs +1 -0
- package/dist/shared/index-Di_xbC7d.cjs +1 -0
- package/dist/shared/index-Dm8kY2v6.mjs +285 -0
- package/dist/shared/index-DnNIseRJ.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CAW_QOyJ.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Dr9Elmzn.mjs +317 -0
- package/index.d.ts +82 -25
- package/package.json +490 -483
- package/qy-file-picker/index.d.ts +4 -1
- package/qy-icon/index.d.ts +9 -6
- package/qy-image-preview/index.d.ts +0 -1
- package/qy-image-upload/index.d.ts +69 -12
- package/qy-input/index.d.ts +76 -18
- package/qy-input-number/index.d.ts +64 -30
- package/qy-input-tag/index.d.ts +69 -0
- package/qy-money-input/index.d.ts +87 -12
- package/qy-upload/index.d.ts +99 -5
- package/dist/shared/index-AMu0L6uU.cjs +0 -1
- package/dist/shared/index-BekN1g_r.mjs +0 -3541
- package/dist/shared/index-BkX9xlbI.cjs +0 -1
- package/dist/shared/index-C91mzAI3.mjs +0 -254
- package/dist/shared/index-C_1KP3l9.mjs +0 -129
- package/dist/shared/index-Ce_hvR--.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs +0 -132
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BcZb1U13.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DccRGtZE.cjs +0 -1
- /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs → index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CglCPcj-.cjs → index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs} +0 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { defineComponent as I, useAttrs as L, computed as P, ref as c, onMounted as z, onBeforeUnmount as M, openBlock as N, createBlock as S, unref as k, mergeProps as A, createSlots as T, withCtx as s, renderSlot as d } from "vue";
|
|
2
|
+
import { ElInputNumber as U } from "element-plus";
|
|
3
|
+
const F = /* @__PURE__ */ I({
|
|
4
|
+
name: "QyInputNumber",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
id: {},
|
|
9
|
+
step: { default: 1 },
|
|
10
|
+
stepStrictly: { type: Boolean, default: !1 },
|
|
11
|
+
max: { default: void 0 },
|
|
12
|
+
min: { default: void 0 },
|
|
13
|
+
modelValue: { default: void 0 },
|
|
14
|
+
readonly: { type: Boolean, default: !1 },
|
|
15
|
+
disabled: { type: Boolean, default: !1 },
|
|
16
|
+
size: { default: void 0 },
|
|
17
|
+
controls: { type: Boolean, default: !0 },
|
|
18
|
+
controlsPosition: { default: "" },
|
|
19
|
+
valueOnClear: { default: null },
|
|
20
|
+
name: {},
|
|
21
|
+
placeholder: { default: "请输入数字" },
|
|
22
|
+
precision: { default: void 0 },
|
|
23
|
+
validateEvent: { type: Boolean },
|
|
24
|
+
ariaLabel: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue", "input", "change", "focus", "blur"],
|
|
27
|
+
setup(n, { expose: p, emit: b }) {
|
|
28
|
+
const t = n, o = b, h = L(), y = P(
|
|
29
|
+
() => Object.fromEntries(
|
|
30
|
+
Object.entries(h).filter(
|
|
31
|
+
([e]) => e === "class" || e === "style" || e === "title" || e === "role" || e.startsWith("data-") || e.startsWith("aria-")
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
), i = c(null), l = c(!1), f = c(t.modelValue);
|
|
35
|
+
function g() {
|
|
36
|
+
return t.valueOnClear === "min" ? t.min : t.valueOnClear === "max" ? t.max : t.valueOnClear;
|
|
37
|
+
}
|
|
38
|
+
function u(e = !1) {
|
|
39
|
+
var r, v;
|
|
40
|
+
if (!l.value) return;
|
|
41
|
+
l.value = !1;
|
|
42
|
+
const a = g();
|
|
43
|
+
o("update:modelValue", a), o("change", a, f.value), e && ((v = (r = i.value) == null ? void 0 : r.blur) == null || v.call(r));
|
|
44
|
+
}
|
|
45
|
+
function C(e) {
|
|
46
|
+
e === null && t.valueOnClear !== null && (l.value = !0, f.value = t.modelValue), o("update:modelValue", e);
|
|
47
|
+
}
|
|
48
|
+
function V(e) {
|
|
49
|
+
o("input", e);
|
|
50
|
+
}
|
|
51
|
+
function B(e, a) {
|
|
52
|
+
if (l.value && e === null) {
|
|
53
|
+
u();
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
l.value = !1, o("change", e, a);
|
|
57
|
+
}
|
|
58
|
+
function O(e) {
|
|
59
|
+
o("focus", e);
|
|
60
|
+
}
|
|
61
|
+
function x(e) {
|
|
62
|
+
l.value && e.target instanceof HTMLInputElement && e.target.value === "" && u(), o("blur", e);
|
|
63
|
+
}
|
|
64
|
+
function E(e) {
|
|
65
|
+
l.value && e.key === "Tab" && e.target instanceof HTMLInputElement && e.target.value === "" && u(!0);
|
|
66
|
+
}
|
|
67
|
+
function m(e) {
|
|
68
|
+
const a = e.target;
|
|
69
|
+
l.value && a instanceof Element && !a.closest(".qy-input-number") && u(!0);
|
|
70
|
+
}
|
|
71
|
+
function $() {
|
|
72
|
+
var e, a;
|
|
73
|
+
(a = (e = i.value) == null ? void 0 : e.focus) == null || a.call(e);
|
|
74
|
+
}
|
|
75
|
+
function w() {
|
|
76
|
+
var e, a;
|
|
77
|
+
(a = (e = i.value) == null ? void 0 : e.blur) == null || a.call(e);
|
|
78
|
+
}
|
|
79
|
+
return p({
|
|
80
|
+
focus: $,
|
|
81
|
+
blur: w
|
|
82
|
+
}), z(() => {
|
|
83
|
+
document.addEventListener("pointerdown", m, !0);
|
|
84
|
+
}), M(() => {
|
|
85
|
+
document.removeEventListener("pointerdown", m, !0);
|
|
86
|
+
}), (e, a) => (N(), S(k(U), A({
|
|
87
|
+
ref_key: "inputNumberRef",
|
|
88
|
+
ref: i
|
|
89
|
+
}, y.value, {
|
|
90
|
+
class: "qy-input-number",
|
|
91
|
+
"model-value": n.modelValue,
|
|
92
|
+
min: n.min,
|
|
93
|
+
max: n.max,
|
|
94
|
+
step: n.step,
|
|
95
|
+
"step-strictly": n.stepStrictly,
|
|
96
|
+
precision: n.precision,
|
|
97
|
+
controls: n.controls,
|
|
98
|
+
"controls-position": n.controlsPosition,
|
|
99
|
+
placeholder: n.placeholder,
|
|
100
|
+
disabled: n.disabled,
|
|
101
|
+
readonly: n.readonly,
|
|
102
|
+
size: n.size,
|
|
103
|
+
"value-on-clear": n.valueOnClear,
|
|
104
|
+
"validate-event": n.validateEvent,
|
|
105
|
+
id: n.id,
|
|
106
|
+
name: n.name,
|
|
107
|
+
"aria-label": n.ariaLabel,
|
|
108
|
+
"onUpdate:modelValue": C,
|
|
109
|
+
onInput: V,
|
|
110
|
+
onChange: B,
|
|
111
|
+
onFocus: O,
|
|
112
|
+
onBlur: x,
|
|
113
|
+
onKeydownCapture: E
|
|
114
|
+
}), T({ _: 2 }, [
|
|
115
|
+
e.$slots.prefix ? {
|
|
116
|
+
name: "prefix",
|
|
117
|
+
fn: s(() => [
|
|
118
|
+
d(e.$slots, "prefix")
|
|
119
|
+
]),
|
|
120
|
+
key: "0"
|
|
121
|
+
} : void 0,
|
|
122
|
+
e.$slots.suffix ? {
|
|
123
|
+
name: "suffix",
|
|
124
|
+
fn: s(() => [
|
|
125
|
+
d(e.$slots, "suffix")
|
|
126
|
+
]),
|
|
127
|
+
key: "1"
|
|
128
|
+
} : void 0,
|
|
129
|
+
e.$slots["increase-icon"] ? {
|
|
130
|
+
name: "increase-icon",
|
|
131
|
+
fn: s(() => [
|
|
132
|
+
d(e.$slots, "increase-icon")
|
|
133
|
+
]),
|
|
134
|
+
key: "2"
|
|
135
|
+
} : void 0,
|
|
136
|
+
e.$slots["decrease-icon"] ? {
|
|
137
|
+
name: "decrease-icon",
|
|
138
|
+
fn: s(() => [
|
|
139
|
+
d(e.$slots, "decrease-icon")
|
|
140
|
+
]),
|
|
141
|
+
key: "3"
|
|
142
|
+
} : void 0
|
|
143
|
+
]), 1040, ["model-value", "min", "max", "step", "step-strictly", "precision", "controls", "controls-position", "placeholder", "disabled", "readonly", "size", "value-on-clear", "validate-event", "id", "name", "aria-label"]));
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
export {
|
|
147
|
+
F as _
|
|
148
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),Q=require("./index-BQEymEbE.cjs"),T=require("./index-nSFTxVz8.cjs"),J=require("../qy-popover/index.cjs"),S=require("./index-D8kce2jH.cjs");function X(l,f){const v=f==null?"":String(f),n=l&&v?l.resolve(v):void 0;return Object.freeze({value:v,known:!!n,canonicalName:n==null?void 0:n.name,definition:n})}function Z(l,f,v=""){const n=(l==null?void 0:l.list())??[],c=f===void 0?void 0:new Set(f.map(r=>{var p;return(p=l==null?void 0:l.resolve(r))==null?void 0:p.name}).filter(r=>!!r).map(z)),d=String(v).trim().toLocaleLowerCase();return Object.freeze(n.filter(r=>c&&!c.has(z(r.name))?!1:d?[r.name,r.label,...r.keywords??[]].some(p=>typeof p=="string"&&p.toLocaleLowerCase().includes(d)):!0))}function z(l){return S.normalizeQyIconName(l).toLocaleLowerCase()}const ee={class:"qy-icon-picker"},ae=["onKeydown"],ne={class:"qy-icon-picker__preview","aria-hidden":"true"},oe={key:1,class:"qy-icon-picker__missing","aria-hidden":"true"},te=["id"],le={class:"qy-icon-picker__search","data-testid":"qy-icon-picker-search"},re={key:0,class:"qy-icon-picker__state","data-testid":"qy-icon-picker-loading",role:"status"},ie={key:1,class:"qy-icon-picker__state qy-icon-picker__state--error","data-testid":"qy-icon-picker-error",role:"alert"},ce=["aria-label"],ue=["id","data-qy-icon-option","data-qy-icon-active","aria-selected","tabindex","onClick","onFocus","onKeydown"],se={class:"qy-icon-picker__option-label"},de={key:3,class:"qy-icon-picker__empty"};let pe=0;const fe=e.defineComponent({name:"QyIconPicker",__name:"index",props:{modelValue:{default:""},allowedNames:{},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},size:{default:"default"},placeholder:{default:"点击选择图标"},searchPlaceholder:{default:"搜索图标名称、标签或关键词"},emptyText:{default:"暂无匹配图标"},panelWidth:{default:540},open:{type:Boolean,default:void 0},id:{},ariaLabel:{}},emits:["update:modelValue","change","clear","update:open","open-change"],setup(l,{expose:f,emit:v}){const n=l,c=v,d=e.inject(S.QY_ICON_REGISTRY_KEY,null),r=e.ref(""),p=e.ref(!1),i=e.ref(-1),w=e.ref([]),m=e.ref(!1),g=e.ref(""),V=e.ref(0);let x=!1;const h=e.ref(null),L=e.ref(null),q=e.ref("pointer"),$=`qy-icon-picker-${++pe}`,y=e.computed(()=>X(d,n.modelValue)),s=e.computed(()=>(V.value,Z(d,n.allowedNames,r.value))),_=e.computed(()=>n.open!==void 0),k=e.computed(()=>_.value?n.open===!0:p.value),M=e.computed(()=>"click"),B=e.computed(()=>`${n.id||$}-panel`);e.watch(k,(a,o)=>{!a||o||(r.value="",i.value=F(),w.value=[],!x&&d&&(x=!0,K(d.load())),q.value==="keyboard"&&e.nextTick(()=>{var t,u;return(u=(t=L.value)==null?void 0:t.focus)==null?void 0:u.call(t)}))});function K(a){m.value=!0,g.value="",a.then(()=>{m.value=!1,V.value++},o=>{m.value=!1,g.value=o instanceof Error?o.message:String(o)})}function A(){!d||m.value||K(d.retry())}e.watch(s,()=>{if(!s.value.length){i.value=-1;return}i.value>=s.value.length&&(i.value=0),i.value<0&&(i.value=0)});function P(){n.disabled||(q.value="keyboard",C("keyboard"))}function D(a){n.disabled||_.value&&n.open!==!1||(a.stopImmediatePropagation(),C("pointer"))}function O(a){I(a)}function U(a){a===k.value&&(_.value||(p.value=a),c("open-change",a),a||e.nextTick(()=>{var o,t;return(t=(o=h.value)==null?void 0:o.focus)==null?void 0:t.call(o)}))}function I(a){a&&n.disabled||a!==k.value&&(_.value||(p.value=a),c("update:open",a))}function C(a="programmatic"){q.value=a,I(!0)}function E(){I(!1),e.nextTick(()=>{var a,o;return(o=(a=h.value)==null?void 0:a.focus)==null?void 0:o.call(a)})}function R(){n.disabled||(c("update:modelValue",""),c("change",""),c("clear"))}function N(a){n.disabled||(c("update:modelValue",a.name),c("change",a.name),E())}function j(a){if(a.key==="Escape"){a.preventDefault(),E();return}if(!s.value.length||!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(a.key))return;a.preventDefault();const o=a.key==="ArrowUp"||a.key==="ArrowLeft"?-1:1,t=s.value.length;i.value=(i.value+o+t)%t,e.nextTick(()=>{var u;return(u=w.value[i.value])==null?void 0:u.focus()})}function F(){const a=y.value.canonicalName;if(!a)return s.value.length?0:-1;const o=s.value.findIndex(({name:t})=>t===a);return o>=0?o:s.value.length?0:-1}function Y(a,o){a instanceof HTMLElement&&(w.value[o]=a)}function W(a){return`${B.value}-${encodeURIComponent(a)}`}function G(){var a,o;(o=(a=h.value)==null?void 0:a.focus)==null||o.call(a)}function H(){var a,o;(o=(a=h.value)==null?void 0:a.blur)==null||o.call(a)}return f({focus:G,blur:H,open:C,close:E}),(a,o)=>(e.openBlock(),e.createElementBlock("div",ee,[e.createVNode(e.unref(J.QyPopover),{ref:"popoverRef",class:"qy-icon-picker__popover",open:k.value,trigger:M.value,placement:"bottom-start",width:n.panelWidth,"show-delay":0,"hide-delay":0,disabled:n.disabled||_.value&&n.open===!1,"onUpdate:open":O,onOpenChange:U},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"qy-icon-picker__trigger","data-testid":"qy-icon-picker-trigger",onClick:D,onKeydown:[e.withKeys(e.withModifiers(P,["prevent"]),["enter"]),e.withKeys(e.withModifiers(P,["prevent"]),["space"])]},[e.createVNode(e.unref(T.QyInput),{ref_key:"triggerRef",ref:h,id:n.id,"model-value":y.value.value,size:n.size,disabled:n.disabled,clearable:n.clearable,readonly:"",placeholder:n.placeholder,"aria-label":n.ariaLabel,"aria-haspopup":"listbox","aria-expanded":k.value?"true":"false","aria-controls":B.value,onClear:R},{prefix:e.withCtx(()=>[e.createElementVNode("span",ne,[y.value.definition?(e.openBlock(),e.createBlock(e.unref(Q.QyIcon),{key:0,name:y.value.definition.name,size:18},null,8,["name"])):(e.openBlock(),e.createElementBlock("span",oe,"?"))])]),suffix:e.withCtx(()=>[n.clearable&&y.value.value?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-icon-picker__clear","data-testid":"qy-icon-picker-clear","aria-label":"清空图标",onClick:e.withModifiers(R,["stop","prevent"])},[...o[1]||(o[1]=[e.createElementVNode("span",{"aria-hidden":"true"},"×",-1)])])):e.createCommentVNode("",!0)]),_:1},8,["id","model-value","size","disabled","clearable","placeholder","aria-label","aria-expanded","aria-controls"])],40,ae)]),default:e.withCtx(()=>[k.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:B.value,class:"qy-icon-picker__panel",onKeydown:j},[e.createElementVNode("div",le,[e.createVNode(e.unref(T.QyInput),{ref_key:"searchRef",ref:L,modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=t=>r.value=t),type:"search",clearable:"",placeholder:n.searchPlaceholder,"aria-label":"搜索图标"},null,8,["modelValue","placeholder"])]),m.value?(e.openBlock(),e.createElementBlock("div",re," 正在加载图标… ")):g.value?(e.openBlock(),e.createElementBlock("div",ie,[e.createElementVNode("span",null,e.toDisplayString(g.value),1),e.createElementVNode("button",{type:"button","data-testid":"qy-icon-picker-retry",onClick:A}," 重试 ")])):s.value.length?(e.openBlock(),e.createElementBlock("div",{key:2,class:"qy-icon-picker__grid",role:"listbox","aria-label":n.ariaLabel||"图标列表"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(t,u)=>(e.openBlock(),e.createElementBlock("div",{id:W(t.name),key:t.name,ref_for:!0,ref:b=>Y(b,u),class:e.normalizeClass(["qy-icon-picker__option",{"is-active":i.value===u}]),"data-qy-icon-option":t.name,"data-qy-icon-active":i.value===u?"true":void 0,role:"option","aria-selected":y.value.canonicalName===t.name?"true":"false",tabindex:i.value===u?0:-1,onClick:b=>N(t),onFocus:b=>i.value=u,onKeydown:[e.withKeys(e.withModifiers(b=>N(t),["prevent"]),["enter"]),e.withKeys(e.withModifiers(b=>N(t),["prevent"]),["space"])]},[e.createVNode(e.unref(Q.QyIcon),{name:t.name,size:18,"aria-hidden":"true"},null,8,["name"]),e.createElementVNode("span",se,e.toDisplayString(t.label||t.name),1)],42,ue))),128))],8,ce)):(e.openBlock(),e.createElementBlock("div",de,[e.renderSlot(a.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(n.emptyText),1)])]))],40,te)):e.createCommentVNode("",!0)]),_:3},8,["open","trigger","width","disabled"])]))}});exports._sfc_main=fe;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),E=require("element-plus"),$=n.defineComponent({name:"QyInputNumber",inheritAttrs:!1,__name:"index",props:{id:{},step:{default:1},stepStrictly:{type:Boolean,default:!1},max:{default:void 0},min:{default:void 0},modelValue:{default:void 0},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:void 0},controls:{type:Boolean,default:!0},controlsPosition:{default:""},valueOnClear:{default:null},name:{},placeholder:{default:"请输入数字"},precision:{default:void 0},validateEvent:{type:Boolean},ariaLabel:{}},emits:["update:modelValue","input","change","focus","blur"],setup(t,{expose:m,emit:v}){const a=t,i=v,p=n.useAttrs(),h=n.computed(()=>Object.fromEntries(Object.entries(p).filter(([e])=>e==="class"||e==="style"||e==="title"||e==="role"||e.startsWith("data-")||e.startsWith("aria-")))),u=n.ref(null),o=n.ref(!1),d=n.ref(a.modelValue);function b(){return a.valueOnClear==="min"?a.min:a.valueOnClear==="max"?a.max:a.valueOnClear}function r(e=!1){var s,f;if(!o.value)return;o.value=!1;const l=b();i("update:modelValue",l),i("change",l,d.value),e&&((f=(s=u.value)==null?void 0:s.blur)==null||f.call(s))}function y(e){e===null&&a.valueOnClear!==null&&(o.value=!0,d.value=a.modelValue),i("update:modelValue",e)}function C(e){i("input",e)}function g(e,l){if(o.value&&e===null){r();return}o.value=!1,i("change",e,l)}function x(e){i("focus",e)}function V(e){o.value&&e.target instanceof HTMLInputElement&&e.target.value===""&&r(),i("blur",e)}function B(e){o.value&&e.key==="Tab"&&e.target instanceof HTMLInputElement&&e.target.value===""&&r(!0)}function c(e){const l=e.target;o.value&&l instanceof Element&&!l.closest(".qy-input-number")&&r(!0)}function O(){var e,l;(l=(e=u.value)==null?void 0:e.focus)==null||l.call(e)}function w(){var e,l;(l=(e=u.value)==null?void 0:e.blur)==null||l.call(e)}return m({focus:O,blur:w}),n.onMounted(()=>{document.addEventListener("pointerdown",c,!0)}),n.onBeforeUnmount(()=>{document.removeEventListener("pointerdown",c,!0)}),(e,l)=>(n.openBlock(),n.createBlock(n.unref(E.ElInputNumber),n.mergeProps({ref_key:"inputNumberRef",ref:u},h.value,{class:"qy-input-number","model-value":t.modelValue,min:t.min,max:t.max,step:t.step,"step-strictly":t.stepStrictly,precision:t.precision,controls:t.controls,"controls-position":t.controlsPosition,placeholder:t.placeholder,disabled:t.disabled,readonly:t.readonly,size:t.size,"value-on-clear":t.valueOnClear,"validate-event":t.validateEvent,id:t.id,name:t.name,"aria-label":t.ariaLabel,"onUpdate:modelValue":y,onInput:C,onChange:g,onFocus:x,onBlur:V,onKeydownCapture:B}),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots["increase-icon"]?{name:"increase-icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"increase-icon")]),key:"2"}:void 0,e.$slots["decrease-icon"]?{name:"decrease-icon",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"decrease-icon")]),key:"3"}:void 0]),1040,["model-value","min","max","step","step-strictly","precision","controls","controls-position","placeholder","disabled","readonly","size","value-on-clear","validate-event","id","name","aria-label"]))}});exports._sfc_main=$;
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { defineComponent as ue, inject as se, ref as d, computed as b, watch as M, nextTick as Q, openBlock as u, createElementBlock as p, createVNode as R, unref as C, withCtx as z, createElementVNode as h, toDisplayString as S, Fragment as de, renderList as pe, withKeys as K, withModifiers as L, normalizeClass as fe, renderSlot as ve, createTextVNode as ye, createCommentVNode as Y, createBlock as me } from "vue";
|
|
2
|
+
import { Q as W } from "./index-BF6f9QDU.mjs";
|
|
3
|
+
import { Q as G } from "./index-JjHutKmT.mjs";
|
|
4
|
+
import { QyPopover as he } from "../qy-popover/index.mjs";
|
|
5
|
+
import { n as _e, Q as ke } from "./index-Dm8kY2v6.mjs";
|
|
6
|
+
function be(l, y) {
|
|
7
|
+
const m = y == null ? "" : String(y), a = l && m ? l.resolve(m) : void 0;
|
|
8
|
+
return Object.freeze({
|
|
9
|
+
value: m,
|
|
10
|
+
known: !!a,
|
|
11
|
+
canonicalName: a == null ? void 0 : a.name,
|
|
12
|
+
definition: a
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function ge(l, y, m = "") {
|
|
16
|
+
const a = (l == null ? void 0 : l.list()) ?? [], i = y === void 0 ? void 0 : new Set(
|
|
17
|
+
y.map((t) => {
|
|
18
|
+
var v;
|
|
19
|
+
return (v = l == null ? void 0 : l.resolve(t)) == null ? void 0 : v.name;
|
|
20
|
+
}).filter((t) => !!t).map(H)
|
|
21
|
+
), f = String(m).trim().toLocaleLowerCase();
|
|
22
|
+
return Object.freeze(
|
|
23
|
+
a.filter((t) => i && !i.has(H(t.name)) ? !1 : f ? [
|
|
24
|
+
t.name,
|
|
25
|
+
t.label,
|
|
26
|
+
...t.keywords ?? []
|
|
27
|
+
].some(
|
|
28
|
+
(v) => typeof v == "string" && v.toLocaleLowerCase().includes(f)
|
|
29
|
+
) : !0)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
function H(l) {
|
|
33
|
+
return _e(l).toLocaleLowerCase();
|
|
34
|
+
}
|
|
35
|
+
const qe = { class: "qy-icon-picker" }, we = ["onKeydown"], Ie = {
|
|
36
|
+
class: "qy-icon-picker__preview",
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}, Ce = {
|
|
39
|
+
key: 1,
|
|
40
|
+
class: "qy-icon-picker__missing",
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}, Le = ["id"], Pe = {
|
|
43
|
+
class: "qy-icon-picker__search",
|
|
44
|
+
"data-testid": "qy-icon-picker-search"
|
|
45
|
+
}, Qe = {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: "qy-icon-picker__state",
|
|
48
|
+
"data-testid": "qy-icon-picker-loading",
|
|
49
|
+
role: "status"
|
|
50
|
+
}, Re = {
|
|
51
|
+
key: 1,
|
|
52
|
+
class: "qy-icon-picker__state qy-icon-picker__state--error",
|
|
53
|
+
"data-testid": "qy-icon-picker-error",
|
|
54
|
+
role: "alert"
|
|
55
|
+
}, ze = ["aria-label"], Ke = ["id", "data-qy-icon-option", "data-qy-icon-active", "aria-selected", "tabindex", "onClick", "onFocus", "onKeydown"], Ne = { class: "qy-icon-picker__option-label" }, xe = {
|
|
56
|
+
key: 3,
|
|
57
|
+
class: "qy-icon-picker__empty"
|
|
58
|
+
};
|
|
59
|
+
let Ve = 0;
|
|
60
|
+
const Ae = /* @__PURE__ */ ue({
|
|
61
|
+
name: "QyIconPicker",
|
|
62
|
+
__name: "index",
|
|
63
|
+
props: {
|
|
64
|
+
modelValue: { default: "" },
|
|
65
|
+
allowedNames: {},
|
|
66
|
+
disabled: { type: Boolean, default: !1 },
|
|
67
|
+
clearable: { type: Boolean, default: !1 },
|
|
68
|
+
size: { default: "default" },
|
|
69
|
+
placeholder: { default: "点击选择图标" },
|
|
70
|
+
searchPlaceholder: { default: "搜索图标名称、标签或关键词" },
|
|
71
|
+
emptyText: { default: "暂无匹配图标" },
|
|
72
|
+
panelWidth: { default: 540 },
|
|
73
|
+
open: { type: Boolean, default: void 0 },
|
|
74
|
+
id: {},
|
|
75
|
+
ariaLabel: {}
|
|
76
|
+
},
|
|
77
|
+
emits: ["update:modelValue", "change", "clear", "update:open", "open-change"],
|
|
78
|
+
setup(l, { expose: y, emit: m }) {
|
|
79
|
+
const a = l, i = m, f = se(ke, null), t = d(""), v = d(!1), r = d(-1), N = d([]), g = d(!1), P = d(""), A = d(0);
|
|
80
|
+
let O = !1;
|
|
81
|
+
const q = d(null), U = d(null), x = d("pointer"), J = `qy-icon-picker-${++Ve}`, _ = b(
|
|
82
|
+
() => be(f, a.modelValue)
|
|
83
|
+
), s = b(() => (A.value, ge(f, a.allowedNames, t.value))), w = b(() => a.open !== void 0), k = b(
|
|
84
|
+
() => w.value ? a.open === !0 : v.value
|
|
85
|
+
), X = b(() => "click"), V = b(() => `${a.id || J}-panel`);
|
|
86
|
+
M(
|
|
87
|
+
k,
|
|
88
|
+
(e, n) => {
|
|
89
|
+
!e || n || (t.value = "", r.value = le(), N.value = [], !O && f && (O = !0, D(f.load())), x.value === "keyboard" && Q(() => {
|
|
90
|
+
var o, c;
|
|
91
|
+
return (c = (o = U.value) == null ? void 0 : o.focus) == null ? void 0 : c.call(o);
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
function D(e) {
|
|
96
|
+
g.value = !0, P.value = "", e.then(
|
|
97
|
+
() => {
|
|
98
|
+
g.value = !1, A.value++;
|
|
99
|
+
},
|
|
100
|
+
(n) => {
|
|
101
|
+
g.value = !1, P.value = n instanceof Error ? n.message : String(n);
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function Z() {
|
|
106
|
+
!f || g.value || D(f.retry());
|
|
107
|
+
}
|
|
108
|
+
M(s, () => {
|
|
109
|
+
if (!s.value.length) {
|
|
110
|
+
r.value = -1;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
r.value >= s.value.length && (r.value = 0), r.value < 0 && (r.value = 0);
|
|
114
|
+
});
|
|
115
|
+
function j() {
|
|
116
|
+
a.disabled || (x.value = "keyboard", $("keyboard"));
|
|
117
|
+
}
|
|
118
|
+
function ee(e) {
|
|
119
|
+
a.disabled || w.value && a.open !== !1 || (e.stopImmediatePropagation(), $("pointer"));
|
|
120
|
+
}
|
|
121
|
+
function ae(e) {
|
|
122
|
+
T(e);
|
|
123
|
+
}
|
|
124
|
+
function ne(e) {
|
|
125
|
+
e === k.value && (w.value || (v.value = e), i("open-change", e), e || Q(() => {
|
|
126
|
+
var n, o;
|
|
127
|
+
return (o = (n = q.value) == null ? void 0 : n.focus) == null ? void 0 : o.call(n);
|
|
128
|
+
}));
|
|
129
|
+
}
|
|
130
|
+
function T(e) {
|
|
131
|
+
e && a.disabled || e !== k.value && (w.value || (v.value = e), i("update:open", e));
|
|
132
|
+
}
|
|
133
|
+
function $(e = "programmatic") {
|
|
134
|
+
x.value = e, T(!0);
|
|
135
|
+
}
|
|
136
|
+
function B() {
|
|
137
|
+
T(!1), Q(() => {
|
|
138
|
+
var e, n;
|
|
139
|
+
return (n = (e = q.value) == null ? void 0 : e.focus) == null ? void 0 : n.call(e);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
function F() {
|
|
143
|
+
a.disabled || (i("update:modelValue", ""), i("change", ""), i("clear"));
|
|
144
|
+
}
|
|
145
|
+
function E(e) {
|
|
146
|
+
a.disabled || (i("update:modelValue", e.name), i("change", e.name), B());
|
|
147
|
+
}
|
|
148
|
+
function oe(e) {
|
|
149
|
+
if (e.key === "Escape") {
|
|
150
|
+
e.preventDefault(), B();
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (!s.value.length || !["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"].includes(e.key)) return;
|
|
154
|
+
e.preventDefault();
|
|
155
|
+
const n = e.key === "ArrowUp" || e.key === "ArrowLeft" ? -1 : 1, o = s.value.length;
|
|
156
|
+
r.value = (r.value + n + o) % o, Q(() => {
|
|
157
|
+
var c;
|
|
158
|
+
return (c = N.value[r.value]) == null ? void 0 : c.focus();
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function le() {
|
|
162
|
+
const e = _.value.canonicalName;
|
|
163
|
+
if (!e) return s.value.length ? 0 : -1;
|
|
164
|
+
const n = s.value.findIndex(({ name: o }) => o === e);
|
|
165
|
+
return n >= 0 ? n : s.value.length ? 0 : -1;
|
|
166
|
+
}
|
|
167
|
+
function te(e, n) {
|
|
168
|
+
e instanceof HTMLElement && (N.value[n] = e);
|
|
169
|
+
}
|
|
170
|
+
function re(e) {
|
|
171
|
+
return `${V.value}-${encodeURIComponent(e)}`;
|
|
172
|
+
}
|
|
173
|
+
function ie() {
|
|
174
|
+
var e, n;
|
|
175
|
+
(n = (e = q.value) == null ? void 0 : e.focus) == null || n.call(e);
|
|
176
|
+
}
|
|
177
|
+
function ce() {
|
|
178
|
+
var e, n;
|
|
179
|
+
(n = (e = q.value) == null ? void 0 : e.blur) == null || n.call(e);
|
|
180
|
+
}
|
|
181
|
+
return y({ focus: ie, blur: ce, open: $, close: B }), (e, n) => (u(), p("div", qe, [
|
|
182
|
+
R(C(he), {
|
|
183
|
+
ref: "popoverRef",
|
|
184
|
+
class: "qy-icon-picker__popover",
|
|
185
|
+
open: k.value,
|
|
186
|
+
trigger: X.value,
|
|
187
|
+
placement: "bottom-start",
|
|
188
|
+
width: a.panelWidth,
|
|
189
|
+
"show-delay": 0,
|
|
190
|
+
"hide-delay": 0,
|
|
191
|
+
disabled: a.disabled || w.value && a.open === !1,
|
|
192
|
+
"onUpdate:open": ae,
|
|
193
|
+
onOpenChange: ne
|
|
194
|
+
}, {
|
|
195
|
+
reference: z(() => [
|
|
196
|
+
h("div", {
|
|
197
|
+
class: "qy-icon-picker__trigger",
|
|
198
|
+
"data-testid": "qy-icon-picker-trigger",
|
|
199
|
+
onClick: ee,
|
|
200
|
+
onKeydown: [
|
|
201
|
+
K(L(j, ["prevent"]), ["enter"]),
|
|
202
|
+
K(L(j, ["prevent"]), ["space"])
|
|
203
|
+
]
|
|
204
|
+
}, [
|
|
205
|
+
R(C(G), {
|
|
206
|
+
ref_key: "triggerRef",
|
|
207
|
+
ref: q,
|
|
208
|
+
id: a.id,
|
|
209
|
+
"model-value": _.value.value,
|
|
210
|
+
size: a.size,
|
|
211
|
+
disabled: a.disabled,
|
|
212
|
+
clearable: a.clearable,
|
|
213
|
+
readonly: "",
|
|
214
|
+
placeholder: a.placeholder,
|
|
215
|
+
"aria-label": a.ariaLabel,
|
|
216
|
+
"aria-haspopup": "listbox",
|
|
217
|
+
"aria-expanded": k.value ? "true" : "false",
|
|
218
|
+
"aria-controls": V.value,
|
|
219
|
+
onClear: F
|
|
220
|
+
}, {
|
|
221
|
+
prefix: z(() => [
|
|
222
|
+
h("span", Ie, [
|
|
223
|
+
_.value.definition ? (u(), me(C(W), {
|
|
224
|
+
key: 0,
|
|
225
|
+
name: _.value.definition.name,
|
|
226
|
+
size: 18
|
|
227
|
+
}, null, 8, ["name"])) : (u(), p("span", Ce, "?"))
|
|
228
|
+
])
|
|
229
|
+
]),
|
|
230
|
+
suffix: z(() => [
|
|
231
|
+
a.clearable && _.value.value ? (u(), p("button", {
|
|
232
|
+
key: 0,
|
|
233
|
+
type: "button",
|
|
234
|
+
class: "qy-icon-picker__clear",
|
|
235
|
+
"data-testid": "qy-icon-picker-clear",
|
|
236
|
+
"aria-label": "清空图标",
|
|
237
|
+
onClick: L(F, ["stop", "prevent"])
|
|
238
|
+
}, [...n[1] || (n[1] = [
|
|
239
|
+
h("span", { "aria-hidden": "true" }, "×", -1)
|
|
240
|
+
])])) : Y("", !0)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["id", "model-value", "size", "disabled", "clearable", "placeholder", "aria-label", "aria-expanded", "aria-controls"])
|
|
244
|
+
], 40, we)
|
|
245
|
+
]),
|
|
246
|
+
default: z(() => [
|
|
247
|
+
k.value ? (u(), p("div", {
|
|
248
|
+
key: 0,
|
|
249
|
+
id: V.value,
|
|
250
|
+
class: "qy-icon-picker__panel",
|
|
251
|
+
onKeydown: oe
|
|
252
|
+
}, [
|
|
253
|
+
h("div", Pe, [
|
|
254
|
+
R(C(G), {
|
|
255
|
+
ref_key: "searchRef",
|
|
256
|
+
ref: U,
|
|
257
|
+
modelValue: t.value,
|
|
258
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o),
|
|
259
|
+
type: "search",
|
|
260
|
+
clearable: "",
|
|
261
|
+
placeholder: a.searchPlaceholder,
|
|
262
|
+
"aria-label": "搜索图标"
|
|
263
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
264
|
+
]),
|
|
265
|
+
g.value ? (u(), p("div", Qe, " 正在加载图标… ")) : P.value ? (u(), p("div", Re, [
|
|
266
|
+
h("span", null, S(P.value), 1),
|
|
267
|
+
h("button", {
|
|
268
|
+
type: "button",
|
|
269
|
+
"data-testid": "qy-icon-picker-retry",
|
|
270
|
+
onClick: Z
|
|
271
|
+
}, " 重试 ")
|
|
272
|
+
])) : s.value.length ? (u(), p("div", {
|
|
273
|
+
key: 2,
|
|
274
|
+
class: "qy-icon-picker__grid",
|
|
275
|
+
role: "listbox",
|
|
276
|
+
"aria-label": a.ariaLabel || "图标列表"
|
|
277
|
+
}, [
|
|
278
|
+
(u(!0), p(de, null, pe(s.value, (o, c) => (u(), p("div", {
|
|
279
|
+
id: re(o.name),
|
|
280
|
+
key: o.name,
|
|
281
|
+
ref_for: !0,
|
|
282
|
+
ref: (I) => te(I, c),
|
|
283
|
+
class: fe(["qy-icon-picker__option", { "is-active": r.value === c }]),
|
|
284
|
+
"data-qy-icon-option": o.name,
|
|
285
|
+
"data-qy-icon-active": r.value === c ? "true" : void 0,
|
|
286
|
+
role: "option",
|
|
287
|
+
"aria-selected": _.value.canonicalName === o.name ? "true" : "false",
|
|
288
|
+
tabindex: r.value === c ? 0 : -1,
|
|
289
|
+
onClick: (I) => E(o),
|
|
290
|
+
onFocus: (I) => r.value = c,
|
|
291
|
+
onKeydown: [
|
|
292
|
+
K(L((I) => E(o), ["prevent"]), ["enter"]),
|
|
293
|
+
K(L((I) => E(o), ["prevent"]), ["space"])
|
|
294
|
+
]
|
|
295
|
+
}, [
|
|
296
|
+
R(C(W), {
|
|
297
|
+
name: o.name,
|
|
298
|
+
size: 18,
|
|
299
|
+
"aria-hidden": "true"
|
|
300
|
+
}, null, 8, ["name"]),
|
|
301
|
+
h("span", Ne, S(o.label || o.name), 1)
|
|
302
|
+
], 42, Ke))), 128))
|
|
303
|
+
], 8, ze)) : (u(), p("div", xe, [
|
|
304
|
+
ve(e.$slots, "empty", {}, () => [
|
|
305
|
+
ye(S(a.emptyText), 1)
|
|
306
|
+
])
|
|
307
|
+
]))
|
|
308
|
+
], 40, Le)) : Y("", !0)
|
|
309
|
+
]),
|
|
310
|
+
_: 3
|
|
311
|
+
}, 8, ["open", "trigger", "width", "disabled"])
|
|
312
|
+
]));
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
export {
|
|
316
|
+
Ae as _
|
|
317
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { App, Plugin } from 'vue'
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
import type QyUploadComponent from './qy-upload'
|
|
3
|
+
import type QyImageUploadComponent from './qy-image-upload'
|
|
2
4
|
import type QyFilePickerComponent from './qy-file-picker'
|
|
3
5
|
import type QyCheckboxComponent from './qy-checkbox'
|
|
4
6
|
import type QyCheckboxGroupComponent from './qy-checkbox-group'
|
|
@@ -47,29 +49,60 @@ import type QyProgressComponent from './qy-progress'
|
|
|
47
49
|
import type QyStatisticComponent from './qy-statistic'
|
|
48
50
|
import type QyAvatarComponent from './qy-avatar'
|
|
49
51
|
import type QyTreeComponent from './qy-tree'
|
|
50
|
-
import type QyInputComponent from './qy-input'
|
|
51
|
-
import type
|
|
52
|
+
import type QyInputComponent from './qy-input'
|
|
53
|
+
import type QyInputTagComponent from './qy-input-tag'
|
|
54
|
+
import type QyInputNumberComponent from './qy-input-number'
|
|
55
|
+
import type QyDatePickerComponent from './qy-date-picker'
|
|
56
|
+
import type QyMoneyInputComponent from './qy-money-input'
|
|
52
57
|
|
|
53
58
|
export type {
|
|
54
59
|
QyInputNumberClearValue,
|
|
55
60
|
QyInputNumberControlsPosition,
|
|
56
|
-
QyInputNumberEmits,
|
|
57
|
-
QyInputNumberExposed,
|
|
58
|
-
QyInputNumberProps,
|
|
59
|
-
QyInputNumberSize,
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
QyInputNumberEmits,
|
|
62
|
+
QyInputNumberExposed,
|
|
63
|
+
QyInputNumberProps,
|
|
64
|
+
QyInputNumberSize,
|
|
65
|
+
QyInputNumberSlots,
|
|
66
|
+
QyInputNumberValue
|
|
67
|
+
} from './qy-input-number'
|
|
62
68
|
|
|
63
|
-
export type {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
export type {
|
|
70
|
+
QyInputAutoSize,
|
|
71
|
+
QyInputEmits,
|
|
72
|
+
QyInputExposed,
|
|
73
|
+
QyInputIcon,
|
|
74
|
+
QyInputInputMode,
|
|
75
|
+
QyInputModelValue,
|
|
76
|
+
QyInputModelModifiers,
|
|
77
|
+
QyInputProps,
|
|
78
|
+
QyInputSize,
|
|
79
|
+
QyInputStyle,
|
|
80
|
+
QyInputTrimMode,
|
|
70
81
|
QyInputType,
|
|
71
82
|
QyInputValue
|
|
72
|
-
} from './qy-input'
|
|
83
|
+
} from './qy-input'
|
|
84
|
+
|
|
85
|
+
export type {
|
|
86
|
+
QyInputTagEffect,
|
|
87
|
+
QyInputTagEmits,
|
|
88
|
+
QyInputTagExposed,
|
|
89
|
+
QyInputTagModelValue,
|
|
90
|
+
QyInputTagProps,
|
|
91
|
+
QyInputTagSize,
|
|
92
|
+
QyInputTagSlots,
|
|
93
|
+
QyInputTagTone,
|
|
94
|
+
QyInputTagTrigger
|
|
95
|
+
} from './qy-input-tag'
|
|
96
|
+
|
|
97
|
+
export type {
|
|
98
|
+
QyMoneyInputEmits,
|
|
99
|
+
QyMoneyInputExposed,
|
|
100
|
+
QyMoneyInputFormatTrigger,
|
|
101
|
+
QyMoneyInputProps,
|
|
102
|
+
QyMoneyInputSize,
|
|
103
|
+
QyMoneyInputSlots,
|
|
104
|
+
QyMoneyInputValue
|
|
105
|
+
} from './qy-money-input'
|
|
73
106
|
|
|
74
107
|
export type {
|
|
75
108
|
QyFilePickerExposed,
|
|
@@ -348,6 +381,27 @@ export type {
|
|
|
348
381
|
QyCollapseItemProps,
|
|
349
382
|
QyCollapseItemSlots
|
|
350
383
|
} from './qy-collapse-item'
|
|
384
|
+
export type {
|
|
385
|
+
QyUploadEmits,
|
|
386
|
+
QyUploadExposed,
|
|
387
|
+
QyUploadInvalidCode,
|
|
388
|
+
QyUploadInvalidDetail,
|
|
389
|
+
QyUploadProps,
|
|
390
|
+
QyUploadRequest,
|
|
391
|
+
QyUploadRequestContext,
|
|
392
|
+
QyUploadResult,
|
|
393
|
+
QyUploadValue,
|
|
394
|
+
QyUploadValueFormat,
|
|
395
|
+
QyUploadVariant
|
|
396
|
+
} from './qy-upload'
|
|
397
|
+
|
|
398
|
+
export type {
|
|
399
|
+
QyImageUploadEmits,
|
|
400
|
+
QyImageUploadExposed,
|
|
401
|
+
QyImageUploadMode,
|
|
402
|
+
QyImageUploadProps
|
|
403
|
+
} from './qy-image-upload'
|
|
404
|
+
|
|
351
405
|
export type {
|
|
352
406
|
QyLinkAttrs,
|
|
353
407
|
QyLinkEmits,
|
|
@@ -473,16 +527,17 @@ export type {
|
|
|
473
527
|
} from './qy-date-picker'
|
|
474
528
|
|
|
475
529
|
// 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
|
|
476
|
-
export const QyUpload:
|
|
530
|
+
export const QyUpload: typeof QyUploadComponent
|
|
477
531
|
export const QyImage: Plugin
|
|
478
532
|
export const QyImagePreview: Plugin
|
|
479
|
-
export const QyImageUpload:
|
|
533
|
+
export const QyImageUpload: typeof QyImageUploadComponent
|
|
480
534
|
export const QyDialog: typeof QyDialogComponent
|
|
481
535
|
export const QyButton: Plugin
|
|
482
536
|
export const QyDropdown: Plugin
|
|
483
|
-
export const QyInput: typeof QyInputComponent
|
|
484
|
-
export
|
|
485
|
-
export
|
|
537
|
+
export const QyInput: typeof QyInputComponent
|
|
538
|
+
export const QyInputTag: typeof QyInputTagComponent
|
|
539
|
+
export { QyInputNumber } from './qy-input-number'
|
|
540
|
+
export const QyMoneyInput: typeof QyMoneyInputComponent
|
|
486
541
|
export const QyDatePicker: typeof QyDatePickerComponent
|
|
487
542
|
export const QyCheckbox: typeof QyCheckboxComponent
|
|
488
543
|
export const QyCheckboxGroup: typeof QyCheckboxGroupComponent
|
|
@@ -500,7 +555,8 @@ export const QySelectionDialog: Plugin
|
|
|
500
555
|
export const QyLegacySelectionDialog: Plugin
|
|
501
556
|
export const QyFormSection: Plugin
|
|
502
557
|
export const QyActionBar: Plugin
|
|
503
|
-
|
|
558
|
+
/** @deprecated 请使用 QyUpload 的本地选择模式。 */
|
|
559
|
+
export const QyFilePicker: typeof QyFilePickerComponent
|
|
504
560
|
export const QySwitch: typeof QySwitchComponent
|
|
505
561
|
export const QyTag: typeof QyTagComponent
|
|
506
562
|
export const QyBadge: typeof QyBadgeComponent
|
|
@@ -569,8 +625,9 @@ declare const _default: Plugin & {
|
|
|
569
625
|
QyDialog: typeof QyDialog
|
|
570
626
|
QyButton: typeof QyButton
|
|
571
627
|
QyDropdown: typeof QyDropdown
|
|
572
|
-
QyInput: typeof QyInput
|
|
573
|
-
|
|
628
|
+
QyInput: typeof QyInput
|
|
629
|
+
QyInputTag: typeof QyInputTagComponent
|
|
630
|
+
QyInputNumber: typeof QyInputNumberComponent
|
|
574
631
|
QyMoneyInput: typeof QyMoneyInput
|
|
575
632
|
QyDatePicker: typeof QyDatePickerComponent
|
|
576
633
|
QyCheckbox: typeof QyCheckbox
|