@qynpm/ui 1.0.37 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -113
- package/dist/index.cjs +19 -18
- package/dist/index.mjs +21 -20
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +2 -1
- package/dist/qy-dialog/index.mjs +5 -2
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +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 +2 -2
- package/dist/qy-input-number/index.mjs +3 -3
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +4 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +4 -4
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +4 -4
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/index--I-pLtO3.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
- package/dist/shared/index-0mok5nS2.cjs +1 -0
- package/dist/shared/index-2xIkj7uz.cjs +1 -0
- package/dist/shared/index-4uXwnK7G.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
- package/dist/shared/index-B-PlDm1A.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
- package/dist/shared/index-B0aY8Q_T.cjs +1 -0
- package/dist/shared/index-B1-htEYJ.mjs +100 -0
- package/dist/shared/index-B1ZuGEIr.cjs +1 -0
- package/dist/shared/index-B3wIgwN7.cjs +1 -0
- package/dist/shared/index-B71cpH4T.cjs +1 -0
- package/dist/shared/index-B8S5RT2Z.mjs +206 -0
- package/dist/shared/index-B8znc-qD.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
- package/dist/shared/index-BCfULlZK.cjs +1 -0
- package/dist/shared/{index-BF6f9QDU.mjs → index-BE4CELs-.mjs} +1 -1
- package/dist/shared/index-BFFnf0Bn.cjs +1 -0
- package/dist/shared/index-BIWER6Wa.cjs +1 -0
- package/dist/shared/index-BM3ueCK9.cjs +1 -0
- package/dist/shared/index-BOLL0aGP.mjs +47 -0
- package/dist/shared/index-BWO4qxne.mjs +395 -0
- package/dist/shared/index-Ba3qQVYM.cjs +1 -0
- package/dist/shared/index-Ba5CLmrh.mjs +157 -0
- package/dist/shared/index-BcPpl_OJ.mjs +892 -0
- package/dist/shared/index-Bg_o9zrB.cjs +1 -0
- package/dist/shared/index-Bguu2ys0.cjs +1 -0
- package/dist/shared/index-BhO1ARf9.cjs +1 -0
- package/dist/shared/index-BiCdxX0E.mjs +63 -0
- package/dist/shared/index-BigCKPUY.mjs +153 -0
- package/dist/shared/index-BmWDUjpi.mjs +73 -0
- package/dist/shared/index-BoGA3Pdv.cjs +1 -0
- package/dist/shared/index-Brxx2EqN.mjs +156 -0
- package/dist/shared/{index-BQEymEbE.cjs → index-BsRfuMop.cjs} +1 -1
- package/dist/shared/index-BsTSa25A.cjs +1 -0
- package/dist/shared/index-Btwke2ql.cjs +1 -0
- package/dist/shared/index-BxQnJVT8.cjs +1 -0
- package/dist/shared/index-Bx_faI_u.mjs +53 -0
- package/dist/shared/index-C7GXprxF.cjs +1 -0
- package/dist/shared/index-C97qoSgI.cjs +1 -0
- package/dist/shared/index-CCqfQb_M.mjs +82 -0
- package/dist/shared/index-CDGjUhaC.mjs +72 -0
- package/dist/shared/index-CF3vimnX.mjs +73 -0
- package/dist/shared/index-CJxpEc9q.cjs +1 -0
- package/dist/shared/index-COpowa-E.mjs +48 -0
- package/dist/shared/index-CRU4YvLz.cjs +1 -0
- package/dist/shared/index-CSMOYD1R.cjs +1 -0
- package/dist/shared/index-CWB5fAb7.mjs +154 -0
- package/dist/shared/index-CXAVVShG.mjs +278 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
- package/dist/shared/index-CeasMt4r.mjs +63 -0
- package/dist/shared/index-CftZiihF.mjs +525 -0
- package/dist/shared/index-ChEefC0G.cjs +1 -0
- package/dist/shared/index-CioDI8Ys.cjs +1 -0
- package/dist/shared/index-CjKfmMG4.cjs +1 -0
- package/dist/shared/index-CnIZoCkL.mjs +77 -0
- package/dist/shared/index-CndG7UWF.mjs +138 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
- package/dist/shared/index-CrwhANF5.mjs +78 -0
- package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
- package/dist/shared/index-CutbNRjY.mjs +198 -0
- package/dist/shared/index-CyJHJCj8.cjs +1 -0
- package/dist/shared/index-CypWMqI4.cjs +1 -0
- package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
- package/dist/shared/index-CzyB5ttX.cjs +1 -0
- package/dist/shared/index-D1cbnYac.mjs +446 -0
- package/dist/shared/index-D8-4wR07.mjs +130 -0
- package/dist/shared/index-D9dQaZtu.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
- package/dist/shared/index-DEosiUQV.mjs +245 -0
- package/dist/shared/index-DFTSBy3g.mjs +206 -0
- package/dist/shared/index-DFnpyAa1.mjs +69 -0
- package/dist/shared/index-DI5COVol.cjs +1 -0
- package/dist/shared/index-DNMOtH4s.mjs +36 -0
- package/dist/shared/index-DQn_5j_f.cjs +1 -0
- package/dist/shared/index-DRICnDix.mjs +295 -0
- package/dist/shared/index-DS539-rn.mjs +87 -0
- package/dist/shared/index-DTOfhAXP.mjs +74 -0
- package/dist/shared/index-DULBwiHC.mjs +234 -0
- package/dist/shared/index-DVPk0jMO.cjs +1 -0
- package/dist/shared/index-DWrymMO5.cjs +1 -0
- package/dist/shared/index-DYYPqv3Y.cjs +1 -0
- package/dist/shared/index-DZzMTGSJ.cjs +1 -0
- package/dist/shared/index-D_l30Gzr.cjs +1 -0
- package/dist/shared/index-Db7PhnjA.cjs +1 -0
- package/dist/shared/index-DdoFHdjY.mjs +307 -0
- package/dist/shared/index-DeBjILEK.cjs +1 -0
- package/dist/shared/index-DePXY0TI.cjs +1 -0
- package/dist/shared/index-DgPQ8292.cjs +1 -0
- package/dist/shared/index-Di3R0FOU.cjs +1 -0
- package/dist/shared/index-DiNSSXC8.mjs +76 -0
- package/dist/shared/index-DmEwKHe4.cjs +1 -0
- package/dist/shared/index-DnFQkBfl.cjs +1 -0
- package/dist/shared/index-DnexuGuJ.cjs +1 -0
- package/dist/shared/index-DniPcZnL.mjs +52 -0
- package/dist/shared/index-DpitpmqK.mjs +205 -0
- package/dist/shared/index-DtXU2qQS.cjs +1 -0
- package/dist/shared/index-Du-FNseo.cjs +1 -0
- package/dist/shared/index-DwHzztSj.cjs +1 -0
- package/dist/shared/index-DxFfP2Fn.cjs +1 -0
- package/dist/shared/index-DyqFfMhy.mjs +365 -0
- package/dist/shared/index-Hn-IGtqe.cjs +1 -0
- package/dist/shared/index-Nx_w1JYm.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
- package/dist/shared/index-R6vvV3td.cjs +1 -0
- package/dist/shared/index-TMhQv4oD.mjs +104 -0
- package/dist/shared/index-VtJrvPka.mjs +27 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
- package/dist/shared/index-YWKumDEW.mjs +61 -0
- package/dist/shared/index-_AB6uqZw.mjs +51 -0
- package/dist/shared/index-bvvNTmuM.mjs +105 -0
- package/dist/shared/index-fVS62tLm.mjs +81 -0
- package/dist/shared/index-gOUVgYd_.cjs +1 -0
- package/dist/shared/index-gU6HjdHv.mjs +311 -0
- package/dist/shared/index-hPaHbb1Y.cjs +1 -0
- package/dist/shared/index-i0G6DcP0.cjs +1 -0
- package/dist/shared/index-jP71VQxo.cjs +1 -0
- package/dist/shared/index-jdGrSpGg.mjs +2657 -0
- package/dist/shared/index-jsEFCWaY.mjs +175 -0
- package/dist/shared/index-lsWZ_M5R.mjs +369 -0
- package/dist/shared/index-mKnRWsLn.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
- package/dist/shared/index-xdsYNS2u.mjs +53 -0
- package/dist/shared/index-xhROPBam.mjs +129 -0
- package/index.d.ts +113 -113
- package/package.json +490 -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-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-3KGa3jVi.mjs +0 -2754
- package/dist/shared/index-4SkLDBra.mjs +0 -377
- package/dist/shared/index-B1b3BksF.mjs +0 -72
- package/dist/shared/index-BPaVDCe6.cjs +0 -1
- package/dist/shared/index-BTbiht5h.cjs +0 -1
- package/dist/shared/index-BYX0biqw.mjs +0 -766
- package/dist/shared/index-BdTlpKtr.cjs +0 -1
- package/dist/shared/index-Bli6Gx5d.cjs +0 -1
- package/dist/shared/index-BuUtJrIy.mjs +0 -119
- package/dist/shared/index-Bvot0uXo.cjs +0 -1
- package/dist/shared/index-BxxwEr52.mjs +0 -107
- package/dist/shared/index-C1i-hd-W.cjs +0 -1
- package/dist/shared/index-C7lRQtzs.cjs +0 -1
- package/dist/shared/index-CdnHMuo3.mjs +0 -149
- package/dist/shared/index-Crr3HB8g.mjs +0 -222
- package/dist/shared/index-CwY_jv_I.cjs +0 -1
- package/dist/shared/index-D5S48q1B.mjs +0 -162
- package/dist/shared/index-D8E_xu0N.mjs +0 -54
- package/dist/shared/index-D8kce2jH.cjs +0 -1
- package/dist/shared/index-DCzxcvkn.cjs +0 -1
- package/dist/shared/index-DK0hjfWr.mjs +0 -90
- package/dist/shared/index-DZRFSGxO.mjs +0 -225
- package/dist/shared/index-Dc6gLgAz.cjs +0 -1
- package/dist/shared/index-DcohgM8A.mjs +0 -68
- package/dist/shared/index-Di4bIOiB.cjs +0 -1
- package/dist/shared/index-Di_xbC7d.cjs +0 -1
- package/dist/shared/index-DlGwHshu.cjs +0 -1
- package/dist/shared/index-Dm8kY2v6.mjs +0 -285
- package/dist/shared/index-DnHfk7NM.cjs +0 -1
- package/dist/shared/index-DnNIseRJ.cjs +0 -1
- package/dist/shared/index-Dr-Q5krU.mjs +0 -71
- package/dist/shared/index-Dwf-JfXM.mjs +0 -293
- package/dist/shared/index-JjHutKmT.mjs +0 -142
- package/dist/shared/index-Od6HC8Un.mjs +0 -127
- package/dist/shared/index-nSFTxVz8.cjs +0 -1
- package/dist/shared/index-nos4Y-fm.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-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-CAW_QOyJ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Dr9Elmzn.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-b0y8p1p1.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import { ref as S, computed as d, watch as Y, onBeforeUnmount as V, defineComponent as A, useSlots as G, inject as K, toRef as P, openBlock as _, createBlock as I, unref as F, withCtx as M, renderSlot as $, createTextVNode as H, toDisplayString as J } from "vue";
|
|
2
|
-
import { B as O } from "./index-Od6HC8Un.mjs";
|
|
3
|
-
import { Q as X, I as Z } from "./index-Dm8kY2v6.mjs";
|
|
4
|
-
import { useFullscreen as W, useEventListener as D } from "@vueuse/core";
|
|
5
|
-
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
|
-
const te = ["fullscreenchange", "webkitfullscreenchange"], le = [
|
|
7
|
-
"requestFullscreen",
|
|
8
|
-
"webkitRequestFullscreen",
|
|
9
|
-
"webkitEnterFullscreen",
|
|
10
|
-
"webkitEnterFullScreen",
|
|
11
|
-
"webkitRequestFullScreen",
|
|
12
|
-
"mozRequestFullScreen",
|
|
13
|
-
"msRequestFullscreen"
|
|
14
|
-
], ne = [
|
|
15
|
-
"exitFullscreen",
|
|
16
|
-
"webkitExitFullscreen",
|
|
17
|
-
"webkitExitFullScreen",
|
|
18
|
-
"webkitCancelFullScreen",
|
|
19
|
-
"mozCancelFullScreen",
|
|
20
|
-
"msExitFullscreen"
|
|
21
|
-
];
|
|
22
|
-
function re(e, l, o) {
|
|
23
|
-
const s = j(), a = S(null), i = S(!1), p = S(!1);
|
|
24
|
-
let r = null, c = !1;
|
|
25
|
-
const b = d(() => C(e.value)), g = d(
|
|
26
|
-
() => (a.value || b.value) ?? void 0
|
|
27
|
-
), x = W(g), w = S(!1);
|
|
28
|
-
function h() {
|
|
29
|
-
w.value = B(a.value || b.value);
|
|
30
|
-
}
|
|
31
|
-
function v() {
|
|
32
|
-
if (c) return;
|
|
33
|
-
const t = z(s), n = a.value || b.value, f = !!(t && t === n);
|
|
34
|
-
f ? a.value = t : (!t || t !== a.value) && (a.value = null), h(), f !== i.value && (i.value = f, o.onChange(f));
|
|
35
|
-
}
|
|
36
|
-
D(s, te, v), Y(e, v, { flush: "post" }), v();
|
|
37
|
-
function E() {
|
|
38
|
-
if (l.value || i.value) return Promise.resolve(!1);
|
|
39
|
-
if (r) return r;
|
|
40
|
-
const t = C(e.value);
|
|
41
|
-
return t ? B(t) ? (a.value = t, h(), y(async () => {
|
|
42
|
-
try {
|
|
43
|
-
return await L(t), v(), i.value && z(s) === t;
|
|
44
|
-
} catch {
|
|
45
|
-
return a.value = null, v(), u("enter", "request-rejected", "The browser rejected the fullscreen request.");
|
|
46
|
-
}
|
|
47
|
-
})) : Promise.resolve(u("enter", "unsupported", "Fullscreen is not supported by this browser.")) : Promise.resolve(u("enter", "target-unavailable", "Fullscreen target is unavailable."));
|
|
48
|
-
}
|
|
49
|
-
function m() {
|
|
50
|
-
if (l.value || !i.value) return Promise.resolve(!1);
|
|
51
|
-
if (r) return r;
|
|
52
|
-
const t = a.value || C(e.value);
|
|
53
|
-
return t ? B(t) ? y(async () => {
|
|
54
|
-
try {
|
|
55
|
-
return await U(t), v(), !i.value && z(s) !== t;
|
|
56
|
-
} catch {
|
|
57
|
-
return u("exit", "request-rejected", "The browser rejected the fullscreen request.");
|
|
58
|
-
}
|
|
59
|
-
}) : Promise.resolve(u("exit", "unsupported", "Fullscreen is not supported by this browser.")) : Promise.resolve(u("exit", "target-unavailable", "Fullscreen target is unavailable."));
|
|
60
|
-
}
|
|
61
|
-
function k() {
|
|
62
|
-
return r || (i.value ? m() : E());
|
|
63
|
-
}
|
|
64
|
-
function y(t) {
|
|
65
|
-
p.value = !0;
|
|
66
|
-
const n = t().finally(() => {
|
|
67
|
-
p.value = !1, r = null;
|
|
68
|
-
});
|
|
69
|
-
return r = n, n;
|
|
70
|
-
}
|
|
71
|
-
function u(t, n, f) {
|
|
72
|
-
const q = Object.freeze({ action: t, code: n, message: f });
|
|
73
|
-
return o.onError(q), !1;
|
|
74
|
-
}
|
|
75
|
-
async function L(t) {
|
|
76
|
-
const n = R(t);
|
|
77
|
-
if (n === "requestFullscreen") {
|
|
78
|
-
await t.requestFullscreen();
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
if (x.isSupported.value) {
|
|
82
|
-
await x.enter();
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
if (n) {
|
|
86
|
-
await Q(t, n);
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
throw new Error("Fullscreen request is unavailable.");
|
|
90
|
-
}
|
|
91
|
-
async function U(t) {
|
|
92
|
-
var q;
|
|
93
|
-
const n = s, f = N(n, t);
|
|
94
|
-
if (f === "exitFullscreen") {
|
|
95
|
-
await ((q = n == null ? void 0 : n.exitFullscreen) == null ? void 0 : q.call(n));
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
if (f) {
|
|
99
|
-
await Q(n, f);
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
await x.exit();
|
|
103
|
-
}
|
|
104
|
-
return V(() => {
|
|
105
|
-
c = !0;
|
|
106
|
-
}), {
|
|
107
|
-
isFullscreen: i,
|
|
108
|
-
isSupported: w,
|
|
109
|
-
pending: p,
|
|
110
|
-
enter: E,
|
|
111
|
-
exit: m,
|
|
112
|
-
toggle: k
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
function j() {
|
|
116
|
-
return typeof document > "u" ? void 0 : document;
|
|
117
|
-
}
|
|
118
|
-
function C(e) {
|
|
119
|
-
var l;
|
|
120
|
-
return e === null ? null : e !== void 0 ? e : ((l = j()) == null ? void 0 : l.documentElement) || null;
|
|
121
|
-
}
|
|
122
|
-
function z(e) {
|
|
123
|
-
return (e == null ? void 0 : e.fullscreenElement) || (e == null ? void 0 : e.webkitFullscreenElement) || null;
|
|
124
|
-
}
|
|
125
|
-
function B(e) {
|
|
126
|
-
if (!e || e === null) return !1;
|
|
127
|
-
const l = j();
|
|
128
|
-
return (l == null ? void 0 : l.fullscreenEnabled) !== !0 ? !1 : !!(R(e) && N(l, e));
|
|
129
|
-
}
|
|
130
|
-
function R(e) {
|
|
131
|
-
return le.find((l) => T(e, l));
|
|
132
|
-
}
|
|
133
|
-
function N(e, l) {
|
|
134
|
-
return ne.find(
|
|
135
|
-
(o) => T(e, o) || T(l, o)
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
async function Q(e, l) {
|
|
139
|
-
const o = e && e[l];
|
|
140
|
-
if (typeof o != "function") throw new Error("Fullscreen method is unavailable.");
|
|
141
|
-
await o.call(e);
|
|
142
|
-
}
|
|
143
|
-
function T(e, l) {
|
|
144
|
-
return typeof (e == null ? void 0 : e[l]) == "function";
|
|
145
|
-
}
|
|
146
|
-
const se = /* @__PURE__ */ A({
|
|
147
|
-
name: "QyFullscreen",
|
|
148
|
-
inheritAttrs: !1,
|
|
149
|
-
__name: "index",
|
|
150
|
-
props: {
|
|
151
|
-
target: {},
|
|
152
|
-
disabled: { type: Boolean, default: !1 },
|
|
153
|
-
size: { default: "default" },
|
|
154
|
-
enterLabel: { default: "进入全屏" },
|
|
155
|
-
exitLabel: { default: "退出全屏" },
|
|
156
|
-
enterIcon: { default: "fullscreen" },
|
|
157
|
-
exitIcon: { default: "exit-fullscreen" }
|
|
158
|
-
},
|
|
159
|
-
emits: ["change", "error"],
|
|
160
|
-
setup(e, { expose: l, emit: o }) {
|
|
161
|
-
const s = e, a = o, i = G(), p = K(X, null), r = re(P(s, "target"), P(s, "disabled"), {
|
|
162
|
-
onChange: (u) => a("change", u),
|
|
163
|
-
onError: (u) => a("error", u)
|
|
164
|
-
}), c = r.isFullscreen, b = r.pending, g = d(
|
|
165
|
-
() => c.value ? s.exitLabel : s.enterLabel
|
|
166
|
-
), x = d(
|
|
167
|
-
() => c.value ? s.exitIcon : s.enterIcon
|
|
168
|
-
), w = d(
|
|
169
|
-
() => c.value ? "exit-icon" : "enter-icon"
|
|
170
|
-
), h = d(() => !!i[w.value]), v = d(() => p == null ? void 0 : p.resolve(x.value)), E = d(() => h.value || !!v.value), m = d(() => ({ small: "sm", default: "md", large: "lg" })[s.size]), k = d(
|
|
171
|
-
() => s.disabled || !r.isSupported.value || b.value
|
|
172
|
-
);
|
|
173
|
-
function y() {
|
|
174
|
-
r.toggle();
|
|
175
|
-
}
|
|
176
|
-
return l({
|
|
177
|
-
enter: r.enter,
|
|
178
|
-
exit: r.exit,
|
|
179
|
-
toggle: r.toggle
|
|
180
|
-
}), (u, L) => E.value ? (_(), I(O, {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "qy-fullscreen",
|
|
183
|
-
size: m.value,
|
|
184
|
-
disabled: k.value,
|
|
185
|
-
loading: F(b),
|
|
186
|
-
active: F(c),
|
|
187
|
-
"icon-only": !0,
|
|
188
|
-
"aria-label": g.value,
|
|
189
|
-
"aria-pressed": F(c) ? "true" : "false",
|
|
190
|
-
title: g.value,
|
|
191
|
-
onClick: y
|
|
192
|
-
}, {
|
|
193
|
-
prefix: M(() => [
|
|
194
|
-
h.value ? $(u.$slots, w.value, {}, void 0, !0, 0) : (_(), I(Z, {
|
|
195
|
-
key: 1,
|
|
196
|
-
name: x.value
|
|
197
|
-
}, null, 8, ["name"]))
|
|
198
|
-
]),
|
|
199
|
-
_: 3
|
|
200
|
-
}, 8, ["size", "disabled", "loading", "active", "aria-label", "aria-pressed", "title"])) : (_(), I(O, {
|
|
201
|
-
key: 1,
|
|
202
|
-
class: "qy-fullscreen",
|
|
203
|
-
size: m.value,
|
|
204
|
-
disabled: k.value,
|
|
205
|
-
loading: F(b),
|
|
206
|
-
active: F(c),
|
|
207
|
-
"icon-only": !1,
|
|
208
|
-
"aria-label": g.value,
|
|
209
|
-
"aria-pressed": F(c) ? "true" : "false",
|
|
210
|
-
title: g.value,
|
|
211
|
-
onClick: y
|
|
212
|
-
}, {
|
|
213
|
-
default: M(() => [
|
|
214
|
-
H(J(g.value), 1)
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}, 8, ["size", "disabled", "loading", "active", "aria-label", "aria-pressed", "title"]));
|
|
218
|
-
}
|
|
219
|
-
}), fe = /* @__PURE__ */ ee(se, [["__scopeId", "data-v-4491aa7c"]]);
|
|
220
|
-
export {
|
|
221
|
-
fe as F
|
|
222
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const v=require("element-plus"),e=require("vue"),z=require("./index-Di4bIOiB.cjs"),F=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),H={class:"qy-table-column-settings"},K={class:"qy-table-column-settings__table-wrap"},L=["data-testid","onClick"],Q={class:"qy-table-column-settings__side","data-testid":"settings-side-actions"},R={class:"qy-table-column-settings__side-main"},W={key:0,class:"qy-table-column-settings__selected is-empty"},j={key:1,class:"qy-table-column-settings__selected"},A={class:"qy-table-column-settings__side-footer"},G=e.defineComponent({name:"QyTableColumnSettings",__name:"index",props:{modelValue:{type:Boolean},settings:{default:()=>[]},defaultSettings:{default:void 0},title:{default:"列设置"},width:{default:"700px"},showDeleteCache:{type:Boolean,default:!0},unconfigurableTypes:{default:()=>["index","selection","expand","setup"]}},emits:["update:modelValue","confirm","reset","cancel","delete-cache","change"],setup(m,{emit:w}){const c=m,u=w,s=e.ref([]),r=e.ref(""),p=l=>l.map(t=>({...t})),h=()=>{var l;s.value=p(c.settings),r.value=((l=s.value[0])==null?void 0:l.key)||""};e.watch(()=>c.modelValue,l=>{l&&h()},{immediate:!0});const b=()=>{u("change",p(s.value))},f=l=>s.value.find(t=>t.key===l),o=e.computed(()=>f(r.value)),d=e.computed(()=>s.value.findIndex(l=>l.key===r.value)),N=l=>!!(l.type&&c.unconfigurableTypes.includes(l.type)),E=l=>l==="left"?"left":l==="right"?"right":"none",x=l=>l.type==="index"?"序号":l.type==="selection"?"多选":l.type==="expand"?"展开":l.type==="setup"?"设置":l.label||l.prop||l.key,V=l=>{l&&(r.value=l.key)},C=l=>{o.value&&q(o.value.key,l)},q=(l,t)=>{const n=f(l);n&&(n.fixed=t,b())},S=(l,t)=>{const n=f(l);!n||N(n)||(n.visible=t,b())},B=(l,t)=>{const n=f(l);n&&(n.width=t,b())},g=(l,t)=>{if(l===t||l<0||l>=s.value.length||t<0||t>=s.value.length)return;const n=[...s.value],[y]=n.splice(l,1);n.splice(t,0,y),s.value=n,r.value=y.key,b()},$=()=>{var t,n;const l=(t=c.defaultSettings)!=null&&t.length?c.defaultSettings:c.settings;s.value=p(l),r.value=((n=s.value[0])==null?void 0:n.key)||"",u("reset",p(s.value)),b()},k=()=>{u("cancel"),u("update:modelValue",!1)},T=()=>{u("confirm",p(s.value)),u("update:modelValue",!1)};return(l,t)=>{const n=v.ElTableColumn,y=v.ElInput,D=v.ElTable,i=v.ElButton,U=v.ElDialog;return e.openBlock(),e.createBlock(U,{"model-value":m.modelValue,title:m.title,width:m.width,"append-to-body":"",onClose:k},{footer:e.withCtx(()=>[e.createVNode(i,{"data-action":"cancel",onClick:k},{default:e.withCtx(()=>[...t[17]||(t[17]=[e.createTextVNode(" 取消 ",-1)])]),_:1}),e.createVNode(i,{type:"primary","data-action":"confirm",onClick:T},{default:e.withCtx(()=>[...t[18]||(t[18]=[e.createTextVNode(" 确定 ",-1)])]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",K,[e.createVNode(D,{data:s.value,"row-key":"key",height:"400px",border:"","highlight-current-row":"","data-testid":"settings-table",onCurrentChange:V,onRowClick:V},{default:e.withCtx(()=>[e.createVNode(n,{label:"列名",prop:"label","show-overflow-tooltip":""},{default:e.withCtx(({row:a})=>[e.createElementVNode("div",{class:"qy-table-column-settings__name","data-testid":`table-row-${a.key}`,onClick:_=>V(a)},[e.createElementVNode("span",{class:e.normalizeClass(["qy-table-column-settings__fixed-mark",`is-${E(a.fixed)}`]),"aria-hidden":"true"},null,2),e.createElementVNode("span",null,e.toDisplayString(x(a)),1)],8,L)]),_:1}),e.createVNode(n,{label:"列宽(px)",prop:"width",width:"150"},{default:e.withCtx(({row:a})=>[e.createVNode(y,{"model-value":a.width,size:"small",placeholder:"留空自动设置宽度","data-testid":"width","onUpdate:modelValue":_=>B(a.key,_)},null,8,["model-value","onUpdate:modelValue"])]),_:1}),e.createVNode(n,{label:"列显示",prop:"visible",width:"100"},{default:e.withCtx(({row:a})=>[e.createVNode(z.Switch,{"model-value":a.visible,disabled:N(a),"data-testid":"visible-switch","onUpdate:modelValue":_=>S(a.key,!!_)},null,8,["model-value","disabled","onUpdate:modelValue"])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",Q,[e.createElementVNode("div",R,[o.value?(e.openBlock(),e.createElementBlock("div",j,e.toDisplayString(x(o.value)),1)):(e.openBlock(),e.createElementBlock("div",W," 请选择列 ")),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value||d.value===0,"data-action":"top",onClick:t[0]||(t[0]=a=>g(d.value,0))},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-top"},null,-1),e.createElementVNode("span",null,"置顶",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value||d.value===0,"data-action":"up",onClick:t[1]||(t[1]=a=>g(d.value,d.value-1))},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-up"},null,-1),e.createElementVNode("span",null,"上移",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value||d.value===s.value.length-1,"data-action":"down",onClick:t[2]||(t[2]=a=>g(d.value,d.value+1))},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-down"},null,-1),e.createElementVNode("span",null,"下移",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value||d.value===s.value.length-1,"data-action":"bottom",onClick:t[3]||(t[3]=a=>g(d.value,s.value.length-1))},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-bottom"},null,-1),e.createElementVNode("span",null,"置底",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value,"data-action":"fixed-left",onClick:t[4]||(t[4]=a=>C("left"))},{default:e.withCtx(()=>[...t[12]||(t[12]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-fixed-left"},null,-1),e.createElementVNode("span",null,"固定左边",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value,"data-action":"fixed-right",onClick:t[5]||(t[5]=a=>C("right"))},{default:e.withCtx(()=>[...t[13]||(t[13]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-fixed-right"},null,-1),e.createElementVNode("span",null,"固定右边",-1)])]),_:1},8,["disabled"]),e.createVNode(i,{class:"qy-table-column-settings__side-button",disabled:!o.value,"data-action":"clear-fixed",onClick:t[6]||(t[6]=a=>C(!1))},{default:e.withCtx(()=>[...t[14]||(t[14]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-clear-fixed"},null,-1),e.createElementVNode("span",null,"取消固定",-1)])]),_:1},8,["disabled"])]),e.createElementVNode("div",A,[e.createVNode(i,{"data-action":"reset",onClick:$},{default:e.withCtx(()=>[...t[15]||(t[15]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-reset"},null,-1),e.createElementVNode("span",null,"恢复默认",-1)])]),_:1}),m.showDeleteCache?(e.openBlock(),e.createBlock(i,{key:0,type:"danger",plain:"","data-action":"delete-cache",onClick:t[7]||(t[7]=a=>u("delete-cache"))},{default:e.withCtx(()=>[...t[16]||(t[16]=[e.createElementVNode("span",{class:"qy-table-column-settings__action-icon is-reset"},null,-1),e.createElementVNode("span",null,"删除缓存",-1)])]),_:1})):e.createCommentVNode("",!0)])])])]),_:1},8,["model-value","title","width"])}}}),J=F._export_sfc(G,[["__scopeId","data-v-9a39a343"]]);exports.TableColumnSettings=J;
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, useAttrs as R, ref as k, computed as d, onMounted as H, onBeforeUnmount as I, openBlock as i, createElementBlock as l, mergeProps as N, unref as T, renderSlot as s, createElementVNode as u, normalizeProps as A, guardReactiveProps as W, toDisplayString as _, withDirectives as K, normalizeStyle as F, Fragment as M, renderList as Q, normalizeClass as U, createBlock as X, resolveDynamicComponent as Y, createCommentVNode as j, createTextVNode as w, vShow as G, markRaw as J, toRaw as Z } from "vue";
|
|
2
|
-
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const te = { class: "qy-dropdown__trigger-label" }, ae = ["aria-hidden"], oe = ["disabled", "title", "data-qy-dropdown-key", "data-danger", "data-active", "data-disabled", "aria-disabled", "onClick"], ne = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "qy-dropdown__item-icon",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, de = { class: "qy-dropdown__item-label" }, re = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "qy-dropdown__empty"
|
|
10
|
-
}, ie = /* @__PURE__ */ P({
|
|
11
|
-
name: "QyDropdown",
|
|
12
|
-
inheritAttrs: !1,
|
|
13
|
-
__name: "index",
|
|
14
|
-
props: {
|
|
15
|
-
items: { default: () => [] },
|
|
16
|
-
disabled: { type: Boolean, default: !1 },
|
|
17
|
-
placement: { default: "bottom-end" },
|
|
18
|
-
trigger: { default: "click" },
|
|
19
|
-
closeOnSelect: { type: Boolean, default: !0 },
|
|
20
|
-
panelWidth: {},
|
|
21
|
-
width: {},
|
|
22
|
-
maxHeight: {},
|
|
23
|
-
modelValue: { type: Boolean, default: void 0 },
|
|
24
|
-
ariaLabel: {}
|
|
25
|
-
},
|
|
26
|
-
emits: ["select", "open-change", "update:modelValue"],
|
|
27
|
-
setup(c, { emit: C }) {
|
|
28
|
-
const t = c, p = C, q = R(), f = k(null), v = k(!1), m = d(() => t.modelValue !== void 0), o = d(() => t.disabled ? !1 : m.value ? !!t.modelValue : v.value), g = d(() => t.items.filter((e) => !e.hidden)), D = d(() => t.panelWidth ?? t.width), x = d(() => [
|
|
29
|
-
`qy-dropdown--${t.placement}`,
|
|
30
|
-
{
|
|
31
|
-
"is-open": o.value,
|
|
32
|
-
"is-disabled": t.disabled
|
|
33
|
-
}
|
|
34
|
-
]), B = d(() => ({
|
|
35
|
-
width: y(D.value),
|
|
36
|
-
maxHeight: y(t.maxHeight),
|
|
37
|
-
overflowX: "hidden",
|
|
38
|
-
overflowY: t.maxHeight ? "auto" : void 0
|
|
39
|
-
})), b = d(() => ({
|
|
40
|
-
class: [
|
|
41
|
-
"qy-dropdown__trigger",
|
|
42
|
-
{
|
|
43
|
-
"is-open": o.value,
|
|
44
|
-
"is-disabled": t.disabled
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
type: "button",
|
|
48
|
-
disabled: t.disabled || void 0,
|
|
49
|
-
"aria-haspopup": "menu",
|
|
50
|
-
"aria-expanded": o.value ? "true" : "false",
|
|
51
|
-
"aria-label": t.ariaLabel || void 0,
|
|
52
|
-
onClick: S,
|
|
53
|
-
onContextmenu: V,
|
|
54
|
-
onKeydown: $
|
|
55
|
-
}));
|
|
56
|
-
function y(e) {
|
|
57
|
-
return typeof e == "number" ? `${e}px` : e;
|
|
58
|
-
}
|
|
59
|
-
function r(e) {
|
|
60
|
-
t.disabled || e === o.value || (m.value || (v.value = e), p("update:modelValue", e), p("open-change", e));
|
|
61
|
-
}
|
|
62
|
-
function S(e) {
|
|
63
|
-
t.trigger !== "click" || t.disabled || (e.stopPropagation(), r(!o.value));
|
|
64
|
-
}
|
|
65
|
-
function V(e) {
|
|
66
|
-
t.trigger !== "contextmenu" || t.disabled || (e.preventDefault(), e.stopPropagation(), r(!0));
|
|
67
|
-
}
|
|
68
|
-
function $(e) {
|
|
69
|
-
if (!t.disabled) {
|
|
70
|
-
if (e.key === "Escape") {
|
|
71
|
-
r(!1);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
t.trigger === "click" && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), r(!o.value));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
function z(e, n) {
|
|
78
|
-
if (e.disabled) {
|
|
79
|
-
n.preventDefault();
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
p("select", e), t.closeOnSelect && r(!1);
|
|
83
|
-
}
|
|
84
|
-
function E(e) {
|
|
85
|
-
return {
|
|
86
|
-
"is-disabled": e.disabled,
|
|
87
|
-
"is-danger": e.danger,
|
|
88
|
-
"is-active": e.active,
|
|
89
|
-
"is-divided": e.divided
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
function L(e) {
|
|
93
|
-
return e ? J(Z(e)) : void 0;
|
|
94
|
-
}
|
|
95
|
-
function h(e) {
|
|
96
|
-
var a;
|
|
97
|
-
const n = e.target;
|
|
98
|
-
!o.value || !(n instanceof Node) || (a = f.value) != null && a.contains(n) || r(!1);
|
|
99
|
-
}
|
|
100
|
-
return H(() => {
|
|
101
|
-
document.addEventListener("click", h);
|
|
102
|
-
}), I(() => {
|
|
103
|
-
document.removeEventListener("click", h);
|
|
104
|
-
}), (e, n) => (i(), l("div", N({
|
|
105
|
-
ref_key: "rootRef",
|
|
106
|
-
ref: f
|
|
107
|
-
}, T(q), {
|
|
108
|
-
class: ["qy-dropdown", x.value]
|
|
109
|
-
}), [
|
|
110
|
-
s(e.$slots, "trigger", {
|
|
111
|
-
open: o.value,
|
|
112
|
-
disabled: c.disabled,
|
|
113
|
-
attrs: b.value
|
|
114
|
-
}, () => [
|
|
115
|
-
u("button", A(W(b.value)), [
|
|
116
|
-
u("span", te, _(c.ariaLabel || "更多"), 1)
|
|
117
|
-
], 16)
|
|
118
|
-
], !0),
|
|
119
|
-
K(u("div", {
|
|
120
|
-
class: "qy-dropdown__panel",
|
|
121
|
-
style: F(B.value),
|
|
122
|
-
"aria-hidden": o.value ? void 0 : "true",
|
|
123
|
-
role: "menu"
|
|
124
|
-
}, [
|
|
125
|
-
s(e.$slots, "header", {}, void 0, !0),
|
|
126
|
-
g.value.length > 0 ? (i(!0), l(M, { key: 0 }, Q(g.value, (a) => (i(), l("button", {
|
|
127
|
-
key: a.key,
|
|
128
|
-
type: "button",
|
|
129
|
-
class: U(["qy-dropdown__item", E(a)]),
|
|
130
|
-
disabled: a.disabled,
|
|
131
|
-
title: a.title,
|
|
132
|
-
"data-qy-dropdown-key": a.key,
|
|
133
|
-
"data-danger": a.danger ? "true" : void 0,
|
|
134
|
-
"data-active": a.active ? "true" : void 0,
|
|
135
|
-
"data-disabled": a.disabled ? "true" : void 0,
|
|
136
|
-
"aria-disabled": a.disabled ? "true" : void 0,
|
|
137
|
-
role: "menuitem",
|
|
138
|
-
onClick: (O) => z(a, O)
|
|
139
|
-
}, [
|
|
140
|
-
a.icon ? (i(), l("span", ne, [
|
|
141
|
-
(i(), X(Y(L(a.icon))))
|
|
142
|
-
])) : j("", !0),
|
|
143
|
-
u("span", de, [
|
|
144
|
-
s(e.$slots, "item", { item: a }, () => [
|
|
145
|
-
w(_(a.label), 1)
|
|
146
|
-
], !0)
|
|
147
|
-
])
|
|
148
|
-
], 10, oe))), 128)) : (i(), l("div", re, [
|
|
149
|
-
s(e.$slots, "empty", {}, () => [
|
|
150
|
-
n[0] || (n[0] = w("暂无数据", -1))
|
|
151
|
-
], !0)
|
|
152
|
-
])),
|
|
153
|
-
s(e.$slots, "footer", {}, void 0, !0)
|
|
154
|
-
], 12, ae), [
|
|
155
|
-
[G, o.value]
|
|
156
|
-
])
|
|
157
|
-
], 16));
|
|
158
|
-
}
|
|
159
|
-
}), ue = /* @__PURE__ */ ee(ie, [["__scopeId", "data-v-c9d8c292"]]);
|
|
160
|
-
export {
|
|
161
|
-
ue as D
|
|
162
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, useAttrs as m, computed as l, openBlock as b, createBlock as g, unref as h, mergeProps as y, withCtx as C, renderSlot as v } from "vue";
|
|
2
|
-
import { ElTag as z } from "element-plus";
|
|
3
|
-
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const T = /* @__PURE__ */ u({
|
|
5
|
-
name: "QyTag",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
tone: { default: "neutral" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
effect: { default: "light" },
|
|
12
|
-
closable: { type: Boolean, default: !1 },
|
|
13
|
-
round: { type: Boolean, default: !1 },
|
|
14
|
-
disabled: { type: Boolean, default: !1 }
|
|
15
|
-
},
|
|
16
|
-
emits: ["click", "close"],
|
|
17
|
-
setup(e, { emit: n }) {
|
|
18
|
-
const s = n, o = m(), i = l(() => {
|
|
19
|
-
const t = Object.fromEntries(
|
|
20
|
-
Object.entries(o).filter(
|
|
21
|
-
([a]) => a === "class" || a === "style" || a === "title" || a === "role" || a.startsWith("data-") || a.startsWith("aria-")
|
|
22
|
-
)
|
|
23
|
-
);
|
|
24
|
-
return e.disabled && (t["aria-disabled"] = "true"), t;
|
|
25
|
-
}), c = l(() => e.tone === "neutral" ? "info" : e.tone), d = l(() => ({ sm: "small", md: "default", lg: "large" })[e.size]);
|
|
26
|
-
function f(t) {
|
|
27
|
-
e.disabled || s("click", t);
|
|
28
|
-
}
|
|
29
|
-
function r(t) {
|
|
30
|
-
e.disabled || s("close", t);
|
|
31
|
-
}
|
|
32
|
-
return (t, a) => (b(), g(h(z), y(i.value, {
|
|
33
|
-
class: ["qy-tag", [
|
|
34
|
-
`qy-tag--${e.tone}`,
|
|
35
|
-
{ "qy-tag--disabled": e.disabled }
|
|
36
|
-
]],
|
|
37
|
-
type: c.value,
|
|
38
|
-
size: d.value,
|
|
39
|
-
effect: e.effect,
|
|
40
|
-
closable: e.closable && !e.disabled,
|
|
41
|
-
round: e.round,
|
|
42
|
-
onClick: f,
|
|
43
|
-
onClose: r
|
|
44
|
-
}), {
|
|
45
|
-
default: C(() => [
|
|
46
|
-
v(t.$slots, "default", {}, void 0, !0)
|
|
47
|
-
]),
|
|
48
|
-
_: 3
|
|
49
|
-
}, 16, ["class", "type", "size", "effect", "closable", "round"]));
|
|
50
|
-
}
|
|
51
|
-
}), j = /* @__PURE__ */ B(T, [["__scopeId", "data-v-0c5d7c85"]]);
|
|
52
|
-
export {
|
|
53
|
-
j as T
|
|
54
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Q=Symbol("QyIconRegistry"),I=new WeakMap;function z(e){const r=[],n=new Map;for(const a of(e==null?void 0:e.icons)??[]){const s=h(a==null?void 0:a.name);if(!s)throw new Error("QyIcon definition name must not be empty.");const c=b(s);if(n.has(c))throw new Error(`Duplicate icon name "${s}".`);const i=C(a,s);r.push(i),n.set(c,i)}const l=[],m=new Map;for(const a of j(e==null?void 0:e.aliases)){const s=h(a.name),c=h(a.target),i=b(s),w=b(c);if(!s)throw new Error("QyIcon alias name must not be empty.");if(!c)throw new Error(`QyIcon alias "${s}" target must not be empty.`);if(n.has(i))throw new Error(`Icon alias "${s}" conflicts with a canonical icon name.`);if(m.has(i))throw new Error(`Duplicate icon alias "${s}".`);const v=n.get(w);if(!v)throw new Error(`Icon alias "${s}" target "${c}" not found.`);m.set(i,b(v.name)),l.push(Object.freeze({name:s,target:v.name}))}let u=Object.freeze({definitions:Object.freeze(r),aliases:Object.freeze(l),byName:n,aliasTargets:m}),y,f=!1;const d=()=>{if(!e.loader)return y??(y=Promise.resolve());f=!1;let a;try{a=e.loader()}catch(s){a=Promise.reject(s)}return y=Promise.resolve(a).then(s=>{let c;try{c=z({icons:[...u.definitions,...s.icons],aliases:[...u.aliases,...j(s.aliases)]})}catch(i){const w=i instanceof Error?i.message:String(i);throw new Error(`Icon registry load conflict: ${w}`)}u=I.get(c),I.set(p,u)}).catch(s=>{throw f=!0,s}),y},p=Object.freeze({resolve(a){const s=b(h(a)),c=u.aliasTargets.get(s)??s,i=u.byName.get(c);return i?O(i):void 0},has(a){const s=b(h(a));return u.byName.has(u.aliasTargets.get(s)??s)},list(){return Object.freeze(u.definitions.map(O))},load(){return y??d()},retry(){return f?d():Promise.reject(new Error("QyIcon registry retry is only available after a failed load."))}});return I.set(p,u),p}function B(...e){const r=[],n=[];for(const l of e){const m=I.get(l);if(!m)throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");r.push(...m.definitions),n.push(...m.aliases)}try{return z({icons:r,aliases:n})}catch(l){const m=l instanceof Error?l.message:String(l);throw new Error(`Icon registry merge conflict: ${m}`)}}function P(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 n=/^#icon-(.+)$/i.exec(r);if(n)return n[1].trim();const l=/^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(r);return l?`iconify:${l[1]}:${l[2]}`:r}function b(e){return e.toLocaleLowerCase()}function j(e){return e?Array.isArray(e)?[...e]:Object.entries(e).map(([r,n])=>({name:r,target:n})):[]}function C(e,r){const n={...e.label===void 0?{}:{label:K(e.label,r)},...e.keywords===void 0?{}:{keywords:T(e.keywords,r)}};switch(e.source){case"symbol":return k({name:r,source:"symbol",value:_("symbol",e.value,r),...n});case"component":return k({name:r,source:"component",value:_("component",e.value,r),...n});case"class":return k({name:r,source:"class",value:_("class",e.value,r),...n});default:throw new Error(`QyIcon definition "${r}" has unsupported source "${String(e.source)}".`)}}function _(e,r,n){if(e==="symbol"){if(typeof r!="string"||!/^#[^\s#]+$/.test(r))throw new Error(`QyIcon symbol "${n}" 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 "${n}" must be a Vue component.`);return r}if(e!=="class")throw new Error(`QyIcon definition "${n}" 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 "${n}" must be a trusted static class string.`);return r.trim()}function K(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(n=>typeof n!="string"))throw new Error(`QyIcon keywords "${r}" must be strings.`);return Object.freeze([...e])}function k(e){return e.keywords&&!Object.isFrozen(e.keywords)&&(e={...e,keywords:Object.freeze([...e.keywords])}),Object.freeze(e)}function O(e){return k({...e,...e.keywords?{keywords:[...e.keywords]}:{}})}const q=["role","aria-label","aria-hidden","data-qy-icon-missing"],D={key:1,"aria-hidden":"true",focusable:"false"},L=["href","xlink:href"],V=t.defineComponent({name:"QyIcon",inheritAttrs:!1,__name:"index",props:{name:{},icon:{},size:{default:"1em"},color:{default:"currentColor"},spin:{type:Boolean,default:!1},label:{}},setup(e){const r=e,n=t.useAttrs(),l=t.useSlots(),m=t.inject(Q,null),u=t.computed(()=>r.icon?t.markRaw(t.toRaw(r.icon)):void 0),y=t.computed(()=>r.name===void 0||r.name===null?"":h(r.name)),f=t.computed(()=>{if(!(r.icon||!m||!y.value))return m.resolve(y.value)}),d=t.ref(null),p=t.computed(()=>!!(!r.icon&&y.value&&!f.value)),a=t.computed(()=>{const o=typeof r.label=="string"?r.label.trim():"";if(o)return o;const g=n["aria-label"];return R(g)?String(g):""}),s=t.computed(()=>a.value?"img":n.role),c=t.computed(()=>N(r.size)),i=t.computed(()=>({width:c.value,height:c.value,fontSize:c.value,color:r.color||"currentColor"})),w=t.computed(()=>{const o={};for(const[g,E]of Object.entries(n))A(g)&&(o[g]=E);return o}),v=t.computed(()=>Object.freeze({name:y.value}));t.watchEffect(()=>{const o=f.value;d.value&&(o==null?void 0:o.source)==="symbol"&&(d.value.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o.value),d.value.setAttribute("xlink:href",o.value))}),t.watchEffect(()=>{});function N(o){return typeof o=="number"?Number.isFinite(o)&&o>0?`${o}px`:"1em":o.trim()||"1em"}function R(o){return typeof o=="string"?o.trim().length>0:o!=null&&o!==!1}function A(o){return o!=="class"&&o!=="style"&&o!=="role"&&o!=="aria-label"&&o!=="aria-hidden"&&o!=="data-qy-icon-missing"&&(o==="id"||o==="title"||o.startsWith("data-")||o.startsWith("aria-"))}return(o,g)=>{var E,$,S;return t.openBlock(),t.createElementBlock("span",t.mergeProps(w.value,{class:["qy-icon",[t.unref(n).class,{"is-spin":r.spin}]],style:[t.unref(n).style,i.value],role:s.value,"aria-label":a.value||void 0,"aria-hidden":a.value?void 0:"true","data-qy-icon-missing":p.value?y.value:void 0}),[u.value?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.value),{key:0,"aria-hidden":"true"})):((E=f.value)==null?void 0:E.source)==="symbol"?(t.openBlock(),t.createElementBlock("svg",D,[t.createElementVNode("use",{ref_key:"symbolElement",ref:d,href:f.value.value,"xlink:href":f.value.value},null,8,L)])):(($=f.value)==null?void 0:$.source)==="component"?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(f.value.value),{key:2,"aria-hidden":"true"})):((S=f.value)==null?void 0:S.source)==="class"?(t.openBlock(),t.createElementBlock("span",{key:3,class:t.normalizeClass(["qy-icon__class",f.value.value]),"aria-hidden":"true"},null,2)):p.value&&t.unref(l).fallback?t.renderSlot(o.$slots,"fallback",t.normalizeProps(t.guardReactiveProps(v.value)),void 0,!0,4):t.createCommentVNode("",!0)],16,q)}}}),Y=x._export_sfc(V,[["__scopeId","data-v-e4e9c6ae"]]);exports.Icon=Y;exports.QY_ICON_REGISTRY_KEY=Q;exports.createQyIconPlugin=P;exports.createQyIconRegistry=z;exports.mergeQyIconRegistries=B;exports.normalizeQyIconName=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),b=require("element-plus"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),h=t.defineComponent({name:"QyCheckbox",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number]},indeterminate:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:void 0},trueValue:{type:[Boolean,String,Number],default:!0},falseValue:{type:[Boolean,String,Number],default:!1},name:{},id:{},tabindex:{},ariaLabel:{},ariaControls:{}},emits:["update:modelValue","change","focus","blur"],setup(o,{emit:r}){const a=o,l=r,u=t.useAttrs(),i=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),s=t.computed(()=>a.modelValue===a.trueValue);function n(e){return e?a.trueValue:a.falseValue}function d(e){a.disabled||l("update:modelValue",n(e===!0))}function c(e){a.disabled||l("change",n(e===!0))}function f(e){l("focus",e)}function m(e){l("blur",e)}return(e,x)=>(t.openBlock(),t.createBlock(t.unref(b.ElCheckbox),t.mergeProps(i.value,{class:"qy-checkbox","model-value":s.value,value:a.value,indeterminate:a.indeterminate,disabled:a.disabled||void 0,size:a.size,name:a.name,id:a.id,tabindex:a.tabindex,"aria-label":a.ariaLabel,"aria-controls":a.ariaControls,"onUpdate:modelValue":d,onChange:c,onFocusin:f,onFocusout:m}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},16,["model-value","value","indeterminate","disabled","size","name","id","tabindex","aria-label","aria-controls"]))}}),v=p._export_sfc(h,[["__scopeId","data-v-33fb88db"]]);exports.Checkbox=v;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, useAttrs as y, computed as n, ref as V, onMounted as x, onBeforeUnmount as B, openBlock as C, createBlock as N, unref as S, mergeProps as R, withCtx as w, renderSlot as z, createTextVNode as E, toDisplayString as L } from "vue";
|
|
2
|
-
import { ElRadio as U } from "element-plus";
|
|
3
|
-
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const q = /* @__PURE__ */ g({
|
|
5
|
-
name: "QyRadio",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [Boolean, String, Number] },
|
|
10
|
-
value: { type: [Boolean, String, Number], default: !0 },
|
|
11
|
-
label: {},
|
|
12
|
-
disabled: { type: Boolean, default: !1 },
|
|
13
|
-
size: { default: void 0 },
|
|
14
|
-
name: {},
|
|
15
|
-
border: { type: Boolean, default: !1 },
|
|
16
|
-
id: {},
|
|
17
|
-
tabindex: {},
|
|
18
|
-
ariaLabel: {},
|
|
19
|
-
ariaControls: {}
|
|
20
|
-
},
|
|
21
|
-
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
22
|
-
setup(s, { emit: c }) {
|
|
23
|
-
const a = s, o = c, f = y(), m = n(
|
|
24
|
-
() => Object.fromEntries(
|
|
25
|
-
Object.entries(f).filter(
|
|
26
|
-
([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
27
|
-
)
|
|
28
|
-
)
|
|
29
|
-
), l = n(() => a.value), i = V(null);
|
|
30
|
-
let t = null;
|
|
31
|
-
const b = n(() => a.modelValue !== void 0 ? a.modelValue : l.value === !0 ? !1 : l.value === !1 ? !0 : typeof l.value == "string" ? `__qy-radio-unselected__${l.value}` : Number.NaN);
|
|
32
|
-
x(() => {
|
|
33
|
-
var e;
|
|
34
|
-
t = ((e = i.value) == null ? void 0 : e.$el.querySelector("input.el-radio__original")) ?? null, t == null || t.addEventListener("keydown", d);
|
|
35
|
-
}), B(() => {
|
|
36
|
-
t == null || t.removeEventListener("keydown", d);
|
|
37
|
-
});
|
|
38
|
-
function u() {
|
|
39
|
-
return !a.disabled && a.modelValue !== l.value;
|
|
40
|
-
}
|
|
41
|
-
function p() {
|
|
42
|
-
u() && o("update:modelValue", l.value);
|
|
43
|
-
}
|
|
44
|
-
function v() {
|
|
45
|
-
u() && o("change", l.value);
|
|
46
|
-
}
|
|
47
|
-
function d(e) {
|
|
48
|
-
if (e.key !== " " && e.code !== "Space") return;
|
|
49
|
-
const r = e.target;
|
|
50
|
-
!r || r.tagName !== "INPUT" || r.type !== "radio" || r.disabled || r.checked || (e.preventDefault(), r.click());
|
|
51
|
-
}
|
|
52
|
-
function _(e) {
|
|
53
|
-
o("focus", e);
|
|
54
|
-
}
|
|
55
|
-
function h(e) {
|
|
56
|
-
o("blur", e);
|
|
57
|
-
}
|
|
58
|
-
return (e, r) => (C(), N(S(U), R({
|
|
59
|
-
ref_key: "radioRef",
|
|
60
|
-
ref: i
|
|
61
|
-
}, m.value, {
|
|
62
|
-
class: "qy-radio",
|
|
63
|
-
"model-value": b.value,
|
|
64
|
-
value: l.value,
|
|
65
|
-
label: a.label,
|
|
66
|
-
disabled: a.disabled,
|
|
67
|
-
size: a.size,
|
|
68
|
-
name: a.name,
|
|
69
|
-
border: a.border,
|
|
70
|
-
id: a.id,
|
|
71
|
-
tabindex: a.tabindex,
|
|
72
|
-
"aria-label": a.ariaLabel,
|
|
73
|
-
"aria-controls": a.ariaControls,
|
|
74
|
-
"onUpdate:modelValue": p,
|
|
75
|
-
onChange: v,
|
|
76
|
-
onFocusCapture: _,
|
|
77
|
-
onBlurCapture: h
|
|
78
|
-
}), {
|
|
79
|
-
default: w(() => [
|
|
80
|
-
z(e.$slots, "default", {}, () => [
|
|
81
|
-
E(L(a.label), 1)
|
|
82
|
-
], !0)
|
|
83
|
-
]),
|
|
84
|
-
_: 3
|
|
85
|
-
}, 16, ["model-value", "value", "label", "disabled", "size", "name", "border", "id", "tabindex", "aria-label", "aria-controls"]));
|
|
86
|
-
}
|
|
87
|
-
}), j = /* @__PURE__ */ k(q, [["__scopeId", "data-v-b75376cc"]]);
|
|
88
|
-
export {
|
|
89
|
-
j as R
|
|
90
|
-
};
|