@keyblade/pro-components 1.13.8-alpha.14 → 1.13.8-alpha.16
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/es/_virtual/_commonjsHelpers.js +6 -0
- package/es/_virtual/advancedFormat.js +7 -0
- package/es/_virtual/advancedFormat2.js +4 -0
- package/es/_virtual/customParseFormat.js +7 -0
- package/es/_virtual/customParseFormat2.js +4 -0
- package/es/_virtual/isBetween.js +7 -0
- package/es/_virtual/isBetween2.js +4 -0
- package/es/_virtual/quarterOfYear.js +7 -0
- package/es/_virtual/quarterOfYear2.js +4 -0
- package/es/_virtual/weekOfYear.js +7 -0
- package/es/_virtual/weekOfYear2.js +4 -0
- package/es/_virtual/weekYear.js +7 -0
- package/es/_virtual/weekYear2.js +4 -0
- package/es/_virtual/zh-cn.js +2 -0
- package/es/_virtual/zh-cn2.js +4 -0
- package/es/components.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +10 -8
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/client-only.js +16 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/feedback-icon.js +42 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/icon-hover.js +42 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/input-label/input-label.js +134 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/resize-observer-v2.js +35 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/resize-observer.js +40 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/select-view/select-view.js +192 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/hooks/use-size.js +61 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/virtual-list-item.js +35 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_components/virtual-list-v2/virtual-list.js +186 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-component-ref.js +16 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-first-element.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-form-item.js +24 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-input.js +63 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-pick-slots.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-popup-manager.js +44 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-resize-observer.js +22 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-scrollbar.js +25 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-size.js +14 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-teleport-container.js +22 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_hooks/use-trigger.js +23 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/constant.js +33 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/date.js +96 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/debounce.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/dom.js +53 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/global-config.js +28 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/is-equal.js +26 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/is.js +46 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/keyboard.js +32 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/keycode.js +9 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/omit.js +17 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/pad.js +7 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/pick.js +10 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/raf.js +5 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/throttle-by-raf.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/vue-utils.js +96 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_virtual/plugin-vue_export-helper.js +8 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/button-group.js +47 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/button.js +130 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/button/index.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/checkbox-group.js +94 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/checkbox.js +129 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/icon-check.js +20 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/checkbox/index.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/config-provider/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/empty/empty.js +41 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/empty/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/form/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-check-circle-fill/icon-check-circle-fill.js +70 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-check-circle-fill/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close/icon-close.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close-circle-fill/icon-close-circle-fill.js +70 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-close-circle-fill/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-down/icon-down.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-down/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-empty/icon-empty.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-empty/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.js +70 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-exclamation-circle-fill/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-left/icon-left.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-left/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-loading/icon-loading.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-loading/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-right/icon-right.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-right/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-search/icon-search.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/icon/icon-search/index.js +11 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/input-tag.js +318 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/input-tag/utils.js +35 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/index.js +32 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/lang/zh-cn.js +196 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/index.js +15 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/radio-group.js +105 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/radio/radio.js +117 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/scrollbar.js +194 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/scrollbar/thumb.js +108 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/hooks/use-options.js +96 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/hooks/use-select.js +137 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/index.js +18 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/optgroup.js +32 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/option.js +162 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/select-dropdown.js +119 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/select.js +506 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/select/utils.js +100 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/dot-loading.js +34 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/spin/spin.js +64 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/interface.js +18 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/tag/tag.js +146 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/context.js +4 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/index.js +12 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/trigger.js +446 -0
- package/es/node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/trigger/utils.js +305 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/zh-cn.js +24 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/advancedFormat.js +54 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/customParseFormat.js +127 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/isBetween.js +19 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/quarterOfYear.js +33 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/weekOfYear.js +29 -0
- package/es/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/plugin/weekYear.js +19 -0
- package/es/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
- package/es/pro-calendar/calendar.vue.d.ts +71 -0
- package/es/pro-calendar/calendar.vue.js +151 -0
- package/es/pro-calendar/calendar.vue3.js +5 -0
- package/es/pro-calendar/enum.d.ts +6 -0
- package/es/pro-calendar/enum.js +4 -0
- package/es/pro-calendar/header.vue.d.ts +46 -0
- package/es/pro-calendar/header.vue.js +122 -0
- package/es/pro-calendar/header.vue2.js +4 -0
- package/es/pro-calendar/hooks/useCellClassName.d.ts +12 -0
- package/es/pro-calendar/hooks/useCellClassName.js +41 -0
- package/es/pro-calendar/index.d.ts +106 -0
- package/es/pro-calendar/index.js +11 -0
- package/es/pro-calendar/inerface.d.ts +34 -0
- package/es/pro-calendar/month.d.ts +5 -0
- package/es/pro-calendar/month.js +43 -0
- package/es/pro-calendar/month.vue.d.ts +37 -0
- package/es/pro-calendar/month.vue.js +127 -0
- package/es/pro-calendar/month.vue2.js +4 -0
- package/es/pro-calendar/week.vue.d.ts +15 -0
- package/es/pro-calendar/week.vue.js +35 -0
- package/es/pro-calendar/week.vue2.js +4 -0
- package/es/pro-calendar/year.vue.d.ts +15 -0
- package/es/pro-calendar/year.vue.js +112 -0
- package/es/pro-calendar/year.vue2.js +4 -0
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
var _ = function() {
|
|
2
|
+
if (typeof Map < "u")
|
|
3
|
+
return Map;
|
|
4
|
+
function e(t, n) {
|
|
5
|
+
var r = -1;
|
|
6
|
+
return t.some(function(i, o) {
|
|
7
|
+
return i[0] === n ? (r = o, !0) : !1;
|
|
8
|
+
}), r;
|
|
9
|
+
}
|
|
10
|
+
return (
|
|
11
|
+
/** @class */
|
|
12
|
+
function() {
|
|
13
|
+
function t() {
|
|
14
|
+
this.__entries__ = [];
|
|
15
|
+
}
|
|
16
|
+
return Object.defineProperty(t.prototype, "size", {
|
|
17
|
+
/**
|
|
18
|
+
* @returns {boolean}
|
|
19
|
+
*/
|
|
20
|
+
get: function() {
|
|
21
|
+
return this.__entries__.length;
|
|
22
|
+
},
|
|
23
|
+
enumerable: !0,
|
|
24
|
+
configurable: !0
|
|
25
|
+
}), t.prototype.get = function(n) {
|
|
26
|
+
var r = e(this.__entries__, n), i = this.__entries__[r];
|
|
27
|
+
return i && i[1];
|
|
28
|
+
}, t.prototype.set = function(n, r) {
|
|
29
|
+
var i = e(this.__entries__, n);
|
|
30
|
+
~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
|
|
31
|
+
}, t.prototype.delete = function(n) {
|
|
32
|
+
var r = this.__entries__, i = e(r, n);
|
|
33
|
+
~i && r.splice(i, 1);
|
|
34
|
+
}, t.prototype.has = function(n) {
|
|
35
|
+
return !!~e(this.__entries__, n);
|
|
36
|
+
}, t.prototype.clear = function() {
|
|
37
|
+
this.__entries__.splice(0);
|
|
38
|
+
}, t.prototype.forEach = function(n, r) {
|
|
39
|
+
r === void 0 && (r = null);
|
|
40
|
+
for (var i = 0, o = this.__entries__; i < o.length; i++) {
|
|
41
|
+
var s = o[i];
|
|
42
|
+
n.call(r, s[1], s[0]);
|
|
43
|
+
}
|
|
44
|
+
}, t;
|
|
45
|
+
}()
|
|
46
|
+
);
|
|
47
|
+
}(), v = typeof window < "u" && typeof document < "u" && window.document === document, f = function() {
|
|
48
|
+
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
49
|
+
}(), O = function() {
|
|
50
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(f) : function(e) {
|
|
51
|
+
return setTimeout(function() {
|
|
52
|
+
return e(Date.now());
|
|
53
|
+
}, 1e3 / 60);
|
|
54
|
+
};
|
|
55
|
+
}(), E = 2;
|
|
56
|
+
function R(e, t) {
|
|
57
|
+
var n = !1, r = !1, i = 0;
|
|
58
|
+
function o() {
|
|
59
|
+
n && (n = !1, e()), r && a();
|
|
60
|
+
}
|
|
61
|
+
function s() {
|
|
62
|
+
O(o);
|
|
63
|
+
}
|
|
64
|
+
function a() {
|
|
65
|
+
var u = Date.now();
|
|
66
|
+
if (n) {
|
|
67
|
+
if (u - i < E)
|
|
68
|
+
return;
|
|
69
|
+
r = !0;
|
|
70
|
+
} else
|
|
71
|
+
n = !0, r = !1, setTimeout(s, t);
|
|
72
|
+
i = u;
|
|
73
|
+
}
|
|
74
|
+
return a;
|
|
75
|
+
}
|
|
76
|
+
var M = 20, x = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], A = typeof MutationObserver < "u", z = (
|
|
77
|
+
/** @class */
|
|
78
|
+
function() {
|
|
79
|
+
function e() {
|
|
80
|
+
this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = R(this.refresh.bind(this), M);
|
|
81
|
+
}
|
|
82
|
+
return e.prototype.addObserver = function(t) {
|
|
83
|
+
~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
|
|
84
|
+
}, e.prototype.removeObserver = function(t) {
|
|
85
|
+
var n = this.observers_, r = n.indexOf(t);
|
|
86
|
+
~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
|
|
87
|
+
}, e.prototype.refresh = function() {
|
|
88
|
+
var t = this.updateObservers_();
|
|
89
|
+
t && this.refresh();
|
|
90
|
+
}, e.prototype.updateObservers_ = function() {
|
|
91
|
+
var t = this.observers_.filter(function(n) {
|
|
92
|
+
return n.gatherActive(), n.hasActive();
|
|
93
|
+
});
|
|
94
|
+
return t.forEach(function(n) {
|
|
95
|
+
return n.broadcastActive();
|
|
96
|
+
}), t.length > 0;
|
|
97
|
+
}, e.prototype.connect_ = function() {
|
|
98
|
+
!v || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), A ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
|
|
99
|
+
attributes: !0,
|
|
100
|
+
childList: !0,
|
|
101
|
+
characterData: !0,
|
|
102
|
+
subtree: !0
|
|
103
|
+
})) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
|
|
104
|
+
}, e.prototype.disconnect_ = function() {
|
|
105
|
+
!v || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
|
|
106
|
+
}, e.prototype.onTransitionEnd_ = function(t) {
|
|
107
|
+
var n = t.propertyName, r = n === void 0 ? "" : n, i = x.some(function(o) {
|
|
108
|
+
return !!~r.indexOf(o);
|
|
109
|
+
});
|
|
110
|
+
i && this.refresh();
|
|
111
|
+
}, e.getInstance = function() {
|
|
112
|
+
return this.instance_ || (this.instance_ = new e()), this.instance_;
|
|
113
|
+
}, e.instance_ = null, e;
|
|
114
|
+
}()
|
|
115
|
+
), m = function(e, t) {
|
|
116
|
+
for (var n = 0, r = Object.keys(t); n < r.length; n++) {
|
|
117
|
+
var i = r[n];
|
|
118
|
+
Object.defineProperty(e, i, {
|
|
119
|
+
value: t[i],
|
|
120
|
+
enumerable: !1,
|
|
121
|
+
writable: !1,
|
|
122
|
+
configurable: !0
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return e;
|
|
126
|
+
}, c = function(e) {
|
|
127
|
+
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
128
|
+
return t || f;
|
|
129
|
+
}, y = d(0, 0, 0, 0);
|
|
130
|
+
function h(e) {
|
|
131
|
+
return parseFloat(e) || 0;
|
|
132
|
+
}
|
|
133
|
+
function b(e) {
|
|
134
|
+
for (var t = [], n = 1; n < arguments.length; n++)
|
|
135
|
+
t[n - 1] = arguments[n];
|
|
136
|
+
return t.reduce(function(r, i) {
|
|
137
|
+
var o = e["border-" + i + "-width"];
|
|
138
|
+
return r + h(o);
|
|
139
|
+
}, 0);
|
|
140
|
+
}
|
|
141
|
+
function T(e) {
|
|
142
|
+
for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
|
|
143
|
+
var o = i[r], s = e["padding-" + o];
|
|
144
|
+
n[o] = h(s);
|
|
145
|
+
}
|
|
146
|
+
return n;
|
|
147
|
+
}
|
|
148
|
+
function C(e) {
|
|
149
|
+
var t = e.getBBox();
|
|
150
|
+
return d(0, 0, t.width, t.height);
|
|
151
|
+
}
|
|
152
|
+
function S(e) {
|
|
153
|
+
var t = e.clientWidth, n = e.clientHeight;
|
|
154
|
+
if (!t && !n)
|
|
155
|
+
return y;
|
|
156
|
+
var r = c(e).getComputedStyle(e), i = T(r), o = i.left + i.right, s = i.top + i.bottom, a = h(r.width), u = h(r.height);
|
|
157
|
+
if (r.boxSizing === "border-box" && (Math.round(a + o) !== t && (a -= b(r, "left", "right") + o), Math.round(u + s) !== n && (u -= b(r, "top", "bottom") + s)), !G(e)) {
|
|
158
|
+
var l = Math.round(a + o) - t, p = Math.round(u + s) - n;
|
|
159
|
+
Math.abs(l) !== 1 && (a -= l), Math.abs(p) !== 1 && (u -= p);
|
|
160
|
+
}
|
|
161
|
+
return d(i.left, i.top, a, u);
|
|
162
|
+
}
|
|
163
|
+
var D = /* @__PURE__ */ function() {
|
|
164
|
+
return typeof SVGGraphicsElement < "u" ? function(e) {
|
|
165
|
+
return e instanceof c(e).SVGGraphicsElement;
|
|
166
|
+
} : function(e) {
|
|
167
|
+
return e instanceof c(e).SVGElement && typeof e.getBBox == "function";
|
|
168
|
+
};
|
|
169
|
+
}();
|
|
170
|
+
function G(e) {
|
|
171
|
+
return e === c(e).document.documentElement;
|
|
172
|
+
}
|
|
173
|
+
function L(e) {
|
|
174
|
+
return v ? D(e) ? C(e) : S(e) : y;
|
|
175
|
+
}
|
|
176
|
+
function P(e) {
|
|
177
|
+
var t = e.x, n = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
|
|
178
|
+
return m(s, {
|
|
179
|
+
x: t,
|
|
180
|
+
y: n,
|
|
181
|
+
width: r,
|
|
182
|
+
height: i,
|
|
183
|
+
top: n,
|
|
184
|
+
right: t + r,
|
|
185
|
+
bottom: i + n,
|
|
186
|
+
left: t
|
|
187
|
+
}), s;
|
|
188
|
+
}
|
|
189
|
+
function d(e, t, n, r) {
|
|
190
|
+
return { x: e, y: t, width: n, height: r };
|
|
191
|
+
}
|
|
192
|
+
var W = (
|
|
193
|
+
/** @class */
|
|
194
|
+
function() {
|
|
195
|
+
function e(t) {
|
|
196
|
+
this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = d(0, 0, 0, 0), this.target = t;
|
|
197
|
+
}
|
|
198
|
+
return e.prototype.isActive = function() {
|
|
199
|
+
var t = L(this.target);
|
|
200
|
+
return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
|
|
201
|
+
}, e.prototype.broadcastRect = function() {
|
|
202
|
+
var t = this.contentRect_;
|
|
203
|
+
return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
|
|
204
|
+
}, e;
|
|
205
|
+
}()
|
|
206
|
+
), j = (
|
|
207
|
+
/** @class */
|
|
208
|
+
/* @__PURE__ */ function() {
|
|
209
|
+
function e(t, n) {
|
|
210
|
+
var r = P(n);
|
|
211
|
+
m(this, { target: t, contentRect: r });
|
|
212
|
+
}
|
|
213
|
+
return e;
|
|
214
|
+
}()
|
|
215
|
+
), F = (
|
|
216
|
+
/** @class */
|
|
217
|
+
function() {
|
|
218
|
+
function e(t, n, r) {
|
|
219
|
+
if (this.activeObservations_ = [], this.observations_ = new _(), typeof t != "function")
|
|
220
|
+
throw new TypeError("The callback provided as parameter 1 is not a function.");
|
|
221
|
+
this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
|
|
222
|
+
}
|
|
223
|
+
return e.prototype.observe = function(t) {
|
|
224
|
+
if (!arguments.length)
|
|
225
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
226
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
227
|
+
if (!(t instanceof c(t).Element))
|
|
228
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
229
|
+
var n = this.observations_;
|
|
230
|
+
n.has(t) || (n.set(t, new W(t)), this.controller_.addObserver(this), this.controller_.refresh());
|
|
231
|
+
}
|
|
232
|
+
}, e.prototype.unobserve = function(t) {
|
|
233
|
+
if (!arguments.length)
|
|
234
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
235
|
+
if (!(typeof Element > "u" || !(Element instanceof Object))) {
|
|
236
|
+
if (!(t instanceof c(t).Element))
|
|
237
|
+
throw new TypeError('parameter 1 is not of type "Element".');
|
|
238
|
+
var n = this.observations_;
|
|
239
|
+
n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
|
|
240
|
+
}
|
|
241
|
+
}, e.prototype.disconnect = function() {
|
|
242
|
+
this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
|
|
243
|
+
}, e.prototype.gatherActive = function() {
|
|
244
|
+
var t = this;
|
|
245
|
+
this.clearActive(), this.observations_.forEach(function(n) {
|
|
246
|
+
n.isActive() && t.activeObservations_.push(n);
|
|
247
|
+
});
|
|
248
|
+
}, e.prototype.broadcastActive = function() {
|
|
249
|
+
if (this.hasActive()) {
|
|
250
|
+
var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
|
|
251
|
+
return new j(r.target, r.broadcastRect());
|
|
252
|
+
});
|
|
253
|
+
this.callback_.call(t, n, t), this.clearActive();
|
|
254
|
+
}
|
|
255
|
+
}, e.prototype.clearActive = function() {
|
|
256
|
+
this.activeObservations_.splice(0);
|
|
257
|
+
}, e.prototype.hasActive = function() {
|
|
258
|
+
return this.activeObservations_.length > 0;
|
|
259
|
+
}, e;
|
|
260
|
+
}()
|
|
261
|
+
), g = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new _(), w = (
|
|
262
|
+
/** @class */
|
|
263
|
+
/* @__PURE__ */ function() {
|
|
264
|
+
function e(t) {
|
|
265
|
+
if (!(this instanceof e))
|
|
266
|
+
throw new TypeError("Cannot call a class as a function.");
|
|
267
|
+
if (!arguments.length)
|
|
268
|
+
throw new TypeError("1 argument required, but only 0 present.");
|
|
269
|
+
var n = z.getInstance(), r = new F(t, n, this);
|
|
270
|
+
g.set(this, r);
|
|
271
|
+
}
|
|
272
|
+
return e;
|
|
273
|
+
}()
|
|
274
|
+
);
|
|
275
|
+
[
|
|
276
|
+
"observe",
|
|
277
|
+
"unobserve",
|
|
278
|
+
"disconnect"
|
|
279
|
+
].forEach(function(e) {
|
|
280
|
+
w.prototype[e] = function() {
|
|
281
|
+
var t;
|
|
282
|
+
return (t = g.get(this))[e].apply(t, arguments);
|
|
283
|
+
};
|
|
284
|
+
});
|
|
285
|
+
var H = function() {
|
|
286
|
+
return typeof f.ResizeObserver < "u" ? f.ResizeObserver : w;
|
|
287
|
+
}();
|
|
288
|
+
export {
|
|
289
|
+
H as default
|
|
290
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ProCalendarProps } from './inerface';
|
|
2
|
+
import { EMode } from './enum';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
default?: (props: {
|
|
7
|
+
year: string;
|
|
8
|
+
month: string;
|
|
9
|
+
date?: string;
|
|
10
|
+
value: {
|
|
11
|
+
year: number;
|
|
12
|
+
month: number;
|
|
13
|
+
date?: number;
|
|
14
|
+
};
|
|
15
|
+
}) => any;
|
|
16
|
+
header?: (props: {
|
|
17
|
+
year: string;
|
|
18
|
+
month: string;
|
|
19
|
+
value: {
|
|
20
|
+
year: number;
|
|
21
|
+
month: number;
|
|
22
|
+
};
|
|
23
|
+
}) => any;
|
|
24
|
+
}> & {
|
|
25
|
+
default?: (props: {
|
|
26
|
+
year: string;
|
|
27
|
+
month: string;
|
|
28
|
+
date?: string;
|
|
29
|
+
value: {
|
|
30
|
+
year: number;
|
|
31
|
+
month: number;
|
|
32
|
+
date?: number;
|
|
33
|
+
};
|
|
34
|
+
}) => any;
|
|
35
|
+
header?: (props: {
|
|
36
|
+
year: string;
|
|
37
|
+
month: string;
|
|
38
|
+
value: {
|
|
39
|
+
year: number;
|
|
40
|
+
month: number;
|
|
41
|
+
};
|
|
42
|
+
}) => any;
|
|
43
|
+
};
|
|
44
|
+
refs: {};
|
|
45
|
+
rootEl: HTMLDivElement;
|
|
46
|
+
};
|
|
47
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
48
|
+
declare const __VLS_component: import('vue').DefineComponent<ProCalendarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
49
|
+
change: (date: Date) => any;
|
|
50
|
+
"update:modelValue": (date: Date) => any;
|
|
51
|
+
panelChange: (date: Date) => any;
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<ProCalendarProps> & Readonly<{
|
|
53
|
+
onChange?: ((date: Date) => any) | undefined;
|
|
54
|
+
"onUpdate:modelValue"?: ((date: Date) => any) | undefined;
|
|
55
|
+
onPanelChange?: ((date: Date) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
dayStartOfWeek: 0 | 1;
|
|
58
|
+
isWeek: boolean;
|
|
59
|
+
panel: boolean;
|
|
60
|
+
modes: (EMode.month | EMode.year)[];
|
|
61
|
+
defaultMode: EMode.month | EMode.year;
|
|
62
|
+
allowSelect: boolean;
|
|
63
|
+
panelTodayBtn: boolean;
|
|
64
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
65
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { defineComponent as J, useSlots as K, ref as g, computed as r, watch as L, createElementBlock as v, openBlock as m, mergeProps as Q, createVNode as R, createCommentVNode as y, createSlots as $, withCtx as B, unref as u, renderSlot as b, normalizeClass as k, createBlock as O, toDisplayString as U } from "vue";
|
|
2
|
+
import "dayjs";
|
|
3
|
+
import X from "./month.vue.js";
|
|
4
|
+
import Z from "./year.vue.js";
|
|
5
|
+
import x from "./header.vue.js";
|
|
6
|
+
import { getDayjsValue as P, getNow as ee, pickDataAttributes as ae, methods as c } from "../node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/date.js";
|
|
7
|
+
import { getPrefixCls as te } from "../node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/_utils/global-config.js";
|
|
8
|
+
import { useI18n as oe } from "../node_modules/.pnpm/@arco-design_web-vue@2.53.3_vue@3.5.13_typescript@5.8.2_/node_modules/@arco-design/web-vue/es/locale/index.js";
|
|
9
|
+
import { getAllDaysByTime as le } from "./month.js";
|
|
10
|
+
import { EMode as t } from "./enum.js";
|
|
11
|
+
const ce = /* @__PURE__ */ J({
|
|
12
|
+
__name: "calendar",
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: {},
|
|
15
|
+
defaultValue: {},
|
|
16
|
+
mode: {},
|
|
17
|
+
defaultMode: { default: t.month },
|
|
18
|
+
modes: { default: () => [t.month, t.year] },
|
|
19
|
+
allowSelect: { type: Boolean, default: !0 },
|
|
20
|
+
panel: { type: Boolean, default: !1 },
|
|
21
|
+
panelWidth: {},
|
|
22
|
+
panelTodayBtn: { type: Boolean, default: !1 },
|
|
23
|
+
dayStartOfWeek: { default: 0 },
|
|
24
|
+
isWeek: { type: Boolean, default: !1 }
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue", "change", "panelChange"],
|
|
27
|
+
setup(_, { emit: A }) {
|
|
28
|
+
function N(e, l) {
|
|
29
|
+
return e === t.month || e === t.year && !l ? "YYYY-MM-DD" : "YYYY-MM";
|
|
30
|
+
}
|
|
31
|
+
const o = _, s = A, w = K(), d = te("calendar"), { t: h } = oe(), S = g(o.defaultMode), n = r(() => o.mode ? o.mode : S.value), C = r(() => N(n.value, o.panel)), D = g(P(o.defaultValue || Date.now(), C.value)), p = r(() => o.modelValue ? P(o.modelValue, C.value) : D.value), a = g(p.value || ee());
|
|
32
|
+
L(p, (e) => {
|
|
33
|
+
a.value = e;
|
|
34
|
+
});
|
|
35
|
+
const V = r(() => le(a.value, {
|
|
36
|
+
dayStartOfWeek: o.dayStartOfWeek,
|
|
37
|
+
isWeek: o.isWeek
|
|
38
|
+
}));
|
|
39
|
+
function T(e) {
|
|
40
|
+
a.value = e, s("panelChange", e.toDate());
|
|
41
|
+
}
|
|
42
|
+
function W(e) {
|
|
43
|
+
D.value = e, s("change", e.toDate()), s("update:modelValue", e.toDate()), T(e);
|
|
44
|
+
}
|
|
45
|
+
function M(e, l = !1) {
|
|
46
|
+
l || W(e);
|
|
47
|
+
}
|
|
48
|
+
const E = r(() => n.value === t.month ? h("calendar.formatMonth") : n.value === t.year ? h("calendar.formatYear") : "");
|
|
49
|
+
function F(e, l) {
|
|
50
|
+
e.includes("prev") && (a.value = c.subtract(a.value, 1, l)), e.includes("next") && (a.value = c.add(a.value, 1, l)), s("panelChange", a.value.toDate());
|
|
51
|
+
}
|
|
52
|
+
function j(e) {
|
|
53
|
+
const l = c.set(a.value, t.year, e);
|
|
54
|
+
a.value = l, s("panelChange", l.toDate());
|
|
55
|
+
}
|
|
56
|
+
function z(e) {
|
|
57
|
+
const l = c.set(a.value, t.month, e - 1);
|
|
58
|
+
a.value = l, s("panelChange", l.toDate());
|
|
59
|
+
}
|
|
60
|
+
function H(e) {
|
|
61
|
+
S.value = e;
|
|
62
|
+
}
|
|
63
|
+
const I = r(() => [
|
|
64
|
+
d,
|
|
65
|
+
n.value === t.month ? `${d}-mode-month` : `${d}-mode-year`,
|
|
66
|
+
{
|
|
67
|
+
[`${d}-panel`]: o.panel && (n.value === t.month || n.value === t.year)
|
|
68
|
+
}
|
|
69
|
+
]), q = r(() => o.panel ? { width: o.panelWidth } : {}), G = r(() => ae(o));
|
|
70
|
+
return (e, l) => (m(), v("div", Q({
|
|
71
|
+
class: I.value,
|
|
72
|
+
style: q.value
|
|
73
|
+
}, G.value), [
|
|
74
|
+
R(x, {
|
|
75
|
+
move: W,
|
|
76
|
+
"header-value-format": E.value,
|
|
77
|
+
modes: e.modes,
|
|
78
|
+
mode: n.value,
|
|
79
|
+
"page-show-data": a.value,
|
|
80
|
+
"day-start-of-week": e.dayStartOfWeek,
|
|
81
|
+
"is-week": e.isWeek,
|
|
82
|
+
onModeChange: H,
|
|
83
|
+
onYearChange: j,
|
|
84
|
+
onMonthChange: z,
|
|
85
|
+
onChangePageShowDate: F
|
|
86
|
+
}, $({ _: 2 }, [
|
|
87
|
+
u(w).header ? {
|
|
88
|
+
name: "default",
|
|
89
|
+
fn: B(({ year: f, month: i }) => [
|
|
90
|
+
b(e.$slots, "header", {
|
|
91
|
+
value: { year: f, month: i },
|
|
92
|
+
year: f.toString(),
|
|
93
|
+
month: i.toString().padStart(2, "0")
|
|
94
|
+
})
|
|
95
|
+
]),
|
|
96
|
+
key: "0"
|
|
97
|
+
} : void 0
|
|
98
|
+
]), 1032, ["header-value-format", "modes", "mode", "page-show-data", "day-start-of-week", "is-week"]),
|
|
99
|
+
n.value === u(t).month ? (m(), v("div", {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: k(`${u(d)}-body`)
|
|
102
|
+
}, [
|
|
103
|
+
(m(), O(X, {
|
|
104
|
+
key: a.value.month(),
|
|
105
|
+
"page-data": V.value,
|
|
106
|
+
value: p.value,
|
|
107
|
+
mode: n.value,
|
|
108
|
+
"select-handler": M,
|
|
109
|
+
"is-week": e.isWeek,
|
|
110
|
+
"day-start-of-week": e.dayStartOfWeek,
|
|
111
|
+
"page-show-date": a.value
|
|
112
|
+
}, $({ _: 2 }, [
|
|
113
|
+
u(w).default ? {
|
|
114
|
+
name: "default",
|
|
115
|
+
fn: B(({ year: f, month: i, date: Y }) => [
|
|
116
|
+
b(e.$slots, "default", {
|
|
117
|
+
year: f.toString(),
|
|
118
|
+
month: i.toString().padStart(2, "0"),
|
|
119
|
+
date: Y.toString().padStart(2, "0"),
|
|
120
|
+
value: { year: f, month: i, date: Y }
|
|
121
|
+
})
|
|
122
|
+
]),
|
|
123
|
+
key: "0"
|
|
124
|
+
} : void 0
|
|
125
|
+
]), 1032, ["page-data", "value", "mode", "is-week", "day-start-of-week", "page-show-date"]))
|
|
126
|
+
], 2)) : y("", !0),
|
|
127
|
+
n.value === u(t).year ? (m(), v("div", {
|
|
128
|
+
key: 1,
|
|
129
|
+
class: k(`${u(d)}-body`)
|
|
130
|
+
}, [
|
|
131
|
+
(m(), O(Z, {
|
|
132
|
+
key: a.value.year(),
|
|
133
|
+
"page-data": V.value,
|
|
134
|
+
"page-show-data": a.value,
|
|
135
|
+
mode: n.value,
|
|
136
|
+
"is-week": e.isWeek,
|
|
137
|
+
value: p.value,
|
|
138
|
+
"day-start-of-week": e.dayStartOfWeek,
|
|
139
|
+
"select-handler": M
|
|
140
|
+
}, null, 8, ["page-data", "page-show-data", "mode", "is-week", "value", "day-start-of-week"]))
|
|
141
|
+
], 2)) : y("", !0),
|
|
142
|
+
e.panel && e.panelTodayBtn ? (m(), v("div", {
|
|
143
|
+
key: 2,
|
|
144
|
+
class: k(`${u(d)}-footer-btn-wrapper`)
|
|
145
|
+
}, U(u(h)("today")), 3)) : y("", !0)
|
|
146
|
+
], 16));
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
export {
|
|
150
|
+
ce as default
|
|
151
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { EMode } from './enum';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** 模式 */
|
|
5
|
+
mode?: EMode.month | EMode.year;
|
|
6
|
+
dayStartOfWeek?: 0 | 1;
|
|
7
|
+
isWeek?: boolean;
|
|
8
|
+
panel?: boolean;
|
|
9
|
+
modes?: (EMode.month | EMode.year)[];
|
|
10
|
+
headerType?: string;
|
|
11
|
+
pageShowData: Dayjs;
|
|
12
|
+
move: (time: Dayjs) => void;
|
|
13
|
+
/** 年变化 */
|
|
14
|
+
onYearChange: (year: number) => void;
|
|
15
|
+
/** 月变化 */
|
|
16
|
+
onMonthChange: (month: number) => void;
|
|
17
|
+
onChangePageShowDate: (type: 'prev' | 'next', unit: EMode) => void;
|
|
18
|
+
onModeChange: (value: any, ev: Event) => void;
|
|
19
|
+
headerValueFormat: string;
|
|
20
|
+
}
|
|
21
|
+
declare function __VLS_template(): {
|
|
22
|
+
attrs: Partial<{}>;
|
|
23
|
+
slots: {
|
|
24
|
+
default?(_: {
|
|
25
|
+
year: number;
|
|
26
|
+
month: number;
|
|
27
|
+
}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {};
|
|
30
|
+
rootEl: HTMLDivElement;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
yearChange: (year: number) => any;
|
|
35
|
+
monthChange: (month: number) => any;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
37
|
+
onYearChange?: ((year: number) => any) | undefined;
|
|
38
|
+
onMonthChange?: ((month: number) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
40
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|