@qynpm/ui 1.0.40 → 1.0.42
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 +1797 -1797
- package/dist/index.cjs +19 -19
- package/dist/index.mjs +21 -21
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +4 -4
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +2 -2
- package/dist/qy-icon-picker/index.mjs +5 -5
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +2 -2
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +4 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +4 -4
- package/dist/qy-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +4 -4
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/{index-CBhrdEIf.mjs → index-2D5AFexl.mjs} +1 -1
- package/dist/shared/index-8Iwma3ls.mjs +222 -0
- package/dist/shared/index-B25yA5j-.mjs +71 -0
- package/dist/shared/index-B3GsIwhf.mjs +142 -0
- package/dist/shared/index-B3XwO-Lc.mjs +127 -0
- package/dist/shared/index-B3YHS3Aa.mjs +54 -0
- package/dist/shared/index-BEcS8y8g.mjs +68 -0
- package/dist/shared/index-BNssRW4d.mjs +90 -0
- package/dist/shared/index-BPnHycGa.cjs +1 -0
- package/dist/shared/index-BSTMCPDj.mjs +72 -0
- package/dist/shared/index-BhvOSOfi.mjs +766 -0
- package/dist/shared/index-BjqJCq-6.mjs +293 -0
- package/dist/shared/index-Bq9quq2D.cjs +1 -0
- package/dist/shared/index-ByQyMTPg.mjs +285 -0
- package/dist/shared/index-CGq7Q_hV.mjs +119 -0
- package/dist/shared/{index-D97QYFZw.cjs → index-CUlhX6fW.cjs} +1 -1
- package/dist/shared/index-CVWru9T3.cjs +1 -0
- package/dist/shared/index-CVYNG8Fc.cjs +1 -0
- package/dist/shared/index-CiE6qJCJ.mjs +377 -0
- package/dist/shared/index-CnVhquq5.cjs +1 -0
- package/dist/shared/index-Co84fsS5.mjs +225 -0
- package/dist/shared/index-D27mwR57.cjs +1 -0
- package/dist/shared/index-DAztNKSp.cjs +1 -0
- package/dist/shared/index-DKw-seoh.cjs +1 -0
- package/dist/shared/index-DRIoLeFE.mjs +162 -0
- package/dist/shared/index-DRugp8x0.cjs +1 -0
- package/dist/shared/index-DTbGlDqr.cjs +1 -0
- package/dist/shared/index-DXZ6Y6wd.mjs +107 -0
- package/dist/shared/index-DiEag4sK.cjs +1 -0
- package/dist/shared/index-DuP-b_eY.cjs +1 -0
- package/dist/shared/index-DvFMgAcu.mjs +149 -0
- package/dist/shared/index-EIFVul2W.cjs +1 -0
- package/dist/shared/index-HNFq7v-A.cjs +1 -0
- package/dist/shared/index-Mj7JZt7y.cjs +1 -0
- package/dist/shared/index-MyDDX-zj.cjs +1 -0
- package/dist/shared/index-QewoB6N4.mjs +2362 -0
- package/dist/shared/index-d76Z3yrB.cjs +1 -0
- package/dist/shared/index-gMrQlV5n.cjs +1 -0
- package/dist/shared/index-rSrDnOpu.cjs +1 -0
- package/dist/shared/index-zo5J-y0C.mjs +157 -0
- package/dist/shared/{index-CCVlab6d.mjs → index.vue_vue_type_script_lang-69zSOotQ.mjs} +10 -11
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +1 -0
- package/dist/shared/{index-EPcAlzgc.mjs → index.vue_vue_type_script_lang-BGAdXWIL.mjs} +11 -12
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +1 -0
- package/dist/shared/{index-1Vw54aYL.mjs → index.vue_vue_type_script_lang-BaIOvoQn.mjs} +5 -6
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +1 -0
- package/dist/shared/{index-BG3XKumS.mjs → index.vue_vue_type_script_lang-Bk0kLg5l.mjs} +8 -9
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-BnmY1ndj.mjs +77 -0
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +1 -0
- package/dist/shared/{index-Se0xx6vl.mjs → index.vue_vue_type_script_lang-C4JHCuXz.mjs} +13 -14
- package/dist/shared/{index-D_Imq4-m.mjs → index.vue_vue_type_script_lang-C9X0V5AK.mjs} +12 -13
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +31 -0
- package/dist/shared/{index-CrlLsoRF.mjs → index.vue_vue_type_script_lang-CZK0hDYa.mjs} +20 -21
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +1 -0
- package/dist/shared/{index-BPXJkcM1.mjs → index.vue_vue_type_script_lang-D7b9ABei.mjs} +19 -20
- package/dist/shared/{index-LDtOVxCE.mjs → index.vue_vue_type_script_lang-D7nzeBUR.mjs} +7 -8
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +72 -0
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +1 -0
- package/dist/shared/{index-TVUj4Yp4.mjs → index.vue_vue_type_script_lang-DOOT2grg.mjs} +10 -11
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +43 -0
- package/dist/shared/{index-BQzQcTgt.mjs → index.vue_vue_type_script_lang-Dfq7D3mJ.mjs} +3 -4
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +1 -0
- package/dist/shared/{index-B1I7mCIm.mjs → index.vue_vue_type_script_lang-chBiq2cG.mjs} +3 -4
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +42 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +63 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +62 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs +106 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +94 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +48 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +61 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs +331 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +215 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXAUYDO7.mjs +404 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +67 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +172 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +286 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +98 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +166 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +68 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Da67JRFL.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs +317 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +128 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +298 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +1 -0
- package/dist/shared/{index-DZU3jXf9.mjs → index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs} +9 -10
- package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +1 -0
- package/dist/shared/{index-GRwpbz1m.mjs → index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs} +17 -18
- package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +1 -0
- package/index.d.ts +592 -592
- package/package.json +14 -10
- package/qy-action-bar/index.d.ts +5 -5
- package/qy-aside/index.d.ts +47 -47
- package/qy-button/index.d.ts +34 -34
- package/qy-checkbox/index.d.ts +45 -45
- package/qy-checkbox-group/index.d.ts +48 -48
- package/qy-col/index.d.ts +65 -65
- package/qy-color-picker/index.d.ts +36 -36
- package/qy-container/index.d.ts +49 -49
- package/qy-date-picker/index.d.ts +140 -140
- package/qy-dropdown/index.d.ts +40 -40
- package/qy-file-picker/index.d.ts +48 -48
- package/qy-form-section/index.d.ts +5 -5
- package/qy-fullscreen/index.d.ts +72 -72
- package/qy-icon/index.d.ts +99 -99
- package/qy-icon-picker/index.d.ts +56 -56
- package/qy-input/index.d.ts +32 -32
- package/qy-input-number/index.d.ts +15 -15
- package/qy-legacy-selection-dialog/index.d.ts +5 -5
- package/qy-main/index.d.ts +45 -45
- package/qy-popconfirm/index.d.ts +55 -55
- package/qy-popover/index.d.ts +63 -63
- package/qy-radio/index.d.ts +44 -44
- package/qy-radio-group/index.d.ts +60 -60
- package/qy-record-quote-search/index.d.ts +5 -5
- package/qy-remark-image/index.d.ts +5 -5
- package/qy-remote-select/index.d.ts +12 -12
- package/qy-row/index.d.ts +59 -59
- package/qy-search-input/index.d.ts +5 -5
- package/qy-select/index.d.ts +67 -67
- package/qy-selection-dialog/index.d.ts +5 -5
- package/qy-statistic/index.d.ts +61 -61
- package/qy-switch/index.d.ts +46 -46
- package/qy-tag/index.d.ts +44 -44
- package/qy-tooltip/index.d.ts +54 -54
- package/qy-watermark/index.d.ts +72 -72
- package/dist/shared/index-5vWL_IJI.mjs +0 -150
- package/dist/shared/index-7fIb2Tqw.mjs +0 -129
- package/dist/shared/index-9T0p3USM.cjs +0 -1
- package/dist/shared/index-B-zfoMbw.cjs +0 -1
- package/dist/shared/index-B1aU9mew.mjs +0 -77
- package/dist/shared/index-B26-GlFX.cjs +0 -1
- package/dist/shared/index-B63vgrS4.mjs +0 -73
- package/dist/shared/index-B97hTd-h.cjs +0 -1
- package/dist/shared/index-B9zEH5Yq.cjs +0 -1
- package/dist/shared/index-BA_tJgLE.cjs +0 -1
- package/dist/shared/index-BBIPQa5N.mjs +0 -76
- package/dist/shared/index-BCWvMvRL.cjs +0 -1
- package/dist/shared/index-BDJIWxaw.cjs +0 -1
- package/dist/shared/index-BFbAB8UH.mjs +0 -307
- package/dist/shared/index-BHGDbXoK.mjs +0 -82
- package/dist/shared/index-BInkt-Al.cjs +0 -1
- package/dist/shared/index-BKEw_9fh.mjs +0 -2660
- package/dist/shared/index-BNfu2YgX.mjs +0 -47
- package/dist/shared/index-BUSdZ-x8.cjs +0 -1
- package/dist/shared/index-BZDbBD41.cjs +0 -1
- package/dist/shared/index-Bc1ny9GC.cjs +0 -1
- package/dist/shared/index-BcscC86C.mjs +0 -206
- package/dist/shared/index-BiowqiSD.cjs +0 -1
- package/dist/shared/index-Bpl6Jh4H.cjs +0 -1
- package/dist/shared/index-BqojE7aF.cjs +0 -1
- package/dist/shared/index-BrZzYI8x.cjs +0 -1
- package/dist/shared/index-BsXys36-.cjs +0 -1
- package/dist/shared/index-BvmXE8aK.cjs +0 -1
- package/dist/shared/index-Bw3nETeY.cjs +0 -1
- package/dist/shared/index-BxxuaQGJ.cjs +0 -1
- package/dist/shared/index-BxymsnW0.cjs +0 -1
- package/dist/shared/index-BzpgGytE.mjs +0 -52
- package/dist/shared/index-BzzZmppN.mjs +0 -63
- package/dist/shared/index-C0rOcDsc.cjs +0 -1
- package/dist/shared/index-C1hAuubZ.mjs +0 -157
- package/dist/shared/index-C2BQtQPa.mjs +0 -61
- package/dist/shared/index-C62Loq0f.cjs +0 -1
- package/dist/shared/index-C7N8x3DK.mjs +0 -206
- package/dist/shared/index-C8aLbb8l.cjs +0 -1
- package/dist/shared/index-CA279UZp.mjs +0 -87
- package/dist/shared/index-CDjAMIpe.cjs +0 -1
- package/dist/shared/index-CDleTMJj.mjs +0 -395
- package/dist/shared/index-CG4I3nRK.cjs +0 -1
- package/dist/shared/index-CHt1R1WD.cjs +0 -1
- package/dist/shared/index-CZIsLBLq.cjs +0 -1
- package/dist/shared/index-CcEXTVYA.mjs +0 -69
- package/dist/shared/index-CedTjtZr.cjs +0 -1
- package/dist/shared/index-CgXuleV-.mjs +0 -205
- package/dist/shared/index-CkfWS0Ba.cjs +0 -1
- package/dist/shared/index-Cm7k9j8a.cjs +0 -1
- package/dist/shared/index-CmgT_pgc.mjs +0 -154
- package/dist/shared/index-CngdcQWi.cjs +0 -1
- package/dist/shared/index-CqdhLbMe.cjs +0 -1
- package/dist/shared/index-CsI1WBRp.cjs +0 -1
- package/dist/shared/index-CsXA7Qfy.mjs +0 -105
- package/dist/shared/index-CsaDF9d4.mjs +0 -175
- package/dist/shared/index-CvdUJpAu.mjs +0 -365
- package/dist/shared/index-CvfLEIFE.mjs +0 -526
- package/dist/shared/index-CwcD7q4B.mjs +0 -446
- package/dist/shared/index-D0kCG3Ov.mjs +0 -278
- package/dist/shared/index-D1-QYDXi.cjs +0 -1
- package/dist/shared/index-D1BK66mG.cjs +0 -1
- package/dist/shared/index-D3IHte_d.cjs +0 -1
- package/dist/shared/index-D3VO2Ccd.mjs +0 -73
- package/dist/shared/index-D5spJ8nj.cjs +0 -1
- package/dist/shared/index-D7uPizqd.cjs +0 -1
- package/dist/shared/index-D8OJx-hy.mjs +0 -104
- package/dist/shared/index-DAiFZxwY.mjs +0 -51
- package/dist/shared/index-DBz3lz62.mjs +0 -53
- package/dist/shared/index-DCKEecrx.mjs +0 -138
- package/dist/shared/index-DCneRuMf.mjs +0 -78
- package/dist/shared/index-DD-zKgrO.cjs +0 -1
- package/dist/shared/index-DEHvfBYQ.mjs +0 -295
- package/dist/shared/index-DF_Q6c4g.mjs +0 -27
- package/dist/shared/index-DFeV2CL8.cjs +0 -1
- package/dist/shared/index-DIckpqrH.cjs +0 -1
- package/dist/shared/index-DKKMSKqm.cjs +0 -1
- package/dist/shared/index-DPhYSn9g.mjs +0 -130
- package/dist/shared/index-DSq7WIiO.cjs +0 -1
- package/dist/shared/index-DTHRZ-aL.mjs +0 -74
- package/dist/shared/index-DTqCwGN_.cjs +0 -1
- package/dist/shared/index-DVwCIrin.mjs +0 -100
- package/dist/shared/index-DbxSDJ7e.mjs +0 -81
- package/dist/shared/index-Dc4A_1-H.mjs +0 -53
- package/dist/shared/index-Dchy1DNn.mjs +0 -197
- package/dist/shared/index-DdKCUobQ.mjs +0 -311
- package/dist/shared/index-DdX40CzJ.cjs +0 -1
- package/dist/shared/index-DfP6txWq.mjs +0 -198
- package/dist/shared/index-Dh_dh3TS.cjs +0 -1
- package/dist/shared/index-DjRDV62n.mjs +0 -153
- package/dist/shared/index-DpGlBnUl.cjs +0 -1
- package/dist/shared/index-DsDUAk2R.cjs +0 -1
- package/dist/shared/index-DxUzSONj.cjs +0 -1
- package/dist/shared/index-DypZJHmM.cjs +0 -1
- package/dist/shared/index-DzCwEfCQ.cjs +0 -1
- package/dist/shared/index-Gyu5R4Gn.cjs +0 -1
- package/dist/shared/index-IJJI2ylC.mjs +0 -234
- package/dist/shared/index-OaA2R7Ur.mjs +0 -369
- package/dist/shared/index-S2TDFo5d.cjs +0 -1
- package/dist/shared/index-U3c1apvC.cjs +0 -1
- package/dist/shared/index-VExJFRrd.mjs +0 -156
- package/dist/shared/index-Xw2_Py_V.mjs +0 -63
- package/dist/shared/index-ZbSETCxZ.cjs +0 -1
- package/dist/shared/index-ZkHMbIv4.cjs +0 -1
- package/dist/shared/index-aveXATNw.cjs +0 -1
- package/dist/shared/index-byOl9Vtk.cjs +0 -1
- package/dist/shared/index-fiuhurmv.cjs +0 -1
- package/dist/shared/index-pqwrEshN.cjs +0 -1
- package/dist/shared/index-rowlxa3p.mjs +0 -245
- package/dist/shared/index-trf8Dvbk.cjs +0 -1
- package/dist/shared/index-tsfRa5ze.cjs +0 -1
- package/dist/shared/index-uRVIiLjP.mjs +0 -892
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { ElDialog as he, ElIcon as xe } from "element-plus/es";
|
|
2
|
+
import { defineComponent as we, useSlots as be, ref as d, computed as C, createVNode as z, watchEffect as ke, watch as te, h as le, onMounted as _e, nextTick as ne, onUnmounted as Ce, openBlock as i, createElementBlock as c, normalizeClass as I, createSlots as ze, withCtx as q, createElementVNode as l, normalizeStyle as A, unref as L, createCommentVNode as v, renderSlot as M, toDisplayString as ae, withModifiers as u, createBlock as ie, withDirectives as qe, vShow as Me } from "vue";
|
|
3
|
+
import Se from "clsx";
|
|
4
|
+
import { ElButton as se } from "element-plus";
|
|
5
|
+
import { Close as Be } from "@element-plus/icons-vue";
|
|
6
|
+
import { useBreakpoints as Ee, useDraggable as Ie } from "@vueuse/core";
|
|
7
|
+
const Le = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, De = { key: 0 }, Oe = { key: 1 }, $e = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "icon-[material-symbols--square-outline-rounded]",
|
|
10
|
+
role: "img",
|
|
11
|
+
"aria-hidden": "true"
|
|
12
|
+
}, Te = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "icon-[tdesign--fullscreen-exit-1]",
|
|
15
|
+
role: "img",
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}, Ze = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
|
|
20
|
+
}, He = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, Ae = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, Ne = { class: "flex items-center gap-2" }, Fe = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, je = { class: "flex items-center gap-2" }, re = 5, N = 2e3, Je = /* @__PURE__ */ we({
|
|
21
|
+
inheritAttrs: !1,
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
open: { type: Boolean, default: !1 },
|
|
25
|
+
title: { default: "" },
|
|
26
|
+
width: { default: "50%" },
|
|
27
|
+
showFooter: { type: Boolean, default: !0 },
|
|
28
|
+
showConfirm: { type: Boolean, default: !0 },
|
|
29
|
+
showCancel: { type: Boolean, default: !0 },
|
|
30
|
+
confirmText: { default: "确 认" },
|
|
31
|
+
cancelText: { default: "取 消" },
|
|
32
|
+
confirmLoading: { type: Boolean, default: !1 },
|
|
33
|
+
confirmDisabled: { type: Boolean, default: !1 },
|
|
34
|
+
closeOnConfirm: { type: Boolean, default: !1 },
|
|
35
|
+
closeOnEscape: { type: Boolean, default: !0 },
|
|
36
|
+
closeOnOverlay: { type: Boolean, default: !0 },
|
|
37
|
+
minimizable: { type: Boolean, default: !0 },
|
|
38
|
+
destroyOnClose: { type: Boolean, default: !1 },
|
|
39
|
+
draggable: { type: Boolean, default: !0 },
|
|
40
|
+
lockScroll: { type: Boolean, default: !0 },
|
|
41
|
+
top: { default: "15vh" },
|
|
42
|
+
fullscreen: { type: Boolean, default: !1 },
|
|
43
|
+
showFullscreen: { type: Boolean, default: !1 },
|
|
44
|
+
size: { default: "default" },
|
|
45
|
+
zIndex: { default: 2e3 }
|
|
46
|
+
},
|
|
47
|
+
emits: ["update:open", "open-change", "confirm", "cancel", "close", "opened", "closed"],
|
|
48
|
+
setup(de, { expose: ce, emit: ue }) {
|
|
49
|
+
let m = 0;
|
|
50
|
+
const t = de, D = be(), F = d(!0), O = d(!1), j = d(N), R = d(null), fe = Ee({
|
|
51
|
+
mobile: 0,
|
|
52
|
+
tablet: 640,
|
|
53
|
+
laptop: 1024,
|
|
54
|
+
desktop: 1280
|
|
55
|
+
}).isSmaller("tablet"), $ = C(() => {
|
|
56
|
+
const e = [];
|
|
57
|
+
return t.showCancel && e.push("cancel"), t.showConfirm && e.push("confirm"), e;
|
|
58
|
+
}), V = C(() => ({
|
|
59
|
+
CancelButton: z(J),
|
|
60
|
+
ConfirmButton: z(G)
|
|
61
|
+
})), U = C(() => !!(D.footer || t.showFooter)), h = d(!1), b = d(!1);
|
|
62
|
+
let T = !1, x = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
63
|
+
const k = d(
|
|
64
|
+
t.showFullscreen && fe ? !0 : t.fullscreen
|
|
65
|
+
), s = ue, W = C(() => t.open);
|
|
66
|
+
ke(() => {
|
|
67
|
+
W.value && (h.value = !1);
|
|
68
|
+
}), te(
|
|
69
|
+
() => t.open,
|
|
70
|
+
(e, o) => {
|
|
71
|
+
if (e) {
|
|
72
|
+
h.value = !1, b.value = !1, x = document.activeElement instanceof HTMLElement ? document.activeElement : x, o === !1 && s("open-change", !0);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
o && !h.value && (h.value = !0, s("open-change", !1), s("close", "external"));
|
|
76
|
+
}
|
|
77
|
+
), te(
|
|
78
|
+
() => t.confirmLoading,
|
|
79
|
+
(e) => {
|
|
80
|
+
e ? T = !0 : T && (T = !1, b.value = !1);
|
|
81
|
+
}
|
|
82
|
+
), ce({
|
|
83
|
+
handleMinimize: H
|
|
84
|
+
});
|
|
85
|
+
const p = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, w = d(!1);
|
|
86
|
+
let _ = !1;
|
|
87
|
+
const S = d(null), { x: X, y: Z } = Ie(S, {
|
|
88
|
+
initialValue: {
|
|
89
|
+
x: 5,
|
|
90
|
+
y: window.innerHeight - 100 - m * 60
|
|
91
|
+
},
|
|
92
|
+
onMove(e) {
|
|
93
|
+
var o;
|
|
94
|
+
(o = S.value) == null || o.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), X.value = Math.max(
|
|
95
|
+
0,
|
|
96
|
+
Math.min(window.innerWidth - 300, e.x)
|
|
97
|
+
), Z.value = Math.max(
|
|
98
|
+
0,
|
|
99
|
+
Math.min(window.innerHeight - 50, e.y)
|
|
100
|
+
);
|
|
101
|
+
},
|
|
102
|
+
onEnd() {
|
|
103
|
+
var e;
|
|
104
|
+
(e = S.value) == null || e.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
|
|
105
|
+
}
|
|
106
|
+
}), me = C(() => ({
|
|
107
|
+
transform: `translate(${X.value}px, ${Z.value}px)`,
|
|
108
|
+
willChange: "transform"
|
|
109
|
+
}));
|
|
110
|
+
function K(e) {
|
|
111
|
+
const o = e.target, { scrollTop: n, scrollHeight: r, clientHeight: f } = o;
|
|
112
|
+
F.value = n <= re, O.value = r - (n + f) <= re;
|
|
113
|
+
}
|
|
114
|
+
function pe() {
|
|
115
|
+
const e = document.querySelector(`.${p}.el-dialog`);
|
|
116
|
+
e && (R.value = e, e.addEventListener("scroll", K)), B(), s("opened");
|
|
117
|
+
}
|
|
118
|
+
function Y() {
|
|
119
|
+
k.value = !k.value, B();
|
|
120
|
+
}
|
|
121
|
+
function g(e) {
|
|
122
|
+
t.confirmLoading && e !== "external" || h.value || (h.value = !0, oe(), s("update:open", !1), s("open-change", !1), (e === "cancel" || e === "header") && s("cancel"), s("close", e));
|
|
123
|
+
}
|
|
124
|
+
function ge() {
|
|
125
|
+
s("closed"), ne(() => {
|
|
126
|
+
x != null && x.isConnected && x.focus();
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function ye(e) {
|
|
130
|
+
t.showFullscreen && e.detail >= 2 && Y();
|
|
131
|
+
}
|
|
132
|
+
function G() {
|
|
133
|
+
return le(
|
|
134
|
+
se,
|
|
135
|
+
{
|
|
136
|
+
type: "primary",
|
|
137
|
+
class: "dialog__footerBtn",
|
|
138
|
+
loading: t.confirmLoading,
|
|
139
|
+
disabled: t.confirmDisabled || t.confirmLoading || b.value,
|
|
140
|
+
onClick: ve
|
|
141
|
+
},
|
|
142
|
+
() => t.confirmText
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
function ve() {
|
|
146
|
+
b.value || t.confirmLoading || t.confirmDisabled || (b.value = !0, s("confirm"), t.closeOnConfirm && g("confirm"));
|
|
147
|
+
}
|
|
148
|
+
function J() {
|
|
149
|
+
return le(
|
|
150
|
+
se,
|
|
151
|
+
{ class: "dialog__footerBtn", onClick: () => g("cancel") },
|
|
152
|
+
() => t.cancelText
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
_e(() => {
|
|
156
|
+
typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = N), B(), document.addEventListener("keydown", Q), document.addEventListener("mousedown", ee, !0);
|
|
157
|
+
});
|
|
158
|
+
function P() {
|
|
159
|
+
var r, f;
|
|
160
|
+
const e = (r = document.querySelector(`.${p}`)) == null ? void 0 : r.closest(".el-overlay");
|
|
161
|
+
if (!e) return !1;
|
|
162
|
+
const n = Array.from(
|
|
163
|
+
document.querySelectorAll(".el-overlay")
|
|
164
|
+
).filter((a) => window.getComputedStyle(a).display !== "none").map((a, y) => ({
|
|
165
|
+
overlay: a,
|
|
166
|
+
order: y,
|
|
167
|
+
zIndex: Number.parseInt(
|
|
168
|
+
window.getComputedStyle(a).zIndex || "0",
|
|
169
|
+
10
|
|
170
|
+
)
|
|
171
|
+
}));
|
|
172
|
+
return n.sort(
|
|
173
|
+
(a, y) => a.zIndex - y.zIndex || a.order - y.order
|
|
174
|
+
), ((f = n.at(-1)) == null ? void 0 : f.overlay) === e;
|
|
175
|
+
}
|
|
176
|
+
function Q(e) {
|
|
177
|
+
e.key !== "Escape" || !t.open || !t.closeOnEscape || t.confirmLoading || !P() || (e.preventDefault(), g("escape"));
|
|
178
|
+
}
|
|
179
|
+
function ee(e) {
|
|
180
|
+
if (!t.open || !t.closeOnOverlay || t.confirmLoading || !P() || !(e.target instanceof Node))
|
|
181
|
+
return;
|
|
182
|
+
const o = document.querySelector(`.${p}.el-dialog`), n = o == null ? void 0 : o.closest(".el-overlay");
|
|
183
|
+
!o || !n || !n.contains(e.target) || o.contains(e.target) || g("overlay");
|
|
184
|
+
}
|
|
185
|
+
function B() {
|
|
186
|
+
var y;
|
|
187
|
+
const e = Array.from(
|
|
188
|
+
document.querySelectorAll(".el-overlay")
|
|
189
|
+
).filter((E) => window.getComputedStyle(E).display !== "none" && !E.classList.contains("is-message")), o = (y = document.querySelector(`.${p}`)) == null ? void 0 : y.closest(".el-overlay"), n = document.querySelector(
|
|
190
|
+
`.${p}.el-dialog`
|
|
191
|
+
);
|
|
192
|
+
if (!o || !n) return;
|
|
193
|
+
const r = N;
|
|
194
|
+
window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || r;
|
|
195
|
+
const a = Math.max(
|
|
196
|
+
window.qyDialogMaxZIndex,
|
|
197
|
+
...e.map(
|
|
198
|
+
(E) => parseInt(window.getComputedStyle(E).zIndex || r.toString())
|
|
199
|
+
)
|
|
200
|
+
) + 2;
|
|
201
|
+
window.qyDialogMaxZIndex = a, ne(() => {
|
|
202
|
+
o.style.zIndex = a.toString(), n.style.zIndex = (a + 1).toString(), j.value = a + 1;
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
Ce(() => {
|
|
206
|
+
var e;
|
|
207
|
+
document.removeEventListener("keydown", Q), document.removeEventListener("mousedown", ee, !0), (e = R.value) == null || e.removeEventListener("scroll", K), oe();
|
|
208
|
+
});
|
|
209
|
+
function oe() {
|
|
210
|
+
if (!_) {
|
|
211
|
+
w.value = !1;
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
_ = !1, m = Math.max(0, m - 1), w.value = !1;
|
|
215
|
+
}
|
|
216
|
+
function H() {
|
|
217
|
+
var o;
|
|
218
|
+
const e = (o = document.querySelector(`.${p}`)) == null ? void 0 : o.closest(".el-overlay");
|
|
219
|
+
!e || !t.open || (w.value ? (w.value = !1, e.style.display = "block", _ && (_ = !1, m = Math.max(0, m - 1)), B()) : (w.value = !0, e.style.display = "none", _ = !0, m += 1, Z.value = window.innerHeight - 50 - m * 60));
|
|
220
|
+
}
|
|
221
|
+
return (e, o) => {
|
|
222
|
+
const n = xe, r = he;
|
|
223
|
+
return i(), c("div", null, [
|
|
224
|
+
z(r, {
|
|
225
|
+
ref: "dialogRef",
|
|
226
|
+
class: I(["qy-dialog", [
|
|
227
|
+
t.size === "small" && "[&_.el-dialog__header]:!hidden",
|
|
228
|
+
p
|
|
229
|
+
]]),
|
|
230
|
+
"model-value": W.value,
|
|
231
|
+
title: t.title,
|
|
232
|
+
width: t.width,
|
|
233
|
+
top: t.top,
|
|
234
|
+
"align-center": "",
|
|
235
|
+
"append-to-body": "",
|
|
236
|
+
"destroy-on-close": t.destroyOnClose,
|
|
237
|
+
"lock-scroll": t.lockScroll,
|
|
238
|
+
style: {
|
|
239
|
+
"--el-dialog-padding-primary": 0
|
|
240
|
+
},
|
|
241
|
+
"show-close": !1,
|
|
242
|
+
"close-on-press-escape": !1,
|
|
243
|
+
"close-on-click-modal": !1,
|
|
244
|
+
fullscreen: k.value,
|
|
245
|
+
"z-index": j.value,
|
|
246
|
+
onClosed: ge,
|
|
247
|
+
onOpened: pe,
|
|
248
|
+
draggable: t.draggable
|
|
249
|
+
}, ze({
|
|
250
|
+
header: q(() => [
|
|
251
|
+
t.size === "default" ? (i(), c("div", {
|
|
252
|
+
key: 0,
|
|
253
|
+
style: A({
|
|
254
|
+
borderBottom: "1px solid",
|
|
255
|
+
borderColor: F.value ? "transparent" : "var(--block-outline-color)",
|
|
256
|
+
transition: "border-color .2s linear"
|
|
257
|
+
}),
|
|
258
|
+
class: "flex justify-between h-[var(--header-height)]",
|
|
259
|
+
onDblclick: ye
|
|
260
|
+
}, [
|
|
261
|
+
l("div", Le, [
|
|
262
|
+
L(D).header ? L(D).header ? (i(), c("div", Oe, [
|
|
263
|
+
M(e.$slots, "header")
|
|
264
|
+
])) : v("", !0) : (i(), c("span", De, ae(t.title), 1))
|
|
265
|
+
]),
|
|
266
|
+
l("div", {
|
|
267
|
+
class: "flex",
|
|
268
|
+
onMousedown: o[4] || (o[4] = u(() => {
|
|
269
|
+
}, ["stop"]))
|
|
270
|
+
}, [
|
|
271
|
+
t.size === "default" && t.minimizable ? (i(), c("div", {
|
|
272
|
+
key: 0,
|
|
273
|
+
class: "qy-dialog__btn qy-dialog__btn--default",
|
|
274
|
+
onClick: u(H, ["stop"]),
|
|
275
|
+
onMousedown: o[0] || (o[0] = u(() => {
|
|
276
|
+
}, ["stop"]))
|
|
277
|
+
}, [...o[7] || (o[7] = [
|
|
278
|
+
l("span", {
|
|
279
|
+
class: "icon-[material-symbols--minimize] text-xl mb-3",
|
|
280
|
+
role: "img",
|
|
281
|
+
"aria-hidden": "true"
|
|
282
|
+
}, null, -1)
|
|
283
|
+
])], 32)) : v("", !0),
|
|
284
|
+
t.showFullscreen ? (i(), c("div", {
|
|
285
|
+
key: 1,
|
|
286
|
+
class: "qy-dialog__btn qy-dialog__btn--default",
|
|
287
|
+
onClick: u(Y, ["stop"]),
|
|
288
|
+
onMousedown: o[1] || (o[1] = u(() => {
|
|
289
|
+
}, ["stop"]))
|
|
290
|
+
}, [
|
|
291
|
+
k.value ? (i(), c("span", Te)) : (i(), c("span", $e))
|
|
292
|
+
], 32)) : v("", !0),
|
|
293
|
+
l("div", {
|
|
294
|
+
class: "qy-dialog__btn qy-dialog__btn--danger",
|
|
295
|
+
onClick: o[2] || (o[2] = u((f) => g("header"), ["stop"])),
|
|
296
|
+
onMousedown: o[3] || (o[3] = u(() => {
|
|
297
|
+
}, ["stop"]))
|
|
298
|
+
}, [...o[8] || (o[8] = [
|
|
299
|
+
l("span", {
|
|
300
|
+
class: "icon-[ri--close-line] text-xl",
|
|
301
|
+
role: "img",
|
|
302
|
+
"aria-hidden": "true"
|
|
303
|
+
}, null, -1)
|
|
304
|
+
])], 32)
|
|
305
|
+
], 32)
|
|
306
|
+
], 36)) : v("", !0)
|
|
307
|
+
]),
|
|
308
|
+
default: q(() => [
|
|
309
|
+
l("div", {
|
|
310
|
+
class: I(["qy-dialog__wrapper", L(Se)(k.value && "qy-dialog__wrapper--fullscreen")]),
|
|
311
|
+
style: A({
|
|
312
|
+
maxHeight: U.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
|
|
313
|
+
padding: t.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
|
|
314
|
+
})
|
|
315
|
+
}, [
|
|
316
|
+
t.size === "small" ? (i(), c("div", Ze, [
|
|
317
|
+
z(n, {
|
|
318
|
+
size: 36,
|
|
319
|
+
class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
|
|
320
|
+
onClick: o[5] || (o[5] = (f) => g("header"))
|
|
321
|
+
}, {
|
|
322
|
+
default: q(() => [
|
|
323
|
+
z(L(Be))
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
})
|
|
327
|
+
])) : v("", !0),
|
|
328
|
+
M(e.$slots, "default")
|
|
329
|
+
], 6)
|
|
330
|
+
]),
|
|
331
|
+
_: 2
|
|
332
|
+
}, [
|
|
333
|
+
t.showFooter && !e.$slots.footer && Array.isArray($.value) ? {
|
|
334
|
+
name: "footer",
|
|
335
|
+
fn: q(() => [
|
|
336
|
+
l("div", He, [
|
|
337
|
+
l("div", null, [
|
|
338
|
+
M(e.$slots, "footer-left")
|
|
339
|
+
]),
|
|
340
|
+
l("div", {
|
|
341
|
+
class: I([{
|
|
342
|
+
"qy-dialog__footer--outline": O.value
|
|
343
|
+
}, "qy-dialog__footer flex items-center justify-end"])
|
|
344
|
+
}, [
|
|
345
|
+
$.value.includes("cancel") ? (i(), ie(J, { key: 0 })) : v("", !0),
|
|
346
|
+
$.value.includes("confirm") ? (i(), ie(G, { key: 1 })) : v("", !0),
|
|
347
|
+
M(e.$slots, "footer-append")
|
|
348
|
+
], 2)
|
|
349
|
+
])
|
|
350
|
+
]),
|
|
351
|
+
key: "0"
|
|
352
|
+
} : U.value ? {
|
|
353
|
+
name: "footer",
|
|
354
|
+
fn: q(() => [
|
|
355
|
+
l("div", {
|
|
356
|
+
class: I([{
|
|
357
|
+
"qy-dialog__footer--outline": O.value
|
|
358
|
+
}, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
|
|
359
|
+
}, [
|
|
360
|
+
M(e.$slots, "footer", {
|
|
361
|
+
layouts: V.value,
|
|
362
|
+
layoutsNode: Object.values(V.value)
|
|
363
|
+
})
|
|
364
|
+
], 2)
|
|
365
|
+
]),
|
|
366
|
+
key: "1"
|
|
367
|
+
} : void 0
|
|
368
|
+
]), 1032, ["class", "model-value", "title", "width", "top", "destroy-on-close", "lock-scroll", "fullscreen", "z-index", "draggable"]),
|
|
369
|
+
qe(l("div", {
|
|
370
|
+
ref_key: "minimizedRef",
|
|
371
|
+
ref: S,
|
|
372
|
+
class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
|
|
373
|
+
style: A([me.value, { width: "300px", height: "50px", "will-change": "transform" }])
|
|
374
|
+
}, [
|
|
375
|
+
l("div", Ae, [
|
|
376
|
+
l("div", Ne, [
|
|
377
|
+
o[9] || (o[9] = l("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
|
|
378
|
+
l("span", Fe, ae(t.title), 1)
|
|
379
|
+
]),
|
|
380
|
+
l("div", je, [
|
|
381
|
+
l("div", {
|
|
382
|
+
class: "p-1 hover:bg-gray-200 rounded",
|
|
383
|
+
onClick: u(H, ["stop"])
|
|
384
|
+
}, [...o[10] || (o[10] = [
|
|
385
|
+
l("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
|
|
386
|
+
])]),
|
|
387
|
+
l("div", {
|
|
388
|
+
class: "p-1 hover:bg-red-100 rounded",
|
|
389
|
+
onClick: o[6] || (o[6] = u((f) => g("header"), ["stop"]))
|
|
390
|
+
}, [...o[11] || (o[11] = [
|
|
391
|
+
l("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
|
|
392
|
+
])])
|
|
393
|
+
])
|
|
394
|
+
])
|
|
395
|
+
], 4), [
|
|
396
|
+
[Me, w.value]
|
|
397
|
+
])
|
|
398
|
+
]);
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
export {
|
|
403
|
+
Je as _
|
|
404
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue"),V=require("element-plus"),x=t.defineComponent({name:"QyCollapse",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},accordion:{type:Boolean,default:!1},expandIconPosition:{default:"right"},beforeCollapse:{}},emits:["update:modelValue","change"],setup(l,{expose:i,emit:d}){const a=l,s=d,u=t.useAttrs(),c=t.ref(),n=t.ref(a.modelValue),m=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function r(e){const o=Array.isArray(e)?e:[e];return a.accordion?o.slice(0,1):o}t.watch(()=>a.modelValue,e=>{n.value=e},{deep:!0});const f=t.computed(()=>r(a.modelValue));function p(e){n.value=e,s("update:modelValue",e),t.nextTick(()=>{n.value=a.modelValue})}function h(e){s("change",e)}function v(e){var o;(o=c.value)==null||o.setActiveNames(r(e))}return i({activeNames:f,setActiveNames:v}),(e,o)=>(t.openBlock(),t.createBlock(t.unref(V.ElCollapse),t.mergeProps({ref_key:"collapseRef",ref:c},m.value,{class:"qy-collapse","model-value":n.value,accordion:l.accordion,"expand-icon-position":l.expandIconPosition,"before-collapse":l.beforeCollapse,"onUpdate:modelValue":p,onChange:h}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["model-value","accordion","expand-icon-position","before-collapse"]))}});exports._sfc_main=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),f=require("element-plus"),n=["success","warning","info","error"],a=["401","403","404","500"],m=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"),o={status:{type:String,default:"info",validator:t=>[...n,...a].includes(t)},title:{type:String,default:""},description:{type:String,default:""},image:{type:String,default:""},imageAlt:{type:String,default:""}},v=i.defineComponent({name:"QyResult",inheritAttrs:!1,props:o,setup(t,{attrs:r,slots:e}){const u=i.computed(()=>Object.fromEntries(Object.entries(r).filter(([s])=>m(s)))),l=i.computed(()=>["qy-result",`qy-result--${t.status}`,u.value.class]),c=i.computed(()=>["qy-result__renderer",`qy-result--${t.status}`]),d=()=>{if(e.visual)return e.visual();if(t.image)return i.h("img",{class:"qy-result__image",src:t.image,alt:t.imageAlt});if(a.includes(t.status))return i.h("div",{class:"qy-result__http-visual","aria-hidden":"true"},t.status)};return()=>{const s={};return(e.visual||t.image||a.includes(t.status))&&(s.icon=d),e.title&&(s.title=e.title),e.description&&(s["sub-title"]=e.description),e.actions&&(s.extra=e.actions),i.h("div",{...u.value,class:l.value,title:t.title},[i.h(f.ElResult,{class:c.value,icon:n.includes(t.status)?t.status:void 0,title:e.title?"":t.title,subTitle:e.description?"":t.description},s)])}}});exports._sfc_main=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("vue"),F=require("element-plus"),W=["id","role","aria-disabled","tabindex","disabled","onKeydown"],j={class:"qy-color-picker__value","aria-hidden":"true"};let G=0;const H=()=>`qy-color-picker-${++G}`,J=a.defineComponent({name:"QyColorPicker",inheritAttrs:!1,__name:"index",props:{modelValue:{default:null},format:{default:void 0},showAlpha:{type:Boolean,default:!1},predefine:{default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1}},emits:["update:modelValue","active-change","change","visible-change"],setup(R,{emit:D}){const n=R,i=D,c=a.useAttrs(),g=a.ref(null),k=a.ref(null),p=a.ref(null),r=a.ref(u(n.modelValue)),h=a.ref(r.value),t=a.ref(!1),o=a.ref(null),s=a.ref(!1),f=a.ref(!1),w=H(),L=a.computed(()=>typeof c.id=="string"&&c.id||w),_=`qy-color-picker__popper--${w}`,z=a.computed(()=>n.format||(n.showAlpha?"rgb":"hex")),m=a.computed(()=>u(n.modelValue)),B=a.computed(()=>String(c.role||"button")),I=a.computed(()=>c["aria-disabled"]??(n.disabled?"true":"false")),K=a.computed(()=>n.disabled?void 0:c.tabindex??0),N=a.computed(()=>{const e={};for(const[l,d]of Object.entries(c)){const b=l.toLowerCase();(l==="class"||l==="style"||l==="id"||l==="title"||l==="tabindex"||l==="role"||b.startsWith("data-")||b.startsWith("aria-")||["onkeydown","onkeyup","onkeypress"].includes(b))&&(e[l]=d)}return e});a.watch(()=>n.modelValue,e=>{r.value=u(e),t.value&&(h.value=r.value)});function u(e){return e==null||e===""?null:String(e)}function S(){if(!n.disabled){if(t.value){v();return}V()}}function C(){n.disabled||t.value||V()}function T(){t.value&&v()}function V(){t.value||n.disabled||(h.value=u(n.modelValue),r.value=h.value,o.value=null,s.value=!1,f.value=!1,t.value=!0,$(),i("visible-change",!0),a.nextTick(()=>{var e,l;return(l=(e=p.value)==null?void 0:e.show)==null?void 0:l.call(e)}))}function M(e){!t.value||o.value||(r.value=u(e),i("active-change",r.value))}function O(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)))}function Q(e){!t.value||o.value==="cancel"||(r.value=u(e),s.value||(s.value=!0,o.value="commit",i("update:modelValue",r.value)),f.value||(f.value=!0,i("change",r.value)),y())}function U(){!t.value||o.value==="cancel"||(s.value||(s.value=!0,o.value="commit",r.value=null,i("update:modelValue",null)),f.value||(f.value=!0,i("change",null)),y())}function v(){var e,l;!t.value||o.value||(o.value="cancel",r.value=u(n.modelValue),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),y())}function y(){var e,l;t.value&&(t.value=!1,P(),(l=(e=p.value)==null?void 0:e.hide)==null||l.call(e),i("visible-change",!1),a.nextTick(()=>{var d;return(d=k.value)==null?void 0:d.focus()}))}function E(e){var l,d;return e instanceof Node?(l=g.value)!=null&&l.contains(e)?!0:!!((d=e.closest)!=null&&d.call(e,`.${_}`)):!1}function x(e){t.value&&!E(e.target)&&v()}function q(e){t.value&&!E(e.target)&&v()}function A(e){t.value&&e.key==="Escape"&&(e.preventDefault(),e.stopPropagation(),v())}function $(){document.addEventListener("pointerdown",x,!0),document.addEventListener("focusin",q,!0),document.addEventListener("keydown",A,!0)}function P(){document.removeEventListener("pointerdown",x,!0),document.removeEventListener("focusin",q,!0),document.removeEventListener("keydown",A,!0)}return a.onBeforeUnmount(()=>{P()}),(e,l)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"rootRef",ref:g,class:"qy-color-picker","data-qy-color-picker":""},[a.createElementVNode("button",a.mergeProps({ref_key:"triggerRef",ref:k,type:"button",class:"qy-color-picker__trigger"},N.value,{id:L.value,role:B.value,"aria-disabled":I.value,tabindex:K.value,disabled:n.disabled,class:{"is-disabled":n.disabled,"is-open":t.value},onClick:S,onKeydown:[a.withKeys(a.withModifiers(C,["prevent"]),["enter"]),a.withKeys(a.withModifiers(C,["prevent"]),["space"]),a.withKeys(a.withModifiers(T,["prevent"]),["esc"])]}),[a.createElementVNode("span",{class:a.normalizeClass(["qy-color-picker__swatch",{"is-empty":!m.value}]),style:a.normalizeStyle(m.value?{backgroundColor:m.value}:void 0),"aria-hidden":"true"},null,6),a.createElementVNode("span",j,a.toDisplayString(m.value||"选择颜色"),1),l[0]||(l[0]=a.createElementVNode("span",{class:"qy-color-picker__arrow","aria-hidden":"true"},"⌄",-1))],16,W),a.createVNode(a.unref(F.ElColorPicker),{ref_key:"rendererRef",ref:p,class:"qy-color-picker__renderer","model-value":r.value,"show-alpha":n.showAlpha,"color-format":z.value,predefine:n.predefine,size:n.size,disabled:!1,clearable:n.clearable,teleported:!0,tabindex:-1,"popper-class":_,"aria-hidden":"true",onActiveChange:M,"onUpdate:modelValue":O,onChange:Q,onClear:U},null,8,["model-value","show-alpha","color-format","predefine","size","clearable"])],512))}});exports._sfc_main=J;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as x, useAttrs as A, ref as r, computed as i, watch as C, openBlock as b, createBlock as g, unref as N, mergeProps as B, withCtx as P, renderSlot as j, nextTick as w } from "vue";
|
|
2
|
+
import { ElCollapse as E } from "element-plus";
|
|
3
|
+
const O = /* @__PURE__ */ x({
|
|
4
|
+
name: "QyCollapse",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { default: () => [] },
|
|
9
|
+
accordion: { type: Boolean, default: !1 },
|
|
10
|
+
expandIconPosition: { default: "right" },
|
|
11
|
+
beforeCollapse: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:modelValue", "change"],
|
|
14
|
+
setup(a, { expose: d, emit: u }) {
|
|
15
|
+
const t = a, n = u, m = A(), s = r(), l = r(t.modelValue), f = i(
|
|
16
|
+
() => Object.fromEntries(
|
|
17
|
+
Object.entries(m).filter(
|
|
18
|
+
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
function c(e) {
|
|
23
|
+
const o = Array.isArray(e) ? e : [e];
|
|
24
|
+
return t.accordion ? o.slice(0, 1) : o;
|
|
25
|
+
}
|
|
26
|
+
C(
|
|
27
|
+
() => t.modelValue,
|
|
28
|
+
(e) => {
|
|
29
|
+
l.value = e;
|
|
30
|
+
},
|
|
31
|
+
{ deep: !0 }
|
|
32
|
+
);
|
|
33
|
+
const p = i(() => c(t.modelValue));
|
|
34
|
+
function h(e) {
|
|
35
|
+
l.value = e, n("update:modelValue", e), w(() => {
|
|
36
|
+
l.value = t.modelValue;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function V(e) {
|
|
40
|
+
n("change", e);
|
|
41
|
+
}
|
|
42
|
+
function v(e) {
|
|
43
|
+
var o;
|
|
44
|
+
(o = s.value) == null || o.setActiveNames(c(e));
|
|
45
|
+
}
|
|
46
|
+
return d({ activeNames: p, setActiveNames: v }), (e, o) => (b(), g(N(E), B({
|
|
47
|
+
ref_key: "collapseRef",
|
|
48
|
+
ref: s
|
|
49
|
+
}, f.value, {
|
|
50
|
+
class: "qy-collapse",
|
|
51
|
+
"model-value": l.value,
|
|
52
|
+
accordion: a.accordion,
|
|
53
|
+
"expand-icon-position": a.expandIconPosition,
|
|
54
|
+
"before-collapse": a.beforeCollapse,
|
|
55
|
+
"onUpdate:modelValue": h,
|
|
56
|
+
onChange: V
|
|
57
|
+
}), {
|
|
58
|
+
default: P(() => [
|
|
59
|
+
j(e.$slots, "default")
|
|
60
|
+
]),
|
|
61
|
+
_: 3
|
|
62
|
+
}, 16, ["model-value", "accordion", "expand-icon-position", "before-collapse"]));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
O as _
|
|
67
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { defineComponent as J, useAttrs as X, ref as o, computed as c, watch as Y, onBeforeUnmount as Z, openBlock as ee, createElementBlock as ae, createElementVNode as b, mergeProps as le, withKeys as _, withModifiers as w, normalizeStyle as ne, normalizeClass as te, toDisplayString as re, createVNode as oe, unref as ie, nextTick as B } from "vue";
|
|
2
|
+
import { ElColorPicker as ue } from "element-plus";
|
|
3
|
+
const se = ["id", "role", "aria-disabled", "tabindex", "disabled", "onKeydown"], de = {
|
|
4
|
+
class: "qy-color-picker__value",
|
|
5
|
+
"aria-hidden": "true"
|
|
6
|
+
};
|
|
7
|
+
let ce = 0;
|
|
8
|
+
const fe = () => `qy-color-picker-${++ce}`, me = /* @__PURE__ */ J({
|
|
9
|
+
name: "QyColorPicker",
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: { default: null },
|
|
14
|
+
format: { default: void 0 },
|
|
15
|
+
showAlpha: { type: Boolean, default: !1 },
|
|
16
|
+
predefine: { default: void 0 },
|
|
17
|
+
size: { default: "default" },
|
|
18
|
+
disabled: { type: Boolean, default: !1 },
|
|
19
|
+
clearable: { type: Boolean, default: !1 }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "active-change", "change", "visible-change"],
|
|
22
|
+
setup(I, { emit: K }) {
|
|
23
|
+
const l = I, i = K, f = X(), C = o(null), V = o(null), m = o(null), t = o(u(l.modelValue)), g = o(t.value), n = o(!1), r = o(null), s = o(!1), v = o(!1), E = fe(), N = c(() => typeof f.id == "string" && f.id || E), x = `qy-color-picker__popper--${E}`, S = c(
|
|
24
|
+
() => l.format || (l.showAlpha ? "rgb" : "hex")
|
|
25
|
+
), h = c(() => u(l.modelValue)), O = c(() => String(f.role || "button")), Q = c(
|
|
26
|
+
() => f["aria-disabled"] ?? (l.disabled ? "true" : "false")
|
|
27
|
+
), T = c(
|
|
28
|
+
() => l.disabled ? void 0 : f.tabindex ?? 0
|
|
29
|
+
), U = c(() => {
|
|
30
|
+
const e = {};
|
|
31
|
+
for (const [a, d] of Object.entries(f)) {
|
|
32
|
+
const k = a.toLowerCase();
|
|
33
|
+
(a === "class" || a === "style" || a === "id" || a === "title" || a === "tabindex" || a === "role" || k.startsWith("data-") || k.startsWith("aria-") || ["onkeydown", "onkeyup", "onkeypress"].includes(k)) && (e[a] = d);
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
});
|
|
37
|
+
Y(
|
|
38
|
+
() => l.modelValue,
|
|
39
|
+
(e) => {
|
|
40
|
+
t.value = u(e), n.value && (g.value = t.value);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
function u(e) {
|
|
44
|
+
return e == null || e === "" ? null : String(e);
|
|
45
|
+
}
|
|
46
|
+
function $() {
|
|
47
|
+
if (!l.disabled) {
|
|
48
|
+
if (n.value) {
|
|
49
|
+
p();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
R();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function A() {
|
|
56
|
+
l.disabled || n.value || R();
|
|
57
|
+
}
|
|
58
|
+
function F() {
|
|
59
|
+
n.value && p();
|
|
60
|
+
}
|
|
61
|
+
function R() {
|
|
62
|
+
n.value || l.disabled || (g.value = u(l.modelValue), t.value = g.value, r.value = null, s.value = !1, v.value = !1, n.value = !0, H(), i("visible-change", !0), B(() => {
|
|
63
|
+
var e, a;
|
|
64
|
+
return (a = (e = m.value) == null ? void 0 : e.show) == null ? void 0 : a.call(e);
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
function W(e) {
|
|
68
|
+
!n.value || r.value || (t.value = u(e), i("active-change", t.value));
|
|
69
|
+
}
|
|
70
|
+
function j(e) {
|
|
71
|
+
!n.value || r.value === "cancel" || (t.value = u(e), s.value || (s.value = !0, r.value = "commit", i("update:modelValue", t.value)));
|
|
72
|
+
}
|
|
73
|
+
function M(e) {
|
|
74
|
+
!n.value || r.value === "cancel" || (t.value = u(e), s.value || (s.value = !0, r.value = "commit", i("update:modelValue", t.value)), v.value || (v.value = !0, i("change", t.value)), y());
|
|
75
|
+
}
|
|
76
|
+
function G() {
|
|
77
|
+
!n.value || r.value === "cancel" || (s.value || (s.value = !0, r.value = "commit", t.value = null, i("update:modelValue", null)), v.value || (v.value = !0, i("change", null)), y());
|
|
78
|
+
}
|
|
79
|
+
function p() {
|
|
80
|
+
var e, a;
|
|
81
|
+
!n.value || r.value || (r.value = "cancel", t.value = u(l.modelValue), (a = (e = m.value) == null ? void 0 : e.hide) == null || a.call(e), y());
|
|
82
|
+
}
|
|
83
|
+
function y() {
|
|
84
|
+
var e, a;
|
|
85
|
+
n.value && (n.value = !1, z(), (a = (e = m.value) == null ? void 0 : e.hide) == null || a.call(e), i("visible-change", !1), B(() => {
|
|
86
|
+
var d;
|
|
87
|
+
return (d = V.value) == null ? void 0 : d.focus();
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
function P(e) {
|
|
91
|
+
var a, d;
|
|
92
|
+
return e instanceof Node ? (a = C.value) != null && a.contains(e) ? !0 : !!((d = e.closest) != null && d.call(e, `.${x}`)) : !1;
|
|
93
|
+
}
|
|
94
|
+
function q(e) {
|
|
95
|
+
n.value && !P(e.target) && p();
|
|
96
|
+
}
|
|
97
|
+
function D(e) {
|
|
98
|
+
n.value && !P(e.target) && p();
|
|
99
|
+
}
|
|
100
|
+
function L(e) {
|
|
101
|
+
n.value && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), p());
|
|
102
|
+
}
|
|
103
|
+
function H() {
|
|
104
|
+
document.addEventListener("pointerdown", q, !0), document.addEventListener("focusin", D, !0), document.addEventListener("keydown", L, !0);
|
|
105
|
+
}
|
|
106
|
+
function z() {
|
|
107
|
+
document.removeEventListener("pointerdown", q, !0), document.removeEventListener("focusin", D, !0), document.removeEventListener("keydown", L, !0);
|
|
108
|
+
}
|
|
109
|
+
return Z(() => {
|
|
110
|
+
z();
|
|
111
|
+
}), (e, a) => (ee(), ae("div", {
|
|
112
|
+
ref_key: "rootRef",
|
|
113
|
+
ref: C,
|
|
114
|
+
class: "qy-color-picker",
|
|
115
|
+
"data-qy-color-picker": ""
|
|
116
|
+
}, [
|
|
117
|
+
b("button", le({
|
|
118
|
+
ref_key: "triggerRef",
|
|
119
|
+
ref: V,
|
|
120
|
+
type: "button",
|
|
121
|
+
class: "qy-color-picker__trigger"
|
|
122
|
+
}, U.value, {
|
|
123
|
+
id: N.value,
|
|
124
|
+
role: O.value,
|
|
125
|
+
"aria-disabled": Q.value,
|
|
126
|
+
tabindex: T.value,
|
|
127
|
+
disabled: l.disabled,
|
|
128
|
+
class: { "is-disabled": l.disabled, "is-open": n.value },
|
|
129
|
+
onClick: $,
|
|
130
|
+
onKeydown: [
|
|
131
|
+
_(w(A, ["prevent"]), ["enter"]),
|
|
132
|
+
_(w(A, ["prevent"]), ["space"]),
|
|
133
|
+
_(w(F, ["prevent"]), ["esc"])
|
|
134
|
+
]
|
|
135
|
+
}), [
|
|
136
|
+
b("span", {
|
|
137
|
+
class: te(["qy-color-picker__swatch", { "is-empty": !h.value }]),
|
|
138
|
+
style: ne(h.value ? { backgroundColor: h.value } : void 0),
|
|
139
|
+
"aria-hidden": "true"
|
|
140
|
+
}, null, 6),
|
|
141
|
+
b("span", de, re(h.value || "选择颜色"), 1),
|
|
142
|
+
a[0] || (a[0] = b("span", {
|
|
143
|
+
class: "qy-color-picker__arrow",
|
|
144
|
+
"aria-hidden": "true"
|
|
145
|
+
}, "⌄", -1))
|
|
146
|
+
], 16, se),
|
|
147
|
+
oe(ie(ue), {
|
|
148
|
+
ref_key: "rendererRef",
|
|
149
|
+
ref: m,
|
|
150
|
+
class: "qy-color-picker__renderer",
|
|
151
|
+
"model-value": t.value,
|
|
152
|
+
"show-alpha": l.showAlpha,
|
|
153
|
+
"color-format": S.value,
|
|
154
|
+
predefine: l.predefine,
|
|
155
|
+
size: l.size,
|
|
156
|
+
disabled: !1,
|
|
157
|
+
clearable: l.clearable,
|
|
158
|
+
teleported: !0,
|
|
159
|
+
tabindex: -1,
|
|
160
|
+
"popper-class": x,
|
|
161
|
+
"aria-hidden": "true",
|
|
162
|
+
onActiveChange: W,
|
|
163
|
+
"onUpdate:modelValue": j,
|
|
164
|
+
onChange: M,
|
|
165
|
+
onClear: G
|
|
166
|
+
}, null, 8, ["model-value", "show-alpha", "color-format", "predefine", "size", "clearable"])
|
|
167
|
+
], 512));
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
me as _
|
|
172
|
+
};
|