@qynpm/ui 1.0.36 → 1.0.38
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 +109 -93
- package/dist/index.cjs +20 -19
- package/dist/index.mjs +22 -21
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +2 -1
- package/dist/qy-dialog/index.mjs +5 -2
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- 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 +3 -3
- package/dist/qy-icon-picker/index.mjs +6 -6
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +2 -2
- package/dist/qy-input-number/index.mjs +3 -3
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +4 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +4 -4
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- 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-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/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-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +4 -4
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/index--I-pLtO3.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
- package/dist/shared/index-0mok5nS2.cjs +1 -0
- package/dist/shared/index-2xIkj7uz.cjs +1 -0
- package/dist/shared/index-4uXwnK7G.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
- package/dist/shared/index-B-PlDm1A.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
- package/dist/shared/index-B0aY8Q_T.cjs +1 -0
- package/dist/shared/index-B1-htEYJ.mjs +100 -0
- package/dist/shared/index-B1ZuGEIr.cjs +1 -0
- package/dist/shared/index-B3wIgwN7.cjs +1 -0
- package/dist/shared/index-B71cpH4T.cjs +1 -0
- package/dist/shared/index-B8S5RT2Z.mjs +206 -0
- package/dist/shared/index-B8znc-qD.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
- package/dist/shared/index-BCfULlZK.cjs +1 -0
- package/dist/shared/{index-DY-CA7Vr.mjs → index-BE4CELs-.mjs} +1 -1
- package/dist/shared/index-BFFnf0Bn.cjs +1 -0
- package/dist/shared/index-BIWER6Wa.cjs +1 -0
- package/dist/shared/index-BM3ueCK9.cjs +1 -0
- package/dist/shared/index-BOLL0aGP.mjs +47 -0
- package/dist/shared/index-BWO4qxne.mjs +395 -0
- package/dist/shared/index-Ba3qQVYM.cjs +1 -0
- package/dist/shared/index-Ba5CLmrh.mjs +157 -0
- package/dist/shared/index-BcPpl_OJ.mjs +892 -0
- package/dist/shared/index-Bg_o9zrB.cjs +1 -0
- package/dist/shared/index-Bguu2ys0.cjs +1 -0
- package/dist/shared/index-BhO1ARf9.cjs +1 -0
- package/dist/shared/index-BiCdxX0E.mjs +63 -0
- package/dist/shared/index-BigCKPUY.mjs +153 -0
- package/dist/shared/index-BmWDUjpi.mjs +73 -0
- package/dist/shared/index-BoGA3Pdv.cjs +1 -0
- package/dist/shared/index-Brxx2EqN.mjs +156 -0
- package/dist/shared/{index-Bi9wgcgT.cjs → index-BsRfuMop.cjs} +1 -1
- package/dist/shared/index-BsTSa25A.cjs +1 -0
- package/dist/shared/index-Btwke2ql.cjs +1 -0
- package/dist/shared/index-BxQnJVT8.cjs +1 -0
- package/dist/shared/index-Bx_faI_u.mjs +53 -0
- package/dist/shared/index-C7GXprxF.cjs +1 -0
- package/dist/shared/index-C97qoSgI.cjs +1 -0
- package/dist/shared/index-CCqfQb_M.mjs +82 -0
- package/dist/shared/index-CDGjUhaC.mjs +72 -0
- package/dist/shared/index-CF3vimnX.mjs +73 -0
- package/dist/shared/index-CJxpEc9q.cjs +1 -0
- package/dist/shared/index-COpowa-E.mjs +48 -0
- package/dist/shared/index-CRU4YvLz.cjs +1 -0
- package/dist/shared/index-CSMOYD1R.cjs +1 -0
- package/dist/shared/index-CWB5fAb7.mjs +154 -0
- package/dist/shared/index-CXAVVShG.mjs +278 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
- package/dist/shared/index-CeasMt4r.mjs +63 -0
- package/dist/shared/index-CftZiihF.mjs +525 -0
- package/dist/shared/index-ChEefC0G.cjs +1 -0
- package/dist/shared/index-CioDI8Ys.cjs +1 -0
- package/dist/shared/index-CjKfmMG4.cjs +1 -0
- package/dist/shared/index-CnIZoCkL.mjs +77 -0
- package/dist/shared/index-CndG7UWF.mjs +138 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
- package/dist/shared/index-CrwhANF5.mjs +78 -0
- package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
- package/dist/shared/index-CutbNRjY.mjs +198 -0
- package/dist/shared/index-CyJHJCj8.cjs +1 -0
- package/dist/shared/index-CypWMqI4.cjs +1 -0
- package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
- package/dist/shared/index-CzyB5ttX.cjs +1 -0
- package/dist/shared/index-D1cbnYac.mjs +446 -0
- package/dist/shared/index-D8-4wR07.mjs +130 -0
- package/dist/shared/index-D9dQaZtu.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
- package/dist/shared/index-DEosiUQV.mjs +245 -0
- package/dist/shared/index-DFTSBy3g.mjs +206 -0
- package/dist/shared/index-DFnpyAa1.mjs +69 -0
- package/dist/shared/index-DI5COVol.cjs +1 -0
- package/dist/shared/index-DNMOtH4s.mjs +36 -0
- package/dist/shared/index-DQn_5j_f.cjs +1 -0
- package/dist/shared/index-DRICnDix.mjs +295 -0
- package/dist/shared/index-DS539-rn.mjs +87 -0
- package/dist/shared/index-DTOfhAXP.mjs +74 -0
- package/dist/shared/index-DULBwiHC.mjs +234 -0
- package/dist/shared/index-DVPk0jMO.cjs +1 -0
- package/dist/shared/index-DWrymMO5.cjs +1 -0
- package/dist/shared/index-DYYPqv3Y.cjs +1 -0
- package/dist/shared/index-DZzMTGSJ.cjs +1 -0
- package/dist/shared/index-D_l30Gzr.cjs +1 -0
- package/dist/shared/index-Db7PhnjA.cjs +1 -0
- package/dist/shared/index-DdoFHdjY.mjs +307 -0
- package/dist/shared/index-DeBjILEK.cjs +1 -0
- package/dist/shared/index-DePXY0TI.cjs +1 -0
- package/dist/shared/index-DgPQ8292.cjs +1 -0
- package/dist/shared/index-Di3R0FOU.cjs +1 -0
- package/dist/shared/index-DiNSSXC8.mjs +76 -0
- package/dist/shared/index-DmEwKHe4.cjs +1 -0
- package/dist/shared/index-DnFQkBfl.cjs +1 -0
- package/dist/shared/index-DnexuGuJ.cjs +1 -0
- package/dist/shared/index-DniPcZnL.mjs +52 -0
- package/dist/shared/index-DpitpmqK.mjs +205 -0
- package/dist/shared/index-DtXU2qQS.cjs +1 -0
- package/dist/shared/index-Du-FNseo.cjs +1 -0
- package/dist/shared/index-DwHzztSj.cjs +1 -0
- package/dist/shared/index-DxFfP2Fn.cjs +1 -0
- package/dist/shared/index-DyqFfMhy.mjs +365 -0
- package/dist/shared/index-Hn-IGtqe.cjs +1 -0
- package/dist/shared/index-Nx_w1JYm.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
- package/dist/shared/index-R6vvV3td.cjs +1 -0
- package/dist/shared/index-TMhQv4oD.mjs +104 -0
- package/dist/shared/index-VtJrvPka.mjs +27 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
- package/dist/shared/index-YWKumDEW.mjs +61 -0
- package/dist/shared/index-_AB6uqZw.mjs +51 -0
- package/dist/shared/index-bvvNTmuM.mjs +105 -0
- package/dist/shared/index-fVS62tLm.mjs +81 -0
- package/dist/shared/index-gOUVgYd_.cjs +1 -0
- package/dist/shared/index-gU6HjdHv.mjs +311 -0
- package/dist/shared/index-hPaHbb1Y.cjs +1 -0
- package/dist/shared/index-i0G6DcP0.cjs +1 -0
- package/dist/shared/index-jP71VQxo.cjs +1 -0
- package/dist/shared/index-jdGrSpGg.mjs +2657 -0
- package/dist/shared/index-jsEFCWaY.mjs +175 -0
- package/dist/shared/index-lsWZ_M5R.mjs +369 -0
- package/dist/shared/index-mKnRWsLn.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
- package/dist/shared/index-xdsYNS2u.mjs +53 -0
- package/dist/shared/index-xhROPBam.mjs +129 -0
- package/index.d.ts +113 -113
- package/package.json +490 -489
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +63 -63
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-file-picker/index.d.ts +4 -4
- package/qy-icon/index.d.ts +3 -0
- package/qy-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-image-upload/index.d.ts +69 -69
- package/qy-input/index.d.ts +76 -76
- package/qy-input-number/index.d.ts +64 -64
- package/qy-input-tag/index.d.ts +69 -69
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-money-input/index.d.ts +87 -87
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/qy-upload/index.d.ts +99 -99
- package/dist/shared/index-3qEac4h8.cjs +0 -1
- package/dist/shared/index-4SkLDBra.mjs +0 -377
- package/dist/shared/index-AMu0L6uU.cjs +0 -1
- package/dist/shared/index-B1b3BksF.mjs +0 -72
- package/dist/shared/index-BPaVDCe6.cjs +0 -1
- package/dist/shared/index-BYX0biqw.mjs +0 -766
- package/dist/shared/index-BdTlpKtr.cjs +0 -1
- package/dist/shared/index-Bli6Gx5d.cjs +0 -1
- package/dist/shared/index-BuUtJrIy.mjs +0 -119
- package/dist/shared/index-Bvot0uXo.cjs +0 -1
- package/dist/shared/index-BxxwEr52.mjs +0 -107
- package/dist/shared/index-C1i-hd-W.cjs +0 -1
- package/dist/shared/index-C7lRQtzs.cjs +0 -1
- package/dist/shared/index-C91mzAI3.mjs +0 -254
- package/dist/shared/index-CdnHMuo3.mjs +0 -149
- package/dist/shared/index-CwY_jv_I.cjs +0 -1
- package/dist/shared/index-D5S48q1B.mjs +0 -162
- package/dist/shared/index-D654b42n.mjs +0 -2754
- package/dist/shared/index-D8E_xu0N.mjs +0 -54
- package/dist/shared/index-DCzxcvkn.cjs +0 -1
- package/dist/shared/index-DK0hjfWr.mjs +0 -90
- package/dist/shared/index-DZRFSGxO.mjs +0 -225
- package/dist/shared/index-Dc6gLgAz.cjs +0 -1
- package/dist/shared/index-DcohgM8A.mjs +0 -68
- package/dist/shared/index-Di4bIOiB.cjs +0 -1
- package/dist/shared/index-DlGwHshu.cjs +0 -1
- package/dist/shared/index-DnHfk7NM.cjs +0 -1
- package/dist/shared/index-DnNIseRJ.cjs +0 -1
- package/dist/shared/index-Dr-Q5krU.mjs +0 -71
- package/dist/shared/index-Dwf-JfXM.mjs +0 -293
- package/dist/shared/index-JjHutKmT.mjs +0 -142
- package/dist/shared/index-Od6HC8Un.mjs +0 -127
- package/dist/shared/index-S8HW36Mc.mjs +0 -222
- package/dist/shared/index-aIqtIYsu.cjs +0 -1
- package/dist/shared/index-nSFTxVz8.cjs +0 -1
- package/dist/shared/index-nos4Y-fm.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
- 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-BnPRHCwR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +0 -67
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
- 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-CPxbKjvY.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +0 -298
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, useAttrs as _, ref as f, computed as d, openBlock as j, createBlock as F, unref as L, mergeProps as U, createSlots as W, withCtx as s, renderSlot as c } from "vue";
|
|
2
|
-
import { ElInputTag as k } from "element-plus";
|
|
3
|
-
const M = /* @__PURE__ */ S({
|
|
4
|
-
name: "QyInputTag",
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { default: () => [] },
|
|
9
|
-
max: {},
|
|
10
|
-
trigger: { default: "enter" },
|
|
11
|
-
tagTone: { default: "neutral" },
|
|
12
|
-
tagEffect: { default: "light" },
|
|
13
|
-
size: {},
|
|
14
|
-
clearable: { type: Boolean },
|
|
15
|
-
disabled: { type: Boolean },
|
|
16
|
-
readonly: { type: Boolean },
|
|
17
|
-
placeholder: {},
|
|
18
|
-
autofocus: { type: Boolean },
|
|
19
|
-
validateEvent: { type: Boolean, default: !0 },
|
|
20
|
-
id: {},
|
|
21
|
-
tabindex: {},
|
|
22
|
-
maxlength: {},
|
|
23
|
-
minlength: {},
|
|
24
|
-
autocomplete: {},
|
|
25
|
-
ariaLabel: {}
|
|
26
|
-
},
|
|
27
|
-
emits: ["update:modelValue", "change", "input", "add", "remove", "clear", "focus", "blur"],
|
|
28
|
-
setup(g, { expose: m, emit: p }) {
|
|
29
|
-
const t = g, l = p, h = _(), i = f(null), o = f(null), v = d(() => 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
|
-
)), x = d(
|
|
34
|
-
() => t.tagTone === "neutral" ? "info" : t.tagTone
|
|
35
|
-
), b = d(
|
|
36
|
-
() => t.trigger === "space" ? "Space" : "Enter"
|
|
37
|
-
);
|
|
38
|
-
function u(e) {
|
|
39
|
-
return e ? [...e] : [];
|
|
40
|
-
}
|
|
41
|
-
function y(e, a) {
|
|
42
|
-
if (e.length !== a.length + 1) return null;
|
|
43
|
-
for (let n = 0; n < e.length; n += 1)
|
|
44
|
-
if (e[n] !== a[n] && e.slice(n + 1).every((r, O) => r === a[n + O]))
|
|
45
|
-
return { value: e[n], index: n };
|
|
46
|
-
return { value: e[e.length - 1], index: e.length - 1 };
|
|
47
|
-
}
|
|
48
|
-
function T(e) {
|
|
49
|
-
const a = u(t.modelValue), n = u(e);
|
|
50
|
-
o.value = n.length === 0 && a.length > 0 ? null : y(a, n), l("update:modelValue", n);
|
|
51
|
-
}
|
|
52
|
-
function B(e) {
|
|
53
|
-
l("change", u(e));
|
|
54
|
-
}
|
|
55
|
-
function C(e) {
|
|
56
|
-
l("input", e);
|
|
57
|
-
}
|
|
58
|
-
function V(e) {
|
|
59
|
-
l("add", e);
|
|
60
|
-
}
|
|
61
|
-
function E(e) {
|
|
62
|
-
const a = o.value, n = (a == null ? void 0 : a.value) === e ? a.index : u(t.modelValue).indexOf(e);
|
|
63
|
-
l("remove", e, n), o.value = null;
|
|
64
|
-
}
|
|
65
|
-
function R() {
|
|
66
|
-
l("clear"), o.value = null;
|
|
67
|
-
}
|
|
68
|
-
function $(e) {
|
|
69
|
-
l("focus", e);
|
|
70
|
-
}
|
|
71
|
-
function z(e) {
|
|
72
|
-
l("blur", e);
|
|
73
|
-
}
|
|
74
|
-
function A() {
|
|
75
|
-
var e, a;
|
|
76
|
-
(a = (e = i.value) == null ? void 0 : e.focus) == null || a.call(e);
|
|
77
|
-
}
|
|
78
|
-
function I() {
|
|
79
|
-
var e, a;
|
|
80
|
-
(a = (e = i.value) == null ? void 0 : e.blur) == null || a.call(e);
|
|
81
|
-
}
|
|
82
|
-
return m({ focus: A, blur: I }), (e, a) => (j(), F(L(k), U({
|
|
83
|
-
ref_key: "inputTagRef",
|
|
84
|
-
ref: i,
|
|
85
|
-
class: "qy-input-tag"
|
|
86
|
-
}, v.value, {
|
|
87
|
-
"model-value": t.modelValue,
|
|
88
|
-
max: t.max,
|
|
89
|
-
"tag-type": x.value,
|
|
90
|
-
"tag-effect": t.tagEffect,
|
|
91
|
-
trigger: b.value,
|
|
92
|
-
size: t.size,
|
|
93
|
-
clearable: t.clearable,
|
|
94
|
-
disabled: t.disabled,
|
|
95
|
-
readonly: t.readonly,
|
|
96
|
-
placeholder: t.placeholder,
|
|
97
|
-
autofocus: t.autofocus,
|
|
98
|
-
"validate-event": t.validateEvent,
|
|
99
|
-
id: t.id,
|
|
100
|
-
tabindex: t.tabindex,
|
|
101
|
-
maxlength: t.maxlength,
|
|
102
|
-
minlength: t.minlength,
|
|
103
|
-
autocomplete: t.autocomplete,
|
|
104
|
-
"aria-label": t.ariaLabel,
|
|
105
|
-
"onUpdate:modelValue": T,
|
|
106
|
-
onChange: B,
|
|
107
|
-
onInput: C,
|
|
108
|
-
onAddTag: V,
|
|
109
|
-
onRemoveTag: E,
|
|
110
|
-
onClear: R,
|
|
111
|
-
onFocusCapture: $,
|
|
112
|
-
onBlurCapture: z
|
|
113
|
-
}), W({ _: 2 }, [
|
|
114
|
-
e.$slots.tag ? {
|
|
115
|
-
name: "tag",
|
|
116
|
-
fn: s(({ value: n, index: r }) => [
|
|
117
|
-
c(e.$slots, "tag", {
|
|
118
|
-
value: n,
|
|
119
|
-
index: r
|
|
120
|
-
})
|
|
121
|
-
]),
|
|
122
|
-
key: "0"
|
|
123
|
-
} : void 0,
|
|
124
|
-
e.$slots.prefix ? {
|
|
125
|
-
name: "prefix",
|
|
126
|
-
fn: s(() => [
|
|
127
|
-
c(e.$slots, "prefix")
|
|
128
|
-
]),
|
|
129
|
-
key: "1"
|
|
130
|
-
} : void 0,
|
|
131
|
-
e.$slots.suffix ? {
|
|
132
|
-
name: "suffix",
|
|
133
|
-
fn: s(() => [
|
|
134
|
-
c(e.$slots, "suffix")
|
|
135
|
-
]),
|
|
136
|
-
key: "2"
|
|
137
|
-
} : void 0
|
|
138
|
-
]), 1040, ["model-value", "max", "tag-type", "tag-effect", "trigger", "size", "clearable", "disabled", "readonly", "placeholder", "autofocus", "validate-event", "id", "tabindex", "maxlength", "minlength", "autocomplete", "aria-label"]));
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
export {
|
|
142
|
-
M as _
|
|
143
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, useAttrs as K, ref as M, computed as s, unref as r, openBlock as k, createBlock as q, mergeProps as F } from "vue";
|
|
2
|
-
import { ElAutocomplete as I } from "element-plus";
|
|
3
|
-
const T = /* @__PURE__ */ x({
|
|
4
|
-
name: "QyAutocomplete",
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: { default: "" },
|
|
9
|
-
options: { default: () => [] },
|
|
10
|
-
valueKey: { default: "value" },
|
|
11
|
-
labelKey: { default: "label" },
|
|
12
|
-
placeholder: { default: "请输入" },
|
|
13
|
-
disabled: { type: Boolean, default: !1 },
|
|
14
|
-
clearable: { type: Boolean, default: !0 },
|
|
15
|
-
size: { default: void 0 },
|
|
16
|
-
teleported: { type: Boolean, default: !0 },
|
|
17
|
-
appendTo: { default: "body" },
|
|
18
|
-
popperClass: { default: "" },
|
|
19
|
-
filterMethod: { type: Function, default: void 0 }
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue", "input", "change", "select", "focus", "blur", "clear"],
|
|
22
|
-
setup(t, { expose: f, emit: p }) {
|
|
23
|
-
const n = t, u = p, i = K(), d = M(null), m = s(
|
|
24
|
-
() => ["qy-autocomplete__popper", n.popperClass].filter(Boolean).join(" ")
|
|
25
|
-
), h = s(() => {
|
|
26
|
-
const e = r(n.options);
|
|
27
|
-
return (Array.isArray(e) ? e : r(e == null ? void 0 : e.value) || []).map((l) => ({
|
|
28
|
-
...l,
|
|
29
|
-
value: (l == null ? void 0 : l[n.valueKey]) ?? (l == null ? void 0 : l.value) ?? (l == null ? void 0 : l[n.labelKey]) ?? (l == null ? void 0 : l.label) ?? ""
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
function c(e, a) {
|
|
33
|
-
const l = String(e ?? ""), S = h.value.filter((o) => n.filterMethod ? n.filterMethod(l, o) : l ? String(o.value ?? "").includes(l) : !0);
|
|
34
|
-
a(S);
|
|
35
|
-
}
|
|
36
|
-
function b(e) {
|
|
37
|
-
u("update:modelValue", e);
|
|
38
|
-
}
|
|
39
|
-
function y(e) {
|
|
40
|
-
u("input", e);
|
|
41
|
-
}
|
|
42
|
-
function v(e) {
|
|
43
|
-
u("change", e);
|
|
44
|
-
}
|
|
45
|
-
function g(e) {
|
|
46
|
-
u("select", e);
|
|
47
|
-
}
|
|
48
|
-
function B(e) {
|
|
49
|
-
u("focus", e);
|
|
50
|
-
}
|
|
51
|
-
function C(e) {
|
|
52
|
-
u("blur", e);
|
|
53
|
-
}
|
|
54
|
-
function A() {
|
|
55
|
-
u("clear");
|
|
56
|
-
}
|
|
57
|
-
function V() {
|
|
58
|
-
var e, a;
|
|
59
|
-
(a = (e = d.value) == null ? void 0 : e.focus) == null || a.call(e);
|
|
60
|
-
}
|
|
61
|
-
function z() {
|
|
62
|
-
var e, a;
|
|
63
|
-
(a = (e = d.value) == null ? void 0 : e.blur) == null || a.call(e);
|
|
64
|
-
}
|
|
65
|
-
return f({
|
|
66
|
-
querySearch: c,
|
|
67
|
-
focus: V,
|
|
68
|
-
blur: z
|
|
69
|
-
}), (e, a) => (k(), q(r(I), F({
|
|
70
|
-
ref_key: "autocompleteRef",
|
|
71
|
-
ref: d
|
|
72
|
-
}, r(i), {
|
|
73
|
-
"model-value": t.modelValue,
|
|
74
|
-
"fetch-suggestions": c,
|
|
75
|
-
placeholder: t.placeholder,
|
|
76
|
-
disabled: t.disabled,
|
|
77
|
-
clearable: t.clearable,
|
|
78
|
-
size: t.size,
|
|
79
|
-
teleported: t.teleported,
|
|
80
|
-
"append-to": t.appendTo,
|
|
81
|
-
"popper-class": m.value,
|
|
82
|
-
"onUpdate:modelValue": b,
|
|
83
|
-
onInput: y,
|
|
84
|
-
onChange: v,
|
|
85
|
-
onSelect: g,
|
|
86
|
-
onFocus: B,
|
|
87
|
-
onBlur: C,
|
|
88
|
-
onClear: A
|
|
89
|
-
}), null, 16, ["model-value", "placeholder", "disabled", "clearable", "size", "teleported", "append-to", "popper-class"]));
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
export {
|
|
93
|
-
T as _
|
|
94
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as c, watch as m, onBeforeUnmount as f, openBlock as s, createBlock as p, unref as y, createCommentVNode as h } from "vue";
|
|
2
|
-
import { ElImageViewer as v } from "element-plus";
|
|
3
|
-
import { n as w } from "./utils-DoyI5oM8.mjs";
|
|
4
|
-
const I = /* @__PURE__ */ u({
|
|
5
|
-
name: "QyImagePreview",
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
open: { type: Boolean, default: !1 },
|
|
9
|
-
urlList: { default: () => [] },
|
|
10
|
-
initialIndex: { default: 0 },
|
|
11
|
-
hideOnClickModal: { type: Boolean, default: !0 }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:open", "close"],
|
|
14
|
-
setup(e, { emit: a }) {
|
|
15
|
-
const n = e, l = a;
|
|
16
|
-
let i = "";
|
|
17
|
-
const r = c(
|
|
18
|
-
() => n.urlList.map((o) => w(o)).filter(Boolean)
|
|
19
|
-
);
|
|
20
|
-
m(
|
|
21
|
-
() => n.open,
|
|
22
|
-
(o) => {
|
|
23
|
-
if (o) {
|
|
24
|
-
i = document.body.style.overflow, document.body.style.overflow = "hidden";
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
t();
|
|
28
|
-
}
|
|
29
|
-
), f(t);
|
|
30
|
-
function d() {
|
|
31
|
-
t(), l("update:open", !1), l("close");
|
|
32
|
-
}
|
|
33
|
-
function t() {
|
|
34
|
-
typeof document > "u" || (document.body.style.overflow = i);
|
|
35
|
-
}
|
|
36
|
-
return (o, k) => e.open && r.value.length ? (s(), p(y(v), {
|
|
37
|
-
key: 0,
|
|
38
|
-
"url-list": r.value,
|
|
39
|
-
"initial-index": e.initialIndex,
|
|
40
|
-
"hide-on-click-modal": e.hideOnClickModal,
|
|
41
|
-
teleported: !0,
|
|
42
|
-
onClose: d
|
|
43
|
-
}, null, 8, ["url-list", "initial-index", "hide-on-click-modal"])) : h("", !0);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
I as _
|
|
48
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, useAttrs as G, computed as d, ref as S, openBlock as o, createBlock as u, unref as $, mergeProps as i, withCtx as f, renderSlot as m, createElementBlock as E, Fragment as O, renderList as w, resolveDynamicComponent as x, createTextVNode as A, toDisplayString as P } from "vue";
|
|
2
|
-
import { ElRadioButton as j, ElRadioGroup as D } from "element-plus";
|
|
3
|
-
import { R as N } from "./index-DK0hjfWr.mjs";
|
|
4
|
-
const I = /* @__PURE__ */ C({
|
|
5
|
-
name: "QyRadioGroup",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [Boolean, String, Number, null], default: void 0 },
|
|
10
|
-
options: { default: () => [] },
|
|
11
|
-
labelKey: { default: "label" },
|
|
12
|
-
valueKey: { default: "value" },
|
|
13
|
-
disabledKey: { default: "disabled" },
|
|
14
|
-
disabled: { type: Boolean, default: !1 },
|
|
15
|
-
size: { default: void 0 },
|
|
16
|
-
name: { default: void 0 },
|
|
17
|
-
type: { default: "radio" },
|
|
18
|
-
border: { type: Boolean, default: !1 }
|
|
19
|
-
},
|
|
20
|
-
emits: ["update:modelValue", "change"],
|
|
21
|
-
setup(b, { expose: c, emit: p }) {
|
|
22
|
-
const a = b, n = p, v = G(), y = d(
|
|
23
|
-
() => Object.fromEntries(
|
|
24
|
-
Object.entries(v).filter(
|
|
25
|
-
([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e === "id" || e.startsWith("data-") || e.startsWith("aria-")
|
|
26
|
-
)
|
|
27
|
-
)
|
|
28
|
-
), s = S(null), g = d(
|
|
29
|
-
() => a.type === "button" ? j : N
|
|
30
|
-
), V = d(
|
|
31
|
-
() => a.options.map((e) => {
|
|
32
|
-
const t = e[a.labelKey], l = e[a.valueKey], r = h(l) ? l : e.value ?? e.label ?? "";
|
|
33
|
-
return {
|
|
34
|
-
raw: e,
|
|
35
|
-
label: String(t ?? e.label ?? e.value ?? ""),
|
|
36
|
-
value: r,
|
|
37
|
-
disabled: !!e[a.disabledKey]
|
|
38
|
-
};
|
|
39
|
-
})
|
|
40
|
-
);
|
|
41
|
-
function h(e) {
|
|
42
|
-
return typeof e == "boolean" || typeof e == "string" || typeof e == "number";
|
|
43
|
-
}
|
|
44
|
-
function R(e) {
|
|
45
|
-
const t = {
|
|
46
|
-
modelValue: a.modelValue ?? void 0,
|
|
47
|
-
value: e.value,
|
|
48
|
-
label: e.label,
|
|
49
|
-
disabled: e.disabled,
|
|
50
|
-
size: a.size,
|
|
51
|
-
name: a.name
|
|
52
|
-
};
|
|
53
|
-
return a.type === "button" ? t : {
|
|
54
|
-
...t,
|
|
55
|
-
border: a.border
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function B(e, t) {
|
|
59
|
-
return `${String(e.value ?? e.label)}-${t}`;
|
|
60
|
-
}
|
|
61
|
-
function _(e) {
|
|
62
|
-
n("update:modelValue", e);
|
|
63
|
-
}
|
|
64
|
-
function z(e) {
|
|
65
|
-
n("change", e);
|
|
66
|
-
}
|
|
67
|
-
function K() {
|
|
68
|
-
return s.value;
|
|
69
|
-
}
|
|
70
|
-
return c({
|
|
71
|
-
getRadioGroupInstance: K
|
|
72
|
-
}), (e, t) => (o(), u($(D), i({
|
|
73
|
-
ref_key: "radioGroupRef",
|
|
74
|
-
ref: s
|
|
75
|
-
}, y.value, {
|
|
76
|
-
"model-value": a.modelValue,
|
|
77
|
-
disabled: a.disabled,
|
|
78
|
-
size: a.size,
|
|
79
|
-
name: a.name,
|
|
80
|
-
"onUpdate:modelValue": _,
|
|
81
|
-
onChange: z
|
|
82
|
-
}), {
|
|
83
|
-
default: f(() => [
|
|
84
|
-
e.$slots.default ? m(e.$slots, "default", {}, void 0, void 0, 0) : (o(!0), E(O, { key: 1 }, w(V.value, (l, r) => (o(), u(x(g.value), i({
|
|
85
|
-
key: B(l, r)
|
|
86
|
-
}, { ref_for: !0 }, R(l)), {
|
|
87
|
-
default: f(() => [
|
|
88
|
-
m(e.$slots, "option", {
|
|
89
|
-
option: l.raw,
|
|
90
|
-
label: l.label,
|
|
91
|
-
value: l.value,
|
|
92
|
-
disabled: l.disabled
|
|
93
|
-
}, () => [
|
|
94
|
-
A(P(l.label), 1)
|
|
95
|
-
])
|
|
96
|
-
]),
|
|
97
|
-
_: 2
|
|
98
|
-
}, 1040))), 128))
|
|
99
|
-
]),
|
|
100
|
-
_: 3
|
|
101
|
-
}, 16, ["model-value", "disabled", "size", "name"]));
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
export {
|
|
105
|
-
I as _
|
|
106
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";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:""},placeholder:{default:void 0},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},id:{default:void 0},autocomplete:{default:void 0},autofocus:{type:Boolean,default:!1},maxlength:{default:void 0},minlength:{default:void 0},tabindex:{default:void 0},ariaLabel:{default:void 0}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(l,{expose:g,emit:y}){const a=l,i=y,V=t.useAttrs(),d=t.ref(null),s=t.ref(u(a.modelValue)),N=t.computed(()=>u(a.modelValue));t.watch(()=>a.modelValue,e=>{s.value=u(e)});function u(e){return e==null?"":String(e)}function b(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function m(e){const n=u(e);let r="",c=!1,x=!1;const h=b(a.precision);for(let f=0;f<n.length;f+=1){const o=n[f];if(o>="0"&&o<="9"){r+=o;continue}if(o==="."&&h>0&&!c){r+=o,c=!0;continue}o==="-"&&a.allowNegative&&f===0&&!x&&(r+=o,x=!0)}if(h>0&&c){const[f,o=""]=r.split(".");return`${f}.${o.slice(0,h)}`}return r}function $(e){let n=e;return typeof a.min=="number"&&Number.isFinite(a.min)&&(n=Math.max(n,a.min)),typeof a.max=="number"&&Number.isFinite(a.max)&&(n=Math.min(n,a.max)),n}function v(e){const n=m(e);if(!n||n==="-"||n===".")return u(a.emptyValue);const r=Number(n);if(Number.isNaN(r))return u(a.emptyValue);const c=b(a.precision);return $(r).toFixed(c)}function p(e){s.value=e,i("update:modelValue",e)}function w(e){const n=m(e);p(n)}function B(e){const n=m(e);s.value=n,i("input",n)}function C(e){const n=a.formatTrigger==="change"?v(e):m(e);n!==u(a.modelValue)&&p(n),i("change",n)}function M(e){i("focus",e)}function k(e){if(a.formatTrigger==="blur"){const n=v(s.value);n!==u(a.modelValue)&&p(n)}i("blur",e)}function z(){const e=u(a.emptyValue);s.value=e,i("update:modelValue",e),i("clear")}function F(e){i("enter",e)}function I(){var e,n;(n=(e=d.value)==null?void 0:e.focus)==null||n.call(e)}function S(){var e,n;(n=(e=d.value)==null?void 0:e.blur)==null||n.call(e)}function A(){var e,n;(n=(e=d.value)==null?void 0:e.select)==null||n.call(e)}function P(){var e,n;(n=(e=d.value)==null?void 0:e.clear)==null||n.call(e)}function T(){var e;return((e=d.value)==null?void 0:e.input)||null}return g({focus:I,blur:S,select:A,clear:P,getNativeInput:T}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(q.ElInput),t.mergeProps({ref_key:"inputRef",ref:d},t.unref(V),{"model-value":N.value,inputmode:"decimal",placeholder:l.placeholder,clearable:l.clearable,disabled:l.disabled,readonly:l.readonly,size:l.size,name:l.name,id:l.id,autocomplete:l.autocomplete,autofocus:l.autofocus,maxlength:l.maxlength,minlength:l.minlength,tabindex:l.tabindex,"aria-label":l.ariaLabel,"onUpdate:modelValue":w,onInput:B,onChange:C,onFocus:M,onBlur:k,onClear:z,onKeydown:t.withKeys(F,["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","placeholder","clearable","disabled","readonly","size","name","id","autocomplete","autofocus","maxlength","minlength","tabindex","aria-label"]))}});exports._sfc_main=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),u=require("element-plus"),R=require("./index-BdTlpKtr.cjs"),_=a.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{expose:i,emit:c}){const l=s,d=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=a.ref(null),b=a.computed(()=>l.type==="button"?u.ElRadioButton:R.Radio),p=a.computed(()=>l.options.map(e=>{const r=e[l.labelKey],t=e[l.valueKey],o=v(t)?t:e.value??e.label??"";return{raw:e,label:String(r??e.label??e.value??""),value:o,disabled:!!e[l.disabledKey]}}));function v(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function y(e){const r={modelValue:l.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled,size:l.size,name:l.name};return l.type==="button"?r:{...r,border:l.border}}function g(e,r){return`${String(e.value??e.label)}-${r}`}function h(e){d("update:modelValue",e)}function V(e){d("change",e)}function B(){return n.value}return i({getRadioGroupInstance:B}),(e,r)=>(a.openBlock(),a.createBlock(a.unref(u.ElRadioGroup),a.mergeProps({ref_key:"radioGroupRef",ref:n},m.value,{"model-value":l.modelValue,disabled:l.disabled,size:l.size,name:l.name,"onUpdate:modelValue":h,onChange:V}),{default:a.withCtx(()=>[e.$slots.default?a.renderSlot(e.$slots,"default",{},void 0,void 0,0):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,(t,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.value),a.mergeProps({key:g(t,o)},{ref_for:!0},y(t)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[a.createTextVNode(a.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports._sfc_main=_;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u=require("element-plus"),r=e.defineComponent({name:"QyTooltip",inheritAttrs:!1,__name:"index",props:{content:{default:""},placement:{default:"top"},effect:{default:"dark"},disabled:{type:Boolean,default:!1},showDelay:{default:0},hideDelay:{default:200},offset:{default:12},maxWidth:{default:320}},emits:["open","close"],setup(t,{emit:f}){const i=f,d=e.computed(()=>typeof t.maxWidth=="number"?`${t.maxWidth}px`:t.maxWidth),s=e.computed(()=>({"--qy-tooltip-max-width":d.value})),l=e.ref(!1);let n=!1;e.onBeforeUnmount(()=>{n=!0});function o(a){n||a===l.value||(l.value=a,i(a?"open":"close"))}function c(a){o(a)}return e.watch(()=>t.disabled,a=>{a&&o(!1)}),(a,m)=>(e.openBlock(),e.createBlock(e.unref(u.ElTooltip),{content:t.content,placement:t.placement,effect:t.effect,disabled:t.disabled,"show-after":t.showDelay,"hide-after":t.hideDelay,offset:t.offset,trigger:["hover","focus"],enterable:!1,"raw-content":!1,"popper-class":"qy-tooltip-popper","popper-style":s.value,"onUpdate:visible":c},{content:e.withCtx(()=>[e.renderSlot(a.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(t.content),1)])]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"default")]),_:3},8,["content","placement","effect","disabled","show-after","hide-after","offset","popper-style"]))}});exports._sfc_main=r;
|
|
@@ -1,148 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),V=require("element-plus"),x=t.defineComponent({name:"QyCollapse",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},accordion:{type:Boolean,default:!1},expandIconPosition:{default:"right"},beforeCollapse:{}},emits:["update:modelValue","change"],setup(l,{expose:i,emit:d}){const a=l,s=d,u=t.useAttrs(),c=t.ref(),n=t.ref(a.modelValue),m=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function r(e){const o=Array.isArray(e)?e:[e];return a.accordion?o.slice(0,1):o}t.watch(()=>a.modelValue,e=>{n.value=e},{deep:!0});const f=t.computed(()=>r(a.modelValue));function p(e){n.value=e,s("update:modelValue",e),t.nextTick(()=>{n.value=a.modelValue})}function h(e){s("change",e)}function v(e){var o;(o=c.value)==null||o.setActiveNames(r(e))}return i({activeNames:f,setActiveNames:v}),(e,o)=>(t.openBlock(),t.createBlock(t.unref(V.ElCollapse),t.mergeProps({ref_key:"collapseRef",ref:c},m.value,{class:"qy-collapse","model-value":n.value,accordion:l.accordion,"expand-icon-position":l.expandIconPosition,"before-collapse":l.beforeCollapse,"onUpdate:modelValue":p,onChange:h}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["model-value","accordion","expand-icon-position","before-collapse"]))}});exports._sfc_main=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),E=require("./index-Bi9wgcgT.cjs"),K=require("./index-nSFTxVz8.cjs"),j=require("../qy-popover/index.cjs"),L=require("./index-AMu0L6uU.cjs");function F(l,p){const f=p==null?"":String(p),n=l&&f?l.resolve(f):void 0;return Object.freeze({value:f,known:!!n,canonicalName:n==null?void 0:n.name,definition:n})}function Y(l,p,f=""){const n=(l==null?void 0:l.list())??[],c=p===void 0?void 0:new Set(p.map(r=>{var s;return(s=l==null?void 0:l.resolve(r))==null?void 0:s.name}).filter(r=>!!r).map(P)),h=String(f).trim().toLocaleLowerCase();return Object.freeze(n.filter(r=>c&&!c.has(P(r.name))?!1:h?[r.name,r.label,...r.keywords??[]].some(s=>typeof s=="string"&&s.toLocaleLowerCase().includes(h)):!0))}function P(l){return L.normalizeQyIconName(l).toLocaleLowerCase()}const W={class:"qy-icon-picker"},G=["onKeydown"],H={class:"qy-icon-picker__preview","aria-hidden":"true"},J={key:1,class:"qy-icon-picker__missing","aria-hidden":"true"},X=["id"],Z={class:"qy-icon-picker__search","data-testid":"qy-icon-picker-search"},ee=["aria-label"],ae=["id","data-qy-icon-option","data-qy-icon-active","aria-selected","tabindex","onClick","onFocus","onKeydown"],ne={class:"qy-icon-picker__option-label"},oe={key:1,class:"qy-icon-picker__empty"};let te=0;const le=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:p,emit:f}){const n=l,c=f,h=e.inject(L.QY_ICON_REGISTRY_KEY,null),r=e.ref(""),s=e.ref(!1),i=e.ref(-1),b=e.ref([]),y=e.ref(null),x=e.ref(null),w=e.ref("pointer"),Q=`qy-icon-picker-${++te}`,v=e.computed(()=>F(h,n.modelValue)),d=e.computed(()=>Y(h,n.allowedNames,r.value)),k=e.computed(()=>n.open!==void 0),m=e.computed(()=>k.value?n.open===!0:s.value),R=e.computed(()=>"click"),g=e.computed(()=>`${n.id||Q}-panel`);e.watch(m,(a,o)=>{!a||o||(r.value="",i.value=M(),b.value=[],w.value==="keyboard"&&e.nextTick(()=>{var t,u;return(u=(t=x.value)==null?void 0:t.focus)==null?void 0:u.call(t)}))}),e.watch(d,()=>{if(!d.value.length){i.value=-1;return}i.value>=d.value.length&&(i.value=0),i.value<0&&(i.value=0)});function N(){n.disabled||(w.value="keyboard",I("keyboard"))}function T(a){n.disabled||k.value&&n.open!==!1||(a.stopImmediatePropagation(),I("pointer"))}function z(a){q(a)}function $(a){a===m.value&&(k.value||(s.value=a),c("open-change",a),a||e.nextTick(()=>{var o,t;return(t=(o=y.value)==null?void 0:o.focus)==null?void 0:t.call(o)}))}function q(a){a&&n.disabled||a!==m.value&&(k.value||(s.value=a),c("update:open",a))}function I(a="programmatic"){w.value=a,q(!0)}function B(){q(!1),e.nextTick(()=>{var a,o;return(o=(a=y.value)==null?void 0:a.focus)==null?void 0:o.call(a)})}function V(){n.disabled||(c("update:modelValue",""),c("change",""),c("clear"))}function C(a){n.disabled||(c("update:modelValue",a.name),c("change",a.name),B())}function S(a){if(a.key==="Escape"){a.preventDefault(),B();return}if(!d.value.length||!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(a.key))return;a.preventDefault();const o=a.key==="ArrowUp"||a.key==="ArrowLeft"?-1:1,t=d.value.length;i.value=(i.value+o+t)%t,e.nextTick(()=>{var u;return(u=b.value[i.value])==null?void 0:u.focus()})}function M(){const a=v.value.canonicalName;if(!a)return d.value.length?0:-1;const o=d.value.findIndex(({name:t})=>t===a);return o>=0?o:d.value.length?0:-1}function A(a,o){a instanceof HTMLElement&&(b.value[o]=a)}function O(a){return`${g.value}-${encodeURIComponent(a)}`}function D(){var a,o;(o=(a=y.value)==null?void 0:a.focus)==null||o.call(a)}function U(){var a,o;(o=(a=y.value)==null?void 0:a.blur)==null||o.call(a)}return p({focus:D,blur:U,open:I,close:B}),(a,o)=>(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(e.unref(j.QyPopover),{ref:"popoverRef",class:"qy-icon-picker__popover",open:m.value,trigger:R.value,placement:"bottom-start",width:n.panelWidth,"show-delay":0,"hide-delay":0,disabled:n.disabled||k.value&&n.open===!1,"onUpdate:open":z,onOpenChange:$},{reference:e.withCtx(()=>[e.createElementVNode("div",{class:"qy-icon-picker__trigger","data-testid":"qy-icon-picker-trigger",onClick:T,onKeydown:[e.withKeys(e.withModifiers(N,["prevent"]),["enter"]),e.withKeys(e.withModifiers(N,["prevent"]),["space"])]},[e.createVNode(e.unref(K.QyInput),{ref_key:"triggerRef",ref:y,id:n.id,"model-value":v.value.value,size:n.size,disabled:n.disabled,clearable:n.clearable,readonly:"",placeholder:n.placeholder,"aria-label":n.ariaLabel,"aria-haspopup":"listbox","aria-expanded":m.value?"true":"false","aria-controls":g.value,onClear:V},{prefix:e.withCtx(()=>[e.createElementVNode("span",H,[v.value.definition?(e.openBlock(),e.createBlock(e.unref(E.QyIcon),{key:0,name:v.value.definition.name,size:18},null,8,["name"])):(e.openBlock(),e.createElementBlock("span",J,"?"))])]),suffix:e.withCtx(()=>[n.clearable&&v.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(V,["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,G)]),default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:g.value,class:"qy-icon-picker__panel",onKeydown:S},[e.createElementVNode("div",Z,[e.createVNode(e.unref(K.QyInput),{ref_key:"searchRef",ref:x,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"])]),d.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-icon-picker__grid",role:"listbox","aria-label":n.ariaLabel||"图标列表"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t,u)=>(e.openBlock(),e.createElementBlock("div",{id:O(t.name),key:t.name,ref_for:!0,ref:_=>A(_,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":v.value.canonicalName===t.name?"true":"false",tabindex:i.value===u?0:-1,onClick:_=>C(t),onFocus:_=>i.value=u,onKeydown:[e.withKeys(e.withModifiers(_=>C(t),["prevent"]),["enter"]),e.withKeys(e.withModifiers(_=>C(t),["prevent"]),["space"])]},[e.createVNode(e.unref(E.QyIcon),{name:t.name,size:18,"aria-hidden":"true"},null,8,["name"]),e.createElementVNode("span",ne,e.toDisplayString(t.label||t.name),1)],42,ae))),128))],8,ee)):(e.openBlock(),e.createElementBlock("div",oe,[e.renderSlot(a.$slots,"empty",{},()=>[e.createTextVNode(e.toDisplayString(n.emptyText),1)])]))],40,X)):e.createCommentVNode("",!0)]),_:3},8,["open","trigger","width","disabled"])]))}});exports._sfc_main=le;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("vue"),f=require("element-plus"),n=["success","warning","info","error"],a=["401","403","404","500"],m=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),o={status:{type:String,default:"info",validator:t=>[...n,...a].includes(t)},title:{type:String,default:""},description:{type:String,default:""},image:{type:String,default:""},imageAlt:{type:String,default:""}},v=i.defineComponent({name:"QyResult",inheritAttrs:!1,props:o,setup(t,{attrs:r,slots:e}){const u=i.computed(()=>Object.fromEntries(Object.entries(r).filter(([s])=>m(s)))),l=i.computed(()=>["qy-result",`qy-result--${t.status}`,u.value.class]),c=i.computed(()=>["qy-result__renderer",`qy-result--${t.status}`]),d=()=>{if(e.visual)return e.visual();if(t.image)return i.h("img",{class:"qy-result__image",src:t.image,alt:t.imageAlt});if(a.includes(t.status))return i.h("div",{class:"qy-result__http-visual","aria-hidden":"true"},t.status)};return()=>{const s={};return(e.visual||t.image||a.includes(t.status))&&(s.icon=d),e.title&&(s.title=e.title),e.description&&(s["sub-title"]=e.description),e.actions&&(s.extra=e.actions),i.h("div",{...u.value,class:l.value,title:t.title},[i.h(f.ElResult,{class:c.value,icon:n.includes(t.status)?t.status:void 0,title:e.title?"":t.title,subTitle:e.description?"":t.description},s)])}}});exports._sfc_main=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),F=require("element-plus"),W=["id","role","aria-disabled","tabindex","disabled","onKeydown"],j={class:"qy-color-picker__value","aria-hidden":"true"};let G=0;const H=()=>`qy-color-picker-${++G}`,J=a.defineComponent({name:"QyColorPicker",inheritAttrs:!1,__name:"index",props:{modelValue:{default:null},format:{default:void 0},showAlpha:{type:Boolean,default:!1},predefine:{default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},emits:["update:modelValue","active-change","change","visible-change"],setup(R,{emit:D}){const n=R,i=D,c=a.useAttrs(),g=a.ref(null),k=a.ref(null),p=a.ref(null),r=a.ref(u(n.modelValue)),h=a.ref(r.value),t=a.ref(!1),o=a.ref(null),s=a.ref(!1),f=a.ref(!1),w=H(),L=a.computed(()=>typeof c.id=="string"&&c.id||w),_=`qy-color-picker__popper--${w}`,z=a.computed(()=>n.format||(n.showAlpha?"rgb":"hex")),m=a.computed(()=>u(n.modelValue)),B=a.computed(()=>String(c.role||"button")),I=a.computed(()=>c["aria-disabled"]??(n.disabled?"true":"false")),K=a.computed(()=>n.disabled?void 0:c.tabindex??0),N=a.computed(()=>{const e={};for(const[l,d]of Object.entries(c)){const b=l.toLowerCase();(l==="class"||l==="style"||l==="id"||l==="title"||l==="tabindex"||l==="role"||b.startsWith("data-")||b.startsWith("aria-")||["onkeydown","onkeyup","onkeypress"].includes(b))&&(e[l]=d)}return e});a.watch(()=>n.modelValue,e=>{r.value=u(e),t.value&&(h.value=r.value)});function u(e){return e==null||e===""?null:String(e)}function S(){if(!n.disabled){if(t.value){v();return}V()}}function C(){n.disabled||t.value||V()}function T(){t.value&&v()}function V(){t.value||n.disabled||(h.value=u(n.modelValue),r.value=h.value,o.value=null,s.value=!1,f.value=!1,t.value=!0,$(),i("visible-change",!0),a.nextTick(()=>{var e,l;return(l=(e=p.value)==null?void 0:e.show)==null?void 0:l.call(e)}))}function M(e){!t.value||o.value||(r.value=u(e),i("active-change",r.value))}function O(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)))}function Q(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)),f.value||(f.value=!0,i("change",r.value)),y())}function U(){!t.value||o.value==="cancel"||(s.value||(s.value=!0,o.value="commit",r.value=null,i("update:modelValue",null)),f.value||(f.value=!0,i("change",null)),y())}function v(){var e,l;!t.value||o.value||(o.value="cancel",r.value=u(n.modelValue),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),y())}function y(){var e,l;t.value&&(t.value=!1,P(),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),i("visible-change",!1),a.nextTick(()=>{var d;return(d=k.value)==null?void 0:d.focus()}))}function E(e){var l,d;return e instanceof Node?(l=g.value)!=null&&l.contains(e)?!0:!!((d=e.closest)!=null&&d.call(e,`.${_}`)):!1}function x(e){t.value&&!E(e.target)&&v()}function q(e){t.value&&!E(e.target)&&v()}function A(e){t.value&&e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),v())}function $(){document.addEventListener("pointerdown",x,!0),document.addEventListener("focusin",q,!0),document.addEventListener("keydown",A,!0)}function P(){document.removeEventListener("pointerdown",x,!0),document.removeEventListener("focusin",q,!0),document.removeEventListener("keydown",A,!0)}return a.onBeforeUnmount(()=>{P()}),(e,l)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:g,class:"qy-color-picker","data-qy-color-picker":""},[a.createElementVNode("button",a.mergeProps({ref_key:"triggerRef",ref:k,type:"button",class:"qy-color-picker__trigger"},N.value,{id:L.value,role:B.value,"aria-disabled":I.value,tabindex:K.value,disabled:n.disabled,class:{"is-disabled":n.disabled,"is-open":t.value},onClick:S,onKeydown:[a.withKeys(a.withModifiers(C,["prevent"]),["enter"]),a.withKeys(a.withModifiers(C,["prevent"]),["space"]),a.withKeys(a.withModifiers(T,["prevent"]),["esc"])]}),[a.createElementVNode("span",{class:a.normalizeClass(["qy-color-picker__swatch",{"is-empty":!m.value}]),style:a.normalizeStyle(m.value?{backgroundColor:m.value}:void 0),"aria-hidden":"true"},null,6),a.createElementVNode("span",j,a.toDisplayString(m.value||"选择颜色"),1),l[0]||(l[0]=a.createElementVNode("span",{class:"qy-color-picker__arrow","aria-hidden":"true"},"⌄",-1))],16,W),a.createVNode(a.unref(F.ElColorPicker),{ref_key:"rendererRef",ref:p,class:"qy-color-picker__renderer","model-value":r.value,"show-alpha":n.showAlpha,"color-format":z.value,predefine:n.predefine,size:n.size,disabled:!1,clearable:n.clearable,teleported:!0,tabindex:-1,"popper-class":_,"aria-hidden":"true",onActiveChange:M,"onUpdate:modelValue":O,onChange:Q,onClear:U},null,8,["model-value","show-alpha","color-format","predefine","size","clearable"])],512))}});exports._sfc_main=J;
|