@qynpm/ui 1.0.36 → 1.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -93
- package/dist/index.cjs +20 -19
- package/dist/index.mjs +22 -21
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +2 -1
- package/dist/qy-dialog/index.mjs +5 -2
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +3 -3
- package/dist/qy-icon-picker/index.mjs +6 -6
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +2 -2
- package/dist/qy-input-number/index.mjs +3 -3
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +4 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +4 -4
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +4 -4
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/index--I-pLtO3.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BnmY1ndj.mjs → index-0aCI4Gj1.mjs} +25 -24
- package/dist/shared/index-0mok5nS2.cjs +1 -0
- package/dist/shared/index-2xIkj7uz.cjs +1 -0
- package/dist/shared/index-4uXwnK7G.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-C4JHCuXz.mjs → index-9KXqMXBF.mjs} +15 -14
- package/dist/shared/index-B-PlDm1A.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Bk0kLg5l.mjs → index-B-d53uut.mjs} +11 -10
- package/dist/shared/index-B0aY8Q_T.cjs +1 -0
- package/dist/shared/index-B1-htEYJ.mjs +100 -0
- package/dist/shared/index-B1ZuGEIr.cjs +1 -0
- package/dist/shared/index-B3wIgwN7.cjs +1 -0
- package/dist/shared/index-B71cpH4T.cjs +1 -0
- package/dist/shared/index-B8S5RT2Z.mjs +206 -0
- package/dist/shared/index-B8znc-qD.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-DOOT2grg.mjs → index-BA6hc-j-.mjs} +11 -10
- package/dist/shared/index-BCfULlZK.cjs +1 -0
- package/dist/shared/{index-DY-CA7Vr.mjs → index-BE4CELs-.mjs} +1 -1
- package/dist/shared/index-BFFnf0Bn.cjs +1 -0
- package/dist/shared/index-BIWER6Wa.cjs +1 -0
- package/dist/shared/index-BM3ueCK9.cjs +1 -0
- package/dist/shared/index-BOLL0aGP.mjs +47 -0
- package/dist/shared/index-BWO4qxne.mjs +395 -0
- package/dist/shared/index-Ba3qQVYM.cjs +1 -0
- package/dist/shared/index-Ba5CLmrh.mjs +157 -0
- package/dist/shared/index-BcPpl_OJ.mjs +892 -0
- package/dist/shared/index-Bg_o9zrB.cjs +1 -0
- package/dist/shared/index-Bguu2ys0.cjs +1 -0
- package/dist/shared/index-BhO1ARf9.cjs +1 -0
- package/dist/shared/index-BiCdxX0E.mjs +63 -0
- package/dist/shared/index-BigCKPUY.mjs +153 -0
- package/dist/shared/index-BmWDUjpi.mjs +73 -0
- package/dist/shared/index-BoGA3Pdv.cjs +1 -0
- package/dist/shared/index-Brxx2EqN.mjs +156 -0
- package/dist/shared/{index-Bi9wgcgT.cjs → index-BsRfuMop.cjs} +1 -1
- package/dist/shared/index-BsTSa25A.cjs +1 -0
- package/dist/shared/index-Btwke2ql.cjs +1 -0
- package/dist/shared/index-BxQnJVT8.cjs +1 -0
- package/dist/shared/index-Bx_faI_u.mjs +53 -0
- package/dist/shared/index-C7GXprxF.cjs +1 -0
- package/dist/shared/index-C97qoSgI.cjs +1 -0
- package/dist/shared/index-CCqfQb_M.mjs +82 -0
- package/dist/shared/index-CDGjUhaC.mjs +72 -0
- package/dist/shared/index-CF3vimnX.mjs +73 -0
- package/dist/shared/index-CJxpEc9q.cjs +1 -0
- package/dist/shared/index-COpowa-E.mjs +48 -0
- package/dist/shared/index-CRU4YvLz.cjs +1 -0
- package/dist/shared/index-CSMOYD1R.cjs +1 -0
- package/dist/shared/index-CWB5fAb7.mjs +154 -0
- package/dist/shared/index-CXAVVShG.mjs +278 -0
- package/dist/shared/{index.vue_vue_type_script_lang-D7b9ABei.mjs → index-CaM4EpCy.mjs} +23 -22
- package/dist/shared/index-CeasMt4r.mjs +63 -0
- package/dist/shared/index-CftZiihF.mjs +525 -0
- package/dist/shared/index-ChEefC0G.cjs +1 -0
- package/dist/shared/index-CioDI8Ys.cjs +1 -0
- package/dist/shared/index-CjKfmMG4.cjs +1 -0
- package/dist/shared/index-CnIZoCkL.mjs +77 -0
- package/dist/shared/index-CndG7UWF.mjs +138 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BGAdXWIL.mjs → index-Cp0dxH7g.mjs} +12 -11
- package/dist/shared/index-CrwhANF5.mjs +78 -0
- package/dist/shared/index-Cs-LC7ZG.mjs +150 -0
- package/dist/shared/index-CutbNRjY.mjs +198 -0
- package/dist/shared/index-CyJHJCj8.cjs +1 -0
- package/dist/shared/index-CypWMqI4.cjs +1 -0
- package/dist/shared/index-Cz6Lo9RL.cjs +1 -0
- package/dist/shared/index-CzyB5ttX.cjs +1 -0
- package/dist/shared/index-D1cbnYac.mjs +446 -0
- package/dist/shared/index-D8-4wR07.mjs +130 -0
- package/dist/shared/index-D9dQaZtu.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index-DAoXMHpO.mjs} +10 -9
- package/dist/shared/index-DEosiUQV.mjs +245 -0
- package/dist/shared/index-DFTSBy3g.mjs +206 -0
- package/dist/shared/index-DFnpyAa1.mjs +69 -0
- package/dist/shared/index-DI5COVol.cjs +1 -0
- package/dist/shared/index-DNMOtH4s.mjs +36 -0
- package/dist/shared/index-DQn_5j_f.cjs +1 -0
- package/dist/shared/index-DRICnDix.mjs +295 -0
- package/dist/shared/index-DS539-rn.mjs +87 -0
- package/dist/shared/index-DTOfhAXP.mjs +74 -0
- package/dist/shared/index-DULBwiHC.mjs +234 -0
- package/dist/shared/index-DVPk0jMO.cjs +1 -0
- package/dist/shared/index-DWrymMO5.cjs +1 -0
- package/dist/shared/index-DYYPqv3Y.cjs +1 -0
- package/dist/shared/index-DZzMTGSJ.cjs +1 -0
- package/dist/shared/index-D_l30Gzr.cjs +1 -0
- package/dist/shared/index-Db7PhnjA.cjs +1 -0
- package/dist/shared/index-DdoFHdjY.mjs +307 -0
- package/dist/shared/index-DeBjILEK.cjs +1 -0
- package/dist/shared/index-DePXY0TI.cjs +1 -0
- package/dist/shared/index-DgPQ8292.cjs +1 -0
- package/dist/shared/index-Di3R0FOU.cjs +1 -0
- package/dist/shared/index-DiNSSXC8.mjs +76 -0
- package/dist/shared/index-DmEwKHe4.cjs +1 -0
- package/dist/shared/index-DnFQkBfl.cjs +1 -0
- package/dist/shared/index-DnexuGuJ.cjs +1 -0
- package/dist/shared/index-DniPcZnL.mjs +52 -0
- package/dist/shared/index-DpitpmqK.mjs +205 -0
- package/dist/shared/index-DtXU2qQS.cjs +1 -0
- package/dist/shared/index-Du-FNseo.cjs +1 -0
- package/dist/shared/index-DwHzztSj.cjs +1 -0
- package/dist/shared/index-DxFfP2Fn.cjs +1 -0
- package/dist/shared/index-DyqFfMhy.mjs +365 -0
- package/dist/shared/index-Hn-IGtqe.cjs +1 -0
- package/dist/shared/index-Nx_w1JYm.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-Dfq7D3mJ.mjs → index-Q8rXwNnM.mjs} +4 -3
- package/dist/shared/index-R6vvV3td.cjs +1 -0
- package/dist/shared/index-TMhQv4oD.mjs +104 -0
- package/dist/shared/index-VtJrvPka.mjs +27 -0
- package/dist/shared/{index.vue_vue_type_script_lang-BaIOvoQn.mjs → index-WUwab92q.mjs} +11 -10
- package/dist/shared/index-YWKumDEW.mjs +61 -0
- package/dist/shared/index-_AB6uqZw.mjs +51 -0
- package/dist/shared/index-bvvNTmuM.mjs +105 -0
- package/dist/shared/index-fVS62tLm.mjs +81 -0
- package/dist/shared/index-gOUVgYd_.cjs +1 -0
- package/dist/shared/index-gU6HjdHv.mjs +311 -0
- package/dist/shared/index-hPaHbb1Y.cjs +1 -0
- package/dist/shared/index-i0G6DcP0.cjs +1 -0
- package/dist/shared/index-jP71VQxo.cjs +1 -0
- package/dist/shared/index-jdGrSpGg.mjs +2657 -0
- package/dist/shared/index-jsEFCWaY.mjs +175 -0
- package/dist/shared/index-lsWZ_M5R.mjs +369 -0
- package/dist/shared/index-mKnRWsLn.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_lang-chBiq2cG.mjs → index-qLomEtF6.mjs} +4 -3
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index-u7VYI7Kg.mjs} +17 -16
- package/dist/shared/index-xdsYNS2u.mjs +53 -0
- package/dist/shared/index-xhROPBam.mjs +129 -0
- package/index.d.ts +113 -113
- package/package.json +490 -489
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +63 -63
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-file-picker/index.d.ts +4 -4
- package/qy-icon/index.d.ts +3 -0
- package/qy-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-image-upload/index.d.ts +69 -69
- package/qy-input/index.d.ts +76 -76
- package/qy-input-number/index.d.ts +64 -64
- package/qy-input-tag/index.d.ts +69 -69
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-money-input/index.d.ts +87 -87
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/qy-upload/index.d.ts +99 -99
- package/dist/shared/index-3qEac4h8.cjs +0 -1
- package/dist/shared/index-4SkLDBra.mjs +0 -377
- package/dist/shared/index-AMu0L6uU.cjs +0 -1
- package/dist/shared/index-B1b3BksF.mjs +0 -72
- package/dist/shared/index-BPaVDCe6.cjs +0 -1
- package/dist/shared/index-BYX0biqw.mjs +0 -766
- package/dist/shared/index-BdTlpKtr.cjs +0 -1
- package/dist/shared/index-Bli6Gx5d.cjs +0 -1
- package/dist/shared/index-BuUtJrIy.mjs +0 -119
- package/dist/shared/index-Bvot0uXo.cjs +0 -1
- package/dist/shared/index-BxxwEr52.mjs +0 -107
- package/dist/shared/index-C1i-hd-W.cjs +0 -1
- package/dist/shared/index-C7lRQtzs.cjs +0 -1
- package/dist/shared/index-C91mzAI3.mjs +0 -254
- package/dist/shared/index-CdnHMuo3.mjs +0 -149
- package/dist/shared/index-CwY_jv_I.cjs +0 -1
- package/dist/shared/index-D5S48q1B.mjs +0 -162
- package/dist/shared/index-D654b42n.mjs +0 -2754
- package/dist/shared/index-D8E_xu0N.mjs +0 -54
- package/dist/shared/index-DCzxcvkn.cjs +0 -1
- package/dist/shared/index-DK0hjfWr.mjs +0 -90
- package/dist/shared/index-DZRFSGxO.mjs +0 -225
- package/dist/shared/index-Dc6gLgAz.cjs +0 -1
- package/dist/shared/index-DcohgM8A.mjs +0 -68
- package/dist/shared/index-Di4bIOiB.cjs +0 -1
- package/dist/shared/index-DlGwHshu.cjs +0 -1
- package/dist/shared/index-DnHfk7NM.cjs +0 -1
- package/dist/shared/index-DnNIseRJ.cjs +0 -1
- package/dist/shared/index-Dr-Q5krU.mjs +0 -71
- package/dist/shared/index-Dwf-JfXM.mjs +0 -293
- package/dist/shared/index-JjHutKmT.mjs +0 -142
- package/dist/shared/index-Od6HC8Un.mjs +0 -127
- package/dist/shared/index-S8HW36Mc.mjs +0 -222
- package/dist/shared/index-aIqtIYsu.cjs +0 -1
- package/dist/shared/index-nSFTxVz8.cjs +0 -1
- package/dist/shared/index-nos4Y-fm.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +0 -47
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +0 -71
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +0 -31
- package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +0 -77
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +0 -35
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +0 -72
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +0 -43
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +0 -42
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +0 -63
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +0 -62
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs +0 -61
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs +0 -331
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +0 -197
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +0 -19
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs +0 -106
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +0 -148
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BcZb1U13.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +0 -67
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +0 -286
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +0 -98
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +0 -166
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +0 -68
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +0 -298
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +0 -1
package/qy-upload/index.d.ts
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin
|
|
5
|
-
} from 'vue'
|
|
6
|
-
|
|
7
|
-
export type QyUploadVariant = 'media-card' | 'file-list'
|
|
8
|
-
export type QyUploadValueFormat = 'object' | 'array' | 'string'
|
|
9
|
-
export type QyUploadInvalidCode = 'extension' | 'size'
|
|
10
|
-
|
|
11
|
-
export interface QyUploadValue {
|
|
12
|
-
files: string[]
|
|
13
|
-
text: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface QyUploadResult {
|
|
17
|
-
url: string
|
|
18
|
-
name?: string
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface QyUploadRequestContext {
|
|
22
|
-
file: File
|
|
23
|
-
formData: FormData
|
|
24
|
-
api: string
|
|
25
|
-
name: string
|
|
26
|
-
tokenKey: string
|
|
27
|
-
extraData: Record<string, unknown>
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type QyUploadRequest = (
|
|
31
|
-
context: QyUploadRequestContext
|
|
32
|
-
) => Promise<QyUploadResult>
|
|
33
|
-
|
|
34
|
-
export interface QyUploadInvalidDetail {
|
|
35
|
-
code: QyUploadInvalidCode
|
|
36
|
-
file: File
|
|
37
|
-
message: string
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface QyUploadProps {
|
|
41
|
-
modelValue?: QyUploadValue | string[] | string
|
|
42
|
-
selectedFiles?: File[]
|
|
43
|
-
autoUpload?: boolean
|
|
44
|
-
variant?: QyUploadVariant
|
|
45
|
-
defaultValue?: { files?: string | string[]; text?: string }
|
|
46
|
-
valueFormat?: QyUploadValueFormat
|
|
47
|
-
showText?: boolean
|
|
48
|
-
showPasteInput?: boolean
|
|
49
|
-
pastePlaceholder?: string
|
|
50
|
-
multiple?: boolean
|
|
51
|
-
disabled?: boolean
|
|
52
|
-
fileType?: string[]
|
|
53
|
-
fileSize?: number
|
|
54
|
-
limit?: number
|
|
55
|
-
isShowTip?: boolean
|
|
56
|
-
api?: string
|
|
57
|
-
name?: string
|
|
58
|
-
tokenKey?: string
|
|
59
|
-
supportVideo?: boolean
|
|
60
|
-
size?: string
|
|
61
|
-
disableDrag?: boolean
|
|
62
|
-
callBack?: (value: QyUploadValue) => void
|
|
63
|
-
extraData?: Record<string, unknown>
|
|
64
|
-
uploadRequest?: QyUploadRequest
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface QyUploadExposed {
|
|
68
|
-
openFileDialog(): void
|
|
69
|
-
clearFiles(): void
|
|
70
|
-
getPathList(): string[]
|
|
71
|
-
getValue(): QyUploadValue
|
|
72
|
-
getModelValue(): QyUploadValue | string[] | string
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export type QyUploadEmits = {
|
|
76
|
-
'update:modelValue': (value: QyUploadValue | string[] | string) => void
|
|
77
|
-
'update:selectedFiles': (files: File[]) => void
|
|
78
|
-
selectedFilesChange: (files: File[]) => void
|
|
79
|
-
change: (value: QyUploadValue) => void
|
|
80
|
-
success: (result: QyUploadResult) => void
|
|
81
|
-
error: (error: unknown) => void
|
|
82
|
-
remove: (file: unknown, files: unknown[]) => void
|
|
83
|
-
invalid: (detail: QyUploadInvalidDetail) => void
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare const QyUpload: DefineComponent<
|
|
87
|
-
QyUploadProps,
|
|
88
|
-
QyUploadExposed,
|
|
89
|
-
{},
|
|
90
|
-
{},
|
|
91
|
-
{},
|
|
92
|
-
ComponentOptionsMixin,
|
|
93
|
-
ComponentOptionsMixin,
|
|
94
|
-
QyUploadEmits
|
|
95
|
-
> &
|
|
96
|
-
Plugin
|
|
97
|
-
|
|
98
|
-
export { QyUpload }
|
|
99
|
-
export default QyUpload
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin
|
|
5
|
+
} from 'vue'
|
|
6
|
+
|
|
7
|
+
export type QyUploadVariant = 'media-card' | 'file-list'
|
|
8
|
+
export type QyUploadValueFormat = 'object' | 'array' | 'string'
|
|
9
|
+
export type QyUploadInvalidCode = 'extension' | 'size'
|
|
10
|
+
|
|
11
|
+
export interface QyUploadValue {
|
|
12
|
+
files: string[]
|
|
13
|
+
text: string
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface QyUploadResult {
|
|
17
|
+
url: string
|
|
18
|
+
name?: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface QyUploadRequestContext {
|
|
22
|
+
file: File
|
|
23
|
+
formData: FormData
|
|
24
|
+
api: string
|
|
25
|
+
name: string
|
|
26
|
+
tokenKey: string
|
|
27
|
+
extraData: Record<string, unknown>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type QyUploadRequest = (
|
|
31
|
+
context: QyUploadRequestContext
|
|
32
|
+
) => Promise<QyUploadResult>
|
|
33
|
+
|
|
34
|
+
export interface QyUploadInvalidDetail {
|
|
35
|
+
code: QyUploadInvalidCode
|
|
36
|
+
file: File
|
|
37
|
+
message: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface QyUploadProps {
|
|
41
|
+
modelValue?: QyUploadValue | string[] | string
|
|
42
|
+
selectedFiles?: File[]
|
|
43
|
+
autoUpload?: boolean
|
|
44
|
+
variant?: QyUploadVariant
|
|
45
|
+
defaultValue?: { files?: string | string[]; text?: string }
|
|
46
|
+
valueFormat?: QyUploadValueFormat
|
|
47
|
+
showText?: boolean
|
|
48
|
+
showPasteInput?: boolean
|
|
49
|
+
pastePlaceholder?: string
|
|
50
|
+
multiple?: boolean
|
|
51
|
+
disabled?: boolean
|
|
52
|
+
fileType?: string[]
|
|
53
|
+
fileSize?: number
|
|
54
|
+
limit?: number
|
|
55
|
+
isShowTip?: boolean
|
|
56
|
+
api?: string
|
|
57
|
+
name?: string
|
|
58
|
+
tokenKey?: string
|
|
59
|
+
supportVideo?: boolean
|
|
60
|
+
size?: string
|
|
61
|
+
disableDrag?: boolean
|
|
62
|
+
callBack?: (value: QyUploadValue) => void
|
|
63
|
+
extraData?: Record<string, unknown>
|
|
64
|
+
uploadRequest?: QyUploadRequest
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface QyUploadExposed {
|
|
68
|
+
openFileDialog(): void
|
|
69
|
+
clearFiles(): void
|
|
70
|
+
getPathList(): string[]
|
|
71
|
+
getValue(): QyUploadValue
|
|
72
|
+
getModelValue(): QyUploadValue | string[] | string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type QyUploadEmits = {
|
|
76
|
+
'update:modelValue': (value: QyUploadValue | string[] | string) => void
|
|
77
|
+
'update:selectedFiles': (files: File[]) => void
|
|
78
|
+
selectedFilesChange: (files: File[]) => void
|
|
79
|
+
change: (value: QyUploadValue) => void
|
|
80
|
+
success: (result: QyUploadResult) => void
|
|
81
|
+
error: (error: unknown) => void
|
|
82
|
+
remove: (file: unknown, files: unknown[]) => void
|
|
83
|
+
invalid: (detail: QyUploadInvalidDetail) => void
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare const QyUpload: DefineComponent<
|
|
87
|
+
QyUploadProps,
|
|
88
|
+
QyUploadExposed,
|
|
89
|
+
{},
|
|
90
|
+
{},
|
|
91
|
+
{},
|
|
92
|
+
ComponentOptionsMixin,
|
|
93
|
+
ComponentOptionsMixin,
|
|
94
|
+
QyUploadEmits
|
|
95
|
+
> &
|
|
96
|
+
Plugin
|
|
97
|
+
|
|
98
|
+
export { QyUpload }
|
|
99
|
+
export default QyUpload
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),z=require("./index-nos4Y-fm.cjs"),T=require("./index-AMu0L6uU.cjs"),j=require("@vueuse/core"),O=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),N=["fullscreenchange","webkitfullscreenchange"],Q=["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"],U=["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"];function V(t,l,i){const s=C(),a=e.ref(null),c=e.ref(!1),p=e.ref(!1);let u=null,f=!1;const b=e.computed(()=>E(t.value)),g=e.computed(()=>(a.value||b.value)??void 0),x=j.useFullscreen(g),w=e.ref(!1);function F(){w.value=_(a.value||b.value)}function v(){if(f)return;const n=S(s),r=a.value||b.value,d=!!(n&&n===r);d?a.value=n:(!n||n!==a.value)&&(a.value=null),F(),d!==c.value&&(c.value=d,i.onChange(d))}j.useEventListener(s,N,v),e.watch(t,v,{flush:"post"}),v();function y(){if(l.value||c.value)return Promise.resolve(!1);if(u)return u;const n=E(t.value);return n?_(n)?(a.value=n,F(),m(async()=>{try{return await I(n),v(),c.value&&S(s)===n}catch{return a.value=null,v(),o("enter","request-rejected","The browser rejected the fullscreen request.")}})):Promise.resolve(o("enter","unsupported","Fullscreen is not supported by this browser.")):Promise.resolve(o("enter","target-unavailable","Fullscreen target is unavailable."))}function h(){if(l.value||!c.value)return Promise.resolve(!1);if(u)return u;const n=a.value||E(t.value);return n?_(n)?m(async()=>{try{return await R(n),v(),!c.value&&S(s)!==n}catch{return o("exit","request-rejected","The browser rejected the fullscreen request.")}}):Promise.resolve(o("exit","unsupported","Fullscreen is not supported by this browser.")):Promise.resolve(o("exit","target-unavailable","Fullscreen target is unavailable."))}function q(){return u||(c.value?h():y())}function m(n){p.value=!0;const r=n().finally(()=>{p.value=!1,u=null});return u=r,r}function o(n,r,d){const k=Object.freeze({action:n,code:r,message:d});return i.onError(k),!1}async function I(n){const r=P(n);if(r==="requestFullscreen"){await n.requestFullscreen();return}if(x.isSupported.value){await x.enter();return}if(r){await L(n,r);return}throw new Error("Fullscreen request is unavailable.")}async function R(n){var k;const r=s,d=M(r,n);if(d==="exitFullscreen"){await((k=r==null?void 0:r.exitFullscreen)==null?void 0:k.call(r));return}if(d){await L(r,d);return}await x.exit()}return e.onBeforeUnmount(()=>{f=!0}),{isFullscreen:c,isSupported:w,pending:p,enter:y,exit:h,toggle:q}}function C(){return typeof document>"u"?void 0:document}function E(t){var l;return t===null?null:t!==void 0?t:((l=C())==null?void 0:l.documentElement)||null}function S(t){return(t==null?void 0:t.fullscreenElement)||(t==null?void 0:t.webkitFullscreenElement)||null}function _(t){if(!t||t===null)return!1;const l=C();return(l==null?void 0:l.fullscreenEnabled)!==!0?!1:!!(P(t)&&M(l,t))}function P(t){return Q.find(l=>B(t,l))}function M(t,l){return U.find(i=>B(t,i)||B(l,i))}async function L(t,l){const i=t&&t[l];if(typeof i!="function")throw new Error("Fullscreen method is unavailable.");await i.call(t)}function B(t,l){return typeof(t==null?void 0:t[l])=="function"}const Y=e.defineComponent({name:"QyFullscreen",inheritAttrs:!1,__name:"index",props:{target:{},disabled:{type:Boolean,default:!1},size:{default:"default"},enterLabel:{default:"进入全屏"},exitLabel:{default:"退出全屏"},enterIcon:{default:"fullscreen"},exitIcon:{default:"exit-fullscreen"}},emits:["change","error"],setup(t,{expose:l,emit:i}){const s=t,a=i,c=e.useSlots(),p=e.inject(T.QY_ICON_REGISTRY_KEY,null),u=V(e.toRef(s,"target"),e.toRef(s,"disabled"),{onChange:o=>a("change",o),onError:o=>a("error",o)}),f=u.isFullscreen,b=u.pending,g=e.computed(()=>f.value?s.exitLabel:s.enterLabel),x=e.computed(()=>f.value?s.exitIcon:s.enterIcon),w=e.computed(()=>f.value?"exit-icon":"enter-icon"),F=e.computed(()=>!!c[w.value]),v=e.computed(()=>p==null?void 0:p.resolve(x.value)),y=e.computed(()=>F.value||!!v.value),h=e.computed(()=>({small:"sm",default:"md",large:"lg"})[s.size]),q=e.computed(()=>s.disabled||!u.isSupported.value||b.value);function m(){u.toggle()}return l({enter:u.enter,exit:u.exit,toggle:u.toggle}),(o,I)=>y.value?(e.openBlock(),e.createBlock(z.Button,{key:0,class:"qy-fullscreen",size:h.value,disabled:q.value,loading:e.unref(b),active:e.unref(f),"icon-only":!0,"aria-label":g.value,"aria-pressed":e.unref(f)?"true":"false",title:g.value,onClick:m},{prefix:e.withCtx(()=>[F.value?e.renderSlot(o.$slots,w.value,{},void 0,!0,0):(e.openBlock(),e.createBlock(T.Icon,{key:1,name:x.value},null,8,["name"]))]),_:3},8,["size","disabled","loading","active","aria-label","aria-pressed","title"])):(e.openBlock(),e.createBlock(z.Button,{key:1,class:"qy-fullscreen",size:h.value,disabled:q.value,loading:e.unref(b),active:e.unref(f),"icon-only":!1,"aria-label":g.value,"aria-pressed":e.unref(f)?"true":"false",title:g.value,onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.value),1)]),_:1},8,["size","disabled","loading","active","aria-label","aria-pressed","title"]))}}),$=O._export_sfc(Y,[["__scopeId","data-v-4491aa7c"]]);exports.Fullscreen=$;
|
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ue, useAttrs as fe, ref as w, computed as y, watch as he, toRaw as f, openBlock as ye, createBlock as pe, unref as ke, mergeProps as be, createSlots as me, withCtx as p, renderSlot as k } from "vue";
|
|
2
|
-
import { ElTreeSelect as ge } from "element-plus";
|
|
3
|
-
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const Ce = /* @__PURE__ */ ue({
|
|
5
|
-
name: "QyTreeSelect",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [String, Number, Boolean, Object, Array, null], default: void 0 },
|
|
10
|
-
data: { default: void 0 },
|
|
11
|
-
options: { default: () => [] },
|
|
12
|
-
labelKey: { default: "label" },
|
|
13
|
-
valueKey: { default: "value" },
|
|
14
|
-
childrenKey: { default: "children" },
|
|
15
|
-
disabledKey: { default: "disabled" },
|
|
16
|
-
props: { default: () => ({}) },
|
|
17
|
-
nodeKey: { default: void 0 },
|
|
18
|
-
placeholder: { default: "请选择" },
|
|
19
|
-
disabled: { type: Boolean, default: !1 },
|
|
20
|
-
clearable: { type: Boolean, default: !1 },
|
|
21
|
-
filterable: { type: Boolean, default: !1 },
|
|
22
|
-
filterMethod: { type: Function, default: void 0 },
|
|
23
|
-
remote: { type: Boolean, default: !1 },
|
|
24
|
-
remoteMethod: { type: Function, default: void 0 },
|
|
25
|
-
remoteShowSuffix: { type: Boolean, default: !1 },
|
|
26
|
-
loading: { type: Boolean, default: !1 },
|
|
27
|
-
multiple: { type: Boolean, default: !1 },
|
|
28
|
-
multipleLimit: { default: 0 },
|
|
29
|
-
collapseTags: { type: Boolean, default: !1 },
|
|
30
|
-
collapseTagsTooltip: { type: Boolean, default: !1 },
|
|
31
|
-
checkStrictly: { type: Boolean, default: !1 },
|
|
32
|
-
showCheckbox: { type: Boolean, default: !1 },
|
|
33
|
-
defaultExpandAll: { type: Boolean, default: !1 },
|
|
34
|
-
renderAfterExpand: { type: Boolean, default: !0 },
|
|
35
|
-
expandOnClickNode: { type: Boolean, default: !0 },
|
|
36
|
-
checkOnClickNode: { type: Boolean, default: !1 },
|
|
37
|
-
checkOnClickLeaf: { type: Boolean, default: !0 },
|
|
38
|
-
checkDescendants: { type: Boolean, default: !1 },
|
|
39
|
-
defaultExpandedKeys: { default: void 0 },
|
|
40
|
-
defaultCheckedKeys: { default: void 0 },
|
|
41
|
-
accordion: { type: Boolean, default: !1 },
|
|
42
|
-
indent: { default: 18 },
|
|
43
|
-
highlightCurrent: { type: Boolean, default: !1 },
|
|
44
|
-
lazy: { type: Boolean, default: !1 },
|
|
45
|
-
load: { type: Function, default: void 0 },
|
|
46
|
-
cacheData: { default: () => [] },
|
|
47
|
-
filterNodeMethod: { type: Function, default: void 0 },
|
|
48
|
-
size: { default: void 0 },
|
|
49
|
-
teleported: { type: Boolean, default: !0 },
|
|
50
|
-
appendTo: { default: void 0 },
|
|
51
|
-
fitInputWidth: { type: Boolean, default: !1 },
|
|
52
|
-
popperClass: { default: "" }
|
|
53
|
-
},
|
|
54
|
-
emits: ["update:modelValue", "change", "clear", "visible-change", "focus", "blur", "node-click", "node-expand", "node-collapse", "check-change", "check"],
|
|
55
|
-
setup(a, { expose: j, emit: T }) {
|
|
56
|
-
const i = Symbol("invalid-tree-select-value"), n = a, r = T, z = fe(), x = w(null), b = y(() => n.data === void 0 ? n.options : n.data), $ = w(n.defaultExpandedKeys ? [...n.defaultExpandedKeys] : void 0), F = w(n.defaultCheckedKeys ? [...n.defaultCheckedKeys] : void 0);
|
|
57
|
-
let N = /* @__PURE__ */ new WeakSet(), m = /* @__PURE__ */ new Set();
|
|
58
|
-
he(b, (e) => {
|
|
59
|
-
N = /* @__PURE__ */ new WeakSet(), m = /* @__PURE__ */ new Set(), V(e);
|
|
60
|
-
}, { immediate: !0, deep: !1 });
|
|
61
|
-
const W = y(() => Object.fromEntries(Object.entries(z).filter(
|
|
62
|
-
([e]) => e === "class" || e === "style" || e === "id" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
63
|
-
))), I = y(() => ["qy-tree-select__popper", n.popperClass].filter(Boolean).join(" ")), P = y(() => {
|
|
64
|
-
const e = S(n.modelValue);
|
|
65
|
-
if (e !== i && q(e) && !n.nodeKey)
|
|
66
|
-
throw new Error("QyTreeSelect object values require nodeKey");
|
|
67
|
-
return e === i ? void 0 : re(e);
|
|
68
|
-
}), R = y(() => {
|
|
69
|
-
const e = n.props ?? {};
|
|
70
|
-
return {
|
|
71
|
-
value: h(e.value ?? n.nodeKey ?? n.valueKey),
|
|
72
|
-
label: h(e.label ?? n.labelKey),
|
|
73
|
-
children: h(e.children ?? n.childrenKey),
|
|
74
|
-
disabled: h(e.disabled ?? n.disabledKey),
|
|
75
|
-
isLeaf: h(e.isLeaf),
|
|
76
|
-
class: U(e.class)
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
function g(e) {
|
|
80
|
-
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
81
|
-
}
|
|
82
|
-
function B(e) {
|
|
83
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? e : g(e) ? f(e) : i;
|
|
84
|
-
}
|
|
85
|
-
function S(e) {
|
|
86
|
-
return e == null ? e : Array.isArray(e) ? e.every((t) => B(t) !== i) ? e : i : B(e);
|
|
87
|
-
}
|
|
88
|
-
function q(e) {
|
|
89
|
-
return Array.isArray(e) ? e.some(g) : g(e);
|
|
90
|
-
}
|
|
91
|
-
function v(e) {
|
|
92
|
-
return g(e) ? f(e) : null;
|
|
93
|
-
}
|
|
94
|
-
function V(e) {
|
|
95
|
-
for (const t of e ?? []) L(t);
|
|
96
|
-
}
|
|
97
|
-
function L(e) {
|
|
98
|
-
const t = f(e);
|
|
99
|
-
N.add(t), m.add(t);
|
|
100
|
-
const l = C("children", t);
|
|
101
|
-
if (Array.isArray(l))
|
|
102
|
-
for (const o of l) {
|
|
103
|
-
const d = v(o);
|
|
104
|
-
d && L(d);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function c(e) {
|
|
108
|
-
const t = v(e);
|
|
109
|
-
return t !== null && N.has(t);
|
|
110
|
-
}
|
|
111
|
-
function C(e, t) {
|
|
112
|
-
var u;
|
|
113
|
-
const l = (u = n.props) == null ? void 0 : u[e], o = e === "value" ? n.valueKey : e === "label" ? n.labelKey : e === "children" ? n.childrenKey : e === "disabled" ? n.disabledKey : void 0, d = l ?? o;
|
|
114
|
-
return typeof d == "function" ? d(t) : typeof d == "string" ? t[d] : void 0;
|
|
115
|
-
}
|
|
116
|
-
function h(e) {
|
|
117
|
-
return typeof e == "function" ? (t) => e(t) : e;
|
|
118
|
-
}
|
|
119
|
-
function U(e) {
|
|
120
|
-
return typeof e != "function" ? e : (t, l) => {
|
|
121
|
-
const o = s(l);
|
|
122
|
-
return o && c(t) ? e(t, o) : "";
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function K(e) {
|
|
126
|
-
return typeof e == "string" || typeof e == "number" ? e : null;
|
|
127
|
-
}
|
|
128
|
-
function s(e) {
|
|
129
|
-
var l;
|
|
130
|
-
if (!e || !c(e.data)) return null;
|
|
131
|
-
const t = v(e.data);
|
|
132
|
-
return t ? Object.freeze({
|
|
133
|
-
key: K(e.key),
|
|
134
|
-
parentKey: K((l = e.parent) == null ? void 0 : l.key),
|
|
135
|
-
data: t,
|
|
136
|
-
label: typeof e.label == "string" ? e.label : String(C("label", t) ?? ""),
|
|
137
|
-
level: typeof e.level == "number" ? e.level : 0,
|
|
138
|
-
expanded: e.expanded === !0,
|
|
139
|
-
checked: e.checked === !0,
|
|
140
|
-
indeterminate: e.indeterminate === !0,
|
|
141
|
-
disabled: e.disabled === !0,
|
|
142
|
-
leaf: e.isLeaf === !0,
|
|
143
|
-
visible: e.visible !== !1,
|
|
144
|
-
loading: e.loading === !0,
|
|
145
|
-
loaded: e.loaded === !0,
|
|
146
|
-
childCount: Array.isArray(e.childNodes) ? e.childNodes.length : 0
|
|
147
|
-
}) : null;
|
|
148
|
-
}
|
|
149
|
-
function Q(e) {
|
|
150
|
-
return Object.freeze({
|
|
151
|
-
key: null,
|
|
152
|
-
parentKey: null,
|
|
153
|
-
data: {},
|
|
154
|
-
label: "",
|
|
155
|
-
level: 0,
|
|
156
|
-
expanded: !1,
|
|
157
|
-
checked: !1,
|
|
158
|
-
indeterminate: !1,
|
|
159
|
-
disabled: !1,
|
|
160
|
-
leaf: !1,
|
|
161
|
-
visible: !0,
|
|
162
|
-
loading: e.loading === !0,
|
|
163
|
-
loaded: e.loaded === !0,
|
|
164
|
-
childCount: Array.isArray(e.childNodes) ? e.childNodes.length : 0
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
function G(e, t, l) {
|
|
168
|
-
const o = s(l);
|
|
169
|
-
return !o || !c(t) ? !1 : n.filterNodeMethod ? n.filterNodeMethod(e, t, o) : String(o.label).toLocaleLowerCase().includes(String(e ?? "").toLocaleLowerCase());
|
|
170
|
-
}
|
|
171
|
-
function H(e, t, l) {
|
|
172
|
-
if (!n.load) return t([]);
|
|
173
|
-
const o = e.level === 0 || e.data === void 0 || e.data === null, d = b.value, u = s(e) ?? (o ? Q(e) : null);
|
|
174
|
-
if (!u) return l();
|
|
175
|
-
n.load(u, (M) => {
|
|
176
|
-
(o ? b.value !== d : !c(u.data)) || (V(M), t(M));
|
|
177
|
-
}, l);
|
|
178
|
-
}
|
|
179
|
-
function J(e) {
|
|
180
|
-
const t = S(A(e));
|
|
181
|
-
t !== i && r("update:modelValue", t);
|
|
182
|
-
}
|
|
183
|
-
function X(e) {
|
|
184
|
-
const t = S(A(e));
|
|
185
|
-
t !== i && r("change", t);
|
|
186
|
-
}
|
|
187
|
-
function Y() {
|
|
188
|
-
r("clear");
|
|
189
|
-
}
|
|
190
|
-
function Z(e) {
|
|
191
|
-
r("visible-change", e);
|
|
192
|
-
}
|
|
193
|
-
function _(e) {
|
|
194
|
-
r("focus", e);
|
|
195
|
-
}
|
|
196
|
-
function ee(e) {
|
|
197
|
-
r("blur", e);
|
|
198
|
-
}
|
|
199
|
-
function te(e, t) {
|
|
200
|
-
const l = s(t);
|
|
201
|
-
l && c(e) && r("node-click", e, l);
|
|
202
|
-
}
|
|
203
|
-
function le(e, t) {
|
|
204
|
-
const l = s(t);
|
|
205
|
-
l && c(e) && r("node-expand", e, l);
|
|
206
|
-
}
|
|
207
|
-
function ae(e, t) {
|
|
208
|
-
const l = s(t);
|
|
209
|
-
l && c(e) && r("node-collapse", e, l);
|
|
210
|
-
}
|
|
211
|
-
function ne(e, t, l) {
|
|
212
|
-
c(e) && r("check-change", e, t, l);
|
|
213
|
-
}
|
|
214
|
-
function D(e) {
|
|
215
|
-
return (e ?? []).map(v).filter((t) => t !== null && c(t));
|
|
216
|
-
}
|
|
217
|
-
function E(e) {
|
|
218
|
-
return (e ?? []).map(K).filter((t) => t !== null);
|
|
219
|
-
}
|
|
220
|
-
function oe(e, t) {
|
|
221
|
-
c(e) && r("check", e, {
|
|
222
|
-
checkedKeys: E(t == null ? void 0 : t.checkedKeys),
|
|
223
|
-
checkedNodes: D(t == null ? void 0 : t.checkedNodes),
|
|
224
|
-
halfCheckedKeys: E(t == null ? void 0 : t.halfCheckedKeys),
|
|
225
|
-
halfCheckedNodes: D(t == null ? void 0 : t.halfCheckedNodes)
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
function O(e) {
|
|
229
|
-
for (const t of m)
|
|
230
|
-
if (Object.is(f(C("value", t)), f(e))) return t;
|
|
231
|
-
}
|
|
232
|
-
function de(e) {
|
|
233
|
-
if (n.nodeKey) {
|
|
234
|
-
for (const t of m)
|
|
235
|
-
if (Object.is(t[n.nodeKey], e)) return t;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
function re(e) {
|
|
239
|
-
if (!n.nodeKey || e === null || e === void 0) return e;
|
|
240
|
-
const t = (l) => {
|
|
241
|
-
const o = O(l);
|
|
242
|
-
return (o ? K(o[n.nodeKey]) : null) ?? l;
|
|
243
|
-
};
|
|
244
|
-
return Array.isArray(e) ? e.map(t) : t(e);
|
|
245
|
-
}
|
|
246
|
-
function A(e) {
|
|
247
|
-
if (!n.nodeKey) return e;
|
|
248
|
-
const t = (l) => {
|
|
249
|
-
const o = de(l);
|
|
250
|
-
return o ? C("value", o) : l;
|
|
251
|
-
};
|
|
252
|
-
return Array.isArray(e) ? e.map(t) : t(e);
|
|
253
|
-
}
|
|
254
|
-
function ce(e, t) {
|
|
255
|
-
return (e ?? []).flatMap((l) => {
|
|
256
|
-
const o = B(A(l.value));
|
|
257
|
-
if (o === i) return [];
|
|
258
|
-
const d = O(o);
|
|
259
|
-
return [Object.freeze({
|
|
260
|
-
value: o,
|
|
261
|
-
label: typeof l.currentLabel == "string" ? l.currentLabel : String(l.currentLabel ?? ""),
|
|
262
|
-
data: d ? f(d) : void 0,
|
|
263
|
-
closable: l.isDisabled !== !0,
|
|
264
|
-
remove: () => t == null ? void 0 : t(new MouseEvent("click"), l)
|
|
265
|
-
})];
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
function ie() {
|
|
269
|
-
var e, t;
|
|
270
|
-
(t = (e = x.value) == null ? void 0 : e.focus) == null || t.call(e);
|
|
271
|
-
}
|
|
272
|
-
function se() {
|
|
273
|
-
var e, t;
|
|
274
|
-
(t = (e = x.value) == null ? void 0 : e.blur) == null || t.call(e);
|
|
275
|
-
}
|
|
276
|
-
return j({ focus: ie, blur: se }), (e, t) => (ye(), pe(ke(ge), be({
|
|
277
|
-
ref_key: "treeSelectRef",
|
|
278
|
-
ref: x,
|
|
279
|
-
class: "qy-tree-select"
|
|
280
|
-
}, W.value, {
|
|
281
|
-
"model-value": P.value,
|
|
282
|
-
data: b.value,
|
|
283
|
-
props: R.value,
|
|
284
|
-
"node-key": a.nodeKey,
|
|
285
|
-
placeholder: a.placeholder,
|
|
286
|
-
disabled: a.disabled,
|
|
287
|
-
clearable: a.clearable,
|
|
288
|
-
filterable: a.filterable,
|
|
289
|
-
"filter-method": a.filterMethod,
|
|
290
|
-
remote: a.remote,
|
|
291
|
-
"remote-method": a.remoteMethod,
|
|
292
|
-
"remote-show-suffix": a.remoteShowSuffix,
|
|
293
|
-
loading: a.loading,
|
|
294
|
-
multiple: a.multiple,
|
|
295
|
-
"multiple-limit": a.multipleLimit,
|
|
296
|
-
"collapse-tags": a.collapseTags,
|
|
297
|
-
"collapse-tags-tooltip": a.collapseTagsTooltip,
|
|
298
|
-
"check-strictly": a.checkStrictly,
|
|
299
|
-
"show-checkbox": a.showCheckbox,
|
|
300
|
-
"default-expand-all": a.defaultExpandAll,
|
|
301
|
-
"render-after-expand": a.renderAfterExpand,
|
|
302
|
-
"expand-on-click-node": a.expandOnClickNode,
|
|
303
|
-
"check-on-click-node": a.checkOnClickNode,
|
|
304
|
-
"check-on-click-leaf": a.checkOnClickLeaf,
|
|
305
|
-
"check-descendants": a.checkDescendants,
|
|
306
|
-
"default-expanded-keys": $.value,
|
|
307
|
-
"default-checked-keys": F.value,
|
|
308
|
-
accordion: a.accordion,
|
|
309
|
-
indent: a.indent,
|
|
310
|
-
"highlight-current": a.highlightCurrent,
|
|
311
|
-
lazy: a.lazy,
|
|
312
|
-
load: H,
|
|
313
|
-
"cache-data": a.cacheData,
|
|
314
|
-
"filter-node-method": G,
|
|
315
|
-
size: a.size,
|
|
316
|
-
teleported: a.teleported,
|
|
317
|
-
"append-to": a.appendTo,
|
|
318
|
-
"fit-input-width": a.fitInputWidth,
|
|
319
|
-
"popper-class": I.value,
|
|
320
|
-
"onUpdate:modelValue": J,
|
|
321
|
-
onChange: X,
|
|
322
|
-
onClear: Y,
|
|
323
|
-
onVisibleChange: Z,
|
|
324
|
-
onFocus: _,
|
|
325
|
-
onBlur: ee,
|
|
326
|
-
onNodeClick: te,
|
|
327
|
-
onNodeExpand: le,
|
|
328
|
-
onNodeCollapse: ae,
|
|
329
|
-
onCheckChange: ne,
|
|
330
|
-
onCheck: oe
|
|
331
|
-
}), me({ _: 2 }, [
|
|
332
|
-
e.$slots.prefix ? {
|
|
333
|
-
name: "prefix",
|
|
334
|
-
fn: p(() => [
|
|
335
|
-
k(e.$slots, "prefix", {}, void 0, !0)
|
|
336
|
-
]),
|
|
337
|
-
key: "0"
|
|
338
|
-
} : void 0,
|
|
339
|
-
e.$slots.empty ? {
|
|
340
|
-
name: "empty",
|
|
341
|
-
fn: p(() => [
|
|
342
|
-
k(e.$slots, "empty", {}, void 0, !0)
|
|
343
|
-
]),
|
|
344
|
-
key: "1"
|
|
345
|
-
} : void 0,
|
|
346
|
-
e.$slots.loading ? {
|
|
347
|
-
name: "loading",
|
|
348
|
-
fn: p(() => [
|
|
349
|
-
k(e.$slots, "loading", {}, void 0, !0)
|
|
350
|
-
]),
|
|
351
|
-
key: "2"
|
|
352
|
-
} : void 0,
|
|
353
|
-
e.$slots.default ? {
|
|
354
|
-
name: "default",
|
|
355
|
-
fn: p((l) => [
|
|
356
|
-
k(e.$slots, "default", {
|
|
357
|
-
data: l.data,
|
|
358
|
-
node: s(l.node)
|
|
359
|
-
}, void 0, !0)
|
|
360
|
-
]),
|
|
361
|
-
key: "3"
|
|
362
|
-
} : void 0,
|
|
363
|
-
e.$slots.tag ? {
|
|
364
|
-
name: "tag",
|
|
365
|
-
fn: p((l) => [
|
|
366
|
-
k(e.$slots, "tag", {
|
|
367
|
-
data: ce(l.data, l.deleteTag)
|
|
368
|
-
}, void 0, !0)
|
|
369
|
-
]),
|
|
370
|
-
key: "4"
|
|
371
|
-
} : void 0
|
|
372
|
-
]), 1040, ["model-value", "data", "props", "node-key", "placeholder", "disabled", "clearable", "filterable", "filter-method", "remote", "remote-method", "remote-show-suffix", "loading", "multiple", "multiple-limit", "collapse-tags", "collapse-tags-tooltip", "check-strictly", "show-checkbox", "default-expand-all", "render-after-expand", "expand-on-click-node", "check-on-click-node", "check-on-click-leaf", "check-descendants", "default-expanded-keys", "default-checked-keys", "accordion", "indent", "highlight-current", "lazy", "cache-data", "size", "teleported", "append-to", "fit-input-width", "popper-class"]));
|
|
373
|
-
}
|
|
374
|
-
}), Be = /* @__PURE__ */ ve(Ce, [["__scopeId", "data-v-daef2030"]]);
|
|
375
|
-
export {
|
|
376
|
-
Be as T
|
|
377
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("vue"),N=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),I=Symbol("QyIconRegistry"),E=new WeakMap;function z(e){const t=[],n=new Map;for(const a of(e==null?void 0:e.icons)??[]){const s=d(a==null?void 0:a.name);if(!s)throw new Error("QyIcon definition name must not be empty.");const u=p(s);if(n.has(u))throw new Error(`Duplicate icon name "${s}".`);const l=K(a,s);t.push(l),n.set(u,l)}const c=[],i=new Map;for(const a of C(e==null?void 0:e.aliases)){const s=d(a.name),u=d(a.target),l=p(s),w=p(u);if(!s)throw new Error("QyIcon alias name must not be empty.");if(!u)throw new Error(`QyIcon alias "${s}" target must not be empty.`);if(n.has(l))throw new Error(`Icon alias "${s}" conflicts with a canonical icon name.`);if(i.has(l))throw new Error(`Duplicate icon alias "${s}".`);const m=n.get(w);if(!m)throw new Error(`Icon alias "${s}" target "${u}" not found.`);i.set(l,p(m.name)),c.push(Object.freeze({name:s,target:m.name}))}const g=Object.freeze({definitions:Object.freeze(t),aliases:Object.freeze(c),byName:n,aliasTargets:i}),f=Object.freeze({resolve(a){const s=p(d(a)),u=i.get(s)??s,l=n.get(u);return l?Q(l):void 0},has(a){const s=p(d(a));return n.has(i.get(s)??s)},list(){return Object.freeze(t.map(Q))}});return E.set(f,g),f}function x(...e){const t=[],n=[];for(const c of e){const i=E.get(c);if(!i)throw new TypeError("mergeQyIconRegistries accepts only QyIcon registries created by this package.");t.push(...i.definitions),n.push(...i.aliases)}try{return z({icons:t,aliases:n})}catch(c){const i=c instanceof Error?c.message:String(c);throw new Error(`Icon registry merge conflict: ${i}`)}}function B(e){if(!E.has(e))throw new TypeError("createQyIconPlugin accepts only a QyIcon registry created by this package.");return Object.freeze({install(t){t.provide(I,e)}})}function d(e){const t=typeof e=="string"||typeof e=="number"?String(e).trim():"";if(!t)return"";const n=/^#icon-(.+)$/i.exec(t);if(n)return n[1].trim();const c=/^icon-\[([^\[\]]+?)--([^\[\]]+?)\]$/i.exec(t);return c?`iconify:${c[1]}:${c[2]}`:t}function p(e){return e.toLocaleLowerCase()}function C(e){return e?Array.isArray(e)?[...e]:Object.entries(e).map(([t,n])=>({name:t,target:n})):[]}function K(e,t){const n={...e.label===void 0?{}:{label:q(e.label,t)},...e.keywords===void 0?{}:{keywords:D(e.keywords,t)}};switch(e.source){case"symbol":return b({name:t,source:"symbol",value:v("symbol",e.value,t),...n});case"component":return b({name:t,source:"component",value:v("component",e.value,t),...n});case"class":return b({name:t,source:"class",value:v("class",e.value,t),...n});default:throw new Error(`QyIcon definition "${t}" has unsupported source "${String(e.source)}".`)}}function v(e,t,n){if(e==="symbol"){if(typeof t!="string"||!/^#[^\s#]+$/.test(t))throw new Error(`QyIcon symbol "${n}" must be a same-document #fragment.`);return t}if(e==="component"){if(typeof t!="object"&&typeof t!="function"||t===null)throw new Error(`QyIcon component "${n}" must be a Vue component.`);return t}if(e!=="class")throw new Error(`QyIcon definition "${n}" has unsupported source "${String(e)}".`);if(typeof t!="string"||!t.trim()||!/^[A-Za-z0-9_:.\/\[\]%-]+(?:\s+[A-Za-z0-9_:.\/\[\]%-]+)*$/.test(t.trim()))throw new Error(`QyIcon class "${n}" must be a trusted static class string.`);return t.trim()}function q(e,t){if(typeof e!="string")throw new Error(`QyIcon label "${t}" must be a string.`);return e}function D(e,t){if(!Array.isArray(e)||e.some(n=>typeof n!="string"))throw new Error(`QyIcon keywords "${t}" must be strings.`);return Object.freeze([...e])}function b(e){return e.keywords&&!Object.isFrozen(e.keywords)&&(e={...e,keywords:Object.freeze([...e.keywords])}),Object.freeze(e)}function Q(e){return b({...e,...e.keywords?{keywords:[...e.keywords]}:{}})}const P=["role","aria-label","aria-hidden","data-qy-icon-missing"],L={key:1,"aria-hidden":"true",focusable:"false"},T=["href","xlink:href"],V=r.defineComponent({name:"QyIcon",inheritAttrs:!1,__name:"index",props:{name:{},icon:{},size:{default:"1em"},color:{default:"currentColor"},spin:{type:Boolean,default:!1},label:{}},setup(e){const t=e,n=r.useAttrs(),c=r.useSlots(),i=r.inject(I,null),g=r.computed(()=>t.icon?r.markRaw(r.toRaw(t.icon)):void 0),f=r.computed(()=>t.name===void 0||t.name===null?"":d(t.name)),a=r.computed(()=>{if(!(t.icon||!i||!f.value))return i.resolve(f.value)}),s=r.ref(null),u=r.computed(()=>!!(!t.icon&&f.value&&!a.value)),l=r.computed(()=>{const o=typeof t.label=="string"?t.label.trim():"";if(o)return o;const y=n["aria-label"];return R(y)?String(y):""}),w=r.computed(()=>l.value?"img":n.role),m=r.computed(()=>O(t.size)),$=r.computed(()=>({width:m.value,height:m.value,fontSize:m.value,color:t.color||"currentColor"})),S=r.computed(()=>{const o={};for(const[y,h]of Object.entries(n))A(y)&&(o[y]=h);return o}),j=r.computed(()=>Object.freeze({name:f.value}));r.watchEffect(()=>{const o=a.value;s.value&&(o==null?void 0:o.source)==="symbol"&&(s.value.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o.value),s.value.setAttribute("xlink:href",o.value))}),r.watchEffect(()=>{});function O(o){return typeof o=="number"?Number.isFinite(o)&&o>0?`${o}px`:"1em":o.trim()||"1em"}function R(o){return typeof o=="string"?o.trim().length>0:o!=null&&o!==!1}function A(o){return o!=="class"&&o!=="style"&&o!=="role"&&o!=="aria-label"&&o!=="aria-hidden"&&o!=="data-qy-icon-missing"&&(o==="id"||o==="title"||o.startsWith("data-")||o.startsWith("aria-"))}return(o,y)=>{var h,k,_;return r.openBlock(),r.createElementBlock("span",r.mergeProps(S.value,{class:["qy-icon",[r.unref(n).class,{"is-spin":t.spin}]],style:[r.unref(n).style,$.value],role:w.value,"aria-label":l.value||void 0,"aria-hidden":l.value?void 0:"true","data-qy-icon-missing":u.value?f.value:void 0}),[g.value?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(g.value),{key:0,"aria-hidden":"true"})):((h=a.value)==null?void 0:h.source)==="symbol"?(r.openBlock(),r.createElementBlock("svg",L,[r.createElementVNode("use",{ref_key:"symbolElement",ref:s,href:a.value.value,"xlink:href":a.value.value},null,8,T)])):((k=a.value)==null?void 0:k.source)==="component"?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.value.value),{key:2,"aria-hidden":"true"})):((_=a.value)==null?void 0:_.source)==="class"?(r.openBlock(),r.createElementBlock("span",{key:3,class:r.normalizeClass(["qy-icon__class",a.value.value]),"aria-hidden":"true"},null,2)):u.value&&r.unref(c).fallback?r.renderSlot(o.$slots,"fallback",r.normalizeProps(r.guardReactiveProps(j.value)),void 0,!0,4):r.createCommentVNode("",!0)],16,P)}}}),Y=N._export_sfc(V,[["__scopeId","data-v-e4e9c6ae"]]);exports.Icon=Y;exports.QY_ICON_REGISTRY_KEY=I;exports.createQyIconPlugin=B;exports.createQyIconRegistry=z;exports.mergeQyIconRegistries=x;exports.normalizeQyIconName=d;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, useAttrs as p, computed as o, openBlock as h, createBlock as v, unref as x, mergeProps as V, withCtx as C, renderSlot as _ } from "vue";
|
|
2
|
-
import { ElCheckbox as g } from "element-plus";
|
|
3
|
-
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
|
-
const S = /* @__PURE__ */ b({
|
|
5
|
-
name: "QyCheckbox",
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
modelValue: { type: [Boolean, String, Number], default: !1 },
|
|
10
|
-
value: { type: [Boolean, String, Number] },
|
|
11
|
-
indeterminate: { type: Boolean, default: !1 },
|
|
12
|
-
disabled: { type: Boolean, default: !1 },
|
|
13
|
-
size: { default: void 0 },
|
|
14
|
-
trueValue: { type: [Boolean, String, Number], default: !0 },
|
|
15
|
-
falseValue: { type: [Boolean, String, Number], default: !1 },
|
|
16
|
-
name: {},
|
|
17
|
-
id: {},
|
|
18
|
-
tabindex: {},
|
|
19
|
-
ariaLabel: {},
|
|
20
|
-
ariaControls: {}
|
|
21
|
-
},
|
|
22
|
-
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
23
|
-
setup(n, { emit: r }) {
|
|
24
|
-
const a = n, t = r, i = p(), s = o(
|
|
25
|
-
() => Object.fromEntries(
|
|
26
|
-
Object.entries(i).filter(
|
|
27
|
-
([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
28
|
-
)
|
|
29
|
-
)
|
|
30
|
-
), u = o(() => a.modelValue === a.trueValue);
|
|
31
|
-
function l(e) {
|
|
32
|
-
return e ? a.trueValue : a.falseValue;
|
|
33
|
-
}
|
|
34
|
-
function d(e) {
|
|
35
|
-
a.disabled || t("update:modelValue", l(e === !0));
|
|
36
|
-
}
|
|
37
|
-
function c(e) {
|
|
38
|
-
a.disabled || t("change", l(e === !0));
|
|
39
|
-
}
|
|
40
|
-
function f(e) {
|
|
41
|
-
t("focus", e);
|
|
42
|
-
}
|
|
43
|
-
function m(e) {
|
|
44
|
-
t("blur", e);
|
|
45
|
-
}
|
|
46
|
-
return (e, y) => (h(), v(x(g), V(s.value, {
|
|
47
|
-
class: "qy-checkbox",
|
|
48
|
-
"model-value": u.value,
|
|
49
|
-
value: a.value,
|
|
50
|
-
indeterminate: a.indeterminate,
|
|
51
|
-
disabled: a.disabled || void 0,
|
|
52
|
-
size: a.size,
|
|
53
|
-
name: a.name,
|
|
54
|
-
id: a.id,
|
|
55
|
-
tabindex: a.tabindex,
|
|
56
|
-
"aria-label": a.ariaLabel,
|
|
57
|
-
"aria-controls": a.ariaControls,
|
|
58
|
-
"onUpdate:modelValue": d,
|
|
59
|
-
onChange: c,
|
|
60
|
-
onFocusin: f,
|
|
61
|
-
onFocusout: m
|
|
62
|
-
}), {
|
|
63
|
-
default: C(() => [
|
|
64
|
-
_(e.$slots, "default", {}, void 0, !0)
|
|
65
|
-
]),
|
|
66
|
-
_: 3
|
|
67
|
-
}, 16, ["model-value", "value", "indeterminate", "disabled", "size", "name", "id", "tabindex", "aria-label", "aria-controls"]));
|
|
68
|
-
}
|
|
69
|
-
}), F = /* @__PURE__ */ B(S, [["__scopeId", "data-v-33fb88db"]]);
|
|
70
|
-
export {
|
|
71
|
-
F as C
|
|
72
|
-
};
|