@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,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 pe=require("./index-C1i-hd-W.cjs"),Ot=require("./index-C7lRQtzs.cjs"),Lt=require("./index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs"),e=require("vue"),ce=require("element-plus"),Kt=require("clsx"),_=require("element-plus"),Ut=require("@element-plus/icons-vue"),Nt=require("@vueuse/core"),ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),jt=require("./index-nos4Y-fm.cjs"),Ht=require("./index-Dc6gLgAz.cjs"),Wt=require("./index-nSFTxVz8.cjs"),Zt=require("./index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs"),Gt=require("./index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs"),Jt=require("./index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs"),Xt=require("./index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs"),Yt=require("./index-DCzxcvkn.cjs"),eo=require("./index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs"),to=require("./index-BdTlpKtr.cjs"),oo=require("./index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs"),no=require("./index-DnHfk7NM.cjs"),lo=require("./index-CwY_jv_I.cjs"),ao=require("./index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs"),ge=require("./index-Bvot0uXo.cjs"),At=require("./index-Bli6Gx5d.cjs"),ue=require("./index-BPaVDCe6.cjs"),ro=require("./index-DnNIseRJ.cjs"),io=require("./index-Di4bIOiB.cjs"),so=require("./index.vue_vue_type_script_lang-DMrpLmWN.cjs"),co=require("./index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs"),uo=require("./index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs"),fo=require("./index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs"),yo=require("./index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs"),mo=require("./index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs"),po=require("./index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs"),go=require("./index.vue_vue_type_style_index_0_lang-D9DraThL.cjs"),ho=require("./index.vue_vue_type_script_lang-DLmUPDR5.cjs"),vo=require("./index.vue_vue_type_script_lang-D42aRlO2.cjs"),wo=require("./index.vue_vue_type_script_lang-BO9Ju_i0.cjs"),ko=require("./index-BTbiht5h.cjs"),zt=require("./index-BQEymEbE.cjs"),_o=require("./index.vue_vue_type_style_index_0_lang-CAW_QOyJ.cjs"),bo=require("./index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs"),Qo=require("./index.vue_vue_type_script_lang-CCL57H5c.cjs"),So=require("./index.vue_vue_type_script_lang-CKZUcaZ5.cjs"),xo=require("./index.vue_vue_type_script_lang-BgapsQjI.cjs"),Co=require("./index.vue_vue_type_script_lang-8AT3-xU-.cjs"),Bo=require("./index.vue_vue_type_script_lang-By3jd4gw.cjs"),Vo=require("./index.vue_vue_type_script_lang-CIOi2ahp.cjs"),Io=require("./index.vue_vue_type_script_lang-DpSaB5eg.cjs"),qo=require("./index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs"),$o=require("./index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs"),Eo=require("./index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs"),No=require("./index-DlGwHshu.cjs"),To=require("./index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs"),Ao=require("./index.vue_vue_type_script_lang-Bc3tktk9.cjs"),zo=require("./index.vue_vue_type_script_lang-Cv4Pf58E.cjs"),Po=require("./index.vue_vue_type_script_lang-CwrbII5c.cjs"),Do=require("./index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs"),Fo=require("./index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs"),Mo=require("./index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs"),Ro=require("./index.vue_vue_type_script_lang-BkoqbceR.cjs"),Oo=require("./index.vue_vue_type_script_lang-CfjfZCT3.cjs"),Lo=require("./index.vue_vue_type_script_lang-WJ63_A7F.cjs"),Ko=require("./index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs"),m=require("./install-c8il9DQv.cjs"),de=require("./index-Dvf1zJ7h.cjs"),Uo=require("./index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs"),jo=require("./utils-BjEXwY3L.cjs"),Ho=require("@qynpm/hooks"),Wo=Object.assign({name:"QyImageUpload",inheritAttrs:!1},{__name:"index",props:{modelValue:{type:[String,Array],default:""},api:{type:String,default:"/permission-api/common/uploads"},name:{type:String,default:"files"},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},mode:{type:String,default:"default"},voucher:{type:Boolean,default:!1},fileType:{type:Array,default:()=>[]},fileSize:{type:Number,default:10},isShowTip:{type:Boolean,default:!1},limit:{type:Number,default:void 0},tokenKey:{type:String,default:"Admin-Token"},supportVideo:{type:Boolean,default:!1},size:{type:String,default:"128px"},disableDrag:{type:Boolean,default:!1},showPasteInput:{type:Boolean,default:!0},pastePlaceholder:{type:String,default:"粘贴图片上传"},callBack:{type:Function,default:null},extraData:{type:Object,default:()=>({})},uploadRequest:{type:Function,default:null}},emits:["update:modelValue","change","success","error","remove","updateImg"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.ref(null),p=["jpg","jpeg","png","gif","bmp","webp"],f=e.computed(()=>o.voucher||o.mode==="voucher"),E=e.computed(()=>Array.isArray(o.modelValue)?o.modelValue.filter(Boolean):o.modelValue?String(o.modelValue).split(",").filter(Boolean):[]),b=e.computed(()=>o.supportVideo?1:f.value?o.limit??30:o.limit??(o.multiple?9:1)),F=e.computed(()=>{var n;return(n=o.fileType)!=null&&n.length?o.fileType:f.value&&!o.supportVideo?p:[]});function I(n){return Array.isArray(n)?n.filter(Boolean):[]}function C(n){const d=I(n);return o.multiple?d:d[0]||""}function O(n){l("update:modelValue",C(n))}function z(n){l("change",C(n==null?void 0:n.files))}function S(n){var H,i;if(typeof n=="string")return n;const d=n||{},P=d.url??d.urls??((H=d.data)==null?void 0:H.url)??((i=d.data)==null?void 0:i.urls)??"";return Array.isArray(P)?P[0]||"":P||""}function q(n){const d=S(n);d&&l("updateImg",d),l("success",k(),n)}function M(n){l("error",n)}function Z(n,d){l("remove",n,d)}function N(){var n,d;(d=(n=x.value)==null?void 0:n.openFileDialog)==null||d.call(n)}function j(){var n,d;(d=(n=x.value)==null?void 0:n.clearFiles)==null||d.call(n)}function A(){var n,d;return((d=(n=x.value)==null?void 0:n.getPathList)==null?void 0:d.call(n))||[]}const L=e.computed(()=>A()),R=e.computed(()=>A());function h(){return A()}function k(){const n=A();return o.multiple?n:n[0]||""}return $({openFileDialog:N,clearFiles:j,getPathList:A,getFullPathList:h,fullPathList:L,pathList:R,getValue:k}),(n,d)=>(e.openBlock(),e.createBlock(pe.Upload,e.mergeProps({ref_key:"uploadRef",ref:x},e.unref(W),{"model-value":E.value,"value-format":"array",api:t.api,name:t.name,multiple:t.multiple,disabled:t.disabled,"file-type":F.value,"file-size":t.fileSize,limit:b.value,"is-show-tip":t.isShowTip,"token-key":t.tokenKey,"support-video":t.supportVideo,size:t.size,"disable-drag":t.disableDrag,"call-back":t.callBack,"extra-data":t.extraData,"upload-request":t.uploadRequest,"show-text":!1,"show-paste-input":t.showPasteInput,"paste-placeholder":t.pastePlaceholder,"onUpdate:modelValue":O,onChange:z,onSuccess:q,onError:M,onRemove:Z}),null,16,["model-value","api","name","multiple","disabled","file-type","file-size","limit","is-show-tip","token-key","support-video","size","disable-drag","call-back","extra-data","upload-request","show-paste-input","paste-placeholder"]))}}),Zo={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},Go={key:0},Jo={key:1},Xo={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},Yo={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},en={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},tn={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},on={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},nn={class:"flex items-center gap-2"},ln={class:"text-sm text-gray-700 truncate max-w-[200px]"},an={class:"flex items-center gap-2"},Tt=5,se=2e3,fe=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!1},title:{default:""},width:{default:"50%"},showFooter:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},confirmText:{default:"确 认"},cancelText:{default:"取 消"},confirmLoading:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!1},minimizable:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},top:{default:"15vh"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},size:{default:"default"},zIndex:{default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(t,{expose:$,emit:U}){let o=0;const l=t,W=e.useSlots(),x=e.ref(!0),p=e.ref(!1),f=e.ref(se),E=e.ref(null),F=Nt.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),I=e.computed(()=>{const c=[];return l.showCancel&&c.push("cancel"),l.showConfirm&&c.push("confirm"),c}),C=e.computed(()=>({CancelButton:e.createVNode(X),ConfirmButton:e.createVNode(G)})),O=e.computed(()=>!!(W.footer||l.showFooter)),z=e.ref(!1),S=e.ref(!1);let q=!1,M=document.activeElement instanceof HTMLElement?document.activeElement:null;const Z=e.ref(l.showFullscreen&&F?!0:l.fullscreen),N=U,j=e.computed(()=>l.open);e.watchEffect(()=>{j.value&&(z.value=!1)}),e.watch(()=>l.open,(c,v)=>{if(c){z.value=!1,S.value=!1,M=document.activeElement instanceof HTMLElement?document.activeElement:M,v===!1&&N("open-change",!0);return}v&&!z.value&&(z.value=!0,N("open-change",!1),N("close","external"))}),e.watch(()=>l.confirmLoading,c=>{c?q=!0:q&&(q=!1,S.value=!1)}),$({handleMinimize:g});const A=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,L=e.ref(!1);let R=!1;const h=e.ref(null),{x:k,y:n}=Nt.useDraggable(h,{initialValue:{x:5,y:window.innerHeight-100-o*60},onMove(c){var v;(v=h.value)==null||v.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),k.value=Math.max(0,Math.min(window.innerWidth-300,c.x)),n.value=Math.max(0,Math.min(window.innerHeight-50,c.y))},onEnd(){var c;(c=h.value)==null||c.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),d=e.computed(()=>({transform:`translate(${k.value}px, ${n.value}px)`,willChange:"transform"}));function P(c){const v=c.target,{scrollTop:K,scrollHeight:D,clientHeight:Y}=v;x.value=K<=Tt,p.value=D-(K+Y)<=Tt}function H(){const c=document.querySelector(`.${A}.el-dialog`);c&&(E.value=c,c.addEventListener("scroll",P)),T(),N("opened")}function i(){Z.value=!Z.value,T()}function y(c){l.confirmLoading&&c!=="external"||z.value||(z.value=!0,a(),N("update:open",!1),N("open-change",!1),(c==="cancel"||c==="header")&&N("cancel"),N("close",c))}function Q(){N("closed"),e.nextTick(()=>{M!=null&&M.isConnected&&M.focus()})}function V(c){l.showFullscreen&&c.detail>=2&&i()}function G(){return e.h(_.ElButton,{type:"primary",class:"dialog__footerBtn",loading:l.confirmLoading,disabled:l.confirmDisabled||l.confirmLoading||S.value,onClick:te},()=>l.confirmText)}function te(){S.value||l.confirmLoading||l.confirmDisabled||(S.value=!0,N("confirm"),l.closeOnConfirm&&y("confirm"))}function X(){return e.h(_.ElButton,{class:"dialog__footerBtn",onClick:()=>y("cancel")},()=>l.cancelText)}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=se),T(),document.addEventListener("keydown",le),document.addEventListener("mousedown",u)});function oe(){var D,Y;const c=(D=document.querySelector(`.${A}`))==null?void 0:D.closest(".el-overlay");if(!c)return!1;const K=Array.from(document.querySelectorAll(".el-overlay")).filter(J=>window.getComputedStyle(J).display!=="none").map((J,ee)=>({overlay:J,order:ee,zIndex:Number.parseInt(window.getComputedStyle(J).zIndex||"0",10)}));return K.sort((J,ee)=>J.zIndex-ee.zIndex||J.order-ee.order),((Y=K.at(-1))==null?void 0:Y.overlay)===c}function le(c){c.key!=="Escape"||!l.open||!l.closeOnEscape||l.confirmLoading||!oe()||(c.preventDefault(),y("escape"))}function u(c){if(!l.open||!l.closeOnOverlay||l.confirmLoading||!oe()||!(c.target instanceof Node))return;const v=document.querySelector(`.${A}.el-dialog`),K=v==null?void 0:v.closest(".el-overlay");!v||!K||!K.contains(c.target)||v.contains(c.target)||y("overlay")}function T(){var ee;const c=Array.from(document.querySelectorAll(".el-overlay")).filter(re=>window.getComputedStyle(re).display!=="none"&&!re.classList.contains("is-message")),v=(ee=document.querySelector(`.${A}`))==null?void 0:ee.closest(".el-overlay"),K=document.querySelector(`.${A}.el-dialog`);if(!v||!K)return;const D=se;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||D;const J=Math.max(window.qyDialogMaxZIndex,...c.map(re=>parseInt(window.getComputedStyle(re).zIndex||D.toString())))+2;window.qyDialogMaxZIndex=J,e.nextTick(()=>{v.style.zIndex=J.toString(),K.style.zIndex=(J+1).toString(),f.value=J+1})}e.onUnmounted(()=>{var c;document.removeEventListener("keydown",le),document.removeEventListener("mousedown",u),(c=E.value)==null||c.removeEventListener("scroll",P),a()});function a(){if(!R){L.value=!1;return}R=!1,o=Math.max(0,o-1),L.value=!1}function g(){var v;const c=(v=document.querySelector(`.${A}`))==null?void 0:v.closest(".el-overlay");!c||!l.open||(L.value?(L.value=!1,c.style.display="block",R&&(R=!1,o=Math.max(0,o-1)),T()):(L.value=!0,c.style.display="none",R=!0,o+=1,n.value=window.innerHeight-50-o*60))}return(c,v)=>{const K=ce.ElIcon,D=ce.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(D,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[l.size==="small"&&"[&_.el-dialog__header]:!hidden",A]]),"model-value":j.value,title:l.title,width:l.width,top:l.top,"align-center":"","append-to-body":"","destroy-on-close":l.destroyOnClose,"lock-scroll":l.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,fullscreen:Z.value,"z-index":f.value,onClosed:Q,onOpened:H,draggable:l.draggable},e.createSlots({header:e.withCtx(()=>[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:x.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:V},[e.createElementVNode("div",Zo,[e.unref(W).header?e.unref(W).header?(e.openBlock(),e.createElementBlock("div",Jo,[e.renderSlot(c.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Go,e.toDisplayString(l.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:v[4]||(v[4]=e.withModifiers(()=>{},["stop"]))},[l.size==="default"&&l.minimizable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(g,["stop"]),onMousedown:v[0]||(v[0]=e.withModifiers(()=>{},["stop"]))},[...v[7]||(v[7]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)])],32)):e.createCommentVNode("",!0),l.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(i,["stop"]),onMousedown:v[1]||(v[1]=e.withModifiers(()=>{},["stop"]))},[Z.value?(e.openBlock(),e.createElementBlock("span",Yo)):(e.openBlock(),e.createElementBlock("span",Xo))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:v[2]||(v[2]=e.withModifiers(Y=>y("header"),["stop"])),onMousedown:v[3]||(v[3]=e.withModifiers(()=>{},["stop"]))},[...v[8]||(v[8]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)])],32)],32)],36)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(Kt)(Z.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:O.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:l.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[l.size==="small"?(e.openBlock(),e.createElementBlock("div",en,[e.createVNode(K,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:v[5]||(v[5]=Y=>y("header"))},{default:e.withCtx(()=>[e.createVNode(e.unref(Ut.Close))]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default")],6)]),_:2},[l.showFooter&&!c.$slots.footer&&Array.isArray(I.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",tn,[e.createElementVNode("div",null,[e.renderSlot(c.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":p.value},"qy-dialog__footer flex items-center justify-end"])},[I.value.includes("cancel")?(e.openBlock(),e.createBlock(X,{key:0})):e.createCommentVNode("",!0),I.value.includes("confirm")?(e.openBlock(),e.createBlock(G,{key:1})):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"footer-append")],2)])]),key:"0"}:O.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":p.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(c.$slots,"footer",{layouts:C.value,layoutsNode:Object.values(C.value)})],2)]),key:"1"}:void 0]),1032,["class","model-value","title","width","top","destroy-on-close","lock-scroll","fullscreen","z-index","draggable"]),e.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:h,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([d.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",on,[e.createElementVNode("div",nn,[v[9]||(v[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",ln,e.toDisplayString(l.title),1)]),e.createElementVNode("div",an,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(g,["stop"])},[...v[10]||(v[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:v[6]||(v[6]=e.withModifiers(Y=>y("header"),["stop"]))},[...v[11]||(v[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,L.value]])])}}});function ye(t){const $=t==null?void 0:t.match(/(\[url\:(.*?)\])(.*)/);return $?{imageUrl:$[2],text:$[3]}:{imageUrl:"",text:t||""}}function Pt(t){const $=String(t||"").match(/(\[url\:.*?\])([\s\S]*)/);return $?$[2]:t}function me(t,$){return $?`[url:${$}]${t}`:t}const rn={class:"qy-remark-image__field"},sn={key:1,class:"qy-remark-image__divider"},cn={class:"qy-remark-image__upload-anchor"},un={key:0,class:"icon-[line-md--loading-twotone-loop]",role:"img","aria-hidden":"true"},dn={key:1,class:"icon-[ion--cloud-upload-outline]",role:"img","aria-hidden":"true"},fn={key:2,class:"icon-[ph--images-thin]",role:"img","aria-hidden":"true"},yn={class:"qy-remark-image__popover"},mn=["src"],pn={class:"qy-remark-image__popover-footer"},gn=e.defineComponent({__name:"index",props:{defaultValue:{default:""},defaultImage:{default:""},rows:{default:6},width:{default:""},autosize:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"粘贴图片上传"},type:{default:"textarea"},layout:{default:"default"},selectValue:{type:[String,Number,Boolean],default:""},selectOptions:{default:()=>[]},selectDisabled:{type:Boolean,default:!1},api:{default:"/permission-api/common/uploads"},tokenKey:{default:"Admin-Token"},uploadName:{default:"files"},uploadRequest:{}},emits:["change","update:selectValue","select-change"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.ref(null),p=e.ref(""),f=e.ref(""),E=e.ref(!1),b=e.computed(()=>o.layout==="select-prefix"),F=e.computed(()=>({"qy-remark-image--select-prefix":b.value})),I=e.computed(()=>b.value||o.type==="text"?"text":"textarea"),C=e.computed(()=>{if(o.width)return{width:typeof o.width=="number"?`${o.width}px`:o.width}});e.watch(()=>o.defaultValue,h=>{const k=ye(h||"");p.value=k.text,f.value=k.imageUrl||o.defaultImage||""},{immediate:!0}),e.watch(()=>o.defaultImage,h=>{h!==void 0&&!ye(o.defaultValue||"").imageUrl&&(f.value=h||"")},{immediate:!0}),e.onMounted(()=>{e.nextTick(z)}),e.onUnmounted(()=>{const h=O();h&&h.removeEventListener("paste",N)});function O(){var h,k;return((h=x.value)==null?void 0:h.textarea)||((k=x.value)==null?void 0:k.input)||null}function z(){const h=O();h&&(h.removeEventListener("paste",N),h.addEventListener("paste",N))}function S(h){p.value=Pt(h||"")}function q(h){l("update:selectValue",h),l("select-change",h)}function M(){f.value="",R()}function Z(){p.value="",f.value="",R()}async function N(h){var d;const n=Array.from(((d=h.clipboardData)==null?void 0:d.files)||[]).find(P=>P.type.startsWith("image/"));n&&(h.preventDefault(),await j({file:n,onError:()=>{},onProgress:()=>{},onSuccess:()=>{}}))}async function j(h){var k,n;if(h.file.size>51200*1e3)return _.ElMessage.error("图片过大"),!1;E.value=!0;try{const d=await A(h);return f.value=L(d),R(),_.ElMessage.success("上传图片成功"),(k=h.onSuccess)==null||k.call(h,d),!0}catch(d){return(n=h.onError)==null||n.call(h,d),_.ElMessage.error("上传失败"),!1}finally{E.value=!1}}async function A(h){const k=new FormData;if(k.append(o.uploadName,h.file),o.uploadRequest)return o.uploadRequest({file:h.file,formData:k,options:h,api:o.api,tokenKey:o.tokenKey});const n=pe.api.get(o.tokenKey);return(await fetch(o.api,{method:"POST",body:k,credentials:"include",headers:n?{Authorization:`Bearer ${n}`}:void 0})).json()}function L(h){var d,P;if(typeof h=="string")return h;const k=h,n=(k==null?void 0:k.urls)??((d=k==null?void 0:k.data)==null?void 0:d.urls)??((P=k==null?void 0:k.data)==null?void 0:P.url)??(k==null?void 0:k.url)??"";return Array.isArray(n)?n[0]||"":n||""}function R(){l("change",me(p.value||"",f.value||""),f.value||"")}return $({deleteImage:M,clearContent:Z,getValue:()=>({text:p.value||"",imageUrl:f.value||"",value:me(p.value||"",f.value||"")})}),(h,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-remark-image",F.value]),style:e.normalizeStyle(C.value)},[e.createElementVNode("div",rn,[b.value?(e.openBlock(),e.createBlock(e.unref(_.ElSelect),{key:0,class:"qy-remark-image__prefix-select","model-value":t.selectValue,options:t.selectOptions,disabled:t.disabled||t.selectDisabled,size:"small","onUpdate:modelValue":q},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selectOptions,n=>(e.openBlock(),e.createBlock(e.unref(_.ElOption),{key:String(n.value),label:n.label,value:n.value,disabled:n.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","options","disabled"])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("span",sn)):e.createCommentVNode("",!0),e.createVNode(e.unref(_.ElInput),e.mergeProps({ref_key:"inputRef",ref:x,"model-value":p.value,type:I.value,rows:t.rows,autosize:t.autosize,disabled:t.disabled,placeholder:t.placeholder},e.unref(W),{"onUpdate:modelValue":S,onBlur:R}),null,16,["model-value","type","rows","autosize","disabled","placeholder"]),e.createVNode(e.unref(_.ElPopover),{placement:"top-start",width:400,trigger:"hover",disabled:!f.value},{reference:e.withCtx(()=>[e.createElementVNode("div",cn,[e.createVNode(e.unref(_.ElUpload),{disabled:E.value||t.disabled,class:"qy-remark-image__upload","show-file-list":!1,"http-request":j},{default:e.withCtx(()=>[E.value?(e.openBlock(),e.createElementBlock("span",un)):f.value?(e.openBlock(),e.createElementBlock("span",fn)):(e.openBlock(),e.createElementBlock("span",dn))]),_:1},8,["disabled"])])]),default:e.withCtx(()=>[e.createElementVNode("div",yn,[e.createElementVNode("img",{src:f.value,class:"qy-remark-image__preview-img"},null,8,mn),e.createElementVNode("div",pn,[k[1]||(k[1]=e.createElementVNode("span",{class:"qy-remark-image__popover-tip"},"再次点击按钮可更换图片",-1)),e.createVNode(e.unref(_.ElButton),{link:"",size:"small",type:"danger",disabled:t.disabled,onClick:M},{default:e.withCtx(()=>[...k[0]||(k[0]=[e.createTextVNode(" 删除图片 ",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["disabled"])])],6))}}),hn=ae._export_sfc(gn,[["__scopeId","data-v-3158c066"]]),vn=e.defineComponent({name:"QyRemoteSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Array,null],default:void 0},fetchMethod:{},defaultOptions:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},autoSelectSingle:{type:Boolean,default:!1},size:{default:void 0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},fitInputWidth:{type:Boolean,default:!0},popperClass:{default:""},debounce:{default:300},minLength:{default:1},remoteOnFocus:{type:Boolean,default:!1},remoteShowSuffix:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},reserveSelectedOption:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1},commitOnBlur:{type:Boolean,default:!1}},emits:["update:modelValue","change","clear","visible-change","focus","blur","options-change","loading-change","error"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.ref(null),p=e.ref([]),f=e.ref(new Map),E=e.ref(!1),b=e.ref(""),F=e.ref("");let I=0,C=null;const O=e.computed(()=>o.loading||E.value),z=e.ref(!1),S=e.computed(()=>b.value!==""),q=e.computed(()=>{if(S.value)return p.value;const u=new Map,T=a=>{u.set(M(a),a)};return o.defaultOptions.forEach(T),o.reserveSelectedOption&&f.value.forEach(a=>T(a)),p.value.forEach(T),Array.from(u.values())});e.watch(()=>o.defaultOptions,u=>{u.forEach(N)},{immediate:!0}),e.watch(()=>o.modelValue,()=>{q.value.forEach(N)},{immediate:!0});function M(u){return(u==null?void 0:u[o.valueKey])??(u==null?void 0:u.value)??(u==null?void 0:u.label)}function Z(u){return Array.isArray(o.modelValue)?o.modelValue.includes(u):o.modelValue===u}function N(u){if(!o.reserveSelectedOption)return;const T=M(u);Z(T)&&f.value.set(T,u)}function j(u){return o.disabled?!1:u?u.length>=o.minLength:o.remoteOnFocus}function A(u){E.value!==u&&(E.value=u,l("loading-change",u))}async function L(u){const T=G(u),a=++I;if(te(T),!j(T)){p.value=[],A(!1),l("options-change",q.value);return}A(!0);try{const g=await o.fetchMethod(T);if(a!==I)return;p.value=Array.isArray(g)?g:[],p.value.forEach(N),l("options-change",q.value)}catch(g){if(a!==I)return;p.value=[],l("error",g),l("options-change",q.value)}finally{a===I&&A(!1)}}function R(){z.value||(z.value=!0,L(""))}function h(u){const T=G(u);F.value=T,I+=1,te(T),C&&(clearTimeout(C),C=null),C=setTimeout(()=>{L(T)},o.debounce)}function k(){z.value=!0,L("")}function n(){L(b.value)}function d(u){F.value="",l("update:modelValue",u)}function P(u){F.value="",q.value.forEach(N),l("change",u)}function H(){F.value="",l("clear")}function i(u){u&&o.remoteOnFocus&&!b.value&&R(),l("visible-change",u)}function y(u){o.remoteOnFocus&&!b.value&&R(),l("focus",u)}function Q(u){V(),l("blur",u)}function V(){if(!o.allowCreate||!o.commitOnBlur||o.disabled)return;const u=F.value;u.trim()&&(F.value="",l("update:modelValue",u),l("change",u))}function G(u){return String(u??"")}function te(u){b.value=u,p.value=[],l("options-change",q.value)}function X(){var u,T;(T=(u=x.value)==null?void 0:u.focus)==null||T.call(u)}function oe(){var u,T;(T=(u=x.value)==null?void 0:u.blur)==null||T.call(u)}function le(){l("update:modelValue",o.multiple?[]:""),l("clear")}return e.onBeforeUnmount(()=>{C&&clearTimeout(C)}),$({focus:X,blur:oe,clear:le,retryFetch:n,fetchDefaultOptions:k}),(u,T)=>(e.openBlock(),e.createBlock(ge.Select,e.mergeProps({ref_key:"selectRef",ref:x},e.unref(W),{"model-value":t.modelValue,options:q.value,"label-key":t.labelKey,"value-key":t.valueKey,"disabled-key":t.disabledKey,placeholder:t.placeholder,disabled:t.disabled,clearable:t.clearable,filterable:!0,multiple:t.multiple,"collapse-tags":t.collapseTags,"collapse-tags-tooltip":t.collapseTagsTooltip,"auto-select-single":t.autoSelectSingle,size:t.size,teleported:t.teleported,"append-to":t.appendTo,"fit-input-width":t.fitInputWidth,"popper-class":t.popperClass,remote:"",debounce:0,"remote-show-suffix":t.remoteShowSuffix,"remote-method":h,loading:O.value,"onUpdate:modelValue":d,onChange:P,onClear:H,onVisibleChange:i,onFocus:y,onBlur:Q}),e.createSlots({default:e.withCtx(()=>[u.$slots.default?e.renderSlot(u.$slots,"default",{},void 0,void 0,0):e.createCommentVNode("",!0)]),_:2},[u.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"prefix")]),key:"0"}:void 0,u.$slots.empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"empty")]),key:"1"}:void 0,u.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(u.$slots,"loading")]),key:"2"}:void 0,u.$slots.tag?{name:"tag",fn:e.withCtx(a=>[e.renderSlot(u.$slots,"tag",e.normalizeProps(e.guardReactiveProps(a)))]),key:"3"}:void 0]),1040,["model-value","options","label-key","value-key","disabled-key","placeholder","disabled","clearable","multiple","collapse-tags","collapse-tags-tooltip","auto-select-single","size","teleported","append-to","fit-input-width","popper-class","remote-show-suffix","loading"]))}}),wn={class:"qy-search-input__item"},kn=["innerHTML"],_n={key:0,class:"qy-search-input__item-description"},bn=e.defineComponent({name:"QySearchInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入搜索内容"},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"},clearable:{type:Boolean,default:!0},showButton:{type:Boolean,default:!0},buttonText:{default:"搜索"},buttonProps:{default:()=>({})},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},triggerOnFocus:{type:Boolean,default:!1},searchOnEnter:{type:Boolean,default:!0},searchOnSelect:{type:Boolean,default:!1},highlightKeyword:{type:Boolean,default:!0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},popperClass:{default:""},fitInputWidth:{type:Boolean,default:!0}},emits:["update:modelValue","search","clear","input","change","focus","blur","enter","select","visible-change","suggestions-change","error"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.ref(null),p=e.ref(I(o.modelValue)),f=e.computed(()=>I(o.modelValue)),E=e.computed(()=>["qy-search-input__popper",o.popperClass].filter(Boolean).join(" ")),b=e.computed(()=>I(o.modelValue)),F=e.ref("");e.watch(()=>o.modelValue,a=>{p.value=I(a)});function I(a){return a==null?"":String(a)}function C(a){return o.removeSpace?a.replace(/\s+/g,""):a}function O(a,g){return o.trimMode!==g?a:a.trim()}function z(a){return C(I(a))}function S(a){p.value=a,l("update:modelValue",a)}function q(a,g=""){return{...a,label:a.label||a.value,value:a.value||a.label,description:a.description||g}}function M(a=[]){return a.flatMap(g=>{if(Array.isArray(g.items)){const c=g;return c.items.map(v=>q(v,c.groupLabel))}return q(g)})}function Z(a){const g=a.toLowerCase();return c=>[c.label,c.value,c.description].filter(Boolean).some(v=>String(v).toLowerCase().includes(g))}function N(a){return a?a.length>=o.minLength:o.triggerOnFocus}function j(a){l("suggestions-change",a),l("visible-change",a.length>0)}async function A(a){if(!N(a))return j([]),[];if(o.fetchSuggestionsMethod){const v=await new Promise(K=>{var D;(D=o.fetchSuggestionsMethod)==null||D.call(o,a,Y=>{K(M(Y))})});return j(v),v}if(o.fetchSuggestions){const v=await o.fetchSuggestions(a),K=M(Array.isArray(v)?v:[]);return j(K),K}const g=M(o.suggestions),c=a?g.filter(Z(a)):g;return j(c),c}async function L(a,g){F.value=a;try{const c=await A(a);g(c)}catch(c){l("error",c),j([]),g([])}}function R(){var a,g;F.value&&((g=(a=x.value)==null?void 0:a.getData)==null||g.call(a,F.value))}function h(a){const g=z(a);S(g)}function k(a){const g=z(a);p.value=g,l("input",g)}function n(a){const g=O(z(a),"change");g!==I(o.modelValue)&&S(g),l("change",g)}function d(a){l("focus",a)}function P(a){const g=O(p.value,"blur");g!==I(o.modelValue)&&S(g),l("blur",a),l("visible-change",!1)}function H(){p.value="",l("update:modelValue",""),l("clear"),j([])}function i(a){l("enter",a),o.searchOnEnter&&y()}function y(){l("search",I(o.modelValue))}function Q(a){l("select",a),o.searchOnSelect&&l("search",a.value)}function V(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function G(a){return a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function te(a){const g=V(a||"");if(!o.highlightKeyword||!f.value)return g;const c=G(V(f.value));return c?g.replace(new RegExp(`(${c})`,"ig"),'<mark class="qy-search-input__mark">$1</mark>'):g}function X(){var a,g;(g=(a=x.value)==null?void 0:a.focus)==null||g.call(a)}function oe(){var a,g;(g=(a=x.value)==null?void 0:a.blur)==null||g.call(a)}function le(){var a,g,c;(c=(g=(a=x.value)==null?void 0:a.inputRef)==null?void 0:g.select)==null||c.call(g)}function u(){var a,g;(g=(a=x.value)==null?void 0:a.clear)==null||g.call(a)}function T(){var a,g;(g=(a=x.value)==null?void 0:a.close)==null||g.call(a)}return $({focus:X,blur:oe,select:le,clear:u,closePanel:T,retryFetch:R}),(a,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-search-input",{"is-disabled":t.disabled}])},[e.createVNode(e.unref(_.ElAutocomplete),e.mergeProps({ref_key:"autocompleteRef",ref:x},e.unref(W),{"model-value":b.value,disabled:t.disabled,placeholder:t.placeholder,clearable:t.clearable,debounce:t.debounce,"fetch-suggestions":L,"trigger-on-focus":t.triggerOnFocus,teleported:t.teleported,"fit-input-width":t.fitInputWidth,"popper-class":E.value,"append-to":t.appendTo,"value-key":"value","onUpdate:modelValue":h,onInput:k,onChange:n,onFocus:d,onBlur:P,onClear:H,onSelect:Q,onKeydown:e.withKeys(i,["enter"])}),e.createSlots({default:e.withCtx(({item:c})=>[e.renderSlot(a.$slots,"item",{item:c,keyword:f.value},()=>[e.createElementVNode("div",wn,[e.createElementVNode("div",{class:"qy-search-input__item-label",innerHTML:te(c.label||c.value||"")},null,8,kn),c.description?(e.openBlock(),e.createElementBlock("div",_n,e.toDisplayString(c.description),1)):e.createCommentVNode("",!0)])],!0)]),_:2},[a.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,a.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,a.$slots.prepend?{name:"prepend",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"prepend",{},void 0,!0)]),key:"2"}:void 0,a.$slots.append||t.showButton?{name:"append",fn:e.withCtx(()=>[a.$slots.append?e.renderSlot(a.$slots,"append",{},void 0,!0,0):(e.openBlock(),e.createBlock(e.unref(_.ElButton),e.mergeProps({key:1},t.buttonProps,{loading:t.loading,disabled:t.disabled,onClick:y}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.buttonText),1)]),_:1},16,["loading","disabled"]))]),key:"3"}:void 0]),1040,["model-value","disabled","placeholder","clearable","debounce","trigger-on-focus","teleported","fit-input-width","popper-class","append-to"])],2))}}),Dt=ae._export_sfc(bn,[["__scopeId","data-v-cd7f5dfc"]]),Qn={class:"qy-record-quote-search"},Sn={key:0,class:"qy-record-quote-search__header"},xn={key:0,class:"qy-record-quote-search__label"},Cn={key:1,class:"qy-record-quote-search__description"},Bn=e.defineComponent({name:"QyRecordQuoteSearch",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入报价单号"},buttonText:{default:"查询报价单"},autoNormalize:{type:Boolean,default:!0},showStatus:{type:Boolean,default:!0},status:{default:"default"},statusText:{default:""},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},searchOnSelect:{type:Boolean,default:!0},searchMethod:{type:[Function,null],default:null},extractMethod:{type:[Function,null],default:null},normalizeMethod:{type:[Function,null],default:null},label:{default:"报价单号"},description:{default:""},trimMode:{default:"blur"}},emits:["update:modelValue","search","clear","normalize","enter","select","error","success"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.ref(null),p=e.ref(!1),f=e.computed(()=>o.statusText||""),E=e.computed(()=>o.loading||p.value);function b(n){return n==null?"":String(n)}function F(n){const d=b(n).trim(),P=I(d),H=P.match(/BJ\d{8}[A-Z0-9]{4}/i);return H?H[0]:P}function I(n){return b(n).replace(/\s+/g,"").trim().toUpperCase()}function C(n){return o.extractMethod?o.extractMethod(n):F(n)}function O(n){return o.normalizeMethod?o.normalizeMethod(n):I(n)}function z(n,d){const P=b(n),H=C(P),i=o.autoNormalize?O(H):H;return l("normalize",{rawValue:P,code:i}),{rawValue:P,code:i,item:d}}function S(n){l("update:modelValue",n)}async function q(n){if(l("search",n),!!o.searchMethod){p.value=!0;try{const d=await o.searchMethod(n);l("success",d)}catch(d){l("error",d)}finally{p.value=!1}}}function M(n){const d=z(n);d.code!==b(o.modelValue)&&l("update:modelValue",d.code),q(d)}function Z(){l("clear")}function N(n){l("enter",n)}function j(n){if(l("select",n),!o.searchOnSelect)return;const d=z(n.value,n);d.code!==b(o.modelValue)&&l("update:modelValue",d.code),q(d)}function A(n){l("error",n)}function L(){var n,d;(d=(n=x.value)==null?void 0:n.focus)==null||d.call(n)}function R(){var n,d;(d=(n=x.value)==null?void 0:n.blur)==null||d.call(n)}function h(){var n,d;(d=(n=x.value)==null?void 0:n.select)==null||d.call(n)}function k(){var n,d;(d=(n=x.value)==null?void 0:n.clear)==null||d.call(n)}return $({focus:L,blur:R,select:h,clear:k,extractQuoteOrderCode:C,normalizeQuoteOrderCode:O}),(n,d)=>(e.openBlock(),e.createElementBlock("div",Qn,[e.renderSlot(n.$slots,"label",{},()=>[t.label||t.description?(e.openBlock(),e.createElementBlock("div",Sn,[t.label?(e.openBlock(),e.createElementBlock("div",xn,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.description?(e.openBlock(),e.createElementBlock("div",Cn,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],!0),e.createVNode(Dt,e.mergeProps({ref_key:"searchRef",ref:x},e.unref(W),{"model-value":t.modelValue,loading:E.value,disabled:t.disabled,placeholder:t.placeholder,"remove-space":!0,"trim-mode":t.trimMode,"button-text":t.buttonText,suggestions:t.suggestions,"fetch-suggestions":t.fetchSuggestions,"fetch-suggestions-method":t.fetchSuggestionsMethod,debounce:t.debounce,"min-length":t.minLength,"search-on-select":!1,"onUpdate:modelValue":S,onSearch:M,onClear:Z,onEnter:N,onSelect:j,onError:A}),e.createSlots({_:2},[n.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,n.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,n.$slots.item?{name:"item",fn:e.withCtx(P=>[e.renderSlot(n.$slots,"item",e.normalizeProps(e.guardReactiveProps(P)),void 0,!0)]),key:"2"}:void 0,n.$slots.empty?{name:"empty",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"empty",{},void 0,!0)]),key:"3"}:void 0,n.$slots.loading?{name:"loading",fn:e.withCtx(()=>[e.renderSlot(n.$slots,"loading",{},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","loading","disabled","placeholder","trim-mode","button-text","suggestions","fetch-suggestions","fetch-suggestions-method","debounce","min-length"]),t.showStatus&&f.value?e.renderSlot(n.$slots,"status",{status:t.status,statusText:f.value},()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-record-quote-search__status",`is-${t.status}`])},e.toDisplayString(f.value),3)],!0,0):e.createCommentVNode("",!0)]))}}),Vn=ae._export_sfc(Bn,[["__scopeId","data-v-3a314f64"]]),In={class:"qy-selection-dialog"},qn={class:"qy-selection-dialog__main"},$n={key:0,class:"qy-selection-dialog__selected"},En={class:"qy-selection-dialog__selected-tags"},Nn={key:0,class:"qy-selection-dialog__selected-actions"},Tn={key:1,class:"qy-selection-dialog__search-row"},An={key:0,class:"qy-selection-dialog__toolbar"},zn={key:2,class:"qy-selection-dialog__pagination"},Pn={class:"qy-selection-dialog__paste-actions"},Dn=e.defineComponent({name:"QySelectionDialog",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},open:{type:Boolean,default:!0},title:{default:"选择数据"},width:{default:"1200px"},fetchMethod:{type:Function,default:void 0},query:{type:Function,default:void 0},responseFormatter:{type:Function,default:void 0},selectionMode:{default:void 0},selection:{default:"single"},selected:{default:()=>[]},rowKey:{default:"id"},mainKey:{default:void 0},labelKey:{default:"name"},tagName:{default:void 0},searchKey:{default:"conditions"},queryParams:{default:()=>({})},category:{type:[Array,Function,Boolean],default:!1},categoryFormatter:{type:[Function,Array],default:void 0},categoryOptions:{default:()=>[]},categoryFetchMethod:{type:[Function,null],default:null},type:{type:[Array,Boolean],default:!1},typeOptions:{default:()=>[]},typeSelectionProps:{default:()=>({})},typeSelectProps:{default:()=>({})},tableProps:{default:()=>({})},showSelected:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},showCopyPaste:{type:Boolean,default:!1},append:{type:Boolean,default:!1},showAppend:{type:Boolean,default:!1},pageSizes:{default:()=>[10,20,50,100]}},emits:["update:modelValue","selection-change","confirm","submit","cancel","close","append","loaded"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.useSlots(),p=e.getCurrentInstance(),f=e.ref(null),E=e.ref([]),b=e.ref([]),F=e.ref([]),I=e.ref(!1),C=e.ref(0),O=e.ref(!1),z=e.ref(""),S=e.reactive({category:[],type:"",page:1,pageSize:10,...o.searchKey?{[o.searchKey]:""}:{},...o.queryParams}),q=e.computed(()=>o.selectionMode?o.selectionMode:o.selection==="multi"?"multiple":o.selection),M=e.computed(()=>o.mainKey||o.rowKey),Z=e.computed(()=>o.tagName||o.labelKey),N=e.computed(()=>o.typeOptions.length?o.typeOptions:o.type||[]),j=e.computed(()=>({...o.typeSelectionProps,...o.typeSelectProps})),A=e.computed(()=>o.tableProps||{}),L=e.computed(()=>o.showSearch||!!W["search-visible"]),R=e.computed(()=>o.showAppend||o.append),h=e.computed(()=>R.value||!!x.toolbar||!!x.bar),k=e.computed(()=>o.fetchMethod||o.query),n=e.computed(()=>d()?o.modelValue:o.selected);function d(){const r=(p==null?void 0:p.vnode.props)||{};return Object.prototype.hasOwnProperty.call(r,"modelValue")||Object.prototype.hasOwnProperty.call(r,"model-value")||Object.prototype.hasOwnProperty.call(r,"onUpdate:modelValue")}e.watch([()=>o.modelValue,()=>o.selected,()=>o.open],()=>{o.open&&(b.value=ie(n.value),c())},{immediate:!0,deep:!0}),e.watch([()=>o.categoryOptions,()=>o.category],r=>{if(Array.isArray(o.category)&&o.category.length){F.value=o.category;return}F.value=o.categoryOptions||[]},{immediate:!0}),e.watch(O,r=>{r||(z.value="")});async function P(){b.value=ie(n.value),await H(),await i(),c()}async function H(){const r=o.categoryFetchMethod||(typeof o.category=="function"?o.category:null);if(!r)return;const s=await r();F.value=X(s)}async function i(){if(k.value){I.value=!0;try{const r=await k.value(le()),s=o.responseFormatter?await o.responseFormatter(r):r,{rows:B,total:w}=te(s);return E.value=B,C.value=w,l("loaded",B),c(),s}finally{I.value=!1}}}function y(){return S.page=1,i()}function Q(){return S.page=1,i()}function V(){return Object.assign(S,{category:[],type:"",page:1,pageSize:S.pageSize,...o.searchKey?{[o.searchKey]:""}:{},...o.queryParams}),i()}function G(){l("append")}function te(r){if(Array.isArray(r))return{rows:r,total:r.length};const s=r==null?void 0:r.data;if(Array.isArray(s))return{rows:s,total:(r==null?void 0:r.total)??s.length};const B=(r==null?void 0:r.records)||(r==null?void 0:r.rows)||(s==null?void 0:s.records)||[],w=(r==null?void 0:r.total)??(s==null?void 0:s.total)??B.length;return{rows:B,total:w}}function X(r){const s=(r==null?void 0:r.data)??r;if(!Array.isArray(s))return[];if(typeof o.categoryFormatter=="function")return o.categoryFormatter(s);if(Array.isArray(o.categoryFormatter)){const[B,w]=o.categoryFormatter;return s.map(ne=>({...ne,label:ne[B],value:ne[w],children:Array.isArray(ne.children)?oe(ne.children,B,w):ne.children}))}return s}function oe(r,s,B){return r.map(w=>({...w,label:w[s],value:w[B],children:Array.isArray(w.children)?oe(w.children,s,B):w.children}))}function le(){const r={...o.queryParams,...S};return o.searchKey&&(r[o.searchKey]=String(r[o.searchKey]||"").trim()),r.category=u(),r}function u(){if(Object.prototype.hasOwnProperty.call(o.queryParams,"category"))return o.queryParams.category;const r=S.category;return Array.isArray(r)?r:r?[r]:[]}function T(r){var s,B;if(q.value!=="none"){if(q.value==="single"){b.value=[r],(s=f.value)==null||s.setCurrentRow(r),ee();return}v(r)&&((B=f.value)==null||B.toggleRowSelection(r,!K(r)))}}function a(r){if(q.value!=="multiple")return;const s=new Set(E.value.map(D)),B=new Set(r.map(D));b.value=b.value.filter(w=>!s.has(D(w))||B.has(D(w))),r.forEach(w=>{K(w)||b.value.push(w)}),ee()}function g(r){var B,w;b.value=b.value.filter(ne=>D(ne)!==D(r));const s=E.value.find(ne=>D(ne)===D(r));s&&(q.value==="multiple"?(B=f.value)==null||B.toggleRowSelection(s,!1):(w=f.value)==null||w.setCurrentRow()),ee()}function c(){e.nextTick(()=>{var r;if(f.value){if(q.value==="single"){const[s]=b.value,B=E.value.find(w=>s&&D(w)===D(s));(r=f.value)==null||r.setCurrentRow(B);return}q.value==="multiple"&&E.value.forEach(s=>{var B;(B=f.value)==null||B.toggleRowSelection(s,K(s))})}})}function v(r){var B;const s=(B=A.value)==null?void 0:B.selectable;return typeof s=="function"?s(r)!==!1:!0}function K(r){return b.value.some(s=>D(s)===D(r))}function D(r){return J(r,M.value)}function Y(r){return J(r,Z.value)??D(r)}function J(r,s){if(!(!r||!s))return s.split(".").reduce((B,w)=>B==null?void 0:B[w],r)}function ee(){const r=ie(b.value);l("selection-change",r)}function re(){const r=ie(b.value);l("update:modelValue",r),l("confirm",r),l("submit",{selection:r,rows:r,query:{...S}})}function Et(){b.value=ie(n.value),l("cancel"),l("close")}async function Mt(){var s;const r=JSON.stringify(b.value);await((s=navigator.clipboard)==null?void 0:s.writeText(r)),_.ElMessage.success("复制成功")}function Rt(){try{const r=JSON.parse(z.value);if(!Array.isArray(r)){_.ElMessage.error("粘贴内容需要是数组");return}r.forEach(s=>{K(s)||b.value.push(s)}),O.value=!1,ee(),c()}catch(r){_.ElMessage.error(`粘贴错误: ${(r==null?void 0:r.message)||"内容格式错误"}`)}}function ie(r=[]){return r.map(s=>({...s}))}return $({search:y,handleSearch:i,handleQuerySearch:y,resetSearch:V,getTableRef:()=>f.value,getTableData:()=>E.value,getSelection:()=>ie(b.value)}),(r,s)=>{const B=ce.ElLoadingDirective;return e.openBlock(),e.createBlock(fe,{open:t.open,title:t.title,width:t.width,onOpened:P,onConfirm:re,onCancel:Et},{default:e.withCtx(()=>[e.createElementVNode("div",In,[e.renderSlot(r.$slots,"side",{},void 0,!0),e.createElementVNode("div",qn,[t.showSelected?(e.openBlock(),e.createElementBlock("div",$n,[s[12]||(s[12]=e.createElementVNode("span",{class:"qy-selection-dialog__selected-label"},"已选项",-1)),e.createElementVNode("div",En,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,w=>(e.openBlock(),e.createBlock(ue.Tag,{key:D(w),closable:"",class:"qy-selection-dialog__selected-tag",onClose:ne=>g(w)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Y(w)),1)]),_:2},1032,["onClose"]))),128)),b.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ue.Tag,{key:0,tone:"info"},{default:e.withCtx(()=>[...s[9]||(s[9]=[e.createTextVNode("无",-1)])]),_:1}))]),t.showCopyPaste?(e.openBlock(),e.createElementBlock("div",Nn,[e.createVNode(e.unref(_.ElButton),{size:"small",onClick:Mt},{default:e.withCtx(()=>[...s[10]||(s[10]=[e.createTextVNode("复制",-1)])]),_:1}),e.createVNode(e.unref(_.ElButton),{size:"small",onClick:s[0]||(s[0]=w=>O.value=!0)},{default:e.withCtx(()=>[...s[11]||(s[11]=[e.createTextVNode("粘贴",-1)])]),_:1})])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),L.value?(e.openBlock(),e.createElementBlock("div",Tn,[e.createVNode(e.unref(_.ElForm),{class:"qy-selection-dialog__search",inline:"",model:S},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"search",{query:S,search:y,reset:V},()=>[F.value.length?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:0,label:"分类"},{default:e.withCtx(()=>[e.createVNode(At.TreeSelect,{modelValue:S.category,"onUpdate:modelValue":s[1]||(s[1]=w=>S.category=w),class:"qy-selection-dialog__category",options:F.value,clearable:"",filterable:"","check-strictly":"","render-after-expand":!1,onChange:y},null,8,["modelValue","options"])]),_:1})):e.createCommentVNode("",!0),N.value.length?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:1,label:"类型"},{default:e.withCtx(()=>[e.createVNode(ge.Select,e.mergeProps({modelValue:S.type,"onUpdate:modelValue":s[2]||(s[2]=w=>S.type=w),class:"qy-selection-dialog__type",options:N.value,placeholder:"请选择类型",clearable:""},j.value,{onChange:y}),null,16,["modelValue","options"])]),_:1})):e.createCommentVNode("",!0),t.searchKey?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:2,label:"搜索"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElInput),{modelValue:S[t.searchKey],"onUpdate:modelValue":s[3]||(s[3]=w=>S[t.searchKey]=w),clearable:"",placeholder:"请输入",class:"qy-selection-dialog__search-input",onKeydown:e.withKeys(e.withModifiers(y,["prevent"]),["enter"])},null,8,["modelValue","onKeydown"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(_.ElFormItem),null,{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:y},{default:e.withCtx(()=>[...s[13]||(s[13]=[e.createTextVNode("查询",-1)])]),_:1}),e.createVNode(e.unref(_.ElButton),{onClick:V},{default:e.withCtx(()=>[...s[14]||(s[14]=[e.createTextVNode("重置",-1)])]),_:1})]),_:1})],!0)]),_:3},8,["model"]),h.value?(e.openBlock(),e.createElementBlock("div",An,[R.value?(e.openBlock(),e.createBlock(e.unref(_.ElButton),{key:0,type:"primary",onClick:G},{default:e.withCtx(()=>[...s[15]||(s[15]=[e.createTextVNode(" 新增 ",-1)])]),_:1})):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"toolbar",{query:S,search:y},void 0,!0),e.renderSlot(r.$slots,"bar",{query:S,search:y},void 0,!0)])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.withDirectives((e.openBlock(),e.createBlock(e.unref(_.ElTable),e.mergeProps({ref_key:"tableRef",ref:f,data:E.value,"row-key":M.value,border:"","highlight-current-row":"","max-height":"550px"},A.value,{onSelectionChange:a,onRowClick:T}),{default:e.withCtx(()=>{var w;return[q.value==="multiple"?(e.openBlock(),e.createBlock(e.unref(_.ElTableColumn),{key:0,type:"selection","reserve-selection":"",width:"42",selectable:(w=A.value)==null?void 0:w.selectable},null,8,["selectable"])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"columns",{},void 0,!0),e.renderSlot(r.$slots,"cols",{},void 0,!0)]}),_:3},16,["data","row-key"])),[[B,I.value]]),t.showPagination&&C.value>0?(e.openBlock(),e.createElementBlock("div",zn,[e.createVNode(e.unref(_.ElPagination),{"current-page":S.page,"onUpdate:currentPage":s[4]||(s[4]=w=>S.page=w),"page-size":S.pageSize,"onUpdate:pageSize":s[5]||(s[5]=w=>S.pageSize=w),total:C.value,"page-sizes":t.pageSizes,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:Q,onCurrentChange:i},null,8,["current-page","page-size","total","page-sizes"])])):e.createCommentVNode("",!0)])]),e.createVNode(fe,{open:O.value,title:"粘贴数据","show-footer":!1,width:"560px","onUpdate:open":s[8]||(s[8]=w=>O.value=w)},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElInput),{modelValue:z.value,"onUpdate:modelValue":s[6]||(s[6]=w=>z.value=w),type:"textarea",rows:8},null,8,["modelValue"]),e.createElementVNode("div",Pn,[e.createVNode(e.unref(_.ElButton),{onClick:s[7]||(s[7]=w=>O.value=!1)},{default:e.withCtx(()=>[...s[16]||(s[16]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:Rt},{default:e.withCtx(()=>[...s[17]||(s[17]=[e.createTextVNode("确认",-1)])]),_:1})])]),_:1},8,["open"])]),_:3},8,["open","title","width"])}}}),Ft=ae._export_sfc(Dn,[["__scopeId","data-v-cf39627e"]]),Fn=e.defineComponent({name:"QyLegacySelectionDialog",inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!0},title:{default:"选择数据"},width:{default:"1200px"},query:{type:Function,default:void 0},responseFormatter:{type:Function,default:void 0},selection:{default:"single"},selected:{default:()=>[]},mainKey:{default:""},tagName:{default:""},searchKey:{default:"conditions"},queryParams:{default:()=>({})},category:{type:[Array,Function,Boolean],default:!1},categoryFormatter:{type:[Function,Array],default:void 0},type:{type:[Array,Boolean],default:!1},typeSelectionProps:{default:()=>({})},tableProps:{default:()=>({})},append:{type:Boolean,default:!1},delete:{type:Boolean,default:!1},select:{default:null}},emits:["close","submit","openDialog","changeIndexShow"],setup(t,{expose:$,emit:U}){const o=t,l=U,W=e.useAttrs(),x=e.ref(null),p=e.reactive({category:[],code:"",...o.searchKey?{[o.searchKey]:""}:{},page:1,pageSize:10,type:"",...o.queryParams}),f=e.reactive({total:0,tableData:[],open:!1,selection:[],categories:[],types:[],tableRef:null,drag:!1,dialogOpen:!1,pasteData:"",pasteDataDialog:!1}),E=e.computed(()=>o.type||[]),b=e.computed(()=>f.categories),F=async i=>{if(!o.query)return{data:{records:[],total:0}};const y=await o.query(j(i)),Q=o.responseFormatter?await o.responseFormatter(y):y;return f.total=P(Q),Q};e.watch(()=>o.open,i=>{f.open=i},{immediate:!0}),e.watch(E,i=>{f.types=[...i]},{immediate:!0,deep:!0}),e.watch([()=>o.selected,()=>o.open],()=>{o.open&&(f.selection=H(o.selected))},{immediate:!0,deep:!0}),e.watch(()=>o.queryParams,()=>{Object.assign(p,o.queryParams)},{deep:!0}),e.watch(()=>f.pasteDataDialog,i=>{i||(f.pasteData="")}),e.watch(()=>o.select,async()=>{o.select&&await N(o.select)},{deep:!0}),e.watch(()=>o.open,async i=>{i&&(f.dialogOpen=!1,await I())},{immediate:!0});async function I(){if(!o.category){f.categories=[];return}const i=typeof o.category=="function"?await o.category():o.category;f.categories=h(i)}async function C(){var i;return await e.nextTick(),(i=x.value)==null?void 0:i.handleQuerySearch()}function O(i){f.selection=H(i)}function z(i){var y;f.tableData=i,f.tableRef=(y=x.value)==null?void 0:y.getTableRef()}function S(i){f.selection=H(i),l("submit",f)}function q(){l("close")}function M(){f.dialogOpen=!0,l("openDialog")}function Z(i){l("changeIndexShow",i)}async function N(i){if(!o.query||!o.searchKey||!o.mainKey)return;const y=await o.query({...p,[o.searchKey]:i[o.mainKey],category:[]}),Q=o.responseFormatter?await o.responseFormatter(y):y,[V]=d(Q);V&&(o.selection==="multi"?(f.selection=f.selection.filter(G=>G[o.mainKey]!==V[o.mainKey]),f.selection.push(V)):f.selection=[V])}function j(i={}){p.page=i.page??p.page,p.pageSize=i.pageSize??p.pageSize;const y={...p,category:A()};return o.searchKey&&(y[o.searchKey]=String(y[o.searchKey]||"").trim()),y}function A(){if(o.queryParams.category)return o.queryParams.category;const i=p.category;if(Array.isArray(i))return i;if(!i)return[];const y=L(f.categories,i);return y?R(y):[i]}function L(i,y){for(const Q of i||[]){if(Q.value===y)return Q;const V=L(Q.children||[],y);if(V)return V}}function R(i){return[i.value,...(i.children||[]).flatMap(R)]}function h(i){const y=(i==null?void 0:i.data)??i;if(!Array.isArray(y))return[];if(typeof o.categoryFormatter=="function")return o.categoryFormatter(y);if(Array.isArray(o.categoryFormatter)){const[Q,V]=o.categoryFormatter;return n(k(y,V),Q,V)}return y}function k(i,y){const Q=i.map(G=>({...G})),V=[];return Q.forEach(G=>{const te=G.parentCateCode;if(!te){V.push(G);return}const X=Q.find(oe=>oe[y]===te);X?(X.children||(X.children=[])).push(G):V.push(G)}),V}function n(i,y,Q){return i.map(V=>({...V,label:V[y],value:V[Q],children:Array.isArray(V.children)?n(V.children,y,Q):V.children}))}function d(i){if(Array.isArray(i))return i;const y=i==null?void 0:i.data;return Array.isArray(y)?y:(i==null?void 0:i.records)||(i==null?void 0:i.rows)||(y==null?void 0:y.records)||[]}function P(i){if(Array.isArray(i))return i.length;const y=d(i),Q=i==null?void 0:i.data;return(i==null?void 0:i.total)??(Array.isArray(Q)?Q.length:Q==null?void 0:Q.total)??y.length}function H(i=[]){return i.map(y=>({...y}))}return $({search:C,handleSearch:C,handleConditionChange:C,getTableRef:()=>f.tableRef,getTableData:()=>f.tableData,getSelection:()=>H(f.selection)}),(i,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ft,e.mergeProps({ref_key:"selectionDialogRef",ref:x},e.unref(W),{modelValue:f.selection,"onUpdate:modelValue":y[3]||(y[3]=Q=>f.selection=Q),open:t.open,title:t.title,width:t.width,query:F,"response-formatter":t.responseFormatter,selection:t.selection,"row-key":t.mainKey,"label-key":t.tagName,"search-key":t.searchKey,"query-params":{},"category-options":b.value,"type-options":E.value,"type-select-props":t.typeSelectionProps,"table-props":t.tableProps,"show-copy-paste":!0,"show-append":t.append,onSelectionChange:O,onConfirm:S,onCancel:q,onAppend:M,onLoaded:z}),{side:e.withCtx(()=>[e.renderSlot(i.$slots,"side",{state:f,cate:f.categories,form:p,query:p,getData:C,search:C,changeIndexShow:Z},void 0,!0)]),search:e.withCtx(()=>[e.createVNode(e.unref(_.ElForm),{inline:"",model:p},{default:e.withCtx(()=>[f.categories.length?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:0,label:"分类"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElTreeSelect),{modelValue:p.category,"onUpdate:modelValue":y[0]||(y[0]=Q=>p.category=Q),class:"qy-legacy-selection-dialog__category",data:f.categories,clearable:"",filterable:"","check-strictly":"","render-after-expand":!1,onChange:C},null,8,["modelValue","data"])]),_:1})):e.createCommentVNode("",!0),E.value.length?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:1,label:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElSelect),e.mergeProps({modelValue:p.type,"onUpdate:modelValue":y[1]||(y[1]=Q=>p.type=Q),clearable:""},t.typeSelectionProps,{onChange:C}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,Q=>(e.openBlock(),e.createBlock(e.unref(_.ElOption),{key:Q.value,label:Q.label,value:Q.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue"])]),_:1})):e.createCommentVNode("",!0),t.searchKey?(e.openBlock(),e.createBlock(e.unref(_.ElFormItem),{key:2,label:"搜索"},{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElInput),{modelValue:p[t.searchKey],"onUpdate:modelValue":y[2]||(y[2]=Q=>p[t.searchKey]=Q),clearable:"",class:"qy-legacy-selection-dialog__search-input",onKeydown:e.withKeys(e.withModifiers(C,["prevent"]),["enter"])},null,8,["modelValue","onKeydown"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(_.ElFormItem),null,{default:e.withCtx(()=>[e.createVNode(e.unref(_.ElButton),{type:"primary",onClick:C},{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode("查询",-1)])]),_:1})]),_:1})]),_:1},8,["model"])]),toolbar:e.withCtx(()=>[e.renderSlot(i.$slots,"bar",{query:p,search:C},void 0,!0)]),columns:e.withCtx(()=>[e.renderSlot(i.$slots,"cols",{},void 0,!0),e.renderSlot(i.$slots,"columns",{},void 0,!0)]),_:3},16,["modelValue","open","title","width","response-formatter","selection","row-key","label-key","search-key","category-options","type-options","type-select-props","table-props","show-append"]),e.renderSlot(i.$slots,"dialog",{state:f,form:p,getData:C},void 0,!0)],64))}}),Mn=ae._export_sfc(Fn,[["__scopeId","data-v-b54ca11b"]]),Rn={class:"qy-form-section__heading"},On={key:0,class:"qy-form-section__title"},Ln={key:0,class:"qy-form-section__description"},Kn={class:"qy-form-section__actions"},Un=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(t,{emit:$}){const U=t,o=$,l=e.ref(U.defaultExpanded);e.watch(()=>U.defaultExpanded,p=>{l.value=p});function W(){U.collapsible&&(l.value=!l.value,o("toggle",l.value))}function x(){U.collapsible&&W()}return(p,f)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:x},[e.createElementVNode("div",Rn,[e.renderSlot(p.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",On,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(p.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",Ln,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",Kn,[e.renderSlot(p.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(W,["stop"])},e.toDisplayString(l.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(p.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(p.$slots,"default",{},void 0,!0)],2),[[e.vShow,l.value]])],2))}}),jn=ae._export_sfc(Un,[["__scopeId","data-v-8149aa01"]]),Hn={key:0,class:"qy-action-bar__left"},Wn={key:1,class:"qy-action-bar__center"},Zn={key:2,class:"qy-action-bar__right"},Gn=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,default:!0},offsetBottom:{default:0},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0},justify:{default:"between"},background:{default:"#fff"}},setup(t){const $=t,U=e.computed(()=>({bottom:`${$.offsetBottom}px`,background:$.background}));return(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${t.justify}`,{"is-sticky":t.sticky,"is-bordered":t.bordered,"is-shadow":t.shadow,"is-wrap":t.wrap}]]),style:e.normalizeStyle(U.value)},[o.$slots.left?(e.openBlock(),e.createElementBlock("div",Hn,[e.renderSlot(o.$slots,"left",{},void 0,!0)])):e.createCommentVNode("",!0),o.$slots.default?(e.openBlock(),e.createElementBlock("div",Wn,[e.renderSlot(o.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),o.$slots.right?(e.openBlock(),e.createElementBlock("div",Zn,[e.renderSlot(o.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),Jn=ae._export_sfc(Gn,[["__scopeId","data-v-ecba8f49"]]),he=m.withInstall(pe.Upload,"QyUpload"),ve=m.withInstall(Ot.Image,"QyImage"),we=m.withInstall(Lt._sfc_main,"QyImagePreview"),ke=m.withInstall(Wo,"QyImageUpload"),_e=m.withInstall(fe,"QyDialog"),be=m.withInstall(hn,"QyRemarkImage"),Qe=m.withInstall(jt.Button,"QyButton"),Se=m.withInstall(Ht.Dropdown,"QyDropdown"),xe=m.withInstall(Wt._sfc_main,"QyInput"),Ce=m.withInstall(Zt._sfc_main,"QyInputTag"),Be=m.withInstall(Gt._sfc_main,"QyInputNumber"),Ve=m.withInstall(Jt._sfc_main,"QyMoneyInput"),Ie=m.withInstall(Xt._sfc_main,"QyDatePicker"),qe=m.withInstall(Yt.Checkbox,"QyCheckbox"),$e=m.withInstall(eo._sfc_main,"QyCheckboxGroup"),Ee=m.withInstall(to.Radio,"QyRadio"),Ne=m.withInstall(oo._sfc_main,"QyAutocomplete"),Te=m.withInstall(no.MenuActions,"QyMenuActions"),Ae=m.withInstall(lo.TableColumnSettings,"QyTableColumnSettings"),ze=m.withInstall(ao._sfc_main,"QyRadioGroup"),Pe=m.withInstall(vn,"QyRemoteSelect"),De=m.withInstall(Dt,"QySearchInput"),Fe=m.withInstall(Vn,"QyRecordQuoteSearch"),Me=m.withInstall(ge.Select,"QySelect"),Re=m.withInstall(At.TreeSelect,"QyTreeSelect"),Oe=m.withInstall(Ft,"QySelectionDialog"),Le=m.withInstall(Mn,"QyLegacySelectionDialog"),Ke=m.withInstall(jn,"QyFormSection"),Ue=m.withInstall(Jn,"QyActionBar"),je=m.withInstall(ro.FilePicker,"QyFilePicker"),He=m.withInstall(io.Switch,"QySwitch"),We=m.withInstall(ue.Tag,"QyTag"),Ze=m.withInstall(so._sfc_main,"QyBadge"),Ge=m.withInstall(co._sfc_main,"QyCascader"),Je=m.withInstall(uo._sfc_main,"QyTooltip"),Xe=m.withInstall(fo._sfc_main,"QyPopover"),Ye=m.withInstall(yo._sfc_main,"QyPopconfirm"),et=m.withInstall(mo._sfc_main,"QySkeleton"),tt=m.withInstall(po._sfc_main,"QySkeletonItem"),ot=m.withInstall(go._sfc_main,"QyTabs"),nt=m.withInstall(ho._sfc_main,"QyTabPane"),lt=m.withInstall(vo._sfc_main,"QySteps"),at=m.withInstall(wo._sfc_main,"QyStep"),rt=m.withInstall(ko.Fullscreen,"QyFullscreen"),it=m.withInstall(Qo._sfc_main,"QyRow"),st=m.withInstall(So._sfc_main,"QyCol"),ct=m.withInstall(xo._sfc_main,"QyContainer"),ut=m.withInstall(Co._sfc_main,"QyAside"),dt=m.withInstall(Bo._sfc_main,"QyMain"),ft=m.withInstall(Vo._sfc_main,"QyDescriptions"),yt=m.withInstall(Io._sfc_main,"QyDescriptionsItem"),mt=m.withInstall(qo._sfc_main,"QyCollapse"),pt=m.withInstall($o._sfc_main,"QyCollapseItem"),gt=m.withInstall(Eo._sfc_main,"QyLink"),ht=m.withInstall(No.Iframe,"QyIframe"),vt=m.withInstall(To._sfc_main,"QyDivider"),wt=m.withInstall(Ao._sfc_main,"QyEmpty"),kt=m.withInstall(zo._sfc_main,"QyAlert"),_t=m.withInstall(Po._sfc_main,"QyCard"),bt=m.withInstall(Do._sfc_main,"QyResult"),Qt=m.withInstall(Fo._sfc_main,"QyWatermark"),St=m.withInstall(Mo._sfc_main,"QyScrollbar"),xt=m.withInstall(Ro._sfc_main,"QyProgress"),Ct=m.withInstall(Oo._sfc_main,"QyStatistic"),Bt=m.withInstall(Lo._sfc_main,"QyAvatar"),Vt=m.withInstall(Ko._sfc_main,"QyTree"),It=m.withInstall(_o._sfc_main,"QyIconPicker"),qt=m.withInstall(bo._sfc_main,"QyColorPicker"),$t=m.withInstall(Uo._sfc_main,"QyDrawer"),Xn=t=>{de.QyLoading.install(t),t.component("QyDialog",_e),t.component("QyDrawer",$t),t.component("QyUpload",he),t.component("QyImage",ve),t.component("QyImagePreview",we),t.component("QyImageUpload",ke),t.component("QyRemarkImage",be),t.component("QyButton",Qe),t.component("QyDropdown",Se),t.component("QyInput",xe),t.component("QyInputTag",Ce),t.component("QyInputNumber",Be),t.component("QyMoneyInput",Ve),t.component("QyDatePicker",Ie),t.component("QyCheckbox",qe),t.component("QyCheckboxGroup",$e),t.component("QyRadio",Ee),t.component("QyAutocomplete",Ne),t.component("QyMenuActions",Te),t.component("QyTableColumnSettings",Ae),t.component("QyRadioGroup",ze),t.component("QyRemoteSelect",Pe),t.component("QySearchInput",De),t.component("QyRecordQuoteSearch",Fe),t.component("QySelect",Me),t.component("QyTreeSelect",Re),t.component("QySelectionDialog",Oe),t.component("QyLegacySelectionDialog",Le),t.component("QyFormSection",Ke),t.component("QyActionBar",Ue),t.component("QyFilePicker",je),t.component("QySwitch",He),t.component("QyTag",We),t.component("QyBadge",Ze),t.component("QyCascader",Ge),t.component("QyTooltip",Je),t.component("QyPopover",Xe),t.component("QyPopconfirm",Ye),t.component("QySkeleton",et),t.component("QySkeletonItem",tt),t.component("QyTabs",ot),t.component("QyTabPane",nt),t.component("QySteps",lt),t.component("QyStep",at),t.component("QyFullscreen",rt),t.component("QyIcon",zt.QyIcon),t.component("QyIconPicker",It),t.component("QyColorPicker",qt),t.component("QyRow",it),t.component("QyCol",st),t.component("QyContainer",ct),t.component("QyAside",ut),t.component("QyMain",dt),t.component("QyDescriptions",ft),t.component("QyDescriptionsItem",yt),t.component("QyCollapse",mt),t.component("QyCollapseItem",pt),t.component("QyLink",gt),t.component("QyIframe",ht),t.component("QyDivider",vt),t.component("QyEmpty",wt),t.component("QyAlert",kt),t.component("QyCard",_t),t.component("QyResult",bt),t.component("QyWatermark",Qt),t.component("QyScrollbar",St),t.component("QyProgress",xt),t.component("QyStatistic",Ct),t.component("QyAvatar",Bt),t.component("QyTree",Vt)},Yn={install:Xn,QyUpload:he,QyImage:ve,QyImagePreview:we,openQyImagePreview:jo.openQyImagePreview,QyImageUpload:ke,QyDialog:_e,QyButton:Qe,QyDropdown:Se,QyInput:xe,QyInputTag:Ce,QyInputNumber:Be,QyMoneyInput:Ve,QyDatePicker:Ie,QyCheckbox:qe,QyCheckboxGroup:$e,QyRadio:Ee,QyAutocomplete:Ne,QyMenuActions:Te,QyTableColumnSettings:Ae,QyRadioGroup:ze,QyRemoteSelect:Pe,QySearchInput:De,QyRecordQuoteSearch:Fe,QySelect:Me,QyTreeSelect:Re,QySelectionDialog:Oe,QyLegacySelectionDialog:Le,QyFormSection:Ke,QyActionBar:Ue,QyFilePicker:je,QySwitch:He,QyTag:We,QyBadge:Ze,QyCascader:Ge,QyTooltip:Je,QyPopover:Xe,QyPopconfirm:Ye,QySkeleton:et,QySkeletonItem:tt,QyTabs:ot,QyTabPane:nt,QySteps:lt,QyStep:at,QyFullscreen:rt,QyDrawer:$t,QyIcon:zt.QyIcon,QyIconPicker:It,QyColorPicker:qt,QyRow:it,QyCol:st,QyContainer:ct,QyAside:ut,QyMain:dt,QyDescriptions:ft,QyDescriptionsItem:yt,QyCollapse:mt,QyCollapseItem:pt,QyLink:gt,QyIframe:ht,QyDivider:vt,QyEmpty:wt,QyAlert:kt,QyCard:_t,QyResult:bt,QyWatermark:Qt,QyScrollbar:St,QyProgress:xt,QyStatistic:Ct,QyAvatar:Bt,QyTree:Vt,QyRemarkImage:be,QyLoading:de.QyLoading,vQyLoading:de.vQyLoading,openQyLoading:Ho.openQyLoading};exports.QyActionBar=Ue;exports.QyAlert=kt;exports.QyAside=ut;exports.QyAutocomplete=Ne;exports.QyAvatar=Bt;exports.QyBadge=Ze;exports.QyButton=Qe;exports.QyCard=_t;exports.QyCascader=Ge;exports.QyCheckbox=qe;exports.QyCheckboxGroup=$e;exports.QyCol=st;exports.QyCollapse=mt;exports.QyCollapseItem=pt;exports.QyColorPicker=qt;exports.QyContainer=ct;exports.QyDatePicker=Ie;exports.QyDescriptions=ft;exports.QyDescriptionsItem=yt;exports.QyDialog=_e;exports.QyDivider=vt;exports.QyDrawer=$t;exports.QyDropdown=Se;exports.QyEmpty=wt;exports.QyFilePicker=je;exports.QyFormSection=Ke;exports.QyFullscreen=rt;exports.QyIconPicker=It;exports.QyIframe=ht;exports.QyImage=ve;exports.QyImagePreview=we;exports.QyImageUpload=ke;exports.QyInput=xe;exports.QyInputNumber=Be;exports.QyInputTag=Ce;exports.QyLegacySelectionDialog=Le;exports.QyLink=gt;exports.QyMain=dt;exports.QyMenuActions=Te;exports.QyMoneyInput=Ve;exports.QyPopconfirm=Ye;exports.QyPopover=Xe;exports.QyProgress=xt;exports.QyRadio=Ee;exports.QyRadioGroup=ze;exports.QyRecordQuoteSearch=Fe;exports.QyRemarkImage=be;exports.QyRemoteSelect=Pe;exports.QyResult=bt;exports.QyRow=it;exports.QyScrollbar=St;exports.QySearchInput=De;exports.QySelect=Me;exports.QySelectionDialog=Oe;exports.QySkeleton=et;exports.QySkeletonItem=tt;exports.QyStatistic=Ct;exports.QyStep=at;exports.QySteps=lt;exports.QySwitch=He;exports.QyTabPane=nt;exports.QyTableColumnSettings=Ae;exports.QyTabs=ot;exports.QyTag=We;exports.QyTooltip=Je;exports.QyTree=Vt;exports.QyTreeSelect=Re;exports.QyUpload=he;exports.QyWatermark=Qt;exports.formatRemarkText=Pt;exports.index=Yn;exports.parseRemarkText=ye;exports.parseRemarkWithImage=me;
|
|
@@ -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;
|