@qynpm/ui 1.0.39 → 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/dist/index.cjs +19 -19
- package/dist/index.mjs +21 -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 +1 -1
- package/dist/qy-dialog/index.mjs +4 -4
- 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 +2 -2
- package/dist/qy-icon-picker/index.mjs +5 -5
- 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 +2 -2
- 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-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- 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.vue_vue_type_script_lang-BaIOvoQn.mjs → index-1Vw54aYL.mjs} +6 -5
- package/dist/shared/index-5vWL_IJI.mjs +150 -0
- package/dist/shared/index-7fIb2Tqw.mjs +129 -0
- package/dist/shared/index-9T0p3USM.cjs +1 -0
- package/dist/shared/index-B-zfoMbw.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-B1I7mCIm.mjs} +4 -3
- package/dist/shared/index-B1aU9mew.mjs +77 -0
- package/dist/shared/index-B26-GlFX.cjs +1 -0
- package/dist/shared/index-B63vgrS4.mjs +73 -0
- package/dist/shared/index-B97hTd-h.cjs +1 -0
- package/dist/shared/index-B9zEH5Yq.cjs +1 -0
- package/dist/shared/index-BA_tJgLE.cjs +1 -0
- package/dist/shared/index-BBIPQa5N.mjs +76 -0
- package/dist/shared/index-BCWvMvRL.cjs +1 -0
- package/dist/shared/index-BDJIWxaw.cjs +1 -0
- package/dist/shared/index-BFbAB8UH.mjs +307 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-BG3XKumS.mjs} +9 -8
- package/dist/shared/index-BHGDbXoK.mjs +82 -0
- package/dist/shared/index-BInkt-Al.cjs +1 -0
- package/dist/shared/index-BKEw_9fh.mjs +2660 -0
- package/dist/shared/index-BNfu2YgX.mjs +47 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-BPXJkcM1.mjs} +20 -19
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-BQzQcTgt.mjs} +4 -3
- package/dist/shared/index-BUSdZ-x8.cjs +1 -0
- package/dist/shared/index-BZDbBD41.cjs +1 -0
- package/dist/shared/index-Bc1ny9GC.cjs +1 -0
- package/dist/shared/index-BcscC86C.mjs +206 -0
- package/dist/shared/index-BiowqiSD.cjs +1 -0
- package/dist/shared/index-Bpl6Jh4H.cjs +1 -0
- package/dist/shared/index-BqojE7aF.cjs +1 -0
- package/dist/shared/index-BrZzYI8x.cjs +1 -0
- package/dist/shared/index-BsXys36-.cjs +1 -0
- package/dist/shared/index-BvmXE8aK.cjs +1 -0
- package/dist/shared/index-Bw3nETeY.cjs +1 -0
- package/dist/shared/index-BxxuaQGJ.cjs +1 -0
- package/dist/shared/index-BxymsnW0.cjs +1 -0
- package/dist/shared/index-BzpgGytE.mjs +52 -0
- package/dist/shared/index-BzzZmppN.mjs +63 -0
- package/dist/shared/index-C0rOcDsc.cjs +1 -0
- package/dist/shared/index-C1hAuubZ.mjs +157 -0
- package/dist/shared/index-C2BQtQPa.mjs +61 -0
- package/dist/shared/index-C62Loq0f.cjs +1 -0
- package/dist/shared/index-C7N8x3DK.mjs +206 -0
- package/dist/shared/index-C8aLbb8l.cjs +1 -0
- package/dist/shared/index-CA279UZp.mjs +87 -0
- package/dist/shared/{index-lKF1vwdE.mjs → index-CBhrdEIf.mjs} +1 -1
- package/dist/shared/{index.vue_vue_type_script_lang-69zSOotQ.mjs → index-CCVlab6d.mjs} +11 -10
- package/dist/shared/index-CDjAMIpe.cjs +1 -0
- package/dist/shared/index-CDleTMJj.mjs +395 -0
- package/dist/shared/index-CG4I3nRK.cjs +1 -0
- package/dist/shared/index-CHt1R1WD.cjs +1 -0
- package/dist/shared/index-CZIsLBLq.cjs +1 -0
- package/dist/shared/index-CcEXTVYA.mjs +69 -0
- package/dist/shared/index-CedTjtZr.cjs +1 -0
- package/dist/shared/index-CgXuleV-.mjs +205 -0
- package/dist/shared/index-CkfWS0Ba.cjs +1 -0
- package/dist/shared/index-Cm7k9j8a.cjs +1 -0
- package/dist/shared/index-CmgT_pgc.mjs +154 -0
- package/dist/shared/index-CngdcQWi.cjs +1 -0
- package/dist/shared/index-CqdhLbMe.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-CZK0hDYa.mjs → index-CrlLsoRF.mjs} +21 -20
- package/dist/shared/index-CsI1WBRp.cjs +1 -0
- package/dist/shared/index-CsXA7Qfy.mjs +105 -0
- package/dist/shared/index-CsaDF9d4.mjs +175 -0
- package/dist/shared/index-CvdUJpAu.mjs +365 -0
- package/dist/shared/index-CvfLEIFE.mjs +526 -0
- package/dist/shared/index-CwcD7q4B.mjs +446 -0
- package/dist/shared/index-D0kCG3Ov.mjs +278 -0
- package/dist/shared/index-D1-QYDXi.cjs +1 -0
- package/dist/shared/index-D1BK66mG.cjs +1 -0
- package/dist/shared/index-D3IHte_d.cjs +1 -0
- package/dist/shared/index-D3VO2Ccd.mjs +73 -0
- package/dist/shared/index-D5spJ8nj.cjs +1 -0
- package/dist/shared/index-D7uPizqd.cjs +1 -0
- package/dist/shared/index-D8OJx-hy.mjs +104 -0
- package/dist/shared/{index-DYLQNCm_.cjs → index-D97QYFZw.cjs} +1 -1
- package/dist/shared/index-DAiFZxwY.mjs +51 -0
- package/dist/shared/index-DBz3lz62.mjs +53 -0
- package/dist/shared/index-DCKEecrx.mjs +138 -0
- package/dist/shared/index-DCneRuMf.mjs +78 -0
- package/dist/shared/index-DD-zKgrO.cjs +1 -0
- package/dist/shared/index-DEHvfBYQ.mjs +295 -0
- package/dist/shared/index-DF_Q6c4g.mjs +27 -0
- package/dist/shared/index-DFeV2CL8.cjs +1 -0
- package/dist/shared/index-DIckpqrH.cjs +1 -0
- package/dist/shared/index-DKKMSKqm.cjs +1 -0
- package/dist/shared/index-DPhYSn9g.mjs +130 -0
- package/dist/shared/index-DSq7WIiO.cjs +1 -0
- package/dist/shared/index-DTHRZ-aL.mjs +74 -0
- package/dist/shared/index-DTqCwGN_.cjs +1 -0
- package/dist/shared/index-DVwCIrin.mjs +100 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DZU3jXf9.mjs} +10 -9
- package/dist/shared/{index.vue_vue_type_script_lang-C9X0V5AK.mjs → index-D_Imq4-m.mjs} +13 -12
- package/dist/shared/index-DbxSDJ7e.mjs +81 -0
- package/dist/shared/index-Dc4A_1-H.mjs +53 -0
- package/dist/shared/index-Dchy1DNn.mjs +197 -0
- package/dist/shared/index-DdKCUobQ.mjs +311 -0
- package/dist/shared/index-DdX40CzJ.cjs +1 -0
- package/dist/shared/index-DfP6txWq.mjs +198 -0
- package/dist/shared/index-Dh_dh3TS.cjs +1 -0
- package/dist/shared/index-DjRDV62n.mjs +153 -0
- package/dist/shared/index-DpGlBnUl.cjs +1 -0
- package/dist/shared/index-DsDUAk2R.cjs +1 -0
- package/dist/shared/index-DxUzSONj.cjs +1 -0
- package/dist/shared/index-DypZJHmM.cjs +1 -0
- package/dist/shared/index-DzCwEfCQ.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-EPcAlzgc.mjs} +12 -11
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-GRwpbz1m.mjs} +18 -17
- package/dist/shared/index-Gyu5R4Gn.cjs +1 -0
- package/dist/shared/index-IJJI2ylC.mjs +234 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7nzeBUR.mjs → index-LDtOVxCE.mjs} +8 -7
- package/dist/shared/index-OaA2R7Ur.mjs +369 -0
- package/dist/shared/index-S2TDFo5d.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-Se0xx6vl.mjs} +14 -13
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-TVUj4Yp4.mjs} +11 -10
- package/dist/shared/index-U3c1apvC.cjs +1 -0
- package/dist/shared/index-VExJFRrd.mjs +156 -0
- package/dist/shared/index-Xw2_Py_V.mjs +63 -0
- package/dist/shared/index-ZbSETCxZ.cjs +1 -0
- package/dist/shared/index-ZkHMbIv4.cjs +1 -0
- package/dist/shared/index-aveXATNw.cjs +1 -0
- package/dist/shared/index-byOl9Vtk.cjs +1 -0
- package/dist/shared/index-fiuhurmv.cjs +1 -0
- package/dist/shared/index-pqwrEshN.cjs +1 -0
- package/dist/shared/index-rowlxa3p.mjs +245 -0
- package/dist/shared/index-trf8Dvbk.cjs +1 -0
- package/dist/shared/index-tsfRa5ze.cjs +1 -0
- package/dist/shared/index-uRVIiLjP.mjs +892 -0
- package/package.json +496 -496
- package/dist/shared/index-9GEoEe00.cjs +0 -1
- package/dist/shared/index-B25yA5j-.mjs +0 -71
- package/dist/shared/index-B3GsIwhf.mjs +0 -142
- package/dist/shared/index-BFG8tzQV.mjs +0 -149
- package/dist/shared/index-BXWEn5kQ.mjs +0 -766
- package/dist/shared/index-Bd_aS-_F.mjs +0 -162
- package/dist/shared/index-Br_34fum.cjs +0 -1
- package/dist/shared/index-BsDC3meI.cjs +0 -1
- package/dist/shared/index-BzjGYfVd.mjs +0 -222
- package/dist/shared/index-C1gEZRI5.cjs +0 -1
- package/dist/shared/index-CCd7dB4w.cjs +0 -1
- package/dist/shared/index-CGq7Q_hV.mjs +0 -119
- package/dist/shared/index-CJeoAmoJ.mjs +0 -293
- package/dist/shared/index-CiE6qJCJ.mjs +0 -377
- package/dist/shared/index-CnVhquq5.cjs +0 -1
- package/dist/shared/index-D0hSquu3.cjs +0 -1
- package/dist/shared/index-D1Xkf7rL.mjs +0 -107
- package/dist/shared/index-D377Dw9z.cjs +0 -1
- package/dist/shared/index-D7WmSi5s.mjs +0 -127
- package/dist/shared/index-D8OXRBGc.mjs +0 -285
- package/dist/shared/index-DQosPVrl.mjs +0 -68
- package/dist/shared/index-DRugp8x0.cjs +0 -1
- package/dist/shared/index-Db0-JPH3.cjs +0 -1
- package/dist/shared/index-DpSbQfft.mjs +0 -90
- package/dist/shared/index-Dt5TyzGy.cjs +0 -1
- package/dist/shared/index-DuP-b_eY.cjs +0 -1
- package/dist/shared/index-Dus42W4E.cjs +0 -1
- package/dist/shared/index-EIFVul2W.cjs +0 -1
- package/dist/shared/index-G3BezuiV.cjs +0 -1
- package/dist/shared/index-GQheV777.mjs +0 -54
- package/dist/shared/index-HNFq7v-A.cjs +0 -1
- package/dist/shared/index-KNAOQ6lE.mjs +0 -225
- package/dist/shared/index-MNEYnZEw.cjs +0 -1
- package/dist/shared/index-MPd3qxAh.cjs +0 -1
- package/dist/shared/index-_IQS5Lxm.mjs +0 -2362
- package/dist/shared/index-elwxiSmc.cjs +0 -1
- package/dist/shared/index-nVNx7f9k.mjs +0 -72
- package/dist/shared/index-zo5J-y0C.mjs +0 -157
- 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-BnmY1ndj.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- 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-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-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-BnIolx5s.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BvnOeUIM.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-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-CcbBUYM3.cjs +0 -1
- 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-Cswf_owk.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-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-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-OmrHTMpe.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-wG7OTsWa.mjs +0 -331
- 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-B2thgQml.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
- 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-BfQd7yxi.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-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-D2CH70ZX.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-DOAbOPGO.mjs +0 -403
- 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-Daww52B9.mjs +0 -317
- 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-hbNK_h45.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),re=require("element-plus"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ie=n.defineComponent({name:"QyTreeSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Object,Array,null],default:void 0},data:{default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},childrenKey:{default:"children"},disabledKey:{default:"disabled"},props:{default:()=>({})},nodeKey:{default:void 0},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},filterMethod:{type:Function,default:void 0},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:void 0},remoteShowSuffix:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},multipleLimit:{default:0},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!1},renderAfterExpand:{type:Boolean,default:!0},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},defaultExpandedKeys:{default:void 0},defaultCheckedKeys:{default:void 0},accordion:{type:Boolean,default:!1},indent:{default:18},highlightCurrent:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},load:{type:Function,default:void 0},cacheData:{default:()=>[]},filterNodeMethod:{type:Function,default:void 0},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:void 0},fitInputWidth:{type:Boolean,default:!1},popperClass:{default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur","node-click","node-expand","node-collapse","check-change","check"],setup(a,{expose:D,emit:E}){const u=Symbol("invalid-tree-select-value"),o=a,c=E,O=n.useAttrs(),v=n.ref(null),y=n.computed(()=>o.data===void 0?o.options:o.data),M=n.ref(o.defaultExpandedKeys?[...o.defaultExpandedKeys]:void 0),j=n.ref(o.defaultCheckedKeys?[...o.defaultCheckedKeys]:void 0);let C=new WeakSet,p=new Set;n.watch(y,e=>{C=new WeakSet,p=new Set,S(e)},{immediate:!0,deep:!1});const T=n.computed(()=>Object.fromEntries(Object.entries(O).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),z=n.computed(()=>["qy-tree-select__popper",o.popperClass].filter(Boolean).join(" ")),$=n.computed(()=>{const e=x(o.modelValue);if(e!==u&&F(e)&&!o.nodeKey)throw new Error("QyTreeSelect object values require nodeKey");return e===u?void 0:ae(e)}),R=n.computed(()=>{const e=o.props??{};return{value:h(e.value??o.nodeKey??o.valueKey),label:h(e.label??o.labelKey),children:h(e.children??o.childrenKey),disabled:h(e.disabled??o.disabledKey),isLeaf:h(e.isLeaf),class:q(e.class)}});function k(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function K(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"?e:k(e)?n.toRaw(e):u}function x(e){return e==null?e:Array.isArray(e)?e.every(t=>K(t)!==u)?e:u:K(e)}function F(e){return Array.isArray(e)?e.some(k):k(e)}function b(e){return k(e)?n.toRaw(e):null}function S(e){for(const t of e??[])w(t)}function w(e){const t=n.toRaw(e);C.add(t),p.add(t);const l=m("children",t);if(Array.isArray(l))for(const d of l){const r=b(d);r&&w(r)}}function i(e){const t=b(e);return t!==null&&C.has(t)}function m(e,t){var f;const l=(f=o.props)==null?void 0:f[e],d=e==="value"?o.valueKey:e==="label"?o.labelKey:e==="children"?o.childrenKey:e==="disabled"?o.disabledKey:void 0,r=l??d;return typeof r=="function"?r(t):typeof r=="string"?t[r]:void 0}function h(e){return typeof e=="function"?t=>e(t):e}function q(e){return typeof e!="function"?e:(t,l)=>{const d=s(l);return d&&i(t)?e(t,d):""}}function g(e){return typeof e=="string"||typeof e=="number"?e:null}function s(e){var l;if(!e||!i(e.data))return null;const t=b(e.data);return t?Object.freeze({key:g(e.key),parentKey:g((l=e.parent)==null?void 0:l.key),data:t,label:typeof e.label=="string"?e.label:String(m("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 W(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 I(e,t,l){const d=s(l);return!d||!i(t)?!1:o.filterNodeMethod?o.filterNodeMethod(e,t,d):String(d.label).toLocaleLowerCase().includes(String(e??"").toLocaleLowerCase())}function P(e,t,l){if(!o.load)return t([]);const d=e.level===0||e.data===void 0||e.data===null,r=y.value,f=s(e)??(d?W(e):null);if(!f)return l();o.load(f,L=>{(d?y.value!==r:!i(f.data))||(S(L),t(L))},l)}function U(e){const t=x(N(e));t!==u&&c("update:modelValue",t)}function Q(e){const t=x(N(e));t!==u&&c("change",t)}function H(){c("clear")}function G(e){c("visible-change",e)}function J(e){c("focus",e)}function X(e){c("blur",e)}function Y(e,t){const l=s(t);l&&i(e)&&c("node-click",e,l)}function Z(e,t){const l=s(t);l&&i(e)&&c("node-expand",e,l)}function _(e,t){const l=s(t);l&&i(e)&&c("node-collapse",e,l)}function ee(e,t,l){i(e)&&c("check-change",e,t,l)}function B(e){return(e??[]).map(b).filter(t=>t!==null&&i(t))}function A(e){return(e??[]).map(g).filter(t=>t!==null)}function te(e,t){i(e)&&c("check",e,{checkedKeys:A(t==null?void 0:t.checkedKeys),checkedNodes:B(t==null?void 0:t.checkedNodes),halfCheckedKeys:A(t==null?void 0:t.halfCheckedKeys),halfCheckedNodes:B(t==null?void 0:t.halfCheckedNodes)})}function V(e){for(const t of p)if(Object.is(n.toRaw(m("value",t)),n.toRaw(e)))return t}function le(e){if(o.nodeKey){for(const t of p)if(Object.is(t[o.nodeKey],e))return t}}function ae(e){if(!o.nodeKey||e===null||e===void 0)return e;const t=l=>{const d=V(l);return(d?g(d[o.nodeKey]):null)??l};return Array.isArray(e)?e.map(t):t(e)}function N(e){if(!o.nodeKey)return e;const t=l=>{const d=le(l);return d?m("value",d):l};return Array.isArray(e)?e.map(t):t(e)}function ne(e,t){return(e??[]).flatMap(l=>{const d=K(N(l.value));if(d===u)return[];const r=V(d);return[Object.freeze({value:d,label:typeof l.currentLabel=="string"?l.currentLabel:String(l.currentLabel??""),data:r?n.toRaw(r):void 0,closable:l.isDisabled!==!0,remove:()=>t==null?void 0:t(new MouseEvent("click"),l)})]})}function oe(){var e,t;(t=(e=v.value)==null?void 0:e.focus)==null||t.call(e)}function de(){var e,t;(t=(e=v.value)==null?void 0:e.blur)==null||t.call(e)}return D({focus:oe,blur:de}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(re.ElTreeSelect),n.mergeProps({ref_key:"treeSelectRef",ref:v,class:"qy-tree-select"},T.value,{"model-value":$.value,data:y.value,props:R.value,"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":M.value,"default-checked-keys":j.value,accordion:a.accordion,indent:a.indent,"highlight-current":a.highlightCurrent,lazy:a.lazy,load:P,"cache-data":a.cacheData,"filter-node-method":I,size:a.size,teleported:a.teleported,"append-to":a.appendTo,"fit-input-width":a.fitInputWidth,"popper-class":z.value,"onUpdate:modelValue":U,onChange:Q,onClear:H,onVisibleChange:G,onFocus:J,onBlur:X,onNodeClick:Y,onNodeExpand:Z,onNodeCollapse:_,onCheckChange:ee,onCheck:te}),n.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"2"}:void 0,e.$slots.default?{name:"default",fn:n.withCtx(l=>[n.renderSlot(e.$slots,"default",{data:l.data,node:s(l.node)},void 0,!0)]),key:"3"}:void 0,e.$slots.tag?{name:"tag",fn:n.withCtx(l=>[n.renderSlot(e.$slots,"tag",{data:ne(l.data,l.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"]))}}),ue=ce._export_sfc(ie,[["__scopeId","data-v-daef2030"]]);exports.TreeSelect=ue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),x=require("./index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"qy-menu-actions__panel"},T=["disabled","data-action-key","onClick"],C={key:0,class:"qy-menu-actions__loading"},b={key:0,class:"qy-menu-actions__empty"},E={key:1,class:"qy-menu-actions__inline"},V=["disabled","data-action-key","onClick"],z={key:0,class:"qy-menu-actions__loading"},A={key:0,class:"qy-menu-actions__empty"},M=e.defineComponent({name:"QyMenuActions",__name:"index",props:{actions:{default:()=>[]},row:{},rowIndex:{},context:{},mode:{default:"inline"},emptyText:{default:"无数据"},popoverWidth:{default:150},confirmMethod:{}},emits:["action","confirm-required"],setup(r,{emit:f}){const l=r,y=f,p=e.computed(()=>{var n,o;return{...l.context,row:l.row??((n=l.context)==null?void 0:n.row),rowIndex:l.rowIndex??((o=l.context)==null?void 0:o.rowIndex)}}),d=e.ref(!1),i=e.ref(new Set),v=(n,o)=>({...p.value,target:o.currentTarget,hide:h,setLoading:t=>q(n,t)}),u=n=>typeof n=="function"?n(p.value):!!n,s=e.computed(()=>l.actions.filter(n=>!u(n.hidden))),g=e.computed(()=>s.value.some(n=>a(n))),m=n=>u(n.disabled)||a(n),a=n=>i.value.has(n.key)||u(n.loading),k=(n,o)=>{const t=n.type||o;return{default:"var(--el-text-color-primary)",primary:"var(--el-color-primary)",success:"var(--el-color-success)",warning:"var(--el-color-warning)",danger:"var(--el-color-danger)"}[t]},_=async(n,o)=>{if(o.stopPropagation(),m(n))return;const t=v(n,o);if(n.confirm){if(!l.confirmMethod){y("confirm-required",n,t);return}if(!await l.confirmMethod(n,t))return}y("action",n,t)};function h(){d.value=!1}function q(n,o){const t=new Set(i.value);o?t.add(n.key):t.delete(n.key),i.value=t}return e.onBeforeUnmount(()=>{i.value=new Set}),(n,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-menu-actions",`is-${r.mode}`])},[r.mode==="popover"?(e.openBlock(),e.createBlock(x._sfc_main,{key:0,open:d.value,"onUpdate:open":o[0]||(o[0]=t=>d.value=t),trigger:"hover",placement:"left",width:r.popoverWidth,"hide-delay":g.value?999999:100,"show-arrow":!1},{reference:e.withCtx(()=>[...o[1]||(o[1]=[e.createElementVNode("button",{class:"qy-menu-actions__trigger",type:"button","aria-label":"行操作"},[e.createElementVNode("svg",{class:"qy-menu-actions__trigger-icon",viewBox:"0 0 24 24","aria-hidden":"true"},[e.createElementVNode("path",{fill:"currentColor",d:"M8 17q.425 0 .713-.288T9 16q0-.425-.288-.712T8 15q-.425 0-.712.288T7 16q0 .425.288.713T8 17m0-4q.425 0 .713-.288T9 12q0-.425-.288-.712T8 11q-.425 0-.712.288T7 12q0 .425.288.713T8 13m0-4q.425 0 .713-.288T9 8q0-.425-.288-.712T8 7q-.425 0-.712.288T7 8q0 .425.288.713T8 9m3 8h6v-2h-6zm0-4h6v-2h-6zm0-4h6V7h-6zM5 21q-.825 0-1.412-.587T3 19V5q0-.825.588-1.412T5 3h14q.825 0 1.413.588T21 5v14q0 .825-.587 1.413T19 21zm0-2h14V5H5z"})])],-1)])]),default:e.withCtx(()=>[e.createElementVNode("div",w,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.key,class:e.normalizeClass(["qy-menu-actions__item",[`is-${t.type||"default"}`,{"is-loading":a(t)}]]),disabled:m(t),"data-action-key":t.key,style:e.normalizeStyle({color:k(t,"default")}),type:"button",onClick:c=>_(t,c)},[a(t)?(e.openBlock(),e.createElementBlock("span",C)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],14,T))),128)),s.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b,e.toDisplayString(r.emptyText),1))])]),_:1},8,["open","width","hide-delay"])):(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,t=>(e.openBlock(),e.createElementBlock("button",{key:t.key,class:e.normalizeClass(["qy-menu-actions__item",[`is-${t.type||"primary"}`,{"is-loading":a(t)}]]),disabled:m(t),"data-action-key":t.key,style:e.normalizeStyle({color:k(t,"primary")}),type:"button",onClick:c=>_(t,c)},[a(t)?(e.openBlock(),e.createElementBlock("span",z)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(t.label),1)],14,V))),128)),s.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",A,e.toDisplayString(r.emptyText),1))]))],2))}}),N=B._export_sfc(M,[["__scopeId","data-v-44454ac9"]]);exports.MenuActions=N;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { defineComponent as q, ref as p, computed as B, openBlock as c, createElementBlock as u, normalizeClass as g, createVNode as S, withCtx as I, createElementVNode as h, withModifiers as t, withKeys as y, toDisplayString as K, createCommentVNode as k } from "vue";
|
|
2
|
-
import { U as M } from "./index-BXWEn5kQ.mjs";
|
|
3
|
-
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const U = ["tabindex", "aria-disabled", "onClick", "onKeydown"], _ = { class: "qy-file-picker__label" }, E = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "qy-file-picker__hint"
|
|
7
|
-
}, P = ["disabled"], R = /* @__PURE__ */ q({
|
|
8
|
-
name: "QyFilePicker",
|
|
9
|
-
__name: "index",
|
|
10
|
-
props: {
|
|
11
|
-
modelValue: { default: null },
|
|
12
|
-
extensions: { default: () => [] },
|
|
13
|
-
maxSizeMb: { default: 20 },
|
|
14
|
-
disabled: { type: Boolean, default: !1 },
|
|
15
|
-
drag: { type: Boolean, default: !0 },
|
|
16
|
-
placeholder: { default: "请选择文件" }
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:modelValue", "change", "clear", "invalid"],
|
|
19
|
-
setup(e, { expose: x, emit: V }) {
|
|
20
|
-
const a = e, i = V, d = p(null), n = p(!1), D = B(() => a.modelValue ? [a.modelValue] : []);
|
|
21
|
-
let o = !1;
|
|
22
|
-
function C() {
|
|
23
|
-
var l;
|
|
24
|
-
a.disabled || (l = d.value) == null || l.openFileDialog();
|
|
25
|
-
}
|
|
26
|
-
function f() {
|
|
27
|
-
var l;
|
|
28
|
-
o = !0, (l = d.value) == null || l.clearFiles(), o = !1, i("update:modelValue", null), i("change", null), i("clear");
|
|
29
|
-
}
|
|
30
|
-
function F() {
|
|
31
|
-
a.disabled || f();
|
|
32
|
-
}
|
|
33
|
-
function m() {
|
|
34
|
-
!a.disabled && a.drag && (n.value = !0);
|
|
35
|
-
}
|
|
36
|
-
function b() {
|
|
37
|
-
n.value = !1;
|
|
38
|
-
}
|
|
39
|
-
function w(l) {
|
|
40
|
-
if (o) return;
|
|
41
|
-
const s = l[0] ?? null;
|
|
42
|
-
i("update:modelValue", s), i("change", s);
|
|
43
|
-
}
|
|
44
|
-
function z(l) {
|
|
45
|
-
i("invalid", l);
|
|
46
|
-
}
|
|
47
|
-
return x({
|
|
48
|
-
openFileDialog: C,
|
|
49
|
-
clear: f
|
|
50
|
-
}), (l, s) => (c(), u("div", {
|
|
51
|
-
class: g(["qy-file-picker", { "is-disabled": e.disabled, "is-dragover": n.value }])
|
|
52
|
-
}, [
|
|
53
|
-
S(M, {
|
|
54
|
-
ref_key: "uploadRef",
|
|
55
|
-
ref: d,
|
|
56
|
-
variant: "file-list",
|
|
57
|
-
"auto-upload": !1,
|
|
58
|
-
"selected-files": D.value,
|
|
59
|
-
"file-type": e.extensions,
|
|
60
|
-
"file-size": e.maxSizeMb,
|
|
61
|
-
disabled: e.disabled,
|
|
62
|
-
"disable-drag": !e.drag,
|
|
63
|
-
multiple: !1,
|
|
64
|
-
limit: 1,
|
|
65
|
-
"show-text": !1,
|
|
66
|
-
"show-paste-input": !1,
|
|
67
|
-
"onUpdate:selectedFiles": w,
|
|
68
|
-
onInvalid: z
|
|
69
|
-
}, {
|
|
70
|
-
trigger: I(({ open: r }) => {
|
|
71
|
-
var v;
|
|
72
|
-
return [
|
|
73
|
-
h("div", {
|
|
74
|
-
class: g(["qy-file-picker__dropzone", { "is-click-only": !e.drag }]),
|
|
75
|
-
role: "button",
|
|
76
|
-
tabindex: e.disabled ? -1 : 0,
|
|
77
|
-
"aria-disabled": e.disabled ? "true" : void 0,
|
|
78
|
-
onClick: r,
|
|
79
|
-
onKeydown: [
|
|
80
|
-
y(t(r, ["prevent"]), ["enter"]),
|
|
81
|
-
y(t(r, ["prevent"]), ["space"])
|
|
82
|
-
],
|
|
83
|
-
onDragenter: t(m, ["prevent"]),
|
|
84
|
-
onDragover: t(m, ["prevent"]),
|
|
85
|
-
onDragleave: t(b, ["prevent"]),
|
|
86
|
-
onDrop: b
|
|
87
|
-
}, [
|
|
88
|
-
h("span", _, K(((v = e.modelValue) == null ? void 0 : v.name) || e.placeholder), 1),
|
|
89
|
-
e.drag ? (c(), u("span", E, " 点击选择或拖拽单个文件到此处 ")) : k("", !0)
|
|
90
|
-
], 42, U)
|
|
91
|
-
];
|
|
92
|
-
}),
|
|
93
|
-
_: 1
|
|
94
|
-
}, 8, ["selected-files", "file-type", "file-size", "disabled", "disable-drag"]),
|
|
95
|
-
e.modelValue ? (c(), u("button", {
|
|
96
|
-
key: 0,
|
|
97
|
-
class: "qy-file-picker__clear",
|
|
98
|
-
type: "button",
|
|
99
|
-
disabled: e.disabled,
|
|
100
|
-
onClick: t(F, ["stop"])
|
|
101
|
-
}, " 清空 ", 8, P)) : k("", !0)
|
|
102
|
-
], 2));
|
|
103
|
-
}
|
|
104
|
-
}), G = /* @__PURE__ */ N(R, [["__scopeId", "data-v-71a5d74d"]]);
|
|
105
|
-
export {
|
|
106
|
-
G as F
|
|
107
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=["type","disabled","aria-busy","aria-disabled","aria-pressed"],E={key:0,class:"qy-button__icon qy-button__icon--loading","aria-hidden":"true"},S={key:1,class:"qy-button__icon qy-button__icon--prefix","aria-hidden":"true"},T={key:2,class:"qy-button__content"},z={key:3,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},V={key:4,class:"qy-button__icon qy-button__icon--suffix","aria-hidden":"true"},$=e.defineComponent({name:"QyButton",inheritAttrs:!1,__name:"index",props:{type:{},variant:{},size:{default:"md"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},active:{type:Boolean,default:!1},block:{type:Boolean,default:!1},round:{type:Boolean,default:!1},nativeType:{default:"button"},prefixIcon:{},suffixIcon:{},iconOnly:{type:Boolean,default:!1}},emits:["click"],setup(o,{emit:y}){const m=["default","primary","success","warning","danger","text","ghost","link"],b=["sm","md","lg"],v=["button","submit","reset"],n=o,k=y,a=e.useAttrs(),c=e.useSlots(),B=e.computed(()=>{const t=n.variant||n.type||"default";return m.includes(t)?t:"default"}),_=e.computed(()=>b.includes(n.size)?n.size:"md"),g=e.computed(()=>v.includes(n.nativeType)?n.nativeType:"button"),l=e.computed(()=>n.disabled||n.loading),u=e.computed(()=>p(n.prefixIcon)),i=e.computed(()=>p(n.suffixIcon)),r=e.computed(()=>!!(u.value||c.prefix)),d=e.computed(()=>!!(i.value||c.suffix));e.computed(()=>{const t=a["aria-label"],s=a.title;return f(t)||f(s)});const x=e.computed(()=>{const t=a["aria-pressed"];return t??(n.active?"true":void 0)}),h=e.computed(()=>[`qy-button--${B.value}`,`qy-button--${_.value}`,{"is-disabled":n.disabled,"is-loading":n.loading,"is-active":n.active,"is-block":n.block,"is-round":n.round,"is-icon-only":n.iconOnly}]);e.watchEffect(()=>{});function f(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1}function p(t){if(!(!t||typeof t=="string"))return e.markRaw(e.toRaw(t))}function q(t){if(l.value){t.preventDefault();return}k("click",t)}return(t,s)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(e.unref(a),{class:["qy-button",h.value],type:g.value,disabled:l.value,"aria-busy":o.loading?"true":void 0,"aria-disabled":l.value?"true":void 0,"aria-pressed":x.value,onClick:q}),[o.loading?(e.openBlock(),e.createElementBlock("span",E,[...s[0]||(s[0]=[e.createElementVNode("span",{class:"qy-button__spinner"},null,-1)])])):r.value?(e.openBlock(),e.createElementBlock("span",S,[e.renderSlot(t.$slots,"prefix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))],!0)])):e.createCommentVNode("",!0),o.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",T,[e.renderSlot(t.$slots,"default",{},void 0,!0)])),!o.loading&&!o.iconOnly&&d.value?(e.openBlock(),e.createElementBlock("span",z,[e.renderSlot(t.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],!0)])):!o.loading&&o.iconOnly&&!r.value&&d.value?(e.openBlock(),e.createElementBlock("span",V,[e.renderSlot(t.$slots,"suffix",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],!0)])):e.createCommentVNode("",!0)],16,I))}}),D=C._export_sfc($,[["__scopeId","data-v-9a5e3d97"]]);exports.Button=D;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, useAttrs as w, useSlots as D, computed as n, watchEffect as E, markRaw as P, toRaw as V, openBlock as o, createElementBlock as s, mergeProps as A, unref as N, createElementVNode as R, renderSlot as u, createBlock as d, resolveDynamicComponent as f, createCommentVNode as y } from "vue";
|
|
2
|
-
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const Q = ["type", "disabled", "aria-busy", "aria-disabled", "aria-pressed"], j = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "qy-button__icon qy-button__icon--loading",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, F = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "qy-button__icon qy-button__icon--prefix",
|
|
10
|
-
"aria-hidden": "true"
|
|
11
|
-
}, G = {
|
|
12
|
-
key: 2,
|
|
13
|
-
class: "qy-button__content"
|
|
14
|
-
}, H = {
|
|
15
|
-
key: 3,
|
|
16
|
-
class: "qy-button__icon qy-button__icon--suffix",
|
|
17
|
-
"aria-hidden": "true"
|
|
18
|
-
}, J = {
|
|
19
|
-
key: 4,
|
|
20
|
-
class: "qy-button__icon qy-button__icon--suffix",
|
|
21
|
-
"aria-hidden": "true"
|
|
22
|
-
}, K = /* @__PURE__ */ S({
|
|
23
|
-
name: "QyButton",
|
|
24
|
-
inheritAttrs: !1,
|
|
25
|
-
__name: "index",
|
|
26
|
-
props: {
|
|
27
|
-
type: {},
|
|
28
|
-
variant: {},
|
|
29
|
-
size: { default: "md" },
|
|
30
|
-
disabled: { type: Boolean, default: !1 },
|
|
31
|
-
loading: { type: Boolean, default: !1 },
|
|
32
|
-
active: { type: Boolean, default: !1 },
|
|
33
|
-
block: { type: Boolean, default: !1 },
|
|
34
|
-
round: { type: Boolean, default: !1 },
|
|
35
|
-
nativeType: { default: "button" },
|
|
36
|
-
prefixIcon: {},
|
|
37
|
-
suffixIcon: {},
|
|
38
|
-
iconOnly: { type: Boolean, default: !1 }
|
|
39
|
-
},
|
|
40
|
-
emits: ["click"],
|
|
41
|
-
setup(a, { emit: g }) {
|
|
42
|
-
const h = [
|
|
43
|
-
"default",
|
|
44
|
-
"primary",
|
|
45
|
-
"success",
|
|
46
|
-
"warning",
|
|
47
|
-
"danger",
|
|
48
|
-
"text",
|
|
49
|
-
"ghost",
|
|
50
|
-
"link"
|
|
51
|
-
], k = ["sm", "md", "lg"], B = ["button", "submit", "reset"], t = a, q = g, i = w(), p = D(), I = n(() => {
|
|
52
|
-
const e = t.variant || t.type || "default";
|
|
53
|
-
return h.includes(e) ? e : "default";
|
|
54
|
-
}), C = n(
|
|
55
|
-
() => k.includes(t.size) ? t.size : "md"
|
|
56
|
-
), T = n(
|
|
57
|
-
() => B.includes(t.nativeType) ? t.nativeType : "button"
|
|
58
|
-
), r = n(() => t.disabled || t.loading), b = n(() => x(t.prefixIcon)), c = n(() => x(t.suffixIcon)), v = n(() => !!(b.value || p.prefix)), m = n(() => !!(c.value || p.suffix));
|
|
59
|
-
n(() => {
|
|
60
|
-
const e = i["aria-label"], l = i.title;
|
|
61
|
-
return _(e) || _(l);
|
|
62
|
-
});
|
|
63
|
-
const z = n(() => {
|
|
64
|
-
const e = i["aria-pressed"];
|
|
65
|
-
return e ?? (t.active ? "true" : void 0);
|
|
66
|
-
}), $ = n(() => [
|
|
67
|
-
`qy-button--${I.value}`,
|
|
68
|
-
`qy-button--${C.value}`,
|
|
69
|
-
{
|
|
70
|
-
"is-disabled": t.disabled,
|
|
71
|
-
"is-loading": t.loading,
|
|
72
|
-
"is-active": t.active,
|
|
73
|
-
"is-block": t.block,
|
|
74
|
-
"is-round": t.round,
|
|
75
|
-
"is-icon-only": t.iconOnly
|
|
76
|
-
}
|
|
77
|
-
]);
|
|
78
|
-
E(() => {
|
|
79
|
-
});
|
|
80
|
-
function _(e) {
|
|
81
|
-
return typeof e == "string" ? e.trim().length > 0 : e != null && e !== !1;
|
|
82
|
-
}
|
|
83
|
-
function x(e) {
|
|
84
|
-
if (!(!e || typeof e == "string"))
|
|
85
|
-
return P(V(e));
|
|
86
|
-
}
|
|
87
|
-
function O(e) {
|
|
88
|
-
if (r.value) {
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
q("click", e);
|
|
93
|
-
}
|
|
94
|
-
return (e, l) => (o(), s("button", A(N(i), {
|
|
95
|
-
class: ["qy-button", $.value],
|
|
96
|
-
type: T.value,
|
|
97
|
-
disabled: r.value,
|
|
98
|
-
"aria-busy": a.loading ? "true" : void 0,
|
|
99
|
-
"aria-disabled": r.value ? "true" : void 0,
|
|
100
|
-
"aria-pressed": z.value,
|
|
101
|
-
onClick: O
|
|
102
|
-
}), [
|
|
103
|
-
a.loading ? (o(), s("span", j, [...l[0] || (l[0] = [
|
|
104
|
-
R("span", { class: "qy-button__spinner" }, null, -1)
|
|
105
|
-
])])) : v.value ? (o(), s("span", F, [
|
|
106
|
-
u(e.$slots, "prefix", {}, () => [
|
|
107
|
-
(o(), d(f(b.value)))
|
|
108
|
-
], !0)
|
|
109
|
-
])) : y("", !0),
|
|
110
|
-
a.iconOnly ? y("", !0) : (o(), s("span", G, [
|
|
111
|
-
u(e.$slots, "default", {}, void 0, !0)
|
|
112
|
-
])),
|
|
113
|
-
!a.loading && !a.iconOnly && m.value ? (o(), s("span", H, [
|
|
114
|
-
u(e.$slots, "suffix", {}, () => [
|
|
115
|
-
(o(), d(f(c.value)))
|
|
116
|
-
], !0)
|
|
117
|
-
])) : !a.loading && a.iconOnly && !v.value && m.value ? (o(), s("span", J, [
|
|
118
|
-
u(e.$slots, "suffix", {}, () => [
|
|
119
|
-
(o(), d(f(c.value)))
|
|
120
|
-
], !0)
|
|
121
|
-
])) : y("", !0)
|
|
122
|
-
], 16, Q));
|
|
123
|
-
}
|
|
124
|
-
}), W = /* @__PURE__ */ L(K, [["__scopeId", "data-v-9a5e3d97"]]);
|
|
125
|
-
export {
|
|
126
|
-
W as B
|
|
127
|
-
};
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, useAttrs as q, useSlots as B, inject as V, computed as y, markRaw as M, toRaw as F, ref as W, watchEffect as O, openBlock as I, createElementBlock as _, mergeProps as Y, unref as Q, createBlock as A, resolveDynamicComponent as N, createElementVNode as Z, normalizeClass as G, renderSlot as H, normalizeProps as J, guardReactiveProps as U, createCommentVNode as X } from "vue";
|
|
2
|
-
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const R = Symbol("QyIconRegistry"), E = /* @__PURE__ */ new WeakMap();
|
|
4
|
-
function C(e) {
|
|
5
|
-
const r = [], o = /* @__PURE__ */ new Map();
|
|
6
|
-
for (const s of (e == null ? void 0 : e.icons) ?? []) {
|
|
7
|
-
const n = w(s == null ? void 0 : s.name);
|
|
8
|
-
if (!n)
|
|
9
|
-
throw new Error("QyIcon definition name must not be empty.");
|
|
10
|
-
const a = b(n);
|
|
11
|
-
if (o.has(a))
|
|
12
|
-
throw new Error(`Duplicate icon name "${n}".`);
|
|
13
|
-
const i = re(s, n);
|
|
14
|
-
r.push(i), o.set(a, i);
|
|
15
|
-
}
|
|
16
|
-
const c = [], f = /* @__PURE__ */ new Map();
|
|
17
|
-
for (const s of x(e == null ? void 0 : e.aliases)) {
|
|
18
|
-
const n = w(s.name), a = w(s.target), i = b(n), v = b(a);
|
|
19
|
-
if (!n)
|
|
20
|
-
throw new Error("QyIcon alias name must not be empty.");
|
|
21
|
-
if (!a)
|
|
22
|
-
throw new Error(`QyIcon alias "${n}" target must not be empty.`);
|
|
23
|
-
if (o.has(i))
|
|
24
|
-
throw new Error(`Icon alias "${n}" conflicts with a canonical icon name.`);
|
|
25
|
-
if (f.has(i))
|
|
26
|
-
throw new Error(`Duplicate icon alias "${n}".`);
|
|
27
|
-
const p = o.get(v);
|
|
28
|
-
if (!p)
|
|
29
|
-
throw new Error(`Icon alias "${n}" target "${a}" not found.`);
|
|
30
|
-
f.set(i, b(p.name)), c.push(Object.freeze({ name: n, target: p.name }));
|
|
31
|
-
}
|
|
32
|
-
let l = Object.freeze({
|
|
33
|
-
definitions: Object.freeze(r),
|
|
34
|
-
aliases: Object.freeze(c),
|
|
35
|
-
byName: o,
|
|
36
|
-
aliasTargets: f
|
|
37
|
-
}), m, u = !1;
|
|
38
|
-
const d = () => {
|
|
39
|
-
if (!e.loader) return m ?? (m = Promise.resolve());
|
|
40
|
-
u = !1;
|
|
41
|
-
let s;
|
|
42
|
-
try {
|
|
43
|
-
s = e.loader();
|
|
44
|
-
} catch (n) {
|
|
45
|
-
s = Promise.reject(n);
|
|
46
|
-
}
|
|
47
|
-
return m = Promise.resolve(s).then((n) => {
|
|
48
|
-
let a;
|
|
49
|
-
try {
|
|
50
|
-
a = C({
|
|
51
|
-
icons: [...l.definitions, ...n.icons],
|
|
52
|
-
aliases: [...l.aliases, ...x(n.aliases)]
|
|
53
|
-
});
|
|
54
|
-
} catch (i) {
|
|
55
|
-
const v = i instanceof Error ? i.message : String(i);
|
|
56
|
-
throw new Error(`Icon registry load conflict: ${v}`);
|
|
57
|
-
}
|
|
58
|
-
l = E.get(a), E.set(h, l);
|
|
59
|
-
}).catch((n) => {
|
|
60
|
-
throw u = !0, n;
|
|
61
|
-
}), m;
|
|
62
|
-
}, h = Object.freeze({
|
|
63
|
-
resolve(s) {
|
|
64
|
-
const n = b(w(s)), a = l.aliasTargets.get(n) ?? n, i = l.byName.get(a);
|
|
65
|
-
return i ? P(i) : void 0;
|
|
66
|
-
},
|
|
67
|
-
has(s) {
|
|
68
|
-
const n = b(w(s));
|
|
69
|
-
return l.byName.has(l.aliasTargets.get(n) ?? n);
|
|
70
|
-
},
|
|
71
|
-
list() {
|
|
72
|
-
return Object.freeze(l.definitions.map(P));
|
|
73
|
-
},
|
|
74
|
-
load() {
|
|
75
|
-
return m ?? d();
|
|
76
|
-
},
|
|
77
|
-
retry() {
|
|
78
|
-
return u ? d() : Promise.reject(new Error("QyIcon registry retry is only available after a failed load."));
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
return E.set(h, l), h;
|
|
82
|
-
}
|
|
83
|
-
function ue(...e) {
|
|
84
|
-
const r = [], o = [];
|
|
85
|
-
for (const c of e) {
|
|
86
|
-
const f = E.get(c);
|
|
87
|
-
if (!f)
|
|
88
|
-
throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");
|
|
89
|
-
r.push(...f.definitions), o.push(...f.aliases);
|
|
90
|
-
}
|
|
91
|
-
try {
|
|
92
|
-
return C({ icons: r, aliases: o });
|
|
93
|
-
} catch (c) {
|
|
94
|
-
const f = c instanceof Error ? c.message : String(c);
|
|
95
|
-
throw new Error(`Icon registry merge conflict: ${f}`);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
function fe(e) {
|
|
99
|
-
if (!E.has(e))
|
|
100
|
-
throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");
|
|
101
|
-
return Object.freeze({
|
|
102
|
-
install(r) {
|
|
103
|
-
r.provide(R, e);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function w(e) {
|
|
108
|
-
const r = typeof e == "string" || typeof e == "number" ? String(e).trim() : "";
|
|
109
|
-
if (!r) return "";
|
|
110
|
-
const o = /^#icon-(.+)$/i.exec(r);
|
|
111
|
-
if (o) return o[1].trim();
|
|
112
|
-
const c = /^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(r);
|
|
113
|
-
return c ? `iconify:${c[1]}:${c[2]}` : r;
|
|
114
|
-
}
|
|
115
|
-
function b(e) {
|
|
116
|
-
return e.toLocaleLowerCase();
|
|
117
|
-
}
|
|
118
|
-
function x(e) {
|
|
119
|
-
return e ? Array.isArray(e) ? [...e] : Object.entries(e).map(([r, o]) => ({ name: r, target: o })) : [];
|
|
120
|
-
}
|
|
121
|
-
function re(e, r) {
|
|
122
|
-
const o = {
|
|
123
|
-
...e.label === void 0 ? {} : { label: te(e.label, r) },
|
|
124
|
-
...e.keywords === void 0 ? {} : { keywords: oe(e.keywords, r) }
|
|
125
|
-
};
|
|
126
|
-
switch (e.source) {
|
|
127
|
-
case "symbol":
|
|
128
|
-
return z({
|
|
129
|
-
name: r,
|
|
130
|
-
source: "symbol",
|
|
131
|
-
value: k("symbol", e.value, r),
|
|
132
|
-
...o
|
|
133
|
-
});
|
|
134
|
-
case "component":
|
|
135
|
-
return z({
|
|
136
|
-
name: r,
|
|
137
|
-
source: "component",
|
|
138
|
-
value: k("component", e.value, r),
|
|
139
|
-
...o
|
|
140
|
-
});
|
|
141
|
-
case "class":
|
|
142
|
-
return z({
|
|
143
|
-
name: r,
|
|
144
|
-
source: "class",
|
|
145
|
-
value: k("class", e.value, r),
|
|
146
|
-
...o
|
|
147
|
-
});
|
|
148
|
-
default:
|
|
149
|
-
throw new Error(`QyIcon definition "${r}" has unsupported source "${String(e.source)}".`);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function k(e, r, o) {
|
|
153
|
-
if (e === "symbol") {
|
|
154
|
-
if (typeof r != "string" || !/^#[^\s#]+$/.test(r))
|
|
155
|
-
throw new Error(`QyIcon symbol "${o}" must be a same-document #fragment.`);
|
|
156
|
-
return r;
|
|
157
|
-
}
|
|
158
|
-
if (e === "component") {
|
|
159
|
-
if (typeof r != "object" && typeof r != "function" || r === null)
|
|
160
|
-
throw new Error(`QyIcon component "${o}" must be a Vue component.`);
|
|
161
|
-
return r;
|
|
162
|
-
}
|
|
163
|
-
if (e !== "class")
|
|
164
|
-
throw new Error(`QyIcon definition "${o}" has unsupported source "${String(e)}".`);
|
|
165
|
-
if (typeof r != "string" || !r.trim() || !/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(r.trim()))
|
|
166
|
-
throw new Error(`QyIcon class "${o}" must be a trusted static class string.`);
|
|
167
|
-
return r.trim();
|
|
168
|
-
}
|
|
169
|
-
function te(e, r) {
|
|
170
|
-
if (typeof e != "string")
|
|
171
|
-
throw new Error(`QyIcon label "${r}" must be a string.`);
|
|
172
|
-
return e;
|
|
173
|
-
}
|
|
174
|
-
function oe(e, r) {
|
|
175
|
-
if (!Array.isArray(e) || e.some((o) => typeof o != "string"))
|
|
176
|
-
throw new Error(`QyIcon keywords "${r}" must be strings.`);
|
|
177
|
-
return Object.freeze([...e]);
|
|
178
|
-
}
|
|
179
|
-
function z(e) {
|
|
180
|
-
return e.keywords && !Object.isFrozen(e.keywords) && (e = { ...e, keywords: Object.freeze([...e.keywords]) }), Object.freeze(e);
|
|
181
|
-
}
|
|
182
|
-
function P(e) {
|
|
183
|
-
return z({
|
|
184
|
-
...e,
|
|
185
|
-
...e.keywords ? { keywords: [...e.keywords] } : {}
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
const ne = ["role", "aria-label", "aria-hidden", "data-qy-icon-missing"], se = {
|
|
189
|
-
key: 1,
|
|
190
|
-
"aria-hidden": "true",
|
|
191
|
-
focusable: "false"
|
|
192
|
-
}, ae = ["href", "xlink:href"], ie = /* @__PURE__ */ D({
|
|
193
|
-
name: "QyIcon",
|
|
194
|
-
inheritAttrs: !1,
|
|
195
|
-
__name: "index",
|
|
196
|
-
props: {
|
|
197
|
-
name: {},
|
|
198
|
-
icon: {},
|
|
199
|
-
size: { default: "1em" },
|
|
200
|
-
color: { default: "currentColor" },
|
|
201
|
-
spin: { type: Boolean, default: !1 },
|
|
202
|
-
label: {}
|
|
203
|
-
},
|
|
204
|
-
setup(e) {
|
|
205
|
-
const r = e, o = q(), c = B(), f = V(R, null), l = y(
|
|
206
|
-
() => r.icon ? M(F(r.icon)) : void 0
|
|
207
|
-
), m = y(
|
|
208
|
-
() => r.name === void 0 || r.name === null ? "" : w(r.name)
|
|
209
|
-
), u = y(() => {
|
|
210
|
-
if (!(r.icon || !f || !m.value))
|
|
211
|
-
return f.resolve(m.value);
|
|
212
|
-
}), d = W(null), h = y(() => !!(!r.icon && m.value && !u.value)), s = y(() => {
|
|
213
|
-
const t = typeof r.label == "string" ? r.label.trim() : "";
|
|
214
|
-
if (t) return t;
|
|
215
|
-
const g = o["aria-label"];
|
|
216
|
-
return L(g) ? String(g) : "";
|
|
217
|
-
}), n = y(() => s.value ? "img" : o.role), a = y(() => K(r.size)), i = y(() => ({
|
|
218
|
-
width: a.value,
|
|
219
|
-
height: a.value,
|
|
220
|
-
fontSize: a.value,
|
|
221
|
-
color: r.color || "currentColor"
|
|
222
|
-
})), v = y(() => {
|
|
223
|
-
const t = {};
|
|
224
|
-
for (const [g, $] of Object.entries(o))
|
|
225
|
-
T(g) && (t[g] = $);
|
|
226
|
-
return t;
|
|
227
|
-
}), p = y(() => Object.freeze({ name: m.value }));
|
|
228
|
-
O(() => {
|
|
229
|
-
const t = u.value;
|
|
230
|
-
d.value && (t == null ? void 0 : t.source) === "symbol" && (d.value.setAttributeNS(
|
|
231
|
-
"http://www.w3.org/1999/xlink",
|
|
232
|
-
"xlink:href",
|
|
233
|
-
t.value
|
|
234
|
-
), d.value.setAttribute("xlink:href", t.value));
|
|
235
|
-
}), O(() => {
|
|
236
|
-
});
|
|
237
|
-
function K(t) {
|
|
238
|
-
return typeof t == "number" ? Number.isFinite(t) && t > 0 ? `${t}px` : "1em" : t.trim() || "1em";
|
|
239
|
-
}
|
|
240
|
-
function L(t) {
|
|
241
|
-
return typeof t == "string" ? t.trim().length > 0 : t != null && t !== !1;
|
|
242
|
-
}
|
|
243
|
-
function T(t) {
|
|
244
|
-
return t !== "class" && t !== "style" && t !== "role" && t !== "aria-label" && t !== "aria-hidden" && t !== "data-qy-icon-missing" && (t === "id" || t === "title" || t.startsWith("data-") || t.startsWith("aria-"));
|
|
245
|
-
}
|
|
246
|
-
return (t, g) => {
|
|
247
|
-
var $, S, j;
|
|
248
|
-
return I(), _("span", Y(v.value, {
|
|
249
|
-
class: ["qy-icon", [Q(o).class, { "is-spin": r.spin }]],
|
|
250
|
-
style: [Q(o).style, i.value],
|
|
251
|
-
role: n.value,
|
|
252
|
-
"aria-label": s.value || void 0,
|
|
253
|
-
"aria-hidden": s.value ? void 0 : "true",
|
|
254
|
-
"data-qy-icon-missing": h.value ? m.value : void 0
|
|
255
|
-
}), [
|
|
256
|
-
l.value ? (I(), A(N(l.value), {
|
|
257
|
-
key: 0,
|
|
258
|
-
"aria-hidden": "true"
|
|
259
|
-
})) : (($ = u.value) == null ? void 0 : $.source) === "symbol" ? (I(), _("svg", se, [
|
|
260
|
-
Z("use", {
|
|
261
|
-
ref_key: "symbolElement",
|
|
262
|
-
ref: d,
|
|
263
|
-
href: u.value.value,
|
|
264
|
-
"xlink:href": u.value.value
|
|
265
|
-
}, null, 8, ae)
|
|
266
|
-
])) : ((S = u.value) == null ? void 0 : S.source) === "component" ? (I(), A(N(u.value.value), {
|
|
267
|
-
key: 2,
|
|
268
|
-
"aria-hidden": "true"
|
|
269
|
-
})) : ((j = u.value) == null ? void 0 : j.source) === "class" ? (I(), _("span", {
|
|
270
|
-
key: 3,
|
|
271
|
-
class: G(["qy-icon__class", u.value.value]),
|
|
272
|
-
"aria-hidden": "true"
|
|
273
|
-
}, null, 2)) : h.value && Q(c).fallback ? H(t.$slots, "fallback", J(U(p.value)), void 0, !0, 4) : X("", !0)
|
|
274
|
-
], 16, ne);
|
|
275
|
-
};
|
|
276
|
-
}
|
|
277
|
-
}), me = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-e4e9c6ae"]]);
|
|
278
|
-
export {
|
|
279
|
-
me as I,
|
|
280
|
-
R as Q,
|
|
281
|
-
C as a,
|
|
282
|
-
fe as c,
|
|
283
|
-
ue as m,
|
|
284
|
-
w as n
|
|
285
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, useAttrs as r, computed as m, openBlock as f, createBlock as v, unref as b, mergeProps as h } from "vue";
|
|
2
|
-
import { ElSwitch as x } from "element-plus";
|
|
3
|
-
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const V = /* @__PURE__ */ s({
|
|
5
|
-
name: "QySwitch",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [Boolean, String, Number], default: !1 },
|
|
10
|
-
activeValue: { type: [Boolean, String, Number], default: !0 },
|
|
11
|
-
inactiveValue: { type: [Boolean, String, Number], default: !1 },
|
|
12
|
-
disabled: { type: Boolean, default: !1 },
|
|
13
|
-
loading: { type: Boolean, default: !1 },
|
|
14
|
-
size: {},
|
|
15
|
-
activeText: { default: "" },
|
|
16
|
-
inactiveText: { default: "" },
|
|
17
|
-
inlinePrompt: { type: Boolean, default: !1 },
|
|
18
|
-
name: { default: "" },
|
|
19
|
-
id: {},
|
|
20
|
-
tabindex: {},
|
|
21
|
-
ariaLabel: {}
|
|
22
|
-
},
|
|
23
|
-
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
24
|
-
setup(e, { emit: i }) {
|
|
25
|
-
const t = i, l = r(), n = m(
|
|
26
|
-
() => Object.fromEntries(
|
|
27
|
-
Object.entries(l).filter(
|
|
28
|
-
([a]) => a === "class" || a === "style" || a === "role" || a === "title" || a.startsWith("data-") || a.startsWith("aria-")
|
|
29
|
-
)
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
function d(a) {
|
|
33
|
-
t("focus", a);
|
|
34
|
-
}
|
|
35
|
-
function u(a) {
|
|
36
|
-
t("blur", a);
|
|
37
|
-
}
|
|
38
|
-
function o(a) {
|
|
39
|
-
e.disabled || e.loading || t("update:modelValue", a);
|
|
40
|
-
}
|
|
41
|
-
function c(a) {
|
|
42
|
-
e.disabled || e.loading || t("change", a);
|
|
43
|
-
}
|
|
44
|
-
return (a, B) => (f(), v(b(x), h(n.value, {
|
|
45
|
-
class: "qy-switch",
|
|
46
|
-
"model-value": e.modelValue,
|
|
47
|
-
"active-value": e.activeValue,
|
|
48
|
-
"inactive-value": e.inactiveValue,
|
|
49
|
-
disabled: e.disabled,
|
|
50
|
-
loading: e.loading,
|
|
51
|
-
size: e.size,
|
|
52
|
-
"active-text": e.activeText,
|
|
53
|
-
"inactive-text": e.inactiveText,
|
|
54
|
-
"inline-prompt": e.inlinePrompt,
|
|
55
|
-
name: e.name,
|
|
56
|
-
id: e.id,
|
|
57
|
-
tabindex: e.tabindex,
|
|
58
|
-
"aria-label": e.ariaLabel,
|
|
59
|
-
"onUpdate:modelValue": o,
|
|
60
|
-
onChange: c,
|
|
61
|
-
onFocusin: d,
|
|
62
|
-
onFocusout: u
|
|
63
|
-
}), null, 16, ["model-value", "active-value", "inactive-value", "disabled", "loading", "size", "active-text", "inactive-text", "inline-prompt", "name", "id", "tabindex", "aria-label"]));
|
|
64
|
-
}
|
|
65
|
-
}), z = /* @__PURE__ */ g(V, [["__scopeId", "data-v-35d68835"]]);
|
|
66
|
-
export {
|
|
67
|
-
z as S
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("element-plus"),v=require("@element-plus/icons-vue"),s=require("./utils-BjEXwY3L.cjs"),E=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),S={class:"qy-image__state qy-image__state--error"},V={class:"qy-image__state qy-image__state--empty"},k=e.defineComponent({name:"QyImage",__name:"index",props:{src:{default:""},width:{},height:{},size:{default:64},fit:{default:"cover"},placeholder:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},compressor:{type:[Boolean,Object],default:!0},preview:{type:Boolean,default:!1},previewList:{default:()=>[]},initialIndex:{default:0}},emits:["load","error","fallback","preview"],setup(n,{emit:h}){const t=n,i=h,l=e.ref(!1),o=e.ref("");let c=0;const u=e.computed(()=>s.normalizeImageSrc(t.src)),m=e.computed(()=>({width:t.width??t.size,height:t.height??t.size})),y=e.computed(()=>({width:f(m.value.width),height:f(m.value.height)})),g=e.computed(()=>t.placeholder||l.value),p=e.computed(()=>t.preview&&!!u.value),w=e.computed(()=>(t.previewList.length?t.previewList:[t.src]).map(a=>s.normalizeImageSrc(a)).filter(Boolean));e.watch(()=>[t.src,t.compressor],_,{immediate:!0,deep:!0});async function _(){const r=++c;if(o.value="",l.value=!1,!!t.src)try{const a=await s.resolveQyImageDisplaySrc(t.src,{compressor:t.compressor});if(r!==c)return;o.value=a.src,a.source==="fallback"&&i("fallback",a.src)}catch{if(r!==c)return;l.value=!1,o.value=u.value}}function z(r){i("load",r)}function I(r){l.value=!0,i("error",r)}function q(){p.value&&(s.openQyImagePreview({urlList:w.value,initialIndex:t.initialIndex}),i("preview",u.value))}function f(r){return typeof r=="number"?`${r}px`:r}return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-image",{"qy-image--previewable":p.value}]),style:e.normalizeStyle(y.value),onClick:q},[o.value&&!l.value?(e.openBlock(),e.createBlock(e.unref(d.ElImage),{key:0,class:"qy-image__inner",src:o.value,fit:n.fit,lazy:n.lazy,onLoad:z,onError:I},{placeholder:e.withCtx(()=>[e.renderSlot(r.$slots,"placeholder",{},()=>[a[0]||(a[0]=e.createElementVNode("div",{class:"qy-image__state"},[e.createElementVNode("span",{class:"qy-image__loading"})],-1))],!0)]),error:e.withCtx(()=>[e.renderSlot(r.$slots,"error",{},()=>[e.createElementVNode("div",S,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0)]),_:3},8,["src","fit","lazy"])):g.value?e.renderSlot(r.$slots,"empty",{},()=>[e.createElementVNode("div",V,[e.createVNode(e.unref(d.ElIcon),{size:20},{default:e.withCtx(()=>[e.createVNode(e.unref(v.PictureFilled))]),_:1})])],!0,1):e.createCommentVNode("",!0)],6))}}),x=E._export_sfc(k,[["__scopeId","data-v-02c4930c"]]);exports.Image=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("vue"),g=require("element-plus"),y=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=a.defineComponent({name:"QyRadio",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number]},value:{type:[Boolean,String,Number],default:!0},label:{},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{},border:{type:Boolean,default:!1},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(s,{emit:c}){const t=s,o=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),l=a.computed(()=>t.value),u=a.ref(null);let r=null;const b=a.computed(()=>t.modelValue!==void 0?t.modelValue:l.value===!0?!1:l.value===!1?!0:typeof l.value=="string"?`__qy-radio-unselected__${l.value}`:Number.NaN);a.onMounted(()=>{var e;r=((e=u.value)==null?void 0:e.$el.querySelector("input.el-radio__original"))??null,r==null||r.addEventListener("keydown",d)}),a.onBeforeUnmount(()=>{r==null||r.removeEventListener("keydown",d)});function i(){return!t.disabled&&t.modelValue!==l.value}function p(){i()&&o("update:modelValue",l.value)}function v(){i()&&o("change",l.value)}function d(e){if(e.key!==" "&&e.code!=="Space")return;const n=e.target;!n||n.tagName!=="INPUT"||n.type!=="radio"||n.disabled||n.checked||(e.preventDefault(),n.click())}function _(e){o("focus",e)}function h(e){o("blur",e)}return(e,n)=>(a.openBlock(),a.createBlock(a.unref(g.ElRadio),a.mergeProps({ref_key:"radioRef",ref:u},m.value,{class:"qy-radio","model-value":b.value,value:l.value,label:t.label,disabled:t.disabled,size:t.size,name:t.name,border:t.border,id:t.id,tabindex:t.tabindex,"aria-label":t.ariaLabel,"aria-controls":t.ariaControls,"onUpdate:modelValue":p,onChange:v,onFocusCapture:_,onBlurCapture:h}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[a.createTextVNode(a.toDisplayString(t.label),1)],!0)]),_:3},16,["model-value","value","label","disabled","size","name","border","id","tabindex","aria-label","aria-controls"]))}}),x=y._export_sfc(V,[["__scopeId","data-v-b75376cc"]]);exports.Radio=x;
|