@qynpm/ui 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -93
- package/dist/index.cjs +20 -19
- package/dist/index.mjs +22 -21
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +2 -1
- package/dist/qy-dialog/index.mjs +5 -2
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +3 -3
- package/dist/qy-icon-picker/index.mjs +6 -6
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +2 -2
- package/dist/qy-input-number/index.mjs +3 -3
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +4 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +4 -4
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +4 -4
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/index--I-pLtO3.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
- package/dist/shared/index-0mok5nS2.cjs +1 -0
- package/dist/shared/index-2xIkj7uz.cjs +1 -0
- package/dist/shared/index-4uXwnK7G.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
- package/dist/shared/index-B-PlDm1A.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
- package/dist/shared/index-B0aY8Q_T.cjs +1 -0
- package/dist/shared/index-B1-htEYJ.mjs +100 -0
- package/dist/shared/index-B1ZuGEIr.cjs +1 -0
- package/dist/shared/index-B3wIgwN7.cjs +1 -0
- package/dist/shared/index-B71cpH4T.cjs +1 -0
- package/dist/shared/index-B8S5RT2Z.mjs +206 -0
- package/dist/shared/index-B8znc-qD.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
- package/dist/shared/index-BCfULlZK.cjs +1 -0
- package/dist/shared/{index-DY-CA7Vr.mjs → index-BE4CELs-.mjs} +1 -1
- package/dist/shared/index-BFFnf0Bn.cjs +1 -0
- package/dist/shared/index-BIWER6Wa.cjs +1 -0
- package/dist/shared/index-BM3ueCK9.cjs +1 -0
- package/dist/shared/index-BOLL0aGP.mjs +47 -0
- package/dist/shared/index-BWO4qxne.mjs +395 -0
- package/dist/shared/index-Ba3qQVYM.cjs +1 -0
- package/dist/shared/index-Ba5CLmrh.mjs +157 -0
- package/dist/shared/index-BcPpl_OJ.mjs +892 -0
- package/dist/shared/index-Bg_o9zrB.cjs +1 -0
- package/dist/shared/index-Bguu2ys0.cjs +1 -0
- package/dist/shared/index-BhO1ARf9.cjs +1 -0
- package/dist/shared/index-BiCdxX0E.mjs +63 -0
- package/dist/shared/index-BigCKPUY.mjs +153 -0
- package/dist/shared/index-BmWDUjpi.mjs +73 -0
- package/dist/shared/index-BoGA3Pdv.cjs +1 -0
- package/dist/shared/index-Brxx2EqN.mjs +156 -0
- package/dist/shared/{index-Bi9wgcgT.cjs → index-BsRfuMop.cjs} +1 -1
- package/dist/shared/index-BsTSa25A.cjs +1 -0
- package/dist/shared/index-Btwke2ql.cjs +1 -0
- package/dist/shared/index-BxQnJVT8.cjs +1 -0
- package/dist/shared/index-Bx_faI_u.mjs +53 -0
- package/dist/shared/index-C7GXprxF.cjs +1 -0
- package/dist/shared/index-C97qoSgI.cjs +1 -0
- package/dist/shared/index-CCqfQb_M.mjs +82 -0
- package/dist/shared/index-CDGjUhaC.mjs +72 -0
- package/dist/shared/index-CF3vimnX.mjs +73 -0
- package/dist/shared/index-CJxpEc9q.cjs +1 -0
- package/dist/shared/index-COpowa-E.mjs +48 -0
- package/dist/shared/index-CRU4YvLz.cjs +1 -0
- package/dist/shared/index-CSMOYD1R.cjs +1 -0
- package/dist/shared/index-CWB5fAb7.mjs +154 -0
- package/dist/shared/index-CXAVVShG.mjs +278 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
- package/dist/shared/index-CeasMt4r.mjs +63 -0
- package/dist/shared/index-CftZiihF.mjs +525 -0
- package/dist/shared/index-ChEefC0G.cjs +1 -0
- package/dist/shared/index-CioDI8Ys.cjs +1 -0
- package/dist/shared/index-CjKfmMG4.cjs +1 -0
- package/dist/shared/index-CnIZoCkL.mjs +77 -0
- package/dist/shared/index-CndG7UWF.mjs +138 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
- package/dist/shared/index-CrwhANF5.mjs +78 -0
- package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
- package/dist/shared/index-CutbNRjY.mjs +198 -0
- package/dist/shared/index-CyJHJCj8.cjs +1 -0
- package/dist/shared/index-CypWMqI4.cjs +1 -0
- package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
- package/dist/shared/index-CzyB5ttX.cjs +1 -0
- package/dist/shared/index-D1cbnYac.mjs +446 -0
- package/dist/shared/index-D8-4wR07.mjs +130 -0
- package/dist/shared/index-D9dQaZtu.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
- package/dist/shared/index-DEosiUQV.mjs +245 -0
- package/dist/shared/index-DFTSBy3g.mjs +206 -0
- package/dist/shared/index-DFnpyAa1.mjs +69 -0
- package/dist/shared/index-DI5COVol.cjs +1 -0
- package/dist/shared/index-DNMOtH4s.mjs +36 -0
- package/dist/shared/index-DQn_5j_f.cjs +1 -0
- package/dist/shared/index-DRICnDix.mjs +295 -0
- package/dist/shared/index-DS539-rn.mjs +87 -0
- package/dist/shared/index-DTOfhAXP.mjs +74 -0
- package/dist/shared/index-DULBwiHC.mjs +234 -0
- package/dist/shared/index-DVPk0jMO.cjs +1 -0
- package/dist/shared/index-DWrymMO5.cjs +1 -0
- package/dist/shared/index-DYYPqv3Y.cjs +1 -0
- package/dist/shared/index-DZzMTGSJ.cjs +1 -0
- package/dist/shared/index-D_l30Gzr.cjs +1 -0
- package/dist/shared/index-Db7PhnjA.cjs +1 -0
- package/dist/shared/index-DdoFHdjY.mjs +307 -0
- package/dist/shared/index-DeBjILEK.cjs +1 -0
- package/dist/shared/index-DePXY0TI.cjs +1 -0
- package/dist/shared/index-DgPQ8292.cjs +1 -0
- package/dist/shared/index-Di3R0FOU.cjs +1 -0
- package/dist/shared/index-DiNSSXC8.mjs +76 -0
- package/dist/shared/index-DmEwKHe4.cjs +1 -0
- package/dist/shared/index-DnFQkBfl.cjs +1 -0
- package/dist/shared/index-DnexuGuJ.cjs +1 -0
- package/dist/shared/index-DniPcZnL.mjs +52 -0
- package/dist/shared/index-DpitpmqK.mjs +205 -0
- package/dist/shared/index-DtXU2qQS.cjs +1 -0
- package/dist/shared/index-Du-FNseo.cjs +1 -0
- package/dist/shared/index-DwHzztSj.cjs +1 -0
- package/dist/shared/index-DxFfP2Fn.cjs +1 -0
- package/dist/shared/index-DyqFfMhy.mjs +365 -0
- package/dist/shared/index-Hn-IGtqe.cjs +1 -0
- package/dist/shared/index-Nx_w1JYm.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
- package/dist/shared/index-R6vvV3td.cjs +1 -0
- package/dist/shared/index-TMhQv4oD.mjs +104 -0
- package/dist/shared/index-VtJrvPka.mjs +27 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
- package/dist/shared/index-YWKumDEW.mjs +61 -0
- package/dist/shared/index-_AB6uqZw.mjs +51 -0
- package/dist/shared/index-bvvNTmuM.mjs +105 -0
- package/dist/shared/index-fVS62tLm.mjs +81 -0
- package/dist/shared/index-gOUVgYd_.cjs +1 -0
- package/dist/shared/index-gU6HjdHv.mjs +311 -0
- package/dist/shared/index-hPaHbb1Y.cjs +1 -0
- package/dist/shared/index-i0G6DcP0.cjs +1 -0
- package/dist/shared/index-jP71VQxo.cjs +1 -0
- package/dist/shared/index-jdGrSpGg.mjs +2657 -0
- package/dist/shared/index-jsEFCWaY.mjs +175 -0
- package/dist/shared/index-lsWZ_M5R.mjs +369 -0
- package/dist/shared/index-mKnRWsLn.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
- package/dist/shared/index-xdsYNS2u.mjs +53 -0
- package/dist/shared/index-xhROPBam.mjs +129 -0
- package/index.d.ts +113 -113
- package/package.json +490 -489
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +63 -63
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-file-picker/index.d.ts +4 -4
- package/qy-icon/index.d.ts +3 -0
- package/qy-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-image-upload/index.d.ts +69 -69
- package/qy-input/index.d.ts +76 -76
- package/qy-input-number/index.d.ts +64 -64
- package/qy-input-tag/index.d.ts +69 -69
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-money-input/index.d.ts +87 -87
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/qy-upload/index.d.ts +99 -99
- package/dist/shared/index-3qEac4h8.cjs +0 -1
- package/dist/shared/index-4SkLDBra.mjs +0 -377
- package/dist/shared/index-AMu0L6uU.cjs +0 -1
- package/dist/shared/index-B1b3BksF.mjs +0 -72
- package/dist/shared/index-BPaVDCe6.cjs +0 -1
- package/dist/shared/index-BYX0biqw.mjs +0 -766
- package/dist/shared/index-BdTlpKtr.cjs +0 -1
- package/dist/shared/index-Bli6Gx5d.cjs +0 -1
- package/dist/shared/index-BuUtJrIy.mjs +0 -119
- package/dist/shared/index-Bvot0uXo.cjs +0 -1
- package/dist/shared/index-BxxwEr52.mjs +0 -107
- package/dist/shared/index-C1i-hd-W.cjs +0 -1
- package/dist/shared/index-C7lRQtzs.cjs +0 -1
- package/dist/shared/index-C91mzAI3.mjs +0 -254
- package/dist/shared/index-CdnHMuo3.mjs +0 -149
- package/dist/shared/index-CwY_jv_I.cjs +0 -1
- package/dist/shared/index-D5S48q1B.mjs +0 -162
- package/dist/shared/index-D654b42n.mjs +0 -2754
- package/dist/shared/index-D8E_xu0N.mjs +0 -54
- package/dist/shared/index-DCzxcvkn.cjs +0 -1
- package/dist/shared/index-DK0hjfWr.mjs +0 -90
- package/dist/shared/index-DZRFSGxO.mjs +0 -225
- package/dist/shared/index-Dc6gLgAz.cjs +0 -1
- package/dist/shared/index-DcohgM8A.mjs +0 -68
- package/dist/shared/index-Di4bIOiB.cjs +0 -1
- package/dist/shared/index-DlGwHshu.cjs +0 -1
- package/dist/shared/index-DnHfk7NM.cjs +0 -1
- package/dist/shared/index-DnNIseRJ.cjs +0 -1
- package/dist/shared/index-Dr-Q5krU.mjs +0 -71
- package/dist/shared/index-Dwf-JfXM.mjs +0 -293
- package/dist/shared/index-JjHutKmT.mjs +0 -142
- package/dist/shared/index-Od6HC8Un.mjs +0 -127
- package/dist/shared/index-S8HW36Mc.mjs +0 -222
- package/dist/shared/index-aIqtIYsu.cjs +0 -1
- package/dist/shared/index-nSFTxVz8.cjs +0 -1
- package/dist/shared/index-nos4Y-fm.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BcZb1U13.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +0 -67
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +0 -298
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
|
@@ -1,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"),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
|
-
};
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, useAttrs as Q, useSlots as G, ref as J, computed as s, Comment as X, Text as Y, Fragment as A, isVNode as Z, watch as k, onMounted as _, onUpdated as ee, openBlock as h, createBlock as B, unref as K, mergeProps as te, createSlots as le, withCtx as c, renderSlot as p, createElementBlock as ae, renderList as ne, normalizeProps as oe, guardReactiveProps as re } from "vue";
|
|
2
|
-
import { ElSelect as ie, ElOption as ue } from "element-plus";
|
|
3
|
-
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const de = /* @__PURE__ */ D({
|
|
5
|
-
name: "QySelect",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [String, Number, Boolean, Object, Array, null], default: void 0 },
|
|
10
|
-
options: { default: () => [] },
|
|
11
|
-
labelKey: { default: "label" },
|
|
12
|
-
valueKey: { default: "value" },
|
|
13
|
-
objectIdentityKey: { default: void 0 },
|
|
14
|
-
disabledKey: { default: "disabled" },
|
|
15
|
-
placeholder: { default: "请选择" },
|
|
16
|
-
disabled: { type: Boolean, default: !1 },
|
|
17
|
-
clearable: { type: Boolean, default: !0 },
|
|
18
|
-
filterable: { type: Boolean, default: !1 },
|
|
19
|
-
loading: { type: Boolean, default: !1 },
|
|
20
|
-
multiple: { type: Boolean, default: !1 },
|
|
21
|
-
collapseTags: { type: Boolean, default: !1 },
|
|
22
|
-
collapseTagsTooltip: { type: Boolean, default: !1 },
|
|
23
|
-
autoSelectSingle: { type: Boolean, default: !1 },
|
|
24
|
-
size: { default: void 0 },
|
|
25
|
-
teleported: { type: Boolean, default: !0 },
|
|
26
|
-
appendTo: { default: "body" },
|
|
27
|
-
fitInputWidth: { type: Boolean, default: !0 },
|
|
28
|
-
popperClass: { default: "" }
|
|
29
|
-
},
|
|
30
|
-
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur"],
|
|
31
|
-
setup(n, { expose: j, emit: C }) {
|
|
32
|
-
const r = Symbol("invalid-select-value"), l = n, o = C, I = Q(), O = G(), m = J(null), $ = s(
|
|
33
|
-
() => Object.fromEntries(
|
|
34
|
-
Object.entries(I).filter(
|
|
35
|
-
([e]) => e === "class" || e === "style" || e === "id" || e === "name" || e === "role" || e === "title" || e === "tabindex" || e === "remote" || e === "remoteMethod" || e === "remote-method" || e === "debounce" || e === "remoteShowSuffix" || e === "remote-show-suffix" || e.startsWith("data-") || e.startsWith("aria-")
|
|
36
|
-
)
|
|
37
|
-
)
|
|
38
|
-
), T = s(
|
|
39
|
-
() => ["qy-select__popper", l.popperClass].filter(Boolean).join(" ")
|
|
40
|
-
), S = s(() => {
|
|
41
|
-
const e = g(l.modelValue);
|
|
42
|
-
return e === r ? void 0 : e;
|
|
43
|
-
}), d = s(
|
|
44
|
-
() => l.options.map((e) => ({
|
|
45
|
-
raw: e,
|
|
46
|
-
label: x(e),
|
|
47
|
-
value: z(e),
|
|
48
|
-
disabled: !!e[l.disabledKey]
|
|
49
|
-
}))
|
|
50
|
-
), b = s(() => {
|
|
51
|
-
const e = O.default;
|
|
52
|
-
return e ? e().some(V) : !1;
|
|
53
|
-
}), w = s(() => {
|
|
54
|
-
if (!l.objectIdentityKey) return;
|
|
55
|
-
const e = S.value, t = Array.isArray(e) ? e.some(f) : f(e), a = !b.value && d.value.some((u) => f(u.value));
|
|
56
|
-
return t || a ? l.objectIdentityKey : void 0;
|
|
57
|
-
});
|
|
58
|
-
function V(e) {
|
|
59
|
-
return e.type === X ? !1 : e.type === Y ? typeof e.children == "string" && e.children.trim() !== "" : e.type !== A || !Array.isArray(e.children) ? !0 : e.children.some((t) => Z(t) ? V(t) : typeof t == "string" ? t.trim() !== "" : t != null);
|
|
60
|
-
}
|
|
61
|
-
function f(e) {
|
|
62
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
63
|
-
}
|
|
64
|
-
function y(e) {
|
|
65
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || f(e) ? e : r;
|
|
66
|
-
}
|
|
67
|
-
function g(e) {
|
|
68
|
-
if (e == null) return e;
|
|
69
|
-
if (Array.isArray(e)) {
|
|
70
|
-
const t = e;
|
|
71
|
-
return t.every((a) => y(a) !== r) ? t : r;
|
|
72
|
-
}
|
|
73
|
-
return y(e);
|
|
74
|
-
}
|
|
75
|
-
function x(e) {
|
|
76
|
-
const t = e[l.labelKey] ?? e.label ?? e.value ?? "";
|
|
77
|
-
return typeof t == "string" || typeof t == "number" ? t : typeof t == "boolean" ? String(t) : "";
|
|
78
|
-
}
|
|
79
|
-
function z(e) {
|
|
80
|
-
const t = e[l.valueKey] ?? e.value ?? e.label, a = y(t);
|
|
81
|
-
return a === r ? void 0 : a;
|
|
82
|
-
}
|
|
83
|
-
function E(e) {
|
|
84
|
-
return Array.isArray(e) ? e.length === 0 : e === "" || e === null || e === void 0;
|
|
85
|
-
}
|
|
86
|
-
let i = null;
|
|
87
|
-
k(
|
|
88
|
-
[
|
|
89
|
-
d,
|
|
90
|
-
() => l.modelValue,
|
|
91
|
-
() => l.autoSelectSingle,
|
|
92
|
-
() => l.disabled,
|
|
93
|
-
() => l.multiple
|
|
94
|
-
],
|
|
95
|
-
([e]) => v(e),
|
|
96
|
-
{ flush: "post" }
|
|
97
|
-
), _(() => v(d.value)), ee(() => v(d.value));
|
|
98
|
-
function v(e) {
|
|
99
|
-
if (!E(l.modelValue)) {
|
|
100
|
-
i = null;
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (!l.autoSelectSingle || l.disabled || b.value || e.length !== 1) return;
|
|
104
|
-
const [t] = e;
|
|
105
|
-
if (t.disabled || t.value === void 0) return;
|
|
106
|
-
const a = M(t.value);
|
|
107
|
-
if (i && i.identityKey === l.objectIdentityKey && i.multiple === l.multiple && Object.is(i.candidate, a))
|
|
108
|
-
return;
|
|
109
|
-
i = {
|
|
110
|
-
candidate: a,
|
|
111
|
-
identityKey: l.objectIdentityKey,
|
|
112
|
-
multiple: l.multiple
|
|
113
|
-
};
|
|
114
|
-
const u = l.multiple ? [t.value] : t.value;
|
|
115
|
-
o("update:modelValue", u), o("change", u);
|
|
116
|
-
}
|
|
117
|
-
function M(e) {
|
|
118
|
-
return !f(e) || !l.objectIdentityKey ? e : e[l.objectIdentityKey] ?? e;
|
|
119
|
-
}
|
|
120
|
-
function L(e, t) {
|
|
121
|
-
return `${String(e.value ?? e.label ?? "")}-${t}`;
|
|
122
|
-
}
|
|
123
|
-
function P(e) {
|
|
124
|
-
const t = g(e);
|
|
125
|
-
t !== r && o("update:modelValue", t);
|
|
126
|
-
}
|
|
127
|
-
function U(e) {
|
|
128
|
-
const t = g(e);
|
|
129
|
-
t !== r && o("change", t);
|
|
130
|
-
}
|
|
131
|
-
function W() {
|
|
132
|
-
o("clear");
|
|
133
|
-
}
|
|
134
|
-
function F(e) {
|
|
135
|
-
o("visible-change", e);
|
|
136
|
-
}
|
|
137
|
-
function H(e) {
|
|
138
|
-
o("focus", e);
|
|
139
|
-
}
|
|
140
|
-
function N(e) {
|
|
141
|
-
o("blur", e);
|
|
142
|
-
}
|
|
143
|
-
function R() {
|
|
144
|
-
var e, t;
|
|
145
|
-
(t = (e = m.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
146
|
-
}
|
|
147
|
-
function q() {
|
|
148
|
-
var e, t;
|
|
149
|
-
(t = (e = m.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
150
|
-
}
|
|
151
|
-
return j({
|
|
152
|
-
// 仅暴露业务常用焦点方法,复杂下拉行为仍交给 Element Plus 自身处理。
|
|
153
|
-
focus: R,
|
|
154
|
-
blur: q
|
|
155
|
-
}), (e, t) => (h(), B(K(ie), te({
|
|
156
|
-
ref_key: "selectRef",
|
|
157
|
-
ref: m,
|
|
158
|
-
class: "qy-select"
|
|
159
|
-
}, $.value, {
|
|
160
|
-
"model-value": S.value,
|
|
161
|
-
placeholder: n.placeholder,
|
|
162
|
-
disabled: n.disabled,
|
|
163
|
-
clearable: n.clearable,
|
|
164
|
-
filterable: n.filterable,
|
|
165
|
-
loading: n.loading,
|
|
166
|
-
multiple: n.multiple,
|
|
167
|
-
"collapse-tags": n.collapseTags,
|
|
168
|
-
"collapse-tags-tooltip": n.collapseTagsTooltip,
|
|
169
|
-
size: n.size,
|
|
170
|
-
teleported: n.teleported,
|
|
171
|
-
"fit-input-width": n.fitInputWidth,
|
|
172
|
-
"popper-class": T.value,
|
|
173
|
-
"append-to": n.appendTo,
|
|
174
|
-
"value-key": w.value,
|
|
175
|
-
"onUpdate:modelValue": P,
|
|
176
|
-
onChange: U,
|
|
177
|
-
onClear: W,
|
|
178
|
-
onVisibleChange: F,
|
|
179
|
-
onFocus: H,
|
|
180
|
-
onBlur: N
|
|
181
|
-
}), le({
|
|
182
|
-
default: c(() => [
|
|
183
|
-
b.value ? p(e.$slots, "default", {}, void 0, !0, 0) : (h(!0), ae(A, { key: 1 }, ne(d.value, (a, u) => (h(), B(K(ue), {
|
|
184
|
-
key: L(a, u),
|
|
185
|
-
label: a.label,
|
|
186
|
-
value: a.value,
|
|
187
|
-
disabled: a.disabled
|
|
188
|
-
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
189
|
-
]),
|
|
190
|
-
_: 2
|
|
191
|
-
}, [
|
|
192
|
-
e.$slots.prefix ? {
|
|
193
|
-
name: "prefix",
|
|
194
|
-
fn: c(() => [
|
|
195
|
-
p(e.$slots, "prefix", {}, void 0, !0)
|
|
196
|
-
]),
|
|
197
|
-
key: "0"
|
|
198
|
-
} : void 0,
|
|
199
|
-
e.$slots.empty ? {
|
|
200
|
-
name: "empty",
|
|
201
|
-
fn: c(() => [
|
|
202
|
-
p(e.$slots, "empty", {}, void 0, !0)
|
|
203
|
-
]),
|
|
204
|
-
key: "1"
|
|
205
|
-
} : void 0,
|
|
206
|
-
e.$slots.loading ? {
|
|
207
|
-
name: "loading",
|
|
208
|
-
fn: c(() => [
|
|
209
|
-
p(e.$slots, "loading", {}, void 0, !0)
|
|
210
|
-
]),
|
|
211
|
-
key: "2"
|
|
212
|
-
} : void 0,
|
|
213
|
-
e.$slots.tag ? {
|
|
214
|
-
name: "tag",
|
|
215
|
-
fn: c((a) => [
|
|
216
|
-
p(e.$slots, "tag", oe(re(a)), void 0, !0)
|
|
217
|
-
]),
|
|
218
|
-
key: "3"
|
|
219
|
-
} : void 0
|
|
220
|
-
]), 1040, ["model-value", "placeholder", "disabled", "clearable", "filterable", "loading", "multiple", "collapse-tags", "collapse-tags-tooltip", "size", "teleported", "fit-input-width", "popper-class", "append-to", "value-key"]));
|
|
221
|
-
}
|
|
222
|
-
}), me = /* @__PURE__ */ se(de, [["__scopeId", "data-v-722db6dd"]]);
|
|
223
|
-
export {
|
|
224
|
-
me as S
|
|
225
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),D={class:"qy-dropdown__trigger-label"},x=["aria-hidden"],N=["disabled","title","data-qy-dropdown-key","data-danger","data-active","data-disabled","aria-disabled","onClick"],$={key:0,class:"qy-dropdown__item-icon","aria-hidden":"true"},z={class:"qy-dropdown__item-label"},L={key:1,class:"qy-dropdown__empty"},H=e.defineComponent({name:"QyDropdown",inheritAttrs:!1,__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},placement:{default:"bottom-end"},trigger:{default:"click"},closeOnSelect:{type:Boolean,default:!0},panelWidth:{},width:{},maxHeight:{},modelValue:{type:Boolean,default:void 0},ariaLabel:{}},emits:["select","open-change","update:modelValue"],setup(l,{emit:g}){const o=l,i=g,b=e.useAttrs(),s=e.ref(null),c=e.ref(!1),u=e.computed(()=>o.modelValue!==void 0),n=e.computed(()=>o.disabled?!1:u.value?!!o.modelValue:c.value),p=e.computed(()=>o.items.filter(t=>!t.hidden)),y=e.computed(()=>o.panelWidth??o.width),k=e.computed(()=>[`qy-dropdown--${o.placement}`,{"is-open":n.value,"is-disabled":o.disabled}]),h=e.computed(()=>({width:m(y.value),maxHeight:m(o.maxHeight),overflowX:"hidden",overflowY:o.maxHeight?"auto":void 0})),f=e.computed(()=>({class:["qy-dropdown__trigger",{"is-open":n.value,"is-disabled":o.disabled}],type:"button",disabled:o.disabled||void 0,"aria-haspopup":"menu","aria-expanded":n.value?"true":"false","aria-label":o.ariaLabel||void 0,onClick:_,onContextmenu:w,onKeydown:B}));function m(t){return typeof t=="number"?`${t}px`:t}function r(t){o.disabled||t===n.value||(u.value||(c.value=t),i("update:modelValue",t),i("open-change",t))}function _(t){o.trigger!=="click"||o.disabled||(t.stopPropagation(),r(!n.value))}function w(t){o.trigger!=="contextmenu"||o.disabled||(t.preventDefault(),t.stopPropagation(),r(!0))}function B(t){if(!o.disabled){if(t.key==="Escape"){r(!1);return}o.trigger==="click"&&(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),r(!n.value))}}function C(t,d){if(t.disabled){d.preventDefault();return}i("select",t),o.closeOnSelect&&r(!1)}function q(t){return{"is-disabled":t.disabled,"is-danger":t.danger,"is-active":t.active,"is-divided":t.divided}}function E(t){return t?e.markRaw(e.toRaw(t)):void 0}function v(t){var a;const d=t.target;!n.value||!(d instanceof Node)||(a=s.value)!=null&&a.contains(d)||r(!1)}return e.onMounted(()=>{document.addEventListener("click",v)}),e.onBeforeUnmount(()=>{document.removeEventListener("click",v)}),(t,d)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"rootRef",ref:s},e.unref(b),{class:["qy-dropdown",k.value]}),[e.renderSlot(t.$slots,"trigger",{open:n.value,disabled:l.disabled,attrs:f.value},()=>[e.createElementVNode("button",e.normalizeProps(e.guardReactiveProps(f.value)),[e.createElementVNode("span",D,e.toDisplayString(l.ariaLabel||"更多"),1)],16)],!0),e.withDirectives(e.createElementVNode("div",{class:"qy-dropdown__panel",style:e.normalizeStyle(h.value),"aria-hidden":n.value?void 0:"true",role:"menu"},[e.renderSlot(t.$slots,"header",{},void 0,!0),p.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(p.value,a=>(e.openBlock(),e.createElementBlock("button",{key:a.key,type:"button",class:e.normalizeClass(["qy-dropdown__item",q(a)]),disabled:a.disabled,title:a.title,"data-qy-dropdown-key":a.key,"data-danger":a.danger?"true":void 0,"data-active":a.active?"true":void 0,"data-disabled":a.disabled?"true":void 0,"aria-disabled":a.disabled?"true":void 0,role:"menuitem",onClick:S=>C(a,S)},[a.icon?(e.openBlock(),e.createElementBlock("span",$,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E(a.icon))))])):e.createCommentVNode("",!0),e.createElementVNode("span",z,[e.renderSlot(t.$slots,"item",{item:a},()=>[e.createTextVNode(e.toDisplayString(a.label),1)],!0)])],10,N))),128)):(e.openBlock(),e.createElementBlock("div",L,[e.renderSlot(t.$slots,"empty",{},()=>[d[0]||(d[0]=e.createTextVNode("暂无数据",-1))],!0)])),e.renderSlot(t.$slots,"footer",{},void 0,!0)],12,x),[[e.vShow,n.value]])],16))}}),O=V._export_sfc(H,[["__scopeId","data-v-c9d8c292"]]);exports.Dropdown=O;
|
|
@@ -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 a=require("vue"),r=require("element-plus"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=a.defineComponent({name:"QySwitch",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number],default:!1},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{},activeText:{default:""},inactiveText:{default:""},inlinePrompt:{type:Boolean,default:!1},name:{default:""},id:{},tabindex:{},ariaLabel:{}},emits:["update:modelValue","change","focus","blur"],setup(e,{emit:l}){const i=l,n=a.useAttrs(),u=a.computed(()=>Object.fromEntries(Object.entries(n).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));function d(t){i("focus",t)}function c(t){i("blur",t)}function o(t){e.disabled||e.loading||i("update:modelValue",t)}function s(t){e.disabled||e.loading||i("change",t)}return(t,b)=>(a.openBlock(),a.createBlock(a.unref(r.ElSwitch),a.mergeProps(u.value,{class:"qy-switch","model-value":e.modelValue,"active-value":e.activeValue,"inactive-value":e.inactiveValue,disabled:e.disabled,loading:e.loading,size:e.size,"active-text":e.activeText,"inactive-text":e.inactiveText,"inline-prompt":e.inlinePrompt,name:e.name,id:e.id,tabindex:e.tabindex,"aria-label":e.ariaLabel,"onUpdate:modelValue":o,onChange:s,onFocusin:d,onFocusout:c}),null,16,["model-value","active-value","inactive-value","disabled","loading","size","active-text","inactive-text","inline-prompt","name","id","tabindex","aria-label"]))}}),v=f._export_sfc(m,[["__scopeId","data-v-35d68835"]]);exports.Switch=v;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("vue"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f=["src","title","loading","sandbox","allow","referrerpolicy","allowfullscreen"],m=r.defineComponent({name:"QyIframe",inheritAttrs:!1,__name:"index",props:{src:{type:String,required:!0},title:{type:String,required:!0},reloadKey:{type:[String,Number],default:void 0},loading:{type:String,default:"eager"},sandbox:{type:String,default:void 0},allow:{type:String,default:void 0},referrerPolicy:{type:String,default:void 0},allowFullscreen:Boolean},emits:["load","error"],setup(e,{emit:n}){const l=e,o=n,a=r.useAttrs(),i=r.computed(()=>l.src.trim().length>0&&l.title.trim().length>0),s=r.computed(()=>Object.fromEntries(Object.entries(a).filter(([t])=>t==="class"||t==="style"||t==="id"||t==="role"||t==="tabindex"||t.startsWith("data-")||t.startsWith("aria-"))));function c(){o("load")}function d(){o("error")}return(t,y)=>i.value?(r.openBlock(),r.createElementBlock("iframe",r.mergeProps({key:e.reloadKey},s.value,{class:"qy-iframe",src:e.src,title:e.title,loading:e.loading,sandbox:e.sandbox,allow:e.allow,referrerpolicy:e.referrerPolicy,allowfullscreen:e.allowFullscreen,onLoad:c,onError:d}),null,16,f)):r.createCommentVNode("",!0)}}),g=u._export_sfc(m,[["__scopeId","data-v-4592cf2b"]]);exports.Iframe=g;
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),x=require("./index-C1i-hd-W.cjs"),V=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w=["tabindex","aria-disabled","onClick","onKeydown"],C={class:"qy-file-picker__label"},D={key:0,class:"qy-file-picker__hint"},F=["disabled"],q=e.defineComponent({name:"QyFilePicker",__name:"index",props:{modelValue:{default:null},extensions:{default:()=>[]},maxSizeMb:{default:20},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0},placeholder:{default:"请选择文件"}},emits:["update:modelValue","change","clear","invalid"],setup(l,{expose:h,emit:b}){const a=l,t=b,n=e.ref(null),d=e.ref(!1),v=e.computed(()=>a.modelValue?[a.modelValue]:[]);let o=!1;function p(){var i;a.disabled||(i=n.value)==null||i.openFileDialog()}function c(){var i;o=!0,(i=n.value)==null||i.clearFiles(),o=!1,t("update:modelValue",null),t("change",null),t("clear")}function g(){a.disabled||c()}function u(){!a.disabled&&a.drag&&(d.value=!0)}function f(){d.value=!1}function k(i){if(o)return;const s=i[0]??null;t("update:modelValue",s),t("change",s)}function y(i){t("invalid",i)}return h({openFileDialog:p,clear:c}),(i,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-file-picker",{"is-disabled":l.disabled,"is-dragover":d.value}])},[e.createVNode(x.Upload,{ref_key:"uploadRef",ref:n,variant:"file-list","auto-upload":!1,"selected-files":v.value,"file-type":l.extensions,"file-size":l.maxSizeMb,disabled:l.disabled,"disable-drag":!l.drag,multiple:!1,limit:1,"show-text":!1,"show-paste-input":!1,"onUpdate:selectedFiles":k,onInvalid:y},{trigger:e.withCtx(({open:r})=>{var m;return[e.createElementVNode("div",{class:e.normalizeClass(["qy-file-picker__dropzone",{"is-click-only":!l.drag}]),role:"button",tabindex:l.disabled?-1:0,"aria-disabled":l.disabled?"true":void 0,onClick:r,onKeydown:[e.withKeys(e.withModifiers(r,["prevent"]),["enter"]),e.withKeys(e.withModifiers(r,["prevent"]),["space"])],onDragenter:e.withModifiers(u,["prevent"]),onDragover:e.withModifiers(u,["prevent"]),onDragleave:e.withModifiers(f,["prevent"]),onDrop:f},[e.createElementVNode("span",C,e.toDisplayString(((m=l.modelValue)==null?void 0:m.name)||l.placeholder),1),l.drag?(e.openBlock(),e.createElementBlock("span",D," 点击选择或拖拽单个文件到此处 ")):e.createCommentVNode("",!0)],42,w)]}),_:1},8,["selected-files","file-type","file-size","disabled","disable-drag"]),l.modelValue?(e.openBlock(),e.createElementBlock("button",{key:0,class:"qy-file-picker__clear",type:"button",disabled:l.disabled,onClick:e.withModifiers(g,["stop"])}," 清空 ",8,F)):e.createCommentVNode("",!0)],2))}}),B=V._export_sfc(q,[["__scopeId","data-v-71a5d74d"]]);exports.FilePicker=B;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, useAttrs as u, computed as o, openBlock as m, createElementBlock as g, mergeProps as y, createCommentVNode as h } from "vue";
|
|
2
|
-
import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
-
const x = ["src", "title", "loading", "sandbox", "allow", "referrerpolicy", "allowfullscreen"], w = /* @__PURE__ */ f({
|
|
4
|
-
name: "QyIframe",
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
src: {
|
|
9
|
-
type: String,
|
|
10
|
-
required: !0
|
|
11
|
-
},
|
|
12
|
-
title: {
|
|
13
|
-
type: String,
|
|
14
|
-
required: !0
|
|
15
|
-
},
|
|
16
|
-
reloadKey: {
|
|
17
|
-
type: [String, Number],
|
|
18
|
-
default: void 0
|
|
19
|
-
},
|
|
20
|
-
loading: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "eager"
|
|
23
|
-
},
|
|
24
|
-
sandbox: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: void 0
|
|
27
|
-
},
|
|
28
|
-
allow: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: void 0
|
|
31
|
-
},
|
|
32
|
-
referrerPolicy: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: void 0
|
|
35
|
-
},
|
|
36
|
-
allowFullscreen: Boolean
|
|
37
|
-
},
|
|
38
|
-
emits: ["load", "error"],
|
|
39
|
-
setup(e, { emit: a }) {
|
|
40
|
-
const r = e, l = a, n = u(), i = o(
|
|
41
|
-
() => r.src.trim().length > 0 && r.title.trim().length > 0
|
|
42
|
-
), s = o(
|
|
43
|
-
() => Object.fromEntries(
|
|
44
|
-
Object.entries(n).filter(
|
|
45
|
-
([t]) => t === "class" || t === "style" || t === "id" || t === "role" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-")
|
|
46
|
-
)
|
|
47
|
-
)
|
|
48
|
-
);
|
|
49
|
-
function c() {
|
|
50
|
-
l("load");
|
|
51
|
-
}
|
|
52
|
-
function d() {
|
|
53
|
-
l("error");
|
|
54
|
-
}
|
|
55
|
-
return (t, p) => i.value ? (m(), g("iframe", y({ key: e.reloadKey }, s.value, {
|
|
56
|
-
class: "qy-iframe",
|
|
57
|
-
src: e.src,
|
|
58
|
-
title: e.title,
|
|
59
|
-
loading: e.loading,
|
|
60
|
-
sandbox: e.sandbox,
|
|
61
|
-
allow: e.allow,
|
|
62
|
-
referrerpolicy: e.referrerPolicy,
|
|
63
|
-
allowfullscreen: e.allowFullscreen,
|
|
64
|
-
onLoad: c,
|
|
65
|
-
onError: d
|
|
66
|
-
}), null, 16, x)) : h("", !0);
|
|
67
|
-
}
|
|
68
|
-
}), E = /* @__PURE__ */ b(w, [["__scopeId", "data-v-4592cf2b"]]);
|
|
69
|
-
export {
|
|
70
|
-
E as I
|
|
71
|
-
};
|