@qynpm/ui 1.0.38 → 1.0.40
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 +117 -113
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +50 -48
- 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 +1 -1
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +1 -1
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +1 -1
- 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 +1 -1
- package/dist/qy-button/index.cjs +1 -1
- package/dist/qy-button/index.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +1 -1
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +1 -1
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +1 -1
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +1 -1
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +1 -1
- 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 +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +1 -1
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +1 -1
- package/dist/qy-dropdown/index.cjs +1 -1
- package/dist/qy-dropdown/index.mjs +1 -1
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/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 +1 -1
- package/dist/qy-icon-picker/index.mjs +1 -1
- 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 +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +1 -1
- 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 +1 -1
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +1 -1
- 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 +1 -1
- package/dist/qy-pagination/index.cjs +1 -0
- package/dist/qy-pagination/index.mjs +7 -0
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +1 -1
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +1 -1
- 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 +1 -1
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +1 -1
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/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-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 +1 -1
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +1 -1
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +1 -1
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +1 -1
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +1 -1
- 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-WUwab92q.mjs → index-1Vw54aYL.mjs} +9 -9
- package/dist/shared/{index-Cs-LC7ZG.mjs → index-5vWL_IJI.mjs} +15 -15
- package/dist/shared/{index-xhROPBam.mjs → index-7fIb2Tqw.mjs} +12 -12
- package/dist/shared/{index-CyJHJCj8.cjs → index-9T0p3USM.cjs} +1 -1
- package/dist/shared/{index-BxQnJVT8.cjs → index-B-zfoMbw.cjs} +1 -1
- package/dist/shared/{index-qLomEtF6.mjs → index-B1I7mCIm.mjs} +3 -3
- package/dist/shared/{index-CnIZoCkL.mjs → index-B1aU9mew.mjs} +10 -10
- package/dist/shared/{index-BIWER6Wa.cjs → index-B26-GlFX.cjs} +1 -1
- package/dist/shared/{index-CF3vimnX.mjs → index-B63vgrS4.mjs} +7 -7
- package/dist/shared/{index-CJxpEc9q.cjs → index-B97hTd-h.cjs} +1 -1
- package/dist/shared/{index-CypWMqI4.cjs → index-B9zEH5Yq.cjs} +1 -1
- package/dist/shared/{index--I-pLtO3.cjs → index-BA_tJgLE.cjs} +1 -1
- package/dist/shared/{index-DiNSSXC8.mjs → index-BBIPQa5N.mjs} +4 -4
- package/dist/shared/index-BCWvMvRL.cjs +1 -0
- package/dist/shared/{index-DtXU2qQS.cjs → index-BDJIWxaw.cjs} +1 -1
- package/dist/shared/{index-DdoFHdjY.mjs → index-BFbAB8UH.mjs} +41 -41
- package/dist/shared/{index-B-d53uut.mjs → index-BG3XKumS.mjs} +10 -10
- package/dist/shared/{index-CCqfQb_M.mjs → index-BHGDbXoK.mjs} +9 -9
- package/dist/shared/{index-Cz6Lo9RL.cjs → index-BInkt-Al.cjs} +1 -1
- package/dist/shared/{index-jdGrSpGg.mjs → index-BKEw_9fh.mjs} +553 -550
- package/dist/shared/{index-BOLL0aGP.mjs → index-BNfu2YgX.mjs} +7 -7
- package/dist/shared/{index-CaM4EpCy.mjs → index-BPXJkcM1.mjs} +7 -7
- package/dist/shared/{index-Q8rXwNnM.mjs → index-BQzQcTgt.mjs} +2 -2
- package/dist/shared/{index-4uXwnK7G.cjs → index-BUSdZ-x8.cjs} +1 -1
- package/dist/shared/{index-ChEefC0G.cjs → index-BZDbBD41.cjs} +1 -1
- package/dist/shared/{index-Di3R0FOU.cjs → index-Bc1ny9GC.cjs} +1 -1
- package/dist/shared/{index-B8S5RT2Z.mjs → index-BcscC86C.mjs} +30 -30
- package/dist/shared/{index-B0aY8Q_T.cjs → index-BiowqiSD.cjs} +1 -1
- package/dist/shared/{index-hPaHbb1Y.cjs → index-Bpl6Jh4H.cjs} +1 -1
- package/dist/shared/{index-DgPQ8292.cjs → index-BqojE7aF.cjs} +1 -1
- package/dist/shared/{index-mKnRWsLn.cjs → index-BrZzYI8x.cjs} +1 -1
- package/dist/shared/{index-DI5COVol.cjs → index-BsXys36-.cjs} +1 -1
- package/dist/shared/{index-gOUVgYd_.cjs → index-BvmXE8aK.cjs} +1 -1
- package/dist/shared/{index-D_l30Gzr.cjs → index-Bw3nETeY.cjs} +1 -1
- package/dist/shared/{index-DnFQkBfl.cjs → index-BxxuaQGJ.cjs} +1 -1
- package/dist/shared/{index-Du-FNseo.cjs → index-BxymsnW0.cjs} +1 -1
- package/dist/shared/{index-DniPcZnL.mjs → index-BzpgGytE.mjs} +8 -8
- package/dist/shared/{index-BiCdxX0E.mjs → index-BzzZmppN.mjs} +10 -10
- package/dist/shared/{index-B3wIgwN7.cjs → index-C0rOcDsc.cjs} +1 -1
- package/dist/shared/{index-Ba5CLmrh.mjs → index-C1hAuubZ.mjs} +8 -8
- package/dist/shared/{index-YWKumDEW.mjs → index-C2BQtQPa.mjs} +7 -7
- package/dist/shared/{index-DQn_5j_f.cjs → index-C62Loq0f.cjs} +1 -1
- package/dist/shared/{index-DFTSBy3g.mjs → index-C7N8x3DK.mjs} +36 -36
- package/dist/shared/{index-B8znc-qD.cjs → index-C8aLbb8l.cjs} +1 -1
- package/dist/shared/{index-DS539-rn.mjs → index-CA279UZp.mjs} +27 -27
- package/dist/shared/{index-BE4CELs-.mjs → index-CBhrdEIf.mjs} +1 -1
- package/dist/shared/{index-COpowa-E.mjs → index-CCVlab6d.mjs} +9 -9
- package/dist/shared/{index-Bg_o9zrB.cjs → index-CDjAMIpe.cjs} +1 -1
- package/dist/shared/{index-BWO4qxne.mjs → index-CDleTMJj.mjs} +11 -11
- package/dist/shared/{index-B-PlDm1A.cjs → index-CG4I3nRK.cjs} +1 -1
- package/dist/shared/{index-0mok5nS2.cjs → index-CHt1R1WD.cjs} +1 -1
- package/dist/shared/index-CZIsLBLq.cjs +1 -0
- package/dist/shared/{index-DFnpyAa1.mjs → index-CcEXTVYA.mjs} +14 -14
- package/dist/shared/{index-DVPk0jMO.cjs → index-CedTjtZr.cjs} +1 -1
- package/dist/shared/{index-DpitpmqK.mjs → index-CgXuleV-.mjs} +20 -20
- package/dist/shared/index-CkfWS0Ba.cjs +1 -0
- package/dist/shared/index-Cm7k9j8a.cjs +1 -0
- package/dist/shared/{index-CWB5fAb7.mjs → index-CmgT_pgc.mjs} +12 -12
- package/dist/shared/{index-Ba3qQVYM.cjs → index-CngdcQWi.cjs} +1 -1
- package/dist/shared/{index-CjKfmMG4.cjs → index-CqdhLbMe.cjs} +1 -1
- package/dist/shared/index-CrlLsoRF.mjs +78 -0
- package/dist/shared/{index-DeBjILEK.cjs → index-CsI1WBRp.cjs} +1 -1
- package/dist/shared/{index-bvvNTmuM.mjs → index-CsXA7Qfy.mjs} +8 -8
- package/dist/shared/{index-jsEFCWaY.mjs → index-CsaDF9d4.mjs} +21 -21
- package/dist/shared/{index-DyqFfMhy.mjs → index-CvdUJpAu.mjs} +12 -12
- package/dist/shared/{index-CftZiihF.mjs → index-CvfLEIFE.mjs} +28 -27
- package/dist/shared/{index-D1cbnYac.mjs → index-CwcD7q4B.mjs} +9 -9
- package/dist/shared/{index-CXAVVShG.mjs → index-D0kCG3Ov.mjs} +37 -37
- package/dist/shared/{index-R6vvV3td.cjs → index-D1-QYDXi.cjs} +1 -1
- package/dist/shared/{index-CioDI8Ys.cjs → index-D1BK66mG.cjs} +1 -1
- package/dist/shared/index-D3IHte_d.cjs +1 -0
- package/dist/shared/{index-BmWDUjpi.mjs → index-D3VO2Ccd.mjs} +8 -8
- package/dist/shared/{index-DWrymMO5.cjs → index-D5spJ8nj.cjs} +1 -1
- package/dist/shared/{index-B71cpH4T.cjs → index-D7uPizqd.cjs} +1 -1
- package/dist/shared/{index-TMhQv4oD.mjs → index-D8OJx-hy.mjs} +21 -21
- package/dist/shared/{index-BsRfuMop.cjs → index-D97QYFZw.cjs} +1 -1
- package/dist/shared/{index-_AB6uqZw.mjs → index-DAiFZxwY.mjs} +13 -13
- package/dist/shared/{index-xdsYNS2u.mjs → index-DBz3lz62.mjs} +12 -12
- package/dist/shared/{index-CndG7UWF.mjs → index-DCKEecrx.mjs} +24 -24
- package/dist/shared/index-DCneRuMf.mjs +78 -0
- package/dist/shared/{index-DePXY0TI.cjs → index-DD-zKgrO.cjs} +1 -1
- package/dist/shared/{index-DRICnDix.mjs → index-DEHvfBYQ.mjs} +8 -8
- package/dist/shared/{index-VtJrvPka.mjs → index-DF_Q6c4g.mjs} +1 -1
- package/dist/shared/index-DFeV2CL8.cjs +1 -0
- package/dist/shared/{index-2xIkj7uz.cjs → index-DIckpqrH.cjs} +1 -1
- package/dist/shared/{index-DwHzztSj.cjs → index-DKKMSKqm.cjs} +1 -1
- package/dist/shared/{index-D8-4wR07.mjs → index-DPhYSn9g.mjs} +19 -19
- package/dist/shared/{index-BsTSa25A.cjs → index-DSq7WIiO.cjs} +1 -1
- package/dist/shared/{index-DTOfhAXP.mjs → index-DTHRZ-aL.mjs} +20 -20
- package/dist/shared/{index-BM3ueCK9.cjs → index-DTqCwGN_.cjs} +1 -1
- package/dist/shared/{index-B1-htEYJ.mjs → index-DVwCIrin.mjs} +27 -27
- package/dist/shared/{index-DAoXMHpO.mjs → index-DZU3jXf9.mjs} +1 -1
- package/dist/shared/index-D_Imq4-m.mjs +72 -0
- package/dist/shared/{index-fVS62tLm.mjs → index-DbxSDJ7e.mjs} +5 -5
- package/dist/shared/{index-Bx_faI_u.mjs → index-Dc4A_1-H.mjs} +10 -10
- package/dist/shared/index-Dchy1DNn.mjs +197 -0
- package/dist/shared/{index-gU6HjdHv.mjs → index-DdKCUobQ.mjs} +55 -55
- package/dist/shared/{index-CRU4YvLz.cjs → index-DdX40CzJ.cjs} +1 -1
- package/dist/shared/{index-CutbNRjY.mjs → index-DfP6txWq.mjs} +6 -6
- package/dist/shared/{index-BoGA3Pdv.cjs → index-Dh_dh3TS.cjs} +1 -1
- package/dist/shared/{index-BigCKPUY.mjs → index-DjRDV62n.mjs} +36 -36
- package/dist/shared/{index-DYYPqv3Y.cjs → index-DpGlBnUl.cjs} +1 -1
- package/dist/shared/{index-C7GXprxF.cjs → index-DsDUAk2R.cjs} +1 -1
- package/dist/shared/{index-C97qoSgI.cjs → index-DxUzSONj.cjs} +1 -1
- package/dist/shared/{index-Hn-IGtqe.cjs → index-DypZJHmM.cjs} +1 -1
- package/dist/shared/{index-DmEwKHe4.cjs → index-DzCwEfCQ.cjs} +1 -1
- package/dist/shared/{index-Cp0dxH7g.mjs → index-EPcAlzgc.mjs} +4 -4
- package/dist/shared/{index-u7VYI7Kg.mjs → index-GRwpbz1m.mjs} +11 -11
- package/dist/shared/index-Gyu5R4Gn.cjs +1 -0
- package/dist/shared/{index-DULBwiHC.mjs → index-IJJI2ylC.mjs} +12 -12
- package/dist/shared/index-LDtOVxCE.mjs +36 -0
- package/dist/shared/{index-lsWZ_M5R.mjs → index-OaA2R7Ur.mjs} +20 -20
- package/dist/shared/{index-BhO1ARf9.cjs → index-S2TDFo5d.cjs} +1 -1
- package/dist/shared/{index-9KXqMXBF.mjs → index-Se0xx6vl.mjs} +9 -9
- package/dist/shared/{index-BA6hc-j-.mjs → index-TVUj4Yp4.mjs} +4 -4
- package/dist/shared/index-U3c1apvC.cjs +1 -0
- package/dist/shared/{index-Brxx2EqN.mjs → index-VExJFRrd.mjs} +31 -31
- package/dist/shared/{index-CeasMt4r.mjs → index-Xw2_Py_V.mjs} +10 -10
- package/dist/shared/{index-Db7PhnjA.cjs → index-ZbSETCxZ.cjs} +1 -1
- package/dist/shared/index-ZkHMbIv4.cjs +1 -0
- package/dist/shared/{index-Nx_w1JYm.cjs → index-aveXATNw.cjs} +1 -1
- package/dist/shared/{index-DnexuGuJ.cjs → index-byOl9Vtk.cjs} +1 -1
- package/dist/shared/{index-i0G6DcP0.cjs → index-fiuhurmv.cjs} +1 -1
- package/dist/shared/{index-BCfULlZK.cjs → index-pqwrEshN.cjs} +1 -1
- package/dist/shared/{index-DEosiUQV.mjs → index-rowlxa3p.mjs} +26 -26
- package/dist/shared/{index-DZzMTGSJ.cjs → index-trf8Dvbk.cjs} +1 -1
- package/dist/shared/{index-DxFfP2Fn.cjs → index-tsfRa5ze.cjs} +1 -1
- package/dist/shared/{index-BcPpl_OJ.mjs → index-uRVIiLjP.mjs} +22 -22
- package/index.d.ts +122 -113
- package/package.json +496 -490
- 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 +9 -9
- 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-pagination/index.d.ts +40 -0
- 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-0aCI4Gj1.mjs +0 -78
- package/dist/shared/index-B1ZuGEIr.cjs +0 -1
- package/dist/shared/index-BFFnf0Bn.cjs +0 -1
- package/dist/shared/index-Bguu2ys0.cjs +0 -1
- package/dist/shared/index-Btwke2ql.cjs +0 -1
- package/dist/shared/index-CDGjUhaC.mjs +0 -72
- package/dist/shared/index-CSMOYD1R.cjs +0 -1
- package/dist/shared/index-CrwhANF5.mjs +0 -78
- package/dist/shared/index-CzyB5ttX.cjs +0 -1
- package/dist/shared/index-D9dQaZtu.cjs +0 -1
- package/dist/shared/index-DNMOtH4s.mjs +0 -36
- package/dist/shared/index-jP71VQxo.cjs +0 -1
package/dist/qy-upload/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../shared/index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../shared/index-Bw3nETeY.cjs"),t=require("../shared/install-c8il9DQv.cjs"),e=t.withInstall(l.Upload,"QyUpload");exports.QyUpload=e;exports.default=e;
|
package/dist/qy-upload/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../shared/index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../shared/index-DpGlBnUl.cjs"),r=require("../shared/install-c8il9DQv.cjs"),e=r.withInstall(t.Watermark,"QyWatermark");exports.QyWatermark=e;exports.default=e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as u, computed as m, h as
|
|
2
|
-
import { ElCol as
|
|
1
|
+
import { defineComponent as u, computed as m, h as f } from "vue";
|
|
2
|
+
import { ElCol as r } from "element-plus";
|
|
3
3
|
import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const
|
|
4
|
+
const n = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"), c = u({
|
|
5
5
|
name: "QyCol",
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
props: {
|
|
@@ -17,13 +17,13 @@ const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" ||
|
|
|
17
17
|
xl: [Number, Object]
|
|
18
18
|
},
|
|
19
19
|
setup(t, { attrs: l, slots: e }) {
|
|
20
|
-
const
|
|
21
|
-
() => Object.fromEntries(Object.entries(l).filter(([
|
|
20
|
+
const a = m(
|
|
21
|
+
() => Object.fromEntries(Object.entries(l).filter(([s]) => n(s)))
|
|
22
22
|
);
|
|
23
|
-
return () =>
|
|
24
|
-
|
|
23
|
+
return () => f(
|
|
24
|
+
r,
|
|
25
25
|
{
|
|
26
|
-
...
|
|
26
|
+
...a.value,
|
|
27
27
|
tag: t.tag,
|
|
28
28
|
span: t.span,
|
|
29
29
|
offset: t.offset,
|
|
@@ -38,7 +38,7 @@ const c = (t) => t === "class" || t === "style" || t === "id" || t === "role" ||
|
|
|
38
38
|
e.default ? { default: e.default } : void 0
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
}), x = /* @__PURE__ */ i(
|
|
41
|
+
}), x = /* @__PURE__ */ i(c, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-col/index.vue"]]);
|
|
42
42
|
export {
|
|
43
43
|
x as C
|
|
44
44
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as B, ref as I, computed as l, watch as
|
|
2
|
-
import { ElImage as j, ElIcon as
|
|
3
|
-
import { PictureFilled as
|
|
4
|
-
import { n as b, r as A, o as
|
|
5
|
-
import { _ as
|
|
1
|
+
import { defineComponent as B, ref as I, computed as l, watch as L, openBlock as S, createElementBlock as N, normalizeStyle as C, normalizeClass as F, createBlock as Q, withCtx as m, renderSlot as _, createElementVNode as f, createVNode as p, createCommentVNode as V } from "vue";
|
|
2
|
+
import { ElImage as j, ElIcon as D } from "element-plus";
|
|
3
|
+
import { PictureFilled as O } from "@element-plus/icons-vue";
|
|
4
|
+
import { n as b, r as A, o as R } from "./utils-DoyI5oM8.mjs";
|
|
5
|
+
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const G = /* @__PURE__ */ B({
|
|
7
7
|
name: "QyImage",
|
|
8
8
|
__name: "index",
|
|
@@ -31,7 +31,7 @@ const G = /* @__PURE__ */ B({
|
|
|
31
31
|
width: g(y.value.width),
|
|
32
32
|
height: g(y.value.height)
|
|
33
33
|
})), E = l(() => e.placeholder || a.value), v = l(() => e.preview && !!u.value), h = l(() => (e.previewList.length ? e.previewList : [e.src]).map((i) => b(i)).filter(Boolean));
|
|
34
|
-
|
|
34
|
+
L(
|
|
35
35
|
() => [e.src, e.compressor],
|
|
36
36
|
q,
|
|
37
37
|
{
|
|
@@ -53,14 +53,14 @@ const G = /* @__PURE__ */ B({
|
|
|
53
53
|
a.value = !1, d.value = u.value;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function P(r) {
|
|
57
57
|
t("load", r);
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function k(r) {
|
|
60
60
|
a.value = !0, t("error", r);
|
|
61
61
|
}
|
|
62
62
|
function x() {
|
|
63
|
-
v.value && (
|
|
63
|
+
v.value && (R({
|
|
64
64
|
urlList: h.value,
|
|
65
65
|
initialIndex: e.initialIndex
|
|
66
66
|
}), t("preview", u.value));
|
|
@@ -72,22 +72,22 @@ const G = /* @__PURE__ */ B({
|
|
|
72
72
|
return s;
|
|
73
73
|
}, set requestId(r) {
|
|
74
74
|
s = r;
|
|
75
|
-
}, normalizedSrc: u, imageSize: y, rootStyle: z, showPlaceholder: E, previewEnabled: v, previewUrls: h, loadImage: q, handleLoad:
|
|
76
|
-
return
|
|
75
|
+
}, normalizedSrc: u, imageSize: y, rootStyle: z, showPlaceholder: E, previewEnabled: v, previewUrls: h, loadImage: q, handleLoad: P, handleError: k, handlePreview: x, normalizeCssSize: g, get ElIcon() {
|
|
76
|
+
return D;
|
|
77
77
|
}, get ElImage() {
|
|
78
78
|
return j;
|
|
79
79
|
}, get PictureFilled() {
|
|
80
|
-
return
|
|
80
|
+
return O;
|
|
81
81
|
} };
|
|
82
82
|
return Object.defineProperty(w, "__isScriptSetup", { enumerable: !1, value: !0 }), w;
|
|
83
83
|
}
|
|
84
84
|
}), H = { class: "qy-image__state qy-image__state--error" }, J = { class: "qy-image__state qy-image__state--empty" };
|
|
85
85
|
function K(o, n, c, e, t, a) {
|
|
86
|
-
return S(),
|
|
86
|
+
return S(), N(
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
class: F(["qy-image", { "qy-image--previewable": e.previewEnabled }]),
|
|
90
|
-
style:
|
|
90
|
+
style: C(e.rootStyle),
|
|
91
91
|
onClick: e.handlePreview
|
|
92
92
|
},
|
|
93
93
|
[
|
|
@@ -144,7 +144,7 @@ function K(o, n, c, e, t, a) {
|
|
|
144
144
|
/* CLASS, STYLE */
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
|
-
const Z = /* @__PURE__ */
|
|
147
|
+
const Z = /* @__PURE__ */ U(G, [["render", K], ["__scopeId", "data-v-ba6624fb"], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-image/index.vue"]]);
|
|
148
148
|
export {
|
|
149
149
|
Z as I
|
|
150
150
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as V, ref as b, computed as
|
|
2
|
-
import { U as B } from "./index-
|
|
1
|
+
import { defineComponent as V, ref as b, computed as S, openBlock as c, createElementBlock as f, normalizeClass as p, createVNode as w, withCtx as z, createElementVNode as h, withModifiers as d, withKeys as y, toDisplayString as U, createCommentVNode as k } from "vue";
|
|
2
|
+
import { U as B } from "./index-uRVIiLjP.mjs";
|
|
3
3
|
import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const N = /* @__PURE__ */ V({
|
|
5
5
|
name: "QyFilePicker",
|
|
@@ -14,7 +14,7 @@ const N = /* @__PURE__ */ V({
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue", "change", "clear", "invalid"],
|
|
16
16
|
setup(u, { expose: _, emit: l }) {
|
|
17
|
-
const e = u, i = l, r = b(null), n = b(!1), o =
|
|
17
|
+
const e = u, i = l, r = b(null), n = b(!1), o = S(() => e.modelValue ? [e.modelValue] : []);
|
|
18
18
|
let t = !1;
|
|
19
19
|
function m() {
|
|
20
20
|
var a;
|
|
@@ -24,10 +24,10 @@ const N = /* @__PURE__ */ V({
|
|
|
24
24
|
var a;
|
|
25
25
|
t = !0, (a = r.value) == null || a.clearFiles(), t = !1, i("update:modelValue", null), i("change", null), i("clear");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function D() {
|
|
28
28
|
e.disabled || s();
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function x() {
|
|
31
31
|
!e.disabled && e.drag && (n.value = !0);
|
|
32
32
|
}
|
|
33
33
|
function q() {
|
|
@@ -49,7 +49,7 @@ const N = /* @__PURE__ */ V({
|
|
|
49
49
|
return t;
|
|
50
50
|
}, set clearing(a) {
|
|
51
51
|
t = a;
|
|
52
|
-
}, openFileDialog: m, clear: s, handleClearClick:
|
|
52
|
+
}, openFileDialog: m, clear: s, handleClearClick: D, handleDragenter: x, handleDragleave: q, handleSelectedFiles: C, handleInvalid: F, QyUpload: B };
|
|
53
53
|
return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
|
|
54
54
|
}
|
|
55
55
|
}), K = ["tabindex", "aria-disabled", "onClick", "onKeydown"], M = { class: "qy-file-picker__label" }, P = {
|
|
@@ -63,7 +63,7 @@ function E(u, _, l, e, i, r) {
|
|
|
63
63
|
class: p(["qy-file-picker", { "is-disabled": l.disabled, "is-dragover": e.isDragover }])
|
|
64
64
|
},
|
|
65
65
|
[
|
|
66
|
-
|
|
66
|
+
w(e.QyUpload, {
|
|
67
67
|
ref: "uploadRef",
|
|
68
68
|
variant: "file-list",
|
|
69
69
|
"auto-upload": !1,
|
|
@@ -82,22 +82,22 @@ function E(u, _, l, e, i, r) {
|
|
|
82
82
|
trigger: z(({ open: n }) => {
|
|
83
83
|
var o;
|
|
84
84
|
return [
|
|
85
|
-
|
|
85
|
+
h("div", {
|
|
86
86
|
class: p(["qy-file-picker__dropzone", { "is-click-only": !l.drag }]),
|
|
87
87
|
role: "button",
|
|
88
88
|
tabindex: l.disabled ? -1 : 0,
|
|
89
89
|
"aria-disabled": l.disabled ? "true" : void 0,
|
|
90
90
|
onClick: n,
|
|
91
91
|
onKeydown: [
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
y(d(n, ["prevent"]), ["enter"]),
|
|
93
|
+
y(d(n, ["prevent"]), ["space"])
|
|
94
94
|
],
|
|
95
95
|
onDragenter: d(e.handleDragenter, ["prevent"]),
|
|
96
96
|
onDragover: d(e.handleDragenter, ["prevent"]),
|
|
97
97
|
onDragleave: d(e.handleDragleave, ["prevent"]),
|
|
98
98
|
onDrop: e.handleDragleave
|
|
99
99
|
}, [
|
|
100
|
-
|
|
100
|
+
h(
|
|
101
101
|
"span",
|
|
102
102
|
M,
|
|
103
103
|
U(((o = l.modelValue) == null ? void 0 : o.name) || l.placeholder),
|
|
@@ -123,7 +123,7 @@ function E(u, _, l, e, i, r) {
|
|
|
123
123
|
/* CLASS */
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
|
-
const O = /* @__PURE__ */ I(N, [["render", E], ["__scopeId", "data-v-89753530"], ["__file", "
|
|
126
|
+
const O = /* @__PURE__ */ I(N, [["render", E], ["__scopeId", "data-v-89753530"], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-file-picker/index.vue"]]);
|
|
127
127
|
export {
|
|
128
128
|
O as F
|
|
129
129
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),h=require("element-plus"),
|
|
1
|
+
"use strict";const t=require("vue"),h=require("element-plus"),A=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=e=>e==="class"||e==="style"||e==="id"||e==="role"||e.startsWith("data-")||e.startsWith("aria-"),S=()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,w=t.defineComponent({name:"QyStatistic",inheritAttrs:!1,props:{value:{type:Number,default:0},precision:{type:Number,default:0},decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},formatter:Function,valueStyle:[String,Object,Array,Boolean],title:String,prefix:String,suffix:String,animated:Boolean,duration:{type:Number,default:1e3},startValue:{type:Number,default:0}},setup(e,{attrs:x,slots:u}){const n=t.ref(e.animated&&e.duration>0&&!S()?e.startValue:e.value),y=t.computed(()=>Object.fromEntries(Object.entries(x).filter(([i])=>b(i))));let r=!1,a,o=0;const c=()=>{o+=1,a!==void 0&&(cancelAnimationFrame(a),a=void 0)},f=i=>{if(c(),!r||!e.animated||e.duration<=0||S()){n.value=i;return}const l=n.value;if(l===i)return;const g=o;let d;const s=m=>{if(!r||g!==o)return;d??(d=m);const v=Math.min(1,(m-d)/e.duration);n.value=l+(i-l)*v,v<1?a=requestAnimationFrame(s):a=void 0};a=requestAnimationFrame(s)};return t.onMounted(()=>{r=!0,f(e.value)}),t.watch(()=>[e.value,e.animated,e.duration],()=>f(e.value)),t.onBeforeUnmount(()=>{r=!1,c()}),()=>t.h(h.ElStatistic,{...y.value,value:n.value,precision:e.precision,decimalSeparator:e.decimalSeparator,groupSeparator:e.groupSeparator,formatter:e.formatter,valueStyle:e.valueStyle,title:e.title,prefix:e.prefix,suffix:e.suffix},{title:u.title,prefix:u.prefix,suffix:u.suffix})}}),_=A._export_sfc(w,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-statistic/index.vue"]]);exports.Statistic=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("vue"),ie=require("element-plus"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),se=d.defineComponent({name:"QyTreeSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],required:!1,skipCheck:!0,default:void 0},data:{type:Array,required:!1,default:void 0},options:{type:Array,required:!1,default:()=>[]},labelKey:{type:String,required:!1,default:"label"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},disabledKey:{type:String,required:!1,default:"disabled"},props:{type:Object,required:!1,default:()=>({})},nodeKey:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:"请选择"},disabled:{type:Boolean,required:!1,default:!1},clearable:{type:Boolean,required:!1,default:!1},filterable:{type:Boolean,required:!1,default:!1},filterMethod:{type:Function,required:!1,default:void 0},remote:{type:Boolean,required:!1,default:!1},remoteMethod:{type:Function,required:!1,default:void 0},remoteShowSuffix:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!1},multipleLimit:{type:Number,required:!1,default:0},collapseTags:{type:Boolean,required:!1,default:!1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},checkStrictly:{type:Boolean,required:!1,default:!1},showCheckbox:{type:Boolean,required:!1,default:!1},defaultExpandAll:{type:Boolean,required:!1,default:!1},renderAfterExpand:{type:Boolean,required:!1,default:!0},expandOnClickNode:{type:Boolean,required:!1,default:!0},checkOnClickNode:{type:Boolean,required:!1,default:!1},checkOnClickLeaf:{type:Boolean,required:!1,default:!0},checkDescendants:{type:Boolean,required:!1,default:!1},defaultExpandedKeys:{type:Array,required:!1,default:void 0},defaultCheckedKeys:{type:Array,required:!1,default:void 0},accordion:{type:Boolean,required:!1,default:!1},indent:{type:Number,required:!1,default:18},highlightCurrent:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},load:{type:Function,required:!1,default:void 0},cacheData:{type:Array,required:!1,default:()=>[]},filterNodeMethod:{type:Function,required:!1,default:void 0},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:null,required:!1,default:void 0},fitInputWidth:{type:Boolean,required:!1,default:!1},popperClass:{type:String,required:!1,default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur","node-click","node-expand","node-collapse","check-change","check"],setup(s,{expose:E,emit:a}){const r=Symbol("invalid-tree-select-value"),n=s,i=a,f=d.useAttrs(),x=d.ref(null),q=d.computed(()=>n.data===void 0?n.options:n.data),P=d.ref(n.defaultExpandedKeys?[...n.defaultExpandedKeys]:void 0),W=d.ref(n.defaultCheckedKeys?[...n.defaultCheckedKeys]:void 0);let b=new WeakSet,y=new Set;d.watch(q,e=>{b=new WeakSet,y=new Set,w(e)},{immediate:!0,deep:!1});const I=d.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),U=d.computed(()=>["qy-tree-select__popper",n.popperClass].filter(Boolean).join(" ")),Q=d.computed(()=>{const e=K(n.modelValue);if(e!==r&&L(e)&&!n.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===r?void 0:T(e)}),H=d.computed(()=>{const e=n.props??{};return{value:p(e.value??n.nodeKey??n.valueKey),label:p(e.label??n.labelKey),children:p(e.children??n.childrenKey),disabled:p(e.disabled??n.disabledKey),isLeaf:p(e.isLeaf),class:M(e.class)}});function m(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function S(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:m(e)?d.toRaw(e):r}function K(e){return e==null?e:Array.isArray(e)?e.every(t=>S(t)!==r)?e:r:S(e)}function L(e){return Array.isArray(e)?e.some(m):m(e)}function g(e){return m(e)?d.toRaw(e):null}function w(e){for(const t of e??[])A(t)}function A(e){const t=d.toRaw(e);b.add(t),y.add(t);const l=C("children",t);if(Array.isArray(l))for(const o of l){const c=g(o);c&&A(c)}}function u(e){const t=g(e);return t!==null&&b.has(t)}function C(e,t){var k;const l=(k=n.props)==null?void 0:k[e],o=e==="value"?n.valueKey:e==="label"?n.labelKey:e==="children"?n.childrenKey:e==="disabled"?n.disabledKey:void 0,c=l??o;return typeof c=="function"?c(t):typeof c=="string"?t[c]:void 0}function p(e){return typeof e=="function"?t=>e(t):e}function M(e){return typeof e!="function"?e:(t,l)=>{const o=h(l);return o&&u(t)?e(t,o):""}}function v(e){return typeof e=="string"||typeof e=="number"?e:null}function h(e){var l;if(!e||!u(e.data))return null;const t=g(e.data);return t?Object.freeze({key:v(e.key),parentKey:v((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(C("label",t)??""),level:typeof e.level=="number"?e.level:0,expanded:e.expanded===!0,checked:e.checked===!0,indeterminate:e.indeterminate===!0,disabled:e.disabled===!0,leaf:e.isLeaf===!0,visible:e.visible!==!1,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0}):null}function O(e){return Object.freeze({key:null,parentKey:null,data:{},label:"",level:0,expanded:!1,checked:!1,indeterminate:!1,disabled:!1,leaf:!1,visible:!0,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0})}function G(e,t,l){const o=h(l);return!o||!u(t)?!1:n.filterNodeMethod?n.filterNodeMethod(e,t,o):String(o.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function J(e,t,l){if(!n.load)return t([]);const o=e.level===0||e.data===void 0||e.data===null,c=q.value,k=h(e)??(o?O(e):null);if(!k)return l();n.load(k,R=>{(o?q.value!==c:!u(k.data))||(w(R),t(R))},l)}function X(e){const t=K(N(e));t!==r&&i("update:modelValue",t)}function Y(e){const t=K(N(e));t!==r&&i("change",t)}function Z(){i("clear")}function $(e){i("visible-change",e)}function ee(e){i("focus",e)}function te(e){i("blur",e)}function le(e,t){const l=h(t);l&&u(e)&&i("node-click",e,l)}function ae(e,t){const l=h(t);l&&u(e)&&i("node-expand",e,l)}function re(e,t){const l=h(t);l&&u(e)&&i("node-collapse",e,l)}function ne(e,t,l){u(e)&&i("check-change",e,t,l)}function B(e){return(e??[]).map(g).filter(t=>t!==null&&u(t))}function D(e){return(e??[]).map(v).filter(t=>t!==null)}function de(e,t){u(e)&&i("check",e,{checkedKeys:D(t==null?void 0:t.checkedKeys),checkedNodes:B(t==null?void 0:t.checkedNodes),halfCheckedKeys:D(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:B(t==null?void 0:t.halfCheckedNodes)})}function V(e){for(const t of y)if(Object.is(d.toRaw(C("value",t)),d.toRaw(e)))return t}function _(e){if(n.nodeKey){for(const t of y)if(Object.is(t[n.nodeKey],e))return t}}function T(e){if(!n.nodeKey||e===null||e===void 0)return e;const t=l=>{const o=V(l);return(o?v(o[n.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function N(e){if(!n.nodeKey)return e;const t=l=>{const o=_(l);return o?C("value",o):l};return Array.isArray(e)?e.map(t):t(e)}function oe(e,t){return(e??[]).flatMap(l=>{const o=S(N(l.value));if(o===r)return[];const c=V(o);return[Object.freeze({value:o,label:typeof l.currentLabel=="string"?l.currentLabel:String(l.currentLabel??""),data:c?d.toRaw(c):void 0,closable:l.isDisabled!==!0,remove:()=>t==null?void 0:t(new MouseEvent("click"),l)})]})}function j(){var e,t;(t=(e=x.value)==null?void 0:e.focus)==null||t.call(e)}function z(){var e,t;(t=(e=x.value)==null?void 0:e.blur)==null||t.call(e)}E({focus:j,blur:z});const F={INVALID_VALUE:r,props:n,emit:i,attrs:f,treeSelectRef:x,sourceData:q,initialDefaultExpandedKeys:P,initialDefaultCheckedKeys:W,get activeData(){return b},set activeData(e){b=e},get activeNodeData(){return y},set activeNodeData(e){y=e},safeAttrs:I,mergedPopperClass:U,controlledModelValue:Q,resolvedNodeProps:H,isObjectValue:m,preserveTreeSelectValue:S,preserveModelValue:K,containsObjectValue:L,asNodeData:g,registerData:w,registerNodeData:A,isCurrentData:u,getNodeProperty:C,adaptNodeProperty:p,adaptClassProperty:M,toKey:v,toSnapshot:h,toRootSnapshot:O,adaptFilterNodeMethod:G,adaptLoad:J,handleUpdateModelValue:X,handleChange:Y,handleClear:Z,handleVisibleChange:$,handleFocus:ee,handleBlur:te,handleNodeClick:le,handleNodeExpand:ae,handleNodeCollapse:re,handleCheckChange:ne,toCurrentNodes:B,toKeys:D,handleCheck:de,findDataByValue:V,findDataByNodeKey:_,toElementModelValue:T,fromElementModelValue:N,toTagSnapshots:oe,focus:j,blur:z,get ElTreeSelect(){return ie.ElTreeSelect}};return Object.defineProperty(F,"__isScriptSetup",{enumerable:!1,value:!0}),F}});function ue(s,E,a,r,n,i){return d.openBlock(),d.createBlock(r.ElTreeSelect,d.mergeProps({ref:"treeSelectRef",class:"qy-tree-select"},r.safeAttrs,{"model-value":r.controlledModelValue,data:r.sourceData,props:r.resolvedNodeProps,"node-key":a.nodeKey,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,filterable:a.filterable,"filter-method":a.filterMethod,remote:a.remote,"remote-method":a.remoteMethod,"remote-show-suffix":a.remoteShowSuffix,loading:a.loading,multiple:a.multiple,"multiple-limit":a.multipleLimit,"collapse-tags":a.collapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"default-expand-all":a.defaultExpandAll,"render-after-expand":a.renderAfterExpand,"expand-on-click-node":a.expandOnClickNode,"check-on-click-node":a.checkOnClickNode,"check-on-click-leaf":a.checkOnClickLeaf,"check-descendants":a.checkDescendants,"default-expanded-keys":r.initialDefaultExpandedKeys,"default-checked-keys":r.initialDefaultCheckedKeys,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:r.adaptLoad,"cache-data":a.cacheData,"filter-node-method":r.adaptFilterNodeMethod,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":r.mergedPopperClass,"onUpdate:modelValue":r.handleUpdateModelValue,onChange:r.handleChange,onClear:r.handleClear,onVisibleChange:r.handleVisibleChange,onFocus:r.handleFocus,onBlur:r.handleBlur,onNodeClick:r.handleNodeClick,onNodeExpand:r.handleNodeExpand,onNodeCollapse:r.handleNodeCollapse,onCheckChange:r.handleCheckChange,onCheck:r.handleCheck}),d.createSlots({_:2},[s.$slots.prefix?{name:"prefix",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,s.$slots.empty?{name:"empty",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,s.$slots.loading?{name:"loading",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,s.$slots.default?{name:"default",fn:d.withCtx(f=>[d.renderSlot(s.$slots,"default",{data:f.data,node:r.toSnapshot(f.node)},void 0,!0)]),key:"3"}:void 0,s.$slots.tag?{name:"tag",fn:d.withCtx(f=>[d.renderSlot(s.$slots,"tag",{data:r.toTagSnapshots(f.data,f.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","clearable","filterable","filter-method","remote","remote-method","remote-show-suffix","loading","multiple","multiple-limit","collapse-tags","collapse-tags-tooltip","check-strictly","show-checkbox","default-expand-all","render-after-expand","expand-on-click-node","check-on-click-node","check-on-click-leaf","check-descendants","default-expanded-keys","default-checked-keys","accordion","indent","highlight-current","lazy","cache-data","size","teleported","append-to","fit-input-width","popper-class"])}const fe=ce._export_sfc(se,[["render",ue],["__scopeId","data-v-d9515781"],["__file","C:/Users/wzqy/.codex/worktrees/62ec/qy-components/packages/ui/lib/qy-tree-select/index.vue"]]);exports.TreeSelect=fe;
|
|
1
|
+
"use strict";const d=require("vue"),ie=require("element-plus"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),se=d.defineComponent({name:"QyTreeSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],required:!1,skipCheck:!0,default:void 0},data:{type:Array,required:!1,default:void 0},options:{type:Array,required:!1,default:()=>[]},labelKey:{type:String,required:!1,default:"label"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},disabledKey:{type:String,required:!1,default:"disabled"},props:{type:Object,required:!1,default:()=>({})},nodeKey:{type:String,required:!1,default:void 0},placeholder:{type:String,required:!1,default:"请选择"},disabled:{type:Boolean,required:!1,default:!1},clearable:{type:Boolean,required:!1,default:!1},filterable:{type:Boolean,required:!1,default:!1},filterMethod:{type:Function,required:!1,default:void 0},remote:{type:Boolean,required:!1,default:!1},remoteMethod:{type:Function,required:!1,default:void 0},remoteShowSuffix:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!1},multipleLimit:{type:Number,required:!1,default:0},collapseTags:{type:Boolean,required:!1,default:!1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},checkStrictly:{type:Boolean,required:!1,default:!1},showCheckbox:{type:Boolean,required:!1,default:!1},defaultExpandAll:{type:Boolean,required:!1,default:!1},renderAfterExpand:{type:Boolean,required:!1,default:!0},expandOnClickNode:{type:Boolean,required:!1,default:!0},checkOnClickNode:{type:Boolean,required:!1,default:!1},checkOnClickLeaf:{type:Boolean,required:!1,default:!0},checkDescendants:{type:Boolean,required:!1,default:!1},defaultExpandedKeys:{type:Array,required:!1,default:void 0},defaultCheckedKeys:{type:Array,required:!1,default:void 0},accordion:{type:Boolean,required:!1,default:!1},indent:{type:Number,required:!1,default:18},highlightCurrent:{type:Boolean,required:!1,default:!1},lazy:{type:Boolean,required:!1,default:!1},load:{type:Function,required:!1,default:void 0},cacheData:{type:Array,required:!1,default:()=>[]},filterNodeMethod:{type:Function,required:!1,default:void 0},size:{type:String,required:!1,default:void 0},teleported:{type:Boolean,required:!1,default:!0},appendTo:{type:null,required:!1,default:void 0},fitInputWidth:{type:Boolean,required:!1,default:!1},popperClass:{type:String,required:!1,default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur","node-click","node-expand","node-collapse","check-change","check"],setup(s,{expose:E,emit:a}){const r=Symbol("invalid-tree-select-value"),n=s,i=a,f=d.useAttrs(),x=d.ref(null),q=d.computed(()=>n.data===void 0?n.options:n.data),P=d.ref(n.defaultExpandedKeys?[...n.defaultExpandedKeys]:void 0),W=d.ref(n.defaultCheckedKeys?[...n.defaultCheckedKeys]:void 0);let b=new WeakSet,y=new Set;d.watch(q,e=>{b=new WeakSet,y=new Set,A(e)},{immediate:!0,deep:!1});const I=d.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),U=d.computed(()=>["qy-tree-select__popper",n.popperClass].filter(Boolean).join(" ")),Q=d.computed(()=>{const e=K(n.modelValue);if(e!==r&&L(e)&&!n.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===r?void 0:T(e)}),H=d.computed(()=>{const e=n.props??{};return{value:p(e.value??n.nodeKey??n.valueKey),label:p(e.label??n.labelKey),children:p(e.children??n.childrenKey),disabled:p(e.disabled??n.disabledKey),isLeaf:p(e.isLeaf),class:M(e.class)}});function m(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function S(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:m(e)?d.toRaw(e):r}function K(e){return e==null?e:Array.isArray(e)?e.every(t=>S(t)!==r)?e:r:S(e)}function L(e){return Array.isArray(e)?e.some(m):m(e)}function g(e){return m(e)?d.toRaw(e):null}function A(e){for(const t of e??[])w(t)}function w(e){const t=d.toRaw(e);b.add(t),y.add(t);const l=C("children",t);if(Array.isArray(l))for(const o of l){const c=g(o);c&&w(c)}}function u(e){const t=g(e);return t!==null&&b.has(t)}function C(e,t){var k;const l=(k=n.props)==null?void 0:k[e],o=e==="value"?n.valueKey:e==="label"?n.labelKey:e==="children"?n.childrenKey:e==="disabled"?n.disabledKey:void 0,c=l??o;return typeof c=="function"?c(t):typeof c=="string"?t[c]:void 0}function p(e){return typeof e=="function"?t=>e(t):e}function M(e){return typeof e!="function"?e:(t,l)=>{const o=h(l);return o&&u(t)?e(t,o):""}}function v(e){return typeof e=="string"||typeof e=="number"?e:null}function h(e){var l;if(!e||!u(e.data))return null;const t=g(e.data);return t?Object.freeze({key:v(e.key),parentKey:v((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(C("label",t)??""),level:typeof e.level=="number"?e.level:0,expanded:e.expanded===!0,checked:e.checked===!0,indeterminate:e.indeterminate===!0,disabled:e.disabled===!0,leaf:e.isLeaf===!0,visible:e.visible!==!1,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0}):null}function O(e){return Object.freeze({key:null,parentKey:null,data:{},label:"",level:0,expanded:!1,checked:!1,indeterminate:!1,disabled:!1,leaf:!1,visible:!0,loading:e.loading===!0,loaded:e.loaded===!0,childCount:Array.isArray(e.childNodes)?e.childNodes.length:0})}function G(e,t,l){const o=h(l);return!o||!u(t)?!1:n.filterNodeMethod?n.filterNodeMethod(e,t,o):String(o.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function J(e,t,l){if(!n.load)return t([]);const o=e.level===0||e.data===void 0||e.data===null,c=q.value,k=h(e)??(o?O(e):null);if(!k)return l();n.load(k,R=>{(o?q.value!==c:!u(k.data))||(A(R),t(R))},l)}function X(e){const t=K(N(e));t!==r&&i("update:modelValue",t)}function Y(e){const t=K(N(e));t!==r&&i("change",t)}function Z(){i("clear")}function $(e){i("visible-change",e)}function ee(e){i("focus",e)}function te(e){i("blur",e)}function le(e,t){const l=h(t);l&&u(e)&&i("node-click",e,l)}function ae(e,t){const l=h(t);l&&u(e)&&i("node-expand",e,l)}function re(e,t){const l=h(t);l&&u(e)&&i("node-collapse",e,l)}function ne(e,t,l){u(e)&&i("check-change",e,t,l)}function B(e){return(e??[]).map(g).filter(t=>t!==null&&u(t))}function D(e){return(e??[]).map(v).filter(t=>t!==null)}function de(e,t){u(e)&&i("check",e,{checkedKeys:D(t==null?void 0:t.checkedKeys),checkedNodes:B(t==null?void 0:t.checkedNodes),halfCheckedKeys:D(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:B(t==null?void 0:t.halfCheckedNodes)})}function V(e){for(const t of y)if(Object.is(d.toRaw(C("value",t)),d.toRaw(e)))return t}function _(e){if(n.nodeKey){for(const t of y)if(Object.is(t[n.nodeKey],e))return t}}function T(e){if(!n.nodeKey||e===null||e===void 0)return e;const t=l=>{const o=V(l);return(o?v(o[n.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function N(e){if(!n.nodeKey)return e;const t=l=>{const o=_(l);return o?C("value",o):l};return Array.isArray(e)?e.map(t):t(e)}function oe(e,t){return(e??[]).flatMap(l=>{const o=S(N(l.value));if(o===r)return[];const c=V(o);return[Object.freeze({value:o,label:typeof l.currentLabel=="string"?l.currentLabel:String(l.currentLabel??""),data:c?d.toRaw(c):void 0,closable:l.isDisabled!==!0,remove:()=>t==null?void 0:t(new MouseEvent("click"),l)})]})}function j(){var e,t;(t=(e=x.value)==null?void 0:e.focus)==null||t.call(e)}function z(){var e,t;(t=(e=x.value)==null?void 0:e.blur)==null||t.call(e)}E({focus:j,blur:z});const F={INVALID_VALUE:r,props:n,emit:i,attrs:f,treeSelectRef:x,sourceData:q,initialDefaultExpandedKeys:P,initialDefaultCheckedKeys:W,get activeData(){return b},set activeData(e){b=e},get activeNodeData(){return y},set activeNodeData(e){y=e},safeAttrs:I,mergedPopperClass:U,controlledModelValue:Q,resolvedNodeProps:H,isObjectValue:m,preserveTreeSelectValue:S,preserveModelValue:K,containsObjectValue:L,asNodeData:g,registerData:A,registerNodeData:w,isCurrentData:u,getNodeProperty:C,adaptNodeProperty:p,adaptClassProperty:M,toKey:v,toSnapshot:h,toRootSnapshot:O,adaptFilterNodeMethod:G,adaptLoad:J,handleUpdateModelValue:X,handleChange:Y,handleClear:Z,handleVisibleChange:$,handleFocus:ee,handleBlur:te,handleNodeClick:le,handleNodeExpand:ae,handleNodeCollapse:re,handleCheckChange:ne,toCurrentNodes:B,toKeys:D,handleCheck:de,findDataByValue:V,findDataByNodeKey:_,toElementModelValue:T,fromElementModelValue:N,toTagSnapshots:oe,focus:j,blur:z,get ElTreeSelect(){return ie.ElTreeSelect}};return Object.defineProperty(F,"__isScriptSetup",{enumerable:!1,value:!0}),F}});function ue(s,E,a,r,n,i){return d.openBlock(),d.createBlock(r.ElTreeSelect,d.mergeProps({ref:"treeSelectRef",class:"qy-tree-select"},r.safeAttrs,{"model-value":r.controlledModelValue,data:r.sourceData,props:r.resolvedNodeProps,"node-key":a.nodeKey,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,filterable:a.filterable,"filter-method":a.filterMethod,remote:a.remote,"remote-method":a.remoteMethod,"remote-show-suffix":a.remoteShowSuffix,loading:a.loading,multiple:a.multiple,"multiple-limit":a.multipleLimit,"collapse-tags":a.collapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"check-strictly":a.checkStrictly,"show-checkbox":a.showCheckbox,"default-expand-all":a.defaultExpandAll,"render-after-expand":a.renderAfterExpand,"expand-on-click-node":a.expandOnClickNode,"check-on-click-node":a.checkOnClickNode,"check-on-click-leaf":a.checkOnClickLeaf,"check-descendants":a.checkDescendants,"default-expanded-keys":r.initialDefaultExpandedKeys,"default-checked-keys":r.initialDefaultCheckedKeys,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:r.adaptLoad,"cache-data":a.cacheData,"filter-node-method":r.adaptFilterNodeMethod,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":r.mergedPopperClass,"onUpdate:modelValue":r.handleUpdateModelValue,onChange:r.handleChange,onClear:r.handleClear,onVisibleChange:r.handleVisibleChange,onFocus:r.handleFocus,onBlur:r.handleBlur,onNodeClick:r.handleNodeClick,onNodeExpand:r.handleNodeExpand,onNodeCollapse:r.handleNodeCollapse,onCheckChange:r.handleCheckChange,onCheck:r.handleCheck}),d.createSlots({_:2},[s.$slots.prefix?{name:"prefix",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,s.$slots.empty?{name:"empty",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,s.$slots.loading?{name:"loading",fn:d.withCtx(()=>[d.renderSlot(s.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,s.$slots.default?{name:"default",fn:d.withCtx(f=>[d.renderSlot(s.$slots,"default",{data:f.data,node:r.toSnapshot(f.node)},void 0,!0)]),key:"3"}:void 0,s.$slots.tag?{name:"tag",fn:d.withCtx(f=>[d.renderSlot(s.$slots,"tag",{data:r.toTagSnapshots(f.data,f.deleteTag)},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","data","props","node-key","placeholder","disabled","clearable","filterable","filter-method","remote","remote-method","remote-show-suffix","loading","multiple","multiple-limit","collapse-tags","collapse-tags-tooltip","check-strictly","show-checkbox","default-expand-all","render-after-expand","expand-on-click-node","check-on-click-node","check-on-click-leaf","check-descendants","default-expanded-keys","default-checked-keys","accordion","indent","highlight-current","lazy","cache-data","size","teleported","append-to","fit-input-width","popper-class"])}const fe=ce._export_sfc(se,[["render",ue],["__scopeId","data-v-d9515781"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-tree-select/index.vue"]]);exports.TreeSelect=fe;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as t } from "vue";
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
2
|
+
import { _ as i } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const r = t({
|
|
4
4
|
name: "QyDescriptionsItem",
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
props: {
|
|
@@ -26,7 +26,7 @@ const i = t({
|
|
|
26
26
|
setup() {
|
|
27
27
|
return () => null;
|
|
28
28
|
}
|
|
29
|
-
}), a = /* @__PURE__ */ r
|
|
29
|
+
}), a = /* @__PURE__ */ i(r, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-descriptions-item/index.vue"]]);
|
|
30
30
|
export {
|
|
31
31
|
a as D
|
|
32
32
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, useAttrs as _, computed as s, openBlock as g, createElementBlock as
|
|
1
|
+
import { defineComponent as m, useAttrs as _, computed as s, openBlock as g, createElementBlock as h, mergeProps as y, createCommentVNode as p } from "vue";
|
|
2
2
|
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
3
|
const b = /* @__PURE__ */ m({
|
|
4
4
|
name: "QyIframe",
|
|
@@ -36,13 +36,13 @@ const b = /* @__PURE__ */ m({
|
|
|
36
36
|
allowFullscreen: Boolean
|
|
37
37
|
},
|
|
38
38
|
emits: ["load", "error"],
|
|
39
|
-
setup(
|
|
39
|
+
setup(l, { expose: a, emit: e }) {
|
|
40
40
|
a();
|
|
41
|
-
const r =
|
|
41
|
+
const r = l, o = e, n = _(), d = s(
|
|
42
42
|
() => r.src.trim().length > 0 && r.title.trim().length > 0
|
|
43
43
|
), c = s(
|
|
44
44
|
() => Object.fromEntries(
|
|
45
|
-
Object.entries(
|
|
45
|
+
Object.entries(n).filter(
|
|
46
46
|
([t]) => t === "class" || t === "style" || t === "id" || t === "role" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-")
|
|
47
47
|
)
|
|
48
48
|
)
|
|
@@ -53,12 +53,12 @@ const b = /* @__PURE__ */ m({
|
|
|
53
53
|
function u() {
|
|
54
54
|
o("error");
|
|
55
55
|
}
|
|
56
|
-
const i = { props: r, emit: o, attrs:
|
|
56
|
+
const i = { props: r, emit: o, attrs: n, shouldRender: d, safeAttrs: c, handleLoad: f, handleError: u };
|
|
57
57
|
return Object.defineProperty(i, "__isScriptSetup", { enumerable: !1, value: !0 }), i;
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
60
|
-
function
|
|
61
|
-
return r.shouldRender ? (g(),
|
|
59
|
+
}), S = ["src", "title", "loading", "sandbox", "allow", "referrerpolicy", "allowfullscreen"];
|
|
60
|
+
function v(l, a, e, r, o, n) {
|
|
61
|
+
return r.shouldRender ? (g(), h("iframe", y({ key: e.reloadKey }, r.safeAttrs, {
|
|
62
62
|
class: "qy-iframe",
|
|
63
63
|
src: e.src,
|
|
64
64
|
title: e.title,
|
|
@@ -69,9 +69,9 @@ function S(n, a, e, r, o, l) {
|
|
|
69
69
|
allowfullscreen: e.allowFullscreen,
|
|
70
70
|
onLoad: r.handleLoad,
|
|
71
71
|
onError: r.handleError
|
|
72
|
-
}), null, 16,
|
|
72
|
+
}), null, 16, S)) : p("v-if", !0);
|
|
73
73
|
}
|
|
74
|
-
const E = /* @__PURE__ */ x(b, [["render",
|
|
74
|
+
const E = /* @__PURE__ */ x(b, [["render", v], ["__scopeId", "data-v-0c58c565"], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-iframe/index.vue"]]);
|
|
75
75
|
export {
|
|
76
76
|
E as I
|
|
77
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),M=require("element-plus"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=l.defineComponent({name:"QyCascader",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Object,Array,null],required:!1},options:{type:Array,required:!1,default:()=>[]},props:{type:Object,required:!1,default:()=>({})},size:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},clearable:{type:Boolean,required:!1,default:!0},clearIcon:{type:null,required:!1},filterable:{type:Boolean,required:!1,default:!1},filterMethod:{type:Function,required:!1},separator:{type:String,required:!1,default:" / "},showAllLevels:{type:Boolean,required:!1,default:!0},collapseTags:{type:Boolean,required:!1,default:!1},maxCollapseTags:{type:Number,required:!1,default:1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},maxCollapseTagsTooltipHeight:{type:[String,Number],required:!1},debounce:{type:Number,required:!1,default:300},beforeFilter:{type:Function,required:!1},placement:{type:String,required:!1},fallbackPlacements:{type:Array,required:!1},popperClass:{type:[String,Object,Array],required:!1},popperStyle:{type:[Boolean,null,String,Object,Array],required:!1,skipCheck:!0},teleported:{type:Boolean,required:!1,default:!0},effect:{type:String,required:!1},persistent:{type:Boolean,required:!1,default:!0},showCheckedStrategy:{type:String,required:!1},fitInputWidth:{type:[Boolean,Number],required:!1},tagType:{type:String,required:!1},tagEffect:{type:String,required:!1},validateEvent:{type:Boolean,required:!1,default:!0},emptyValues:{type:Array,required:!1},valueOnClear:{type:null,required:!1},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},emits:["update:modelValue","change","focus","blur","clear","visible-change","expand-change","remove-tag"],setup(i,{expose:g,emit:a}){const r=i,u=a,y=l.useAttrs(),d=l.ref(),c=l.computed(()=>Object.fromEntries(Object.entries(y).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),v=l.computed(()=>({...r.emptyValues!==void 0?{emptyValues:r.emptyValues}:{},...r.valueOnClear!==void 0?{valueOnClear:r.valueOnClear}:{}})),x=l.computed(()=>({...c.value,...v.value}));function p(e,t={}){return Object.freeze({uid:e.uid,level:e.level,value:e.value,label:e.label,pathValues:Object.freeze([...e.pathValues]),pathLabels:Object.freeze([...e.pathLabels]),data:e.data,root:e.root,isLeaf:t.isLeaf??e.isLeaf,isDisabled:t.isDisabled??e.isDisabled,checked:e.checked,indeterminate:e.indeterminate,loading:e.loading,loaded:e.loaded??!1})}function C(e,t){var h,T;const s=typeof t.leaf=="string"?t.leaf:"leaf",o=t.children??"children",n=(h=e.data)==null?void 0:h[s];if(typeof n=="boolean")return n;const f=Array.isArray(e.childrenData)?e.childrenData:(T=e.data)==null?void 0:T[o];return Array.isArray(f)&&f.length>0?!1:t.lazy?e.loaded===!0:!0}function m(e,t,s=new Set){var h;if(s.has(e))return!1;s.add(e);const o=typeof t.disabled=="string"?t.disabled:"disabled",n=!!((h=e.data)!=null&&h[o]),f=t.checkStrictly!==!0&&e.parent?m(e.parent,t,s):!1;return n||f}function b(e,t){return p(e,{isLeaf:C(e,t),isDisabled:m(e,t)})}const z=l.computed(()=>{const e=r.props??{},t={...e};return typeof e.disabled=="function"&&(t.disabled=(s,o)=>{var n;return((n=e.disabled)==null?void 0:n.call(e,b(o,e)))??!1}),typeof e.leaf=="function"&&(t.leaf=(s,o)=>{var n;return((n=e.leaf)==null?void 0:n.call(e,b(o,e)))??!1}),typeof e.lazyLoad=="function"&&(t.lazyLoad=(s,o,n)=>{var f;return(f=e.lazyLoad)==null?void 0:f.call(e,p(s),o,n)}),t}),B=l.computed(()=>r.filterMethod?(e,t)=>{var s;return((s=r.filterMethod)==null?void 0:s.call(r,p(e),t))??!1}:void 0);function A(e){return{...e,node:p(e.node)}}function L(e,t){return e.map(s=>{const o=p(s.node);return Object.freeze({uid:o.uid,value:o.value,label:o.label,pathValues:o.pathValues,pathLabels:o.pathLabels,data:o.data,text:s.text,hitState:s.hitState,closable:s.closable,remove:()=>t(s)})})}function O(e){u("update:modelValue",e)}function P(e){u("change",e)}function j(e){u("focus",e)}function E(e){u("blur",e)}function D(){u("clear")}function F(e){u("visible-change",e)}function N(e){u("expand-change",e)}function _(e){u("remove-tag",e)}function q(){var e;(e=d.value)==null||e.focus()}function S(){var e;(e=d.value)==null||e.blur()}function
|
|
1
|
+
"use strict";const l=require("vue"),M=require("element-plus"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=l.defineComponent({name:"QyCascader",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Object,Array,null],required:!1},options:{type:Array,required:!1,default:()=>[]},props:{type:Object,required:!1,default:()=>({})},size:{type:String,required:!1},placeholder:{type:String,required:!1},disabled:{type:Boolean,required:!1},clearable:{type:Boolean,required:!1,default:!0},clearIcon:{type:null,required:!1},filterable:{type:Boolean,required:!1,default:!1},filterMethod:{type:Function,required:!1},separator:{type:String,required:!1,default:" / "},showAllLevels:{type:Boolean,required:!1,default:!0},collapseTags:{type:Boolean,required:!1,default:!1},maxCollapseTags:{type:Number,required:!1,default:1},collapseTagsTooltip:{type:Boolean,required:!1,default:!1},maxCollapseTagsTooltipHeight:{type:[String,Number],required:!1},debounce:{type:Number,required:!1,default:300},beforeFilter:{type:Function,required:!1},placement:{type:String,required:!1},fallbackPlacements:{type:Array,required:!1},popperClass:{type:[String,Object,Array],required:!1},popperStyle:{type:[Boolean,null,String,Object,Array],required:!1,skipCheck:!0},teleported:{type:Boolean,required:!1,default:!0},effect:{type:String,required:!1},persistent:{type:Boolean,required:!1,default:!0},showCheckedStrategy:{type:String,required:!1},fitInputWidth:{type:[Boolean,Number],required:!1},tagType:{type:String,required:!1},tagEffect:{type:String,required:!1},validateEvent:{type:Boolean,required:!1,default:!0},emptyValues:{type:Array,required:!1},valueOnClear:{type:null,required:!1},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},emits:["update:modelValue","change","focus","blur","clear","visible-change","expand-change","remove-tag"],setup(i,{expose:g,emit:a}){const r=i,u=a,y=l.useAttrs(),d=l.ref(),c=l.computed(()=>Object.fromEntries(Object.entries(y).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),v=l.computed(()=>({...r.emptyValues!==void 0?{emptyValues:r.emptyValues}:{},...r.valueOnClear!==void 0?{valueOnClear:r.valueOnClear}:{}})),x=l.computed(()=>({...c.value,...v.value}));function p(e,t={}){return Object.freeze({uid:e.uid,level:e.level,value:e.value,label:e.label,pathValues:Object.freeze([...e.pathValues]),pathLabels:Object.freeze([...e.pathLabels]),data:e.data,root:e.root,isLeaf:t.isLeaf??e.isLeaf,isDisabled:t.isDisabled??e.isDisabled,checked:e.checked,indeterminate:e.indeterminate,loading:e.loading,loaded:e.loaded??!1})}function C(e,t){var h,T;const s=typeof t.leaf=="string"?t.leaf:"leaf",o=t.children??"children",n=(h=e.data)==null?void 0:h[s];if(typeof n=="boolean")return n;const f=Array.isArray(e.childrenData)?e.childrenData:(T=e.data)==null?void 0:T[o];return Array.isArray(f)&&f.length>0?!1:t.lazy?e.loaded===!0:!0}function m(e,t,s=new Set){var h;if(s.has(e))return!1;s.add(e);const o=typeof t.disabled=="string"?t.disabled:"disabled",n=!!((h=e.data)!=null&&h[o]),f=t.checkStrictly!==!0&&e.parent?m(e.parent,t,s):!1;return n||f}function b(e,t){return p(e,{isLeaf:C(e,t),isDisabled:m(e,t)})}const z=l.computed(()=>{const e=r.props??{},t={...e};return typeof e.disabled=="function"&&(t.disabled=(s,o)=>{var n;return((n=e.disabled)==null?void 0:n.call(e,b(o,e)))??!1}),typeof e.leaf=="function"&&(t.leaf=(s,o)=>{var n;return((n=e.leaf)==null?void 0:n.call(e,b(o,e)))??!1}),typeof e.lazyLoad=="function"&&(t.lazyLoad=(s,o,n)=>{var f;return(f=e.lazyLoad)==null?void 0:f.call(e,p(s),o,n)}),t}),B=l.computed(()=>r.filterMethod?(e,t)=>{var s;return((s=r.filterMethod)==null?void 0:s.call(r,p(e),t))??!1}:void 0);function A(e){return{...e,node:p(e.node)}}function L(e,t){return e.map(s=>{const o=p(s.node);return Object.freeze({uid:o.uid,value:o.value,label:o.label,pathValues:o.pathValues,pathLabels:o.pathLabels,data:o.data,text:s.text,hitState:s.hitState,closable:s.closable,remove:()=>t(s)})})}function O(e){u("update:modelValue",e)}function P(e){u("change",e)}function j(e){u("focus",e)}function E(e){u("blur",e)}function D(){u("clear")}function F(e){u("visible-change",e)}function N(e){u("expand-change",e)}function _(e){u("remove-tag",e)}function q(){var e;(e=d.value)==null||e.focus()}function S(){var e;(e=d.value)==null||e.blur()}function V(){var e,t;(t=(e=d.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!0)}function k(){var e,t;(t=(e=d.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!1)}g({focus:q,blur:S,open:V,close:k});const w={props:r,emit:u,attrs:y,cascaderRef:d,safeAttrs:c,emptyValueProps:v,adapterAttrs:x,toSnapshot:p,deriveCallbackLeafState:C,deriveCallbackDisabledState:m,toCallbackSnapshot:b,panelProps:z,adaptFilterMethod:B,adaptNodeSlotProps:A,adaptTags:L,handleUpdateModelValue:O,handleChange:P,handleFocus:j,handleBlur:E,handleClear:D,handleVisibleChange:F,handleExpandChange:N,handleRemoveTag:_,focus:q,blur:S,open:V,close:k,get ElCascader(){return M.ElCascader}};return Object.defineProperty(w,"__isScriptSetup",{enumerable:!1,value:!0}),w}});function W(i,g,a,r,u,y){return l.openBlock(),l.createBlock(r.ElCascader,l.mergeProps({ref:"cascaderRef"},r.adapterAttrs,{class:"qy-cascader","model-value":a.modelValue,options:a.options,props:r.panelProps,size:a.size,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,"clear-icon":a.clearIcon,filterable:a.filterable,"filter-method":r.adaptFilterMethod,separator:a.separator,"show-all-levels":a.showAllLevels,"collapse-tags":a.collapseTags,"max-collapse-tags":a.maxCollapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"max-collapse-tags-tooltip-height":a.maxCollapseTagsTooltipHeight,debounce:a.debounce,"before-filter":a.beforeFilter,placement:a.placement,"fallback-placements":a.fallbackPlacements,"popper-class":a.popperClass,"popper-style":a.popperStyle,teleported:a.teleported,effect:a.effect,persistent:a.persistent,"show-checked-strategy":a.showCheckedStrategy,"fit-input-width":a.fitInputWidth,"tag-type":a.tagType,"tag-effect":a.tagEffect,"validate-event":a.validateEvent,"virtual-scroll":a.virtualScroll,"item-size":a.itemSize,height:a.height,"onUpdate:modelValue":r.handleUpdateModelValue,onChange:r.handleChange,onFocus:r.handleFocus,onBlur:r.handleBlur,onClear:r.handleClear,onVisibleChange:r.handleVisibleChange,onExpandChange:r.handleExpandChange,onRemoveTag:r.handleRemoveTag}),l.createSlots({_:2},[i.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"prefix")]),key:"0"}:void 0,i.$slots.header?{name:"header",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"header")]),key:"1"}:void 0,i.$slots.footer?{name:"footer",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"footer")]),key:"2"}:void 0,i.$slots.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(i.$slots,"empty")]),key:"3"}:void 0,i.$slots.default?{name:"default",fn:l.withCtx(d=>[l.renderSlot(i.$slots,"default",l.normalizeProps(l.guardReactiveProps(r.adaptNodeSlotProps(d))))]),key:"4"}:void 0,i.$slots["suggestion-item"]?{name:"suggestion-item",fn:l.withCtx(d=>[l.renderSlot(i.$slots,"suggestion-item",{item:r.toSnapshot(d.item)})]),key:"5"}:void 0,i.$slots.tag?{name:"tag",fn:l.withCtx(d=>[l.renderSlot(i.$slots,"tag",{data:r.adaptTags(d.data,d.deleteTag),remove:c=>c==null?void 0:c.remove()})]),key:"6"}:void 0]),1040,["model-value","options","props","size","placeholder","disabled","clearable","clear-icon","filterable","filter-method","separator","show-all-levels","collapse-tags","max-collapse-tags","collapse-tags-tooltip","max-collapse-tags-tooltip-height","debounce","before-filter","placement","fallback-placements","popper-class","popper-style","teleported","effect","persistent","show-checked-strategy","fit-input-width","tag-type","tag-effect","validate-event","virtual-scroll","item-size","height"])}const H=R._export_sfc(I,[["render",W],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-cascader/index.vue"]]);exports.Cascader=H;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, useAttrs as c, useSlots as u, ref as g, computed as s, h as m, mergeProps as b } from "vue";
|
|
2
2
|
import { ElBadge as y } from "element-plus";
|
|
3
3
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const S =
|
|
4
|
+
const S = f({
|
|
5
5
|
name: "QyBadge",
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
props: {
|
|
@@ -32,13 +32,13 @@ const S = c({
|
|
|
32
32
|
badgeClass: String
|
|
33
33
|
},
|
|
34
34
|
setup(t, { expose: r }) {
|
|
35
|
-
const l =
|
|
35
|
+
const l = c(), a = u(), o = g(), d = s(
|
|
36
36
|
() => Object.fromEntries(
|
|
37
37
|
Object.entries(l).filter(
|
|
38
38
|
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
39
39
|
)
|
|
40
40
|
)
|
|
41
|
-
), i =
|
|
41
|
+
), i = s(() => {
|
|
42
42
|
var e;
|
|
43
43
|
return ((e = o.value) == null ? void 0 : e.content) ?? "";
|
|
44
44
|
});
|
|
@@ -61,13 +61,13 @@ const S = c({
|
|
|
61
61
|
{
|
|
62
62
|
default: a.default,
|
|
63
63
|
...a.content ? { content: ({ value: e }) => {
|
|
64
|
-
var
|
|
65
|
-
return (
|
|
64
|
+
var n;
|
|
65
|
+
return (n = a.content) == null ? void 0 : n.call(a, { value: e });
|
|
66
66
|
} } : {}
|
|
67
67
|
}
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
}), v = /* @__PURE__ */ h(S, [["__file", "
|
|
70
|
+
}), v = /* @__PURE__ */ h(S, [["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-badge/index.vue"]]);
|
|
71
71
|
export {
|
|
72
72
|
v as B
|
|
73
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),g=require("element-plus"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=t.defineComponent({name:"QyTag",inheritAttrs:!1,__name:"index",props:{tone:{type:String,required:!1,default:"neutral"},size:{type:String,required:!1,default:"md"},effect:{type:String,required:!1,default:"light"},closable:{type:Boolean,required:!1,default:!1},round:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},emits:["click","close"],setup(l,{expose:i,emit:a}){i();const e=a,r=t.useAttrs(),
|
|
1
|
+
"use strict";const t=require("vue"),g=require("element-plus"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=t.defineComponent({name:"QyTag",inheritAttrs:!1,__name:"index",props:{tone:{type:String,required:!1,default:"neutral"},size:{type:String,required:!1,default:"md"},effect:{type:String,required:!1,default:"light"},closable:{type:Boolean,required:!1,default:!1},round:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1}},emits:["click","close"],setup(l,{expose:i,emit:a}){i();const e=a,r=t.useAttrs(),d=t.computed(()=>{const n=Object.fromEntries(Object.entries(r).filter(([s])=>s==="class"||s==="style"||s==="title"||s==="role"||s.startsWith("data-")||s.startsWith("aria-")));return l.disabled&&(n["aria-disabled"]="true"),n}),o=t.computed(()=>l.tone==="neutral"?"info":l.tone),u=t.computed(()=>({sm:"small",md:"default",lg:"large"})[l.size]);function f(n){l.disabled||e("click",n)}function m(n){l.disabled||e("close",n)}const c={emit:e,attrs:r,safeAttrs:d,elementType:o,elementSize:u,handleClick:f,handleClose:m,get ElTag(){return g.ElTag}};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}});function y(l,i,a,e,r,d){return t.openBlock(),t.createBlock(e.ElTag,t.mergeProps(e.safeAttrs,{class:["qy-tag",[`qy-tag--${a.tone}`,{"qy-tag--disabled":a.disabled}]],type:e.elementType,size:e.elementSize,effect:a.effect,closable:a.closable&&!a.disabled,round:a.round,onClick:e.handleClick,onClose:e.handleClose}),{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),_:3},16,["class","type","size","effect","closable","round"])}const _=b._export_sfc(q,[["render",y],["__scopeId","data-v-e2cb31ac"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-tag/index.vue"]]);exports.Tag=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("vue"),
|
|
1
|
+
"use strict";const s=require("vue"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=Symbol("QyIconRegistry"),I=new WeakMap;function z(e){const r=[],o=new Map;for(const c of(e==null?void 0:e.icons)??[]){const a=h(c==null?void 0:c.name);if(!a)throw new Error("QyIcon definition name must not be empty.");const u=w(a);if(o.has(u))throw new Error(`Duplicate icon name "${a}".`);const l=K(c,a);r.push(l),o.set(u,l)}const t=[],d=new Map;for(const c of q(e==null?void 0:e.aliases)){const a=h(c.name),u=h(c.target),l=w(a),p=w(u);if(!a)throw new Error("QyIcon alias name must not be empty.");if(!u)throw new Error(`QyIcon alias "${a}" target must not be empty.`);if(o.has(l))throw new Error(`Icon alias "${a}" conflicts with a canonical icon name.`);if(d.has(l))throw new Error(`Duplicate icon alias "${a}".`);const v=o.get(p);if(!v)throw new Error(`Icon alias "${a}" target "${u}" not found.`);d.set(l,w(v.name)),t.push(Object.freeze({name:a,target:v.name}))}let i=Object.freeze({definitions:Object.freeze(r),aliases:Object.freeze(t),byName:o,aliasTargets:d}),y,f=!1;const g=()=>{if(!e.loader)return y??(y=Promise.resolve());f=!1;let c;try{c=e.loader()}catch(a){c=Promise.reject(a)}return y=Promise.resolve(c).then(a=>{let u;try{u=z({icons:[...i.definitions,...a.icons],aliases:[...i.aliases,...q(a.aliases)]})}catch(l){const p=l instanceof Error?l.message:String(l);throw new Error(`Icon registry load conflict: ${p}`)}i=I.get(u),I.set(b,i)}).catch(a=>{throw f=!0,a}),y},b=Object.freeze({resolve(c){const a=w(h(c)),u=i.aliasTargets.get(a)??a,l=i.byName.get(u);return l?x(l):void 0},has(c){const a=w(h(c));return i.byName.has(i.aliasTargets.get(a)??a)},list(){return Object.freeze(i.definitions.map(x))},load(){return y??g()},retry(){return f?g():Promise.reject(new Error("QyIcon registry retry is only available after a failed load."))}});return I.set(b,i),b}function P(...e){const r=[],o=[];for(const t of e){const d=I.get(t);if(!d)throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");r.push(...d.definitions),o.push(...d.aliases)}try{return z({icons:r,aliases:o})}catch(t){const d=t instanceof Error?t.message:String(t);throw new Error(`Icon registry merge conflict: ${d}`)}}function B(e){if(!I.has(e))throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");return Object.freeze({install(r){r.provide(Q,e)}})}function h(e){const r=typeof e=="string"||typeof e=="number"?String(e).trim():"";if(!r)return"";const o=/^#icon-(.+)$/i.exec(r);if(o)return o[1].trim();const t=/^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(r);return t?`iconify:${t[1]}:${t[2]}`:r}function w(e){return e.toLocaleLowerCase()}function q(e){return e?Array.isArray(e)?[...e]:Object.entries(e).map(([r,o])=>({name:r,target:o})):[]}function K(e,r){const o={...e.label===void 0?{}:{label:D(e.label,r)},...e.keywords===void 0?{}:{keywords:T(e.keywords,r)}};switch(e.source){case"symbol":return _({name:r,source:"symbol",value:E("symbol",e.value,r),...o});case"component":return _({name:r,source:"component",value:E("component",e.value,r),...o});case"class":return _({name:r,source:"class",value:E("class",e.value,r),...o});default:throw new Error(`QyIcon definition "${r}" has unsupported source "${String(e.source)}".`)}}function E(e,r,o){if(e==="symbol"){if(typeof r!="string"||!/^#[^\s#]+$/.test(r))throw new Error(`QyIcon symbol "${o}" must be a same-document #fragment.`);return r}if(e==="component"){if(typeof r!="object"&&typeof r!="function"||r===null)throw new Error(`QyIcon component "${o}" must be a Vue component.`);return r}if(e!=="class")throw new Error(`QyIcon definition "${o}" has unsupported source "${String(e)}".`);if(typeof r!="string"||!r.trim()||!/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(r.trim()))throw new Error(`QyIcon class "${o}" must be a trusted static class string.`);return r.trim()}function D(e,r){if(typeof e!="string")throw new Error(`QyIcon label "${r}" must be a string.`);return e}function T(e,r){if(!Array.isArray(e)||e.some(o=>typeof o!="string"))throw new Error(`QyIcon keywords "${r}" must be strings.`);return Object.freeze([...e])}function _(e){return e.keywords&&!Object.isFrozen(e.keywords)&&(e={...e,keywords:Object.freeze([...e.keywords])}),Object.freeze(e)}function x(e){return _({...e,...e.keywords?{keywords:[...e.keywords]}:{}})}const k=new WeakMap,S=new Set,$=s.defineComponent({name:"QyIcon",inheritAttrs:!1,__name:"index",props:{name:{type:[String,Number],required:!1},icon:{type:null,required:!1},size:{type:[Number,String],required:!1,default:"1em"},color:{type:String,required:!1,default:"currentColor"},spin:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1}},setup(e,{expose:r}){r();const o=e,t=s.useAttrs(),d=s.useSlots(),i=s.inject(Q,null),y=s.computed(()=>o.icon?s.markRaw(s.toRaw(o.icon)):void 0),f=s.computed(()=>o.name===void 0||o.name===null?"":h(o.name)),g=s.computed(()=>{if(!(o.icon||!i||!f.value))return i.resolve(f.value)}),b=s.ref(null),c=s.computed(()=>!!(!o.icon&&f.value&&!g.value)),a=s.computed(()=>{const n=typeof o.label=="string"?o.label.trim():"";if(n)return n;const m=t["aria-label"];return N(m)?String(m):""}),u=s.computed(()=>a.value?"img":t.role),l=s.computed(()=>j(o.size)),p=s.computed(()=>({width:l.value,height:l.value,fontSize:l.value,color:o.color||"currentColor"})),v=s.computed(()=>{const n={};for(const[m,A]of Object.entries(t))O(m)&&(n[m]=A);return n}),L=s.computed(()=>Object.freeze({name:f.value}));s.watchEffect(()=>{const n=g.value;b.value&&(n==null?void 0:n.source)==="symbol"&&(b.value.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.value),b.value.setAttribute("xlink:href",n.value))}),s.watchEffect(()=>{if(o.icon){f.value&&console.warn("QyIcon received both icon and name; the direct icon takes precedence.");return}const n=f.value;if(!(!n||!c.value)){if(i){const m=k.get(i)||new Set;if(m.has(n.toLocaleLowerCase()))return;m.add(n.toLocaleLowerCase()),k.set(i,m)}else{const m=n.toLocaleLowerCase();if(S.has(m))return;S.add(m)}console.warn(`QyIcon icon "${n}" was not found in the current app registry.`)}});function j(n){return typeof n=="number"?Number.isFinite(n)&&n>0?`${n}px`:"1em":n.trim()||"1em"}function N(n){return typeof n=="string"?n.trim().length>0:n!=null&&n!==!1}function O(n){return n!=="class"&&n!=="style"&&n!=="role"&&n!=="aria-label"&&n!=="aria-hidden"&&n!=="data-qy-icon-missing"&&(n==="id"||n==="title"||n.startsWith("data-")||n.startsWith("aria-"))}const R={missingWarningsByRegistry:k,missingWarningsWithoutRegistry:S,props:o,attrs:t,slots:d,registry:i,directIcon:y,normalizedName:f,definition:g,symbolElement:b,isMissing:c,accessibleLabel:a,rootRole:u,iconSize:l,iconStyle:p,safeAttrs:v,fallbackSlotProps:L,normalizeSize:j,hasTextValue:N,isSafeAttr:O};return Object.defineProperty(R,"__isScriptSetup",{enumerable:!1,value:!0}),R}}),M=["role","aria-label","aria-hidden","data-qy-icon-missing"],W={key:1,"aria-hidden":"true",focusable:"false"},V=["href","xlink:href"];function Y(e,r,o,t,d,i){var y,f,g;return s.openBlock(),s.createElementBlock("span",s.mergeProps(t.safeAttrs,{class:["qy-icon",[t.attrs.class,{"is-spin":t.props.spin}]],style:[t.attrs.style,t.iconStyle],role:t.rootRole,"aria-label":t.accessibleLabel||void 0,"aria-hidden":t.accessibleLabel?void 0:"true","data-qy-icon-missing":t.isMissing?t.normalizedName:void 0}),[t.directIcon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.directIcon),{key:0,"aria-hidden":"true"})):((y=t.definition)==null?void 0:y.source)==="symbol"?(s.openBlock(),s.createElementBlock("svg",W,[s.createElementVNode("use",{ref:"symbolElement",href:t.definition.value,"xlink:href":t.definition.value},null,8,V)])):((f=t.definition)==null?void 0:f.source)==="component"?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.definition.value),{key:2,"aria-hidden":"true"})):((g=t.definition)==null?void 0:g.source)==="class"?(s.openBlock(),s.createElementBlock("span",{key:3,class:s.normalizeClass(["qy-icon__class",t.definition.value]),"aria-hidden":"true"},null,2)):t.isMissing&&t.slots.fallback?s.renderSlot(e.$slots,"fallback",s.normalizeProps(s.guardReactiveProps(t.fallbackSlotProps)),void 0,!0,4):s.createCommentVNode("v-if",!0)],16,M)}const F=C._export_sfc($,[["render",Y],["__scopeId","data-v-2acb0327"],["__file","D:/xushenz/qy-components/packages/ui/lib/qy-icon/index.vue"]]);exports.Icon=F;exports.QY_ICON_REGISTRY_KEY=Q;exports.createQyIconPlugin=B;exports.createQyIconRegistry=z;exports.mergeQyIconRegistries=P;exports.normalizeQyIconName=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),s=require("element-plus"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),c={label:["label"],span:["span"],rowspan:["rowspan"],width:["width"],minWidth:["minWidth","min-width"],labelWidth:["labelWidth","label-width"],align:["align"],labelAlign:["labelAlign","label-align"],className:["className","class-name"],labelClassName:["labelClassName","label-class-name"]};function m(e){return typeof e.type=="object"&&e.type!==null&&e.type.name==="QyDescriptionsItem"}function d(e){const t={};return Object.entries(c).forEach(([i,r])=>{const n=r.find(u=>(e==null?void 0:e[u])!==void 0);n&&(t[i]=e==null?void 0:e[n])}),t.span??(t.span=1),t.rowspan??(t.rowspan=1),t}function b(e){if(e&&typeof e=="object"&&!Array.isArray(e)){const t={};return typeof e.default=="function"&&(t.default=e.default),typeof e.label=="function"&&(t.label=e.label),t}if(e!=null)return{default:()=>e}}function l(e){const t=[];return e.forEach(i=>{if(Array.isArray(i)){t.push(...l(i));return}if(!a.isVNode(i)){t.push(i);return}if(m(i)){t.push(a.h(s.ElDescriptionsItem,{...d(i.props),key:i.key??void 0},b(i.children)));return}if(i.type===a.Fragment&&Array.isArray(i.children)){t.push(a.h(a.Fragment,{key:i.key??void 0},l(i.children)));return}t.push(i)}),t}const y=a.defineComponent({name:"QyDescriptions",inheritAttrs:!1,props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},size:{type:String,default:"",validator:e=>["","large","default","small"].includes(e)},title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],required:!1}},setup(e,{attrs:t,slots:i}){const r=a.computed(()=>Object.fromEntries(Object.entries(t).filter(([n])=>f(n))));return()=>a.h(s.ElDescriptions,{...r.value,class:["qy-descriptions",r.value.class],border:e.border,column:e.column,direction:e.direction,size:e.size,title:e.title,extra:e.extra,labelWidth:e.labelWidth},{default:()=>{var n;return l(((n=i.default)==null?void 0:n.call(i))??[])},title:i.title,extra:i.extra})}}),p=o._export_sfc(y,[["__file","
|
|
1
|
+
"use strict";const a=require("vue"),s=require("element-plus"),o=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f=e=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"),c={label:["label"],span:["span"],rowspan:["rowspan"],width:["width"],minWidth:["minWidth","min-width"],labelWidth:["labelWidth","label-width"],align:["align"],labelAlign:["labelAlign","label-align"],className:["className","class-name"],labelClassName:["labelClassName","label-class-name"]};function m(e){return typeof e.type=="object"&&e.type!==null&&e.type.name==="QyDescriptionsItem"}function d(e){const t={};return Object.entries(c).forEach(([i,r])=>{const n=r.find(u=>(e==null?void 0:e[u])!==void 0);n&&(t[i]=e==null?void 0:e[n])}),t.span??(t.span=1),t.rowspan??(t.rowspan=1),t}function b(e){if(e&&typeof e=="object"&&!Array.isArray(e)){const t={};return typeof e.default=="function"&&(t.default=e.default),typeof e.label=="function"&&(t.label=e.label),t}if(e!=null)return{default:()=>e}}function l(e){const t=[];return e.forEach(i=>{if(Array.isArray(i)){t.push(...l(i));return}if(!a.isVNode(i)){t.push(i);return}if(m(i)){t.push(a.h(s.ElDescriptionsItem,{...d(i.props),key:i.key??void 0},b(i.children)));return}if(i.type===a.Fragment&&Array.isArray(i.children)){t.push(a.h(a.Fragment,{key:i.key??void 0},l(i.children)));return}t.push(i)}),t}const y=a.defineComponent({name:"QyDescriptions",inheritAttrs:!1,props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},size:{type:String,default:"",validator:e=>["","large","default","small"].includes(e)},title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number],required:!1}},setup(e,{attrs:t,slots:i}){const r=a.computed(()=>Object.fromEntries(Object.entries(t).filter(([n])=>f(n))));return()=>a.h(s.ElDescriptions,{...r.value,class:["qy-descriptions",r.value.class],border:e.border,column:e.column,direction:e.direction,size:e.size,title:e.title,extra:e.extra,labelWidth:e.labelWidth},{default:()=>{var n;return l(((n=i.default)==null?void 0:n.call(i))??[])},title:i.title,extra:i.extra})}}),p=o._export_sfc(y,[["__file","D:/xushenz/qy-components/packages/ui/lib/qy-descriptions/index.vue"]]);exports.Descriptions=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as f, useAttrs as m, computed as b, openBlock as
|
|
1
|
+
import { defineComponent as f, useAttrs as m, computed as b, openBlock as h, createBlock as v, mergeProps as g } from "vue";
|
|
2
2
|
import { ElSwitch as x } from "element-plus";
|
|
3
3
|
import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
const q = /* @__PURE__ */ f({
|
|
@@ -48,8 +48,8 @@ const q = /* @__PURE__ */ f({
|
|
|
48
48
|
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
|
-
function
|
|
52
|
-
return
|
|
51
|
+
function _(i, n, e, t, l, r) {
|
|
52
|
+
return h(), v(t.ElSwitch, g(t.safeAttrs, {
|
|
53
53
|
class: "qy-switch",
|
|
54
54
|
"model-value": e.modelValue,
|
|
55
55
|
"active-value": e.activeValue,
|
|
@@ -70,7 +70,7 @@ function y(i, n, e, t, l, r) {
|
|
|
70
70
|
onFocusout: t.handleBlur
|
|
71
71
|
}), null, 16, ["model-value", "active-value", "inactive-value", "disabled", "loading", "size", "active-text", "inactive-text", "inline-prompt", "name", "id", "tabindex", "aria-label"]);
|
|
72
72
|
}
|
|
73
|
-
const p = /* @__PURE__ */ S(q, [["render",
|
|
73
|
+
const p = /* @__PURE__ */ S(q, [["render", _], ["__scopeId", "data-v-639a456a"], ["__file", "D:/xushenz/qy-components/packages/ui/lib/qy-switch/index.vue"]]);
|
|
74
74
|
export {
|
|
75
75
|
p as S
|
|
76
76
|
};
|