vft 0.0.1 → 0.0.3
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/dist/index.css +1 -0
- package/es/component.d.ts +3 -0
- package/es/component.mjs +18 -0
- package/es/component.mjs.map +1 -0
- package/es/components/avatar/avatar.vue.d.ts +64 -0
- package/es/components/avatar/avatar.vue.mjs +5 -0
- package/es/components/avatar/avatar.vue.mjs.map +1 -0
- package/es/components/avatar/avatar.vue2.mjs +51 -0
- package/es/components/avatar/avatar.vue2.mjs.map +1 -0
- package/es/components/avatar/index.d.ts +62 -0
- package/es/components/avatar/index.mjs +9 -0
- package/es/components/avatar/index.mjs.map +1 -0
- package/es/components/avatar/style/css.d.ts +0 -0
- package/es/components/avatar/style/css.mjs +3 -0
- package/es/components/avatar/style/css.mjs.map +1 -0
- package/es/components/avatar/style/index.d.ts +0 -0
- package/es/components/avatar/style/index.mjs +3 -0
- package/es/components/avatar/style/index.mjs.map +1 -0
- package/es/components/back-top/back-top.vue.d.ts +48 -0
- package/es/components/back-top/back-top.vue.mjs +5 -0
- package/es/components/back-top/back-top.vue.mjs.map +1 -0
- package/es/components/back-top/back-top.vue2.mjs +62 -0
- package/es/components/back-top/back-top.vue2.mjs.map +1 -0
- package/es/components/back-top/index.d.ts +47 -0
- package/es/components/back-top/index.mjs +9 -0
- package/es/components/back-top/index.mjs.map +1 -0
- package/es/components/back-top/style/css.d.ts +0 -0
- package/es/components/back-top/style/css.mjs +3 -0
- package/es/components/back-top/style/css.mjs.map +1 -0
- package/es/components/back-top/style/index.d.ts +0 -0
- package/es/components/back-top/style/index.mjs +3 -0
- package/es/components/back-top/style/index.mjs.map +1 -0
- package/es/components/back-top/types.d.ts +13 -0
- package/es/components/back-top/types.mjs +2 -0
- package/es/components/back-top/types.mjs.map +1 -0
- package/es/components/back-top/use-back-top.d.ts +5 -0
- package/es/components/back-top/use-back-top.mjs +32 -0
- package/es/components/back-top/use-back-top.mjs.map +1 -0
- package/es/components/base/style/css.d.ts +0 -0
- package/es/components/base/style/css.mjs +2 -0
- package/es/components/base/style/css.mjs.map +1 -0
- package/es/components/base/style/index.d.ts +0 -0
- package/es/components/base/style/index.mjs +2 -0
- package/es/components/base/style/index.mjs.map +1 -0
- package/es/components/divider/divider.vue.d.ts +53 -0
- package/es/components/divider/divider.vue.mjs +5 -0
- package/es/components/divider/divider.vue.mjs.map +1 -0
- package/es/components/divider/divider.vue2.mjs +44 -0
- package/es/components/divider/divider.vue2.mjs.map +1 -0
- package/es/components/divider/index.d.ts +52 -0
- package/es/components/divider/index.mjs +9 -0
- package/es/components/divider/index.mjs.map +1 -0
- package/es/components/divider/style/css.d.ts +0 -0
- package/es/components/divider/style/css.mjs +3 -0
- package/es/components/divider/style/css.mjs.map +1 -0
- package/es/components/divider/style/index.d.ts +0 -0
- package/es/components/divider/style/index.mjs +3 -0
- package/es/components/divider/style/index.mjs.map +1 -0
- package/es/components/divider/types.d.ts +2 -0
- package/es/components/divider/types.mjs +2 -0
- package/es/components/divider/types.mjs.map +1 -0
- package/es/components/empty/assets/no-collect.png.mjs +5 -0
- package/es/components/empty/assets/no-collect.png.mjs.map +1 -0
- package/es/components/empty/assets/no-data.png.mjs +5 -0
- package/es/components/empty/assets/no-data.png.mjs.map +1 -0
- package/es/components/empty/assets/no-filter.png.mjs +5 -0
- package/es/components/empty/assets/no-filter.png.mjs.map +1 -0
- package/es/components/empty/assets/no-page-data.png.mjs +5 -0
- package/es/components/empty/assets/no-page-data.png.mjs.map +1 -0
- package/es/components/empty/assets/no-search.png.mjs +5 -0
- package/es/components/empty/assets/no-search.png.mjs.map +1 -0
- package/es/components/empty/constants.d.ts +12 -0
- package/es/components/empty/constants.mjs +5 -0
- package/es/components/empty/constants.mjs.map +1 -0
- package/es/components/empty/empty.vue.d.ts +39 -0
- package/es/components/empty/empty.vue.mjs +5 -0
- package/es/components/empty/empty.vue.mjs.map +1 -0
- package/es/components/empty/empty.vue2.mjs +98 -0
- package/es/components/empty/empty.vue2.mjs.map +1 -0
- package/es/components/empty/index.d.ts +37 -0
- package/es/components/empty/index.mjs +11 -0
- package/es/components/empty/index.mjs.map +1 -0
- package/es/components/empty/style/css.d.ts +0 -0
- package/es/components/empty/style/css.mjs +3 -0
- package/es/components/empty/style/css.mjs.map +1 -0
- package/es/components/empty/style/index.d.ts +0 -0
- package/es/components/empty/style/index.mjs +3 -0
- package/es/components/empty/style/index.mjs.map +1 -0
- package/es/components/exception/exception.png.mjs +5 -0
- package/es/components/exception/exception.png.mjs.map +1 -0
- package/es/components/exception/exception.vue.d.ts +29 -0
- package/es/components/exception/exception.vue.mjs +5 -0
- package/es/components/exception/exception.vue.mjs.map +1 -0
- package/es/components/exception/exception.vue2.mjs +47 -0
- package/es/components/exception/exception.vue2.mjs.map +1 -0
- package/es/components/exception/index.d.ts +28 -0
- package/es/components/exception/index.mjs +9 -0
- package/es/components/exception/index.mjs.map +1 -0
- package/es/components/exception/style/css.d.ts +0 -0
- package/es/components/exception/style/css.mjs +3 -0
- package/es/components/exception/style/css.mjs.map +1 -0
- package/es/components/exception/style/index.d.ts +0 -0
- package/es/components/exception/style/index.mjs +3 -0
- package/es/components/exception/style/index.mjs.map +1 -0
- package/es/components/icon/icon.vue.d.ts +96 -0
- package/es/components/icon/icon.vue.mjs +5 -0
- package/es/components/icon/icon.vue.mjs.map +1 -0
- package/es/components/icon/icon.vue2.mjs +37 -0
- package/es/components/icon/icon.vue2.mjs.map +1 -0
- package/es/components/icon/index.d.ts +79 -0
- package/es/components/icon/index.mjs +9 -0
- package/es/components/icon/index.mjs.map +1 -0
- package/es/components/icon/style/css.d.ts +0 -0
- package/es/components/icon/style/css.mjs +3 -0
- package/es/components/icon/style/css.mjs.map +1 -0
- package/es/components/icon/style/index.d.ts +0 -0
- package/es/components/icon/style/index.mjs +3 -0
- package/es/components/icon/style/index.mjs.map +1 -0
- package/es/components/index.d.ts +6 -0
- package/es/components/index.mjs +17 -0
- package/es/components/index.mjs.map +1 -0
- package/es/components/result/index.d.ts +28 -0
- package/es/components/result/index.mjs +9 -0
- package/es/components/result/index.mjs.map +1 -0
- package/es/components/result/result.vue.d.ts +30 -0
- package/es/components/result/result.vue.mjs +5 -0
- package/es/components/result/result.vue.mjs.map +1 -0
- package/es/components/result/result.vue2.mjs +56 -0
- package/es/components/result/result.vue2.mjs.map +1 -0
- package/es/components/result/style/css.d.ts +0 -0
- package/es/components/result/style/css.mjs +3 -0
- package/es/components/result/style/css.mjs.map +1 -0
- package/es/components/result/style/index.d.ts +0 -0
- package/es/components/result/style/index.mjs +3 -0
- package/es/components/result/style/index.mjs.map +1 -0
- package/es/components/types.mjs +2 -0
- package/es/components/types.mjs.map +1 -0
- package/es/constants/aria.d.ts +17 -0
- package/es/constants/aria.mjs +25 -0
- package/es/constants/aria.mjs.map +1 -0
- package/es/constants/date.d.ts +3 -0
- package/es/constants/date.mjs +24 -0
- package/es/constants/date.mjs.map +1 -0
- package/es/constants/event.d.ts +3 -0
- package/es/constants/event.mjs +7 -0
- package/es/constants/event.mjs.map +1 -0
- package/es/constants/index.d.ts +5 -0
- package/es/constants/index.mjs +17 -0
- package/es/constants/index.mjs.map +1 -0
- package/es/constants/key.d.ts +1 -0
- package/es/constants/key.mjs +5 -0
- package/es/constants/key.mjs.map +1 -0
- package/es/constants/size.d.ts +7 -0
- package/es/constants/size.mjs +10 -0
- package/es/constants/size.mjs.map +1 -0
- package/es/defaults.d.ts +5 -0
- package/es/defaults.mjs +7 -0
- package/es/defaults.mjs.map +1 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +7 -0
- package/es/hooks/index.mjs.map +1 -0
- package/es/hooks/use-namespace/index.d.ts +21 -0
- package/es/hooks/use-namespace/index.mjs +42 -0
- package/es/hooks/use-namespace/index.mjs.map +1 -0
- package/es/index.d.ts +9 -0
- package/es/index.mjs +44 -0
- package/es/index.mjs.map +1 -0
- package/es/make-installer.d.ts +5 -0
- package/es/make-installer.mjs +12 -0
- package/es/make-installer.mjs.map +1 -0
- package/es/package.json.mjs +5 -0
- package/es/package.json.mjs.map +1 -0
- package/es/style.css +1 -0
- package/es/theme-style/src/avatar.scss.mjs +5 -0
- package/es/theme-style/src/avatar.scss.mjs.map +1 -0
- package/es/theme-style/src/back-top.scss.mjs +5 -0
- package/es/theme-style/src/back-top.scss.mjs.map +1 -0
- package/es/theme-style/src/base.scss.mjs +5 -0
- package/es/theme-style/src/base.scss.mjs.map +1 -0
- package/es/theme-style/src/divider.scss.mjs +5 -0
- package/es/theme-style/src/divider.scss.mjs.map +1 -0
- package/es/theme-style/src/empty.scss.mjs +5 -0
- package/es/theme-style/src/empty.scss.mjs.map +1 -0
- package/es/theme-style/src/icon.scss.mjs +5 -0
- package/es/theme-style/src/icon.scss.mjs.map +1 -0
- package/es/theme-style/src/result.scss.mjs +5 -0
- package/es/theme-style/src/result.scss.mjs.map +1 -0
- package/es/utils/error.d.ts +3 -0
- package/es/utils/error.mjs +20 -0
- package/es/utils/error.mjs.map +1 -0
- package/es/utils/helper.d.ts +1 -0
- package/es/utils/helper.mjs +5 -0
- package/es/utils/helper.mjs.map +1 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.mjs +13 -0
- package/es/utils/index.mjs.map +1 -0
- package/es/utils/vue/index.d.ts +2 -0
- package/es/utils/vue/index.mjs +8 -0
- package/es/utils/vue/index.mjs.map +1 -0
- package/es/utils/vue/install.d.ts +6 -0
- package/es/utils/vue/install.mjs +21 -0
- package/es/utils/vue/install.mjs.map +1 -0
- package/es/utils/vue/typescript.d.ts +5 -0
- package/es/utils/vue/typescript.mjs +2 -0
- package/es/utils/vue/typescript.mjs.map +1 -0
- package/lib/component.d.ts +3 -0
- package/lib/component.js +2 -0
- package/lib/component.js.map +1 -0
- package/lib/components/avatar/avatar.vue.d.ts +64 -0
- package/lib/components/avatar/avatar.vue.js +2 -0
- package/lib/components/avatar/avatar.vue.js.map +1 -0
- package/lib/components/avatar/avatar.vue2.js +2 -0
- package/lib/components/avatar/avatar.vue2.js.map +1 -0
- package/lib/components/avatar/index.d.ts +62 -0
- package/lib/components/avatar/index.js +2 -0
- package/lib/components/avatar/index.js.map +1 -0
- package/lib/components/avatar/style/css.d.ts +0 -0
- package/lib/components/avatar/style/css.js +2 -0
- package/lib/components/avatar/style/css.js.map +1 -0
- package/lib/components/avatar/style/index.d.ts +0 -0
- package/lib/components/avatar/style/index.js +2 -0
- package/lib/components/avatar/style/index.js.map +1 -0
- package/lib/components/back-top/back-top.vue.d.ts +48 -0
- package/lib/components/back-top/back-top.vue.js +2 -0
- package/lib/components/back-top/back-top.vue.js.map +1 -0
- package/lib/components/back-top/back-top.vue2.js +2 -0
- package/lib/components/back-top/back-top.vue2.js.map +1 -0
- package/lib/components/back-top/index.d.ts +47 -0
- package/lib/components/back-top/index.js +2 -0
- package/lib/components/back-top/index.js.map +1 -0
- package/lib/components/back-top/style/css.d.ts +0 -0
- package/lib/components/back-top/style/css.js +2 -0
- package/lib/components/back-top/style/css.js.map +1 -0
- package/lib/components/back-top/style/index.d.ts +0 -0
- package/lib/components/back-top/style/index.js +2 -0
- package/lib/components/back-top/style/index.js.map +1 -0
- package/lib/components/back-top/types.d.ts +13 -0
- package/lib/components/back-top/types.js +2 -0
- package/lib/components/back-top/types.js.map +1 -0
- package/lib/components/back-top/use-back-top.d.ts +5 -0
- package/lib/components/back-top/use-back-top.js +2 -0
- package/lib/components/back-top/use-back-top.js.map +1 -0
- package/lib/components/base/style/css.d.ts +0 -0
- package/lib/components/base/style/css.js +2 -0
- package/lib/components/base/style/css.js.map +1 -0
- package/lib/components/base/style/index.d.ts +0 -0
- package/lib/components/base/style/index.js +2 -0
- package/lib/components/base/style/index.js.map +1 -0
- package/lib/components/divider/divider.vue.d.ts +53 -0
- package/lib/components/divider/divider.vue.js +2 -0
- package/lib/components/divider/divider.vue.js.map +1 -0
- package/lib/components/divider/divider.vue2.js +2 -0
- package/lib/components/divider/divider.vue2.js.map +1 -0
- package/lib/components/divider/index.d.ts +52 -0
- package/lib/components/divider/index.js +2 -0
- package/lib/components/divider/index.js.map +1 -0
- package/lib/components/divider/style/css.d.ts +0 -0
- package/lib/components/divider/style/css.js +2 -0
- package/lib/components/divider/style/css.js.map +1 -0
- package/lib/components/divider/style/index.d.ts +0 -0
- package/lib/components/divider/style/index.js +2 -0
- package/lib/components/divider/style/index.js.map +1 -0
- package/lib/components/divider/types.d.ts +2 -0
- package/lib/components/divider/types.js +2 -0
- package/lib/components/divider/types.js.map +1 -0
- package/lib/components/empty/assets/no-collect.png.js +2 -0
- package/lib/components/empty/assets/no-collect.png.js.map +1 -0
- package/lib/components/empty/assets/no-data.png.js +2 -0
- package/lib/components/empty/assets/no-data.png.js.map +1 -0
- package/lib/components/empty/assets/no-filter.png.js +2 -0
- package/lib/components/empty/assets/no-filter.png.js.map +1 -0
- package/lib/components/empty/assets/no-page-data.png.js +2 -0
- package/lib/components/empty/assets/no-page-data.png.js.map +1 -0
- package/lib/components/empty/assets/no-search.png.js +2 -0
- package/lib/components/empty/assets/no-search.png.js.map +1 -0
- package/lib/components/empty/constants.d.ts +12 -0
- package/lib/components/empty/constants.js +2 -0
- package/lib/components/empty/constants.js.map +1 -0
- package/lib/components/empty/empty.vue.d.ts +39 -0
- package/lib/components/empty/empty.vue.js +2 -0
- package/lib/components/empty/empty.vue.js.map +1 -0
- package/lib/components/empty/empty.vue2.js +2 -0
- package/lib/components/empty/empty.vue2.js.map +1 -0
- package/lib/components/empty/index.d.ts +37 -0
- package/lib/components/empty/index.js +2 -0
- package/lib/components/empty/index.js.map +1 -0
- package/lib/components/empty/style/css.d.ts +0 -0
- package/lib/components/empty/style/css.js +2 -0
- package/lib/components/empty/style/css.js.map +1 -0
- package/lib/components/empty/style/index.d.ts +0 -0
- package/lib/components/empty/style/index.js +2 -0
- package/lib/components/empty/style/index.js.map +1 -0
- package/lib/components/exception/exception.png.js +2 -0
- package/lib/components/exception/exception.png.js.map +1 -0
- package/lib/components/exception/exception.vue.d.ts +29 -0
- package/lib/components/exception/exception.vue.js +2 -0
- package/lib/components/exception/exception.vue.js.map +1 -0
- package/lib/components/exception/exception.vue2.js +2 -0
- package/lib/components/exception/exception.vue2.js.map +1 -0
- package/lib/components/exception/index.d.ts +28 -0
- package/lib/components/exception/index.js +2 -0
- package/lib/components/exception/index.js.map +1 -0
- package/lib/components/exception/style/css.d.ts +0 -0
- package/lib/components/exception/style/css.js +2 -0
- package/lib/components/exception/style/css.js.map +1 -0
- package/lib/components/exception/style/index.d.ts +0 -0
- package/lib/components/exception/style/index.js +2 -0
- package/lib/components/exception/style/index.js.map +1 -0
- package/lib/components/icon/icon.vue.d.ts +96 -0
- package/lib/components/icon/icon.vue.js +2 -0
- package/lib/components/icon/icon.vue.js.map +1 -0
- package/lib/components/icon/icon.vue2.js +2 -0
- package/lib/components/icon/icon.vue2.js.map +1 -0
- package/lib/components/icon/index.d.ts +79 -0
- package/lib/components/icon/index.js +2 -0
- package/lib/components/icon/index.js.map +1 -0
- package/lib/components/icon/style/css.d.ts +0 -0
- package/lib/components/icon/style/css.js +2 -0
- package/lib/components/icon/style/css.js.map +1 -0
- package/lib/components/icon/style/index.d.ts +0 -0
- package/lib/components/icon/style/index.js +2 -0
- package/lib/components/icon/style/index.js.map +1 -0
- package/lib/components/index.d.ts +6 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/result/index.d.ts +28 -0
- package/lib/components/result/index.js +2 -0
- package/lib/components/result/index.js.map +1 -0
- package/lib/components/result/result.vue.d.ts +30 -0
- package/lib/components/result/result.vue.js +2 -0
- package/lib/components/result/result.vue.js.map +1 -0
- package/lib/components/result/result.vue2.js +2 -0
- package/lib/components/result/result.vue2.js.map +1 -0
- package/lib/components/result/style/css.d.ts +0 -0
- package/lib/components/result/style/css.js +2 -0
- package/lib/components/result/style/css.js.map +1 -0
- package/lib/components/result/style/index.d.ts +0 -0
- package/lib/components/result/style/index.js +2 -0
- package/lib/components/result/style/index.js.map +1 -0
- package/lib/components/types.d.ts +1 -0
- package/lib/components/types.js +2 -0
- package/lib/components/types.js.map +1 -0
- package/lib/constants/aria.d.ts +17 -0
- package/lib/constants/aria.js +2 -0
- package/lib/constants/aria.js.map +1 -0
- package/lib/constants/date.d.ts +3 -0
- package/lib/constants/date.js +2 -0
- package/lib/constants/date.js.map +1 -0
- package/lib/constants/event.d.ts +3 -0
- package/lib/constants/event.js +2 -0
- package/lib/constants/event.js.map +1 -0
- package/lib/constants/index.d.ts +5 -0
- package/lib/constants/index.js +2 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/key.d.ts +1 -0
- package/lib/constants/key.js +2 -0
- package/lib/constants/key.js.map +1 -0
- package/lib/constants/size.d.ts +7 -0
- package/lib/constants/size.js +2 -0
- package/lib/constants/size.js.map +1 -0
- package/lib/defaults.d.ts +5 -0
- package/lib/defaults.js +2 -0
- package/lib/defaults.js.map +1 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -0
- package/lib/hooks/use-namespace/index.d.ts +21 -0
- package/lib/hooks/use-namespace/index.js +2 -0
- package/lib/hooks/use-namespace/index.js.map +1 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/make-installer.d.ts +5 -0
- package/lib/make-installer.js +2 -0
- package/lib/make-installer.js.map +1 -0
- package/lib/package.json.js +2 -0
- package/lib/package.json.js.map +1 -0
- package/lib/theme-style/src/avatar.scss.js +2 -0
- package/lib/theme-style/src/avatar.scss.js.map +1 -0
- package/lib/theme-style/src/back-top.scss.js +2 -0
- package/lib/theme-style/src/back-top.scss.js.map +1 -0
- package/lib/theme-style/src/base.scss.js +2 -0
- package/lib/theme-style/src/base.scss.js.map +1 -0
- package/lib/theme-style/src/divider.scss.js +2 -0
- package/lib/theme-style/src/divider.scss.js.map +1 -0
- package/lib/theme-style/src/empty.scss.js +2 -0
- package/lib/theme-style/src/empty.scss.js.map +1 -0
- package/lib/theme-style/src/icon.scss.js +2 -0
- package/lib/theme-style/src/icon.scss.js.map +1 -0
- package/lib/theme-style/src/result.scss.js +2 -0
- package/lib/theme-style/src/result.scss.js.map +1 -0
- package/lib/utils/error.d.ts +3 -0
- package/lib/utils/error.js +2 -0
- package/lib/utils/error.js.map +1 -0
- package/lib/utils/helper.d.ts +1 -0
- package/lib/utils/helper.js +2 -0
- package/lib/utils/helper.js.map +1 -0
- package/lib/utils/index.d.ts +3 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/vue/index.d.ts +2 -0
- package/lib/utils/vue/index.js +2 -0
- package/lib/utils/vue/index.js.map +1 -0
- package/lib/utils/vue/install.d.ts +6 -0
- package/lib/utils/vue/install.js +2 -0
- package/lib/utils/vue/install.js.map +1 -0
- package/lib/utils/vue/typescript.d.ts +5 -0
- package/lib/utils/vue/typescript.js +2 -0
- package/lib/utils/vue/typescript.js.map +1 -0
- package/package.json +50 -44
- package/theme-style/base.css +1 -0
- package/theme-style/dark/css-vars.css +1 -0
- package/theme-style/index.css +1 -0
- package/{src/web/avatar/index.scss → theme-style/src/avatar.scss} +7 -4
- package/{src/web/back-top/index.scss → theme-style/src/back-top.scss} +3 -6
- package/theme-style/src/base.scss +2 -0
- package/theme-style/src/color/index.scss +17 -0
- package/theme-style/src/common/transition.scss +128 -0
- package/theme-style/src/common/var.scss +841 -0
- package/theme-style/src/dark/css-vars.scss +41 -0
- package/theme-style/src/dark/var.scss +221 -0
- package/{src/web/divider/index.scss → theme-style/src/divider.scss} +4 -1
- package/{src/web/empty/index.scss → theme-style/src/empty.scss} +3 -10
- package/{src/web/full-screen/index.scss → theme-style/src/full-screen.scss} +3 -0
- package/{src/common/icon/index.scss → theme-style/src/icon.scss} +2 -1
- package/{src/web/image/index.scss → theme-style/src/image.scss} +3 -0
- package/theme-style/src/index.scss +7 -0
- package/{src/web/input/index.scss → theme-style/src/input.scss} +3 -0
- package/theme-style/src/mixins/_var.scss +91 -0
- package/theme-style/src/mixins/config.scss +5 -0
- package/theme-style/src/mixins/function.scss +86 -0
- package/theme-style/src/mixins/mixins.scss +258 -0
- package/{src/web/result/index.scss → theme-style/src/result.scss} +3 -9
- package/theme-style/src/var.scss +73 -0
- package/theme-style/vft-avatar.css +1 -0
- package/theme-style/vft-back-top.css +1 -0
- package/theme-style/vft-divider.css +1 -0
- package/theme-style/vft-empty.css +1 -0
- package/theme-style/vft-full-screen.css +1 -0
- package/theme-style/vft-icon.css +1 -0
- package/theme-style/vft-image.css +1 -0
- package/theme-style/vft-input.css +1 -0
- package/theme-style/vft-result.css +1 -0
- package/theme-style/vft-var.css +1 -0
- package/theme-style/vft-virtual-list.css +1 -0
- package/src/app/index.ts +0 -3
- package/src/app/page-loading/assets/spin.gif +0 -0
- package/src/app/page-loading/index.less +0 -10
- package/src/app/page-loading/index.ts +0 -3
- package/src/app/page-loading/index.vue +0 -38
- package/src/app/table/assets/sort_triangle.png +0 -0
- package/src/app/table/demos/basic.vue +0 -117
- package/src/app/table/demos/complex.vue +0 -2543
- package/src/app/table/demos/index.vue +0 -453
- package/src/app/table/demos/rightAngle.png +0 -0
- package/src/app/table/header.vue +0 -203
- package/src/app/table/index.less +0 -119
- package/src/app/table/index.ts +0 -5
- package/src/app/table/index.vue +0 -478
- package/src/app/table/md/api.md +0 -23
- package/src/app/table/md/demo.md +0 -3
- package/src/app/table/types.ts +0 -45
- package/src/common/badge/index.scss +0 -78
- package/src/common/badge/index.ts +0 -4
- package/src/common/badge/index.vue +0 -111
- package/src/common/badge/types.ts +0 -1
- package/src/common/clamp/clamp-toggle.vue +0 -91
- package/src/common/clamp/index.ts +0 -4
- package/src/common/clamp/index.vue +0 -247
- package/src/common/code/index.less +0 -321
- package/src/common/code/index.ts +0 -3
- package/src/common/code/index.vue +0 -60
- package/src/common/config-provider/index.ts +0 -4
- package/src/common/config-provider/index.vue +0 -94
- package/src/common/config-provider/types.ts +0 -29
- package/src/common/icon/iconfont/iconfont.css +0 -334
- package/src/common/icon/index.ts +0 -4
- package/src/common/icon/index.vue +0 -74
- package/src/common/icon/types.ts +0 -16
- package/src/common/index.ts +0 -6
- package/src/common/message/index.ts +0 -5
- package/src/common/message/instance.ts +0 -29
- package/src/common/message/message.scss +0 -108
- package/src/common/message/message.ts +0 -80
- package/src/common/message/message.vue +0 -162
- package/src/common/message/method.ts +0 -172
- package/src/common/overlay/index.scss +0 -14
- package/src/common/overlay/index.ts +0 -3
- package/src/common/overlay/index.vue +0 -117
- package/src/constants/comp.ts +0 -1
- package/src/constants/index.ts +0 -1
- package/src/index.ts +0 -3
- package/src/page/index.ts +0 -1
- package/src/page/page-wrapper/index.scss +0 -31
- package/src/page/page-wrapper/index.ts +0 -5
- package/src/page/page-wrapper/index.vue +0 -31
- package/src/styles/vars.scss +0 -500
- package/src/use/index.ts +0 -14
- package/src/use/onPopupReopen.ts +0 -15
- package/src/use/use-delayed-toggle/index.ts +0 -30
- package/src/use/use-floating/index.ts +0 -121
- package/src/use/use-forward-ref.ts +0 -35
- package/src/use/use-global-config/index.ts +0 -81
- package/src/use/use-id/index.ts +0 -43
- package/src/use/use-model-toggle/index.ts +0 -151
- package/src/use/use-namespace/index.ts +0 -91
- package/src/use/use-ordered-children/index.ts +0 -43
- package/src/use/use-popper-container/index.ts +0 -43
- package/src/use/use-timeout/index.ts +0 -18
- package/src/use/use-z-index/index.ts +0 -20
- package/src/use/useGlobalZIndex.ts +0 -24
- package/src/use/useLazyRender.ts +0 -17
- package/src/use/useLockScroll.ts +0 -66
- package/src/utils/aria.ts +0 -126
- package/src/utils/arrays.ts +0 -13
- package/src/utils/error.ts +0 -23
- package/src/utils/event.ts +0 -15
- package/src/utils/helper.ts +0 -7
- package/src/utils/index.ts +0 -8
- package/src/utils/interceptor.ts +0 -39
- package/src/utils/mount-component.ts +0 -65
- package/src/utils/popper.ts +0 -6
- package/src/utils/rand.ts +0 -12
- package/src/utils/scroll.ts +0 -101
- package/src/utils/vnode.ts +0 -169
- package/src/web/avatar/index.ts +0 -3
- package/src/web/avatar/index.vue +0 -83
- package/src/web/back-top/index.ts +0 -3
- package/src/web/back-top/index.vue +0 -72
- package/src/web/back-top/types.ts +0 -14
- package/src/web/back-top/use-back-top.ts +0 -65
- package/src/web/cascader/index.scss +0 -214
- package/src/web/cascader/index.ts +0 -5
- package/src/web/cascader/index.vue +0 -767
- package/src/web/cascader-panel/config.ts +0 -44
- package/src/web/cascader-panel/index.scss +0 -134
- package/src/web/cascader-panel/index.ts +0 -5
- package/src/web/cascader-panel/index.vue +0 -319
- package/src/web/cascader-panel/menu.vue +0 -135
- package/src/web/cascader-panel/node-content.ts +0 -23
- package/src/web/cascader-panel/node.ts +0 -218
- package/src/web/cascader-panel/node.vue +0 -197
- package/src/web/cascader-panel/store.ts +0 -83
- package/src/web/cascader-panel/types.ts +0 -56
- package/src/web/cascader-panel/utils.ts +0 -40
- package/src/web/cascader-select/README.md +0 -31
- package/src/web/cascader-select/index.scss +0 -54
- package/src/web/cascader-select/index.ts +0 -5
- package/src/web/cascader-select/index.vue +0 -132
- package/src/web/cascader-select/types.ts +0 -9
- package/src/web/context-menu/createContextMenu.ts +0 -72
- package/src/web/context-menu/index.ts +0 -4
- package/src/web/context-menu/index.vue +0 -89
- package/src/web/context-menu/types.ts +0 -27
- package/src/web/context-menu/useContextMenu.ts +0 -14
- package/src/web/descriptions/description-item.vue +0 -34
- package/src/web/descriptions/description.vue +0 -124
- package/src/web/descriptions/descriptions-cell.ts +0 -95
- package/src/web/descriptions/descriptions-item.scss +0 -68
- package/src/web/descriptions/descriptions-row.vue +0 -49
- package/src/web/descriptions/descriptions.scss +0 -153
- package/src/web/descriptions/descriptions.type.ts +0 -19
- package/src/web/descriptions/index.ts +0 -4
- package/src/web/descriptions/token.ts +0 -4
- package/src/web/divider/index.ts +0 -5
- package/src/web/divider/index.vue +0 -60
- package/src/web/divider/types.ts +0 -2
- package/src/web/empty/assets/no-collect.png +0 -0
- package/src/web/empty/assets/no-data.png +0 -0
- package/src/web/empty/assets/no-filter.png +0 -0
- package/src/web/empty/assets/no-page-data.png +0 -0
- package/src/web/empty/assets/no-search.png +0 -0
- package/src/web/empty/constants.ts +0 -12
- package/src/web/empty/index.ts +0 -5
- package/src/web/empty/index.vue +0 -96
- package/src/web/exception/exception.png +0 -0
- package/src/web/exception/index.ts +0 -3
- package/src/web/exception/index.vue +0 -44
- package/src/web/filter/README.md +0 -25
- package/src/web/filter/index.scss +0 -14
- package/src/web/filter/index.ts +0 -5
- package/src/web/filter/index.vue +0 -60
- package/src/web/filter/type.ts +0 -13
- package/src/web/focus-trap/index.ts +0 -6
- package/src/web/focus-trap/index.vue +0 -328
- package/src/web/focus-trap/tokens.ts +0 -23
- package/src/web/focus-trap/utils.ts +0 -178
- package/src/web/full-screen/index.ts +0 -3
- package/src/web/full-screen/index.vue +0 -24
- package/src/web/icon-text/index.ts +0 -3
- package/src/web/icon-text/index.vue +0 -77
- package/src/web/image/index.ts +0 -5
- package/src/web/image/index.vue +0 -251
- package/src/web/image/types.ts +0 -1
- package/src/web/index.ts +0 -33
- package/src/web/input/index.ts +0 -3
- package/src/web/input/index.vue +0 -533
- package/src/web/input/utils.ts +0 -102
- package/src/web/layouts/blank.vue +0 -4
- package/src/web/layouts/footer/index.scss +0 -31
- package/src/web/layouts/footer/index.ts +0 -3
- package/src/web/layouts/footer/index.vue +0 -38
- package/src/web/layouts/header/index.scss +0 -35
- package/src/web/layouts/header/index.ts +0 -3
- package/src/web/layouts/header/index.vue +0 -47
- package/src/web/layouts/iframe/index.scss +0 -18
- package/src/web/layouts/iframe/index.vue +0 -36
- package/src/web/layouts/iframe/page.vue +0 -30
- package/src/web/layouts/index.ts +0 -8
- package/src/web/layouts/router-view-content/index.vue +0 -70
- package/src/web/link/index.scss +0 -95
- package/src/web/link/index.ts +0 -3
- package/src/web/link/index.vue +0 -68
- package/src/web/loading/directive.ts +0 -104
- package/src/web/loading/index.ts +0 -6
- package/src/web/loading/loading.scss +0 -108
- package/src/web/loading/loading.ts +0 -156
- package/src/web/loading/service.ts +0 -145
- package/src/web/loading/types.ts +0 -29
- package/src/web/logo/index.scss +0 -31
- package/src/web/logo/index.ts +0 -5
- package/src/web/logo/index.vue +0 -45
- package/src/web/logo/types.ts +0 -6
- package/src/web/menu/index.scss +0 -336
- package/src/web/menu/index.ts +0 -8
- package/src/web/menu/menu-collapse-transition.vue +0 -62
- package/src/web/menu/menu-item-group.vue +0 -27
- package/src/web/menu/menu-item.vue +0 -126
- package/src/web/menu/menu.vue +0 -459
- package/src/web/menu/sub-menu.vue +0 -440
- package/src/web/menu/types.ts +0 -66
- package/src/web/menu/use-menu-css-var.ts +0 -11
- package/src/web/menu/use-menu.ts +0 -60
- package/src/web/menu/utils/menu-bar.ts +0 -19
- package/src/web/menu/utils/menu-item.ts +0 -55
- package/src/web/menu/utils/submenu.ts +0 -66
- package/src/web/multiple-select-flat/index.ts +0 -5
- package/src/web/multiple-select-flat/index.vue +0 -53
- package/src/web/multiple-select-flat/types.ts +0 -5
- package/src/web/multiple-tabs/index.scss +0 -16
- package/src/web/multiple-tabs/index.ts +0 -5
- package/src/web/multiple-tabs/index.vue +0 -193
- package/src/web/multiple-tabs/tab-content.vue +0 -40
- package/src/web/multiple-tabs/types.ts +0 -3
- package/src/web/multiple-tabs/use/index.ts +0 -2
- package/src/web/multiple-tabs/use/use-multiple-tabs.ts +0 -86
- package/src/web/multiple-tabs/use/use-tab-dropdown.ts +0 -101
- package/src/web/nodata/README.md +0 -42
- package/src/web/nodata/fail.vue +0 -13
- package/src/web/nodata/img/100.png +0 -0
- package/src/web/nodata/img/101.png +0 -0
- package/src/web/nodata/img/102.png +0 -0
- package/src/web/nodata/img/103.png +0 -0
- package/src/web/nodata/img/104.png +0 -0
- package/src/web/nodata/img/105.png +0 -0
- package/src/web/nodata/img/106.png +0 -0
- package/src/web/nodata/img/107.png +0 -0
- package/src/web/nodata/img/200.png +0 -0
- package/src/web/nodata/img/201.png +0 -0
- package/src/web/nodata/img/202.png +0 -0
- package/src/web/nodata/img/203.png +0 -0
- package/src/web/nodata/index.scss +0 -37
- package/src/web/nodata/index.ts +0 -6
- package/src/web/nodata/index.vue +0 -46
- package/src/web/nodata/types.ts +0 -17
- package/src/web/only-child/index.tsx +0 -69
- package/src/web/pagination/components/jumper.vue +0 -49
- package/src/web/pagination/components/next.vue +0 -40
- package/src/web/pagination/components/pager.vue +0 -215
- package/src/web/pagination/components/prev.vue +0 -35
- package/src/web/pagination/components/sizes.vue +0 -76
- package/src/web/pagination/components/total.vue +0 -21
- package/src/web/pagination/index.scss +0 -231
- package/src/web/pagination/index.ts +0 -5
- package/src/web/pagination/pagination.ts +0 -363
- package/src/web/pagination/usePagination.ts +0 -13
- package/src/web/popover/directive.ts +0 -21
- package/src/web/popover/index.scss +0 -58
- package/src/web/popover/index.ts +0 -3
- package/src/web/popover/index.vue +0 -161
- package/src/web/popover/types.ts +0 -26
- package/src/web/popper/arrow.vue +0 -45
- package/src/web/popper/content.vue +0 -311
- package/src/web/popper/index.scss +0 -108
- package/src/web/popper/index.ts +0 -11
- package/src/web/popper/popper.vue +0 -57
- package/src/web/popper/tokens.ts +0 -28
- package/src/web/popper/trigger.vue +0 -166
- package/src/web/popper/types.ts +0 -49
- package/src/web/popper/utils.ts +0 -81
- package/src/web/qrcode/drawCanvas.ts +0 -32
- package/src/web/qrcode/drawLogo.ts +0 -82
- package/src/web/qrcode/index.ts +0 -5
- package/src/web/qrcode/index.vue +0 -107
- package/src/web/qrcode/qrcodePlus.ts +0 -4
- package/src/web/qrcode/toCanvas.ts +0 -11
- package/src/web/qrcode/types.ts +0 -38
- package/src/web/result/index.ts +0 -3
- package/src/web/result/index.vue +0 -63
- package/src/web/scrollbar/bar.vue +0 -48
- package/src/web/scrollbar/index.scss +0 -91
- package/src/web/scrollbar/index.ts +0 -5
- package/src/web/scrollbar/index.vue +0 -236
- package/src/web/scrollbar/thumb.vue +0 -183
- package/src/web/scrollbar/tokens.ts +0 -10
- package/src/web/scrollbar/types.ts +0 -7
- package/src/web/scrollbar/util.ts +0 -38
- package/src/web/select/constants.ts +0 -13
- package/src/web/select/index.ts +0 -11
- package/src/web/select/index.vue +0 -555
- package/src/web/select/option-group.scss +0 -49
- package/src/web/select/option-group.vue +0 -97
- package/src/web/select/option-item.scss +0 -66
- package/src/web/select/option.scss +0 -32
- package/src/web/select/option.vue +0 -110
- package/src/web/select/select-dropdown.scss +0 -86
- package/src/web/select/select-dropdown.vue +0 -51
- package/src/web/select/select.scss +0 -213
- package/src/web/select/token.ts +0 -56
- package/src/web/select/useOption.ts +0 -146
- package/src/web/select/useSelect.ts +0 -942
- package/src/web/select/utils.ts +0 -5
- package/src/web/side-menu/index.scss +0 -66
- package/src/web/side-menu/index.ts +0 -4
- package/src/web/side-menu/index.vue +0 -228
- package/src/web/side-menu/types.ts +0 -20
- package/src/web/single-select/index.scss +0 -60
- package/src/web/single-select/index.ts +0 -5
- package/src/web/single-select/index.vue +0 -70
- package/src/web/single-select/select@2x.png +0 -0
- package/src/web/single-select/types.ts +0 -5
- package/src/web/svg/index.ts +0 -3
- package/src/web/svg/index.vue +0 -22
- package/src/web/tabs/index.scss +0 -579
- package/src/web/tabs/index.ts +0 -6
- package/src/web/tabs/index.vue +0 -236
- package/src/web/tabs/tab-bar.vue +0 -90
- package/src/web/tabs/tab-nav.vue +0 -403
- package/src/web/tabs/tab-pane.vue +0 -90
- package/src/web/tabs/types.ts +0 -66
- package/src/web/tag/index.scss +0 -182
- package/src/web/tag/index.ts +0 -5
- package/src/web/tag/index.vue +0 -78
- package/src/web/tag/types.ts +0 -2
- package/src/web/tooltip/content.vue +0 -239
- package/src/web/tooltip/index.ts +0 -4
- package/src/web/tooltip/tokens.ts +0 -21
- package/src/web/tooltip/tooltip.vue +0 -270
- package/src/web/tooltip/trigger.vue +0 -119
- package/src/web/tooltip/types.ts +0 -56
- package/src/web/tooltip/utils.ts +0 -20
- package/src/web/transition/collapse-transition.vue +0 -73
- package/src/web/transition/index.ts +0 -5
- package/tsconfig.json +0 -8
- package/types/index.d.ts +0 -286
- /package/{types/component.ts → es/components/types.d.ts} +0 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@charset "UTF-8";:root{--vft-color-white:#fff;--vft-color-black:#000;--vft-theme-color:#fff;--vft-theme-color-reverse:#000;--vft-font-size-extra-large:20px;--vft-font-size-large:18px;--vft-font-size-medium:16px;--vft-font-size-base:14px;--vft-font-size-small:13px;--vft-font-size-extra-small:12px;--vft-font-family:'Helvetica Neue',Helvetica,'PingFang SC','Hiragino Sans GB','Microsoft YaHei','微软雅黑',Arial,sans-serif;--vft-font-weight-primary:500;--vft-font-line-height-primary:24px;--vft-index-normal:1;--vft-index-top:1000;--vft-index-popper:2000;--vft-border-radius-base:4px;--vft-border-radius-small:2px;--vft-border-radius-round:20px;--vft-border-radius-circle:100%;--vft-transition-duration:0.3s;--vft-transition-duration-fast:0.2s;--vft-transition-function-ease-in-out-bezier:cubic-bezier(0.645, 0.045, 0.355, 1);--vft-transition-function-fast-bezier:cubic-bezier(0.23, 1, 0.32, 1);--vft-transition-all:all var(--vft-transition-duration) var(--vft-transition-function-ease-in-out-bezier);--vft-transition-fade:opacity var(--vft-transition-duration) var(--vft-transition-function-fast-bezier);--vft-transition-md-fade:transform var(--vft-transition-duration) var(--vft-transition-function-fast-bezier),opacity var(--vft-transition-duration) var(--vft-transition-function-fast-bezier);--vft-transition-fade-linear:opacity var(--vft-transition-duration-fast) linear;--vft-transition-border:border-color var(--vft-transition-duration-fast) var(--vft-transition-function-ease-in-out-bezier);--vft-transition-box-shadow:box-shadow var(--vft-transition-duration-fast) var(--vft-transition-function-ease-in-out-bezier);--vft-transition-color:color var(--vft-transition-duration-fast) var(--vft-transition-function-ease-in-out-bezier)}:root{color-scheme:light;--vft-primary-color:#2196f3;--vft-primary-color-light-3:#64b6f7;--vft-primary-color-light-5:#90cbf9;--vft-primary-color-light-7:#bce0fb;--vft-primary-color-light-8:#d3eafd;--vft-primary-color-light-9:#e9f5fe;--vft-primary-color-dark-2:#1a78c2;--vft-success-color:#3eaf7c;--vft-success-color-light-3:#78c7a3;--vft-success-color-light-5:#9fd7be;--vft-success-color-light-7:#c5e7d8;--vft-success-color-light-8:#d8efe5;--vft-success-color-light-9:#ecf7f2;--vft-success-color-dark-2:#328c63;--vft-warning-color:#fb9b5f;--vft-warning-color-light-3:#fcb98f;--vft-warning-color-light-5:#fdcdaf;--vft-warning-color-light-7:#fee1cf;--vft-warning-color-light-8:#feebdf;--vft-warning-color-light-9:#fff5ef;--vft-warning-color-dark-2:#c97c4c;--vft-danger-color:#f26d6d;--vft-danger-color-light-3:#f69999;--vft-danger-color-light-5:#f9b6b6;--vft-danger-color-light-7:#fbd3d3;--vft-danger-color-light-8:#fce2e2;--vft-danger-color-light-9:#fef0f0;--vft-danger-color-dark-2:#c25757;--vft-error-color:#f26d6d;--vft-error-color-light-3:#f69999;--vft-error-color-light-5:#f9b6b6;--vft-error-color-light-7:#fbd3d3;--vft-error-color-light-8:#fce2e2;--vft-error-color-light-9:#fef0f0;--vft-error-color-dark-2:#c25757;--vft-info-color:#909399;--vft-info-color-light-3:#b1b3b8;--vft-info-color-light-5:#c8c9cc;--vft-info-color-light-7:#dedfe0;--vft-info-color-light-8:#e9e9eb;--vft-info-color-light-9:#f4f4f5;--vft-info-color-dark-2:#73767a;--vft-bg-color:#fff;--vft-bg-color-page:#f2f3f5;--vft-bg-color-overlay:#fff;--vft-text-primary-color:#303133;--vft-text-regular-color:#606266;--vft-text-secondary-color:#909399;--vft-text-placeholder-color:#a8abb2;--vft-text-disabled-color:#c0c4cc;--vft-border-color:#dcdfe6;--vft-border-color-light:#e4e7ed;--vft-border-color-lighter:#ebeef5;--vft-border-color-extra-light:#f2f6fc;--vft-border-color-dark:#d4d7de;--vft-border-color-darker:#cdd0d6;--vft-fill-color:#f0f2f5;--vft-fill-color-light:#f5f7fa;--vft-fill-color-lighter:#fafafa;--vft-fill-color-extra-light:#fafcff;--vft-fill-color-dark:#ebedf0;--vft-fill-color-darker:#e6e8eb;--vft-fill-color-blank:#fff;--vft-box-shadow:0px 12px 32px 4px rgba(0, 0, 0, 0.04),0px 8px 20px rgba(0, 0, 0, 0.08);--vft-box-shadow-light:0px 0px 12px rgba(0, 0, 0, 0.12);--vft-box-shadow-lighter:0px 0px 6px rgba(0, 0, 0, 0.12);--vft-box-shadow-dark:0px 16px 48px 16px rgba(0, 0, 0, 0.08),0px 12px 32px rgba(0, 0, 0, 0.12),0px 8px 16px -8px rgba(0, 0, 0, 0.16);--vft-disabled-bg-color:var(--vft-fill-color-light);--vft-disabled-text-color:var(--vft-text-color-placeholder);--vft-disabled-border-color:var(--vft-border-color-light);--vft-overlay-color:rgba(0, 0, 0, 0.8);--vft-overlay-color-light:rgba(0, 0, 0, 0.7);--vft-overlay-color-lighter:rgba(0, 0, 0, 0.5);--vft-mask-color:rgba(255, 255, 255, 0.9);--vft-mask-color-extra-light:rgba(255, 255, 255, 0.3);--vft-border-width:1px;--vft-border-style:solid;--vft-border-color-hover:var(--vft-text-disabled-color);--vft-border:var(--vft-border-width) var(--vft-border-style) var(--vft-border-color);--vft-svg-monochrome-grey:var(--vft-border-color)}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--vft-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.vft-fade-in-linear-enter-active,.vft-fade-in-linear-leave-active{transition:var(--vft-transition-fade-linear)}.vft-fade-in-linear-enter-from,.vft-fade-in-linear-leave-to{opacity:0}.vft-fade-in-enter-active,.vft-fade-in-leave-active{transition:all var(--vft-transition-duration) cubic-bezier(.55,0,.1,1)}.vft-fade-in-enter-from,.vft-fade-in-leave-active{opacity:0}.vft-zoom-in-center-enter-active,.vft-zoom-in-center-leave-active{transition:all var(--vft-transition-duration) cubic-bezier(.55,0,.1,1)}.vft-zoom-in-center-enter-from,.vft-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.vft-zoom-in-top-enter-active,.vft-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:var(--vft-transition-md-fade);transform-origin:center top}.vft-zoom-in-top-enter-active[data-popper-placement^=top],.vft-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.vft-zoom-in-top-enter-from,.vft-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.vft-zoom-in-bottom-enter-active,.vft-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transition:var(--vft-transition-md-fade);transform-origin:center bottom}.vft-zoom-in-bottom-enter-from,.vft-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.vft-zoom-in-left-enter-active,.vft-zoom-in-left-leave-active{opacity:1;transform:scale(1,1);transition:var(--vft-transition-md-fade);transform-origin:top left}.vft-zoom-in-left-enter-from,.vft-zoom-in-left-leave-active{opacity:0;transform:scale(.45,.45)}.collapse-transition{transition:var(--vft-transition-duration) height ease-in-out,var(--vft-transition-duration) padding-top ease-in-out,var(--vft-transition-duration) padding-bottom ease-in-out}.vft-collapse-transition-enter-active,.vft-collapse-transition-leave-active{transition:var(--vft-transition-duration) max-height ease-in-out,var(--vft-transition-duration) padding-top ease-in-out,var(--vft-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--vft-transition-duration) width ease-in-out,var(--vft-transition-duration) padding-left ease-in-out,var(--vft-transition-duration) padding-right ease-in-out}.vft-list-enter-active,.vft-list-leave-active{transition:all 1s}.vft-list-enter-from,.vft-list-leave-to{opacity:0;transform:translateY(-30px)}.vft-list-leave-active{position:absolute!important}.vft-opacity-transition{transition:opacity var(--vft-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--vft-divider-margin-y:24px;--vft-divider-margin-x:8px;--vft-divider-border-color:#dcdfe6;--vft-divider-border-style:solid}.vft-divider{position:relative}.vft-divider--horizontal{display:block;height:1px;width:100%;margin:var(--vft-divider-margin-y) 0;border-top:1px var(--vft-divider-border-color) var(--vft-divider-border-style)}.vft-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 var(--vft-divider-margin-x);vertical-align:middle;position:relative;border-left:1px var(--vft-divider-border-color) var(--vft-divider-border-style)}.vft-divider__text{position:absolute;background-color:var(--vft-bg-color);padding:0 20px;font-weight:500;color:var(--vft-text-primary-color);font-size:14px}.vft-divider__text.is-left{left:20px;transform:translateY(-50%)}.vft-divider__text.is-center{left:50%;transform:translateX(-50%) translateY(-50%)}.vft-divider__text.is-right{right:20px;transform:translateY(-50%)}:root{--vft-avatar-text-color:var(--vft-color-white);--vft-avatar-bg-color:var(--vft-text-disabled-color);--vft-avatar-text-size:14px;--vft-avatar-icon-size:18px;--vft-avatar-border-radius:var(--vft-border-radius-base)}.vft-avatar{--vft-avatar-size-large:56px;--vft-avatar-size:40px;--vft-avatar-size-small:24px;--vft-avatar-size:40px;display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;text-align:center;overflow:hidden;color:var(--vft-avatar-text-color);background:var(--vft-avatar-bg-color);width:var(--vft-avatar-size);height:var(--vft-avatar-size);font-size:var(--vft-avatar-text-size)}.vft-avatar>img{display:block;height:100%}.vft-avatar--circle{border-radius:50%}.vft-avatar--square{border-radius:var(--vft-avatar-border-radius)}.vft-avatar--icon{font-size:var(--vft-avatar-icon-size)}.vft-avatar--small{--vft-avatar-size:24px}.vft-avatar--large{--vft-avatar-size:56px}.vft-back-top{--vft-backtop-bg-color:var(--vft-bg-color-overlay);--vft-backtop-text-color:var(--vft-primary-color);--vft-backtop-hover-bg-color:var(--vft-border-color-extra-light);position:fixed;background-color:var(--vft-backtop-bg-color);width:40px;height:40px;border-radius:50%;color:var(--vft-backtop-text-color);display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:var(--vft-box-shadow-lighter);cursor:pointer;z-index:5}.vft-back-top:hover{background-color:var(--vft-backtop-hover-bg-color)}.vft-back-top__icon{font-size:20px}:root{--vft-empty-img-size:160px;--vft-empty-img-size-small:80px;--vft-empty-img-size-large:240px;--vft-empty-text-color:white;--vft-empty-desc-top:10px;--vft-empty-desc-color:var(--vft-text-placeholder-color);--vft-empty-desc-size:14px}.vft-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;padding:10px 0}.vft-empty__image{width:var(--vft-empty-img-size);height:var(--vft-empty-img-size)}.vft-empty__image img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.vft-empty--large .vft-empty__image{width:var(--vft-empty-img-size-large);height:var(--vft-empty-img-size-large)}.vft-empty--small .vft-empty__image{width:var(--vft-empty-img-size-small);height:var(--vft-empty-img-size-small)}.vft-empty__desc{margin-top:var(--vft-empty-desc-top);color:var(--vft-empty-desc-color);font-size:var(--vft-empty-desc-size)}.vft-empty__bottom{margin-top:5px}:root{--vft-result-padding:40px 30px;--vft-result-icon-font-size:64px;--vft-result-title-font-size:20px;--vft-result-title-margin-top:20px;--vft-result-sub-title-margin-top:10px;--vft-result-extra-margin-top:30px}.vft-result{display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--vft-result-padding)}.vft-result__icon svg{width:var(--vft-result-icon-font-size);height:var(--vft-result-icon-font-size)}.vft-result__icon [class~=vft-icon]{font-size:var(--vft-result-icon-font-size)}.vft-result__title{margin-top:var(--vft-result-title-margin-top)}.vft-result__title p{margin:0;font-size:var(--vft-result-title-font-size);color:var(--vft-text-color-primary);line-height:1.3}.vft-result__sub-title{margin-top:var(--vft-result-sub-title-margin-top)}.vft-result__sub-title p{margin:0;font-size:var(--vft-font-size-base);color:var(--vft-text-color-regular);line-height:1.3}.vft-result__extra{margin-top:var(--vft-result-extra-margin-top)}.vft-result .icon-primary{--vft-result-color:var(--vft-color-primary);color:var(--vft-result-color)}.vft-result .icon-success{--vft-result-color:var(--vft-color-success);color:var(--vft-result-color)}.vft-result .icon-warning{--vft-result-color:var(--vft-color-warning);color:var(--vft-result-color)}.vft-result .icon-danger{--vft-result-color:var(--vft-color-danger);color:var(--vft-result-color)}.vft-result .icon-error{--vft-result-color:var(--vft-color-error);color:var(--vft-result-color)}.vft-result .icon-info{--vft-result-color:var(--vft-color-info);color:var(--vft-result-color)}
|
package/es/component.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VftDivider as t } from "./components/divider/index.mjs";
|
|
2
|
+
import { VftIcon as o } from "./components/icon/index.mjs";
|
|
3
|
+
import { VftAvatar as r } from "./components/avatar/index.mjs";
|
|
4
|
+
import { VftEmpty as m } from "./components/empty/index.mjs";
|
|
5
|
+
import { VftResult as f } from "./components/result/index.mjs";
|
|
6
|
+
import { VftException as p } from "./components/exception/index.mjs";
|
|
7
|
+
const c = [
|
|
8
|
+
t,
|
|
9
|
+
o,
|
|
10
|
+
r,
|
|
11
|
+
m,
|
|
12
|
+
f,
|
|
13
|
+
p
|
|
14
|
+
];
|
|
15
|
+
export {
|
|
16
|
+
c as default
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component.mjs","sources":["../../../packages/vft/component.ts"],"sourcesContent":["import { VftDivider } from '@vft-ui/components/divider'\nimport { VftIcon } from '@vft-ui/components/icon'\nimport { VftAvatar } from '@vft-ui/components/avatar'\nimport { VftEmpty } from '@vft-ui/components/empty'\nimport { VftResult } from '@vft-ui/components/result'\nimport { VftException } from '@vft-ui/components/exception'\nimport type { Plugin } from 'vue'\n\nexport default [\n VftDivider,\n VftIcon,\n VftAvatar,\n VftEmpty,\n VftResult,\n VftException\n] as Plugin[]\n"],"names":["Components","VftDivider","VftIcon","VftAvatar","VftEmpty","VftResult","VftException"],"mappings":";;;;;;AAQA,MAAeA,IAAA;AAAA,EACbC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AACF;"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { type IconProps } from 'vft/es/components/icon';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: __PropType<number | "large" | "small" | "default" | undefined>;
|
|
6
|
+
required: false;
|
|
7
|
+
};
|
|
8
|
+
shape: {
|
|
9
|
+
type: __PropType<"circle" | "square" | undefined>;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
icon: {
|
|
13
|
+
type: __PropType<IconProps | undefined>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
src: {
|
|
17
|
+
type: __PropType<string | undefined>;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
alt: {
|
|
21
|
+
type: __PropType<string | undefined>;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
24
|
+
srcSet: {
|
|
25
|
+
type: __PropType<string | undefined>;
|
|
26
|
+
required: false;
|
|
27
|
+
};
|
|
28
|
+
fit: {
|
|
29
|
+
type: __PropType<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "error"[], "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
size: {
|
|
34
|
+
type: __PropType<number | "large" | "small" | "default" | undefined>;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
37
|
+
shape: {
|
|
38
|
+
type: __PropType<"circle" | "square" | undefined>;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
icon: {
|
|
42
|
+
type: __PropType<IconProps | undefined>;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
src: {
|
|
46
|
+
type: __PropType<string | undefined>;
|
|
47
|
+
required: false;
|
|
48
|
+
};
|
|
49
|
+
alt: {
|
|
50
|
+
type: __PropType<string | undefined>;
|
|
51
|
+
required: false;
|
|
52
|
+
};
|
|
53
|
+
srcSet: {
|
|
54
|
+
type: __PropType<string | undefined>;
|
|
55
|
+
required: false;
|
|
56
|
+
};
|
|
57
|
+
fit: {
|
|
58
|
+
type: __PropType<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
|
|
59
|
+
required: false;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
62
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}, {}>;
|
|
64
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineComponent as h, ref as z, computed as c, watch as v, openBlock as l, createElementBlock as n, normalizeClass as y, unref as a, normalizeStyle as i, createBlock as S, renderSlot as k } from "vue";
|
|
2
|
+
import { isString as B, isNumber as E, addUnit as b } from "@vft/utils";
|
|
3
|
+
import { VftIcon as C } from "../icon/index.mjs";
|
|
4
|
+
import { useNamespace as g } from "../../hooks/use-namespace/index.mjs";
|
|
5
|
+
const L = ["src", "alt", "srcset"], F = /* @__PURE__ */ h({
|
|
6
|
+
__name: "avatar",
|
|
7
|
+
props: {
|
|
8
|
+
size: { default: "" },
|
|
9
|
+
shape: { default: "circle" },
|
|
10
|
+
icon: null,
|
|
11
|
+
src: null,
|
|
12
|
+
alt: null,
|
|
13
|
+
srcSet: null,
|
|
14
|
+
fit: { default: "cover" }
|
|
15
|
+
},
|
|
16
|
+
emits: ["error"],
|
|
17
|
+
setup(e, { emit: o }) {
|
|
18
|
+
const s = g("avatar"), r = z(!1), u = c(() => {
|
|
19
|
+
const t = [s.b()];
|
|
20
|
+
return B(e.size) && t.push(s.m(e.size)), e.icon && t.push(s.m("icon")), e.shape && t.push(s.m(e.shape)), t;
|
|
21
|
+
}), f = c(() => E(e.size) ? s.cssVarBlock({
|
|
22
|
+
size: b(e.size) || ""
|
|
23
|
+
}) : void 0), m = c(() => ({
|
|
24
|
+
objectFit: e.fit
|
|
25
|
+
}));
|
|
26
|
+
v(
|
|
27
|
+
() => e.src,
|
|
28
|
+
() => r.value = !1
|
|
29
|
+
);
|
|
30
|
+
function d(t) {
|
|
31
|
+
r.value = !0, o("error", t);
|
|
32
|
+
}
|
|
33
|
+
return (t, N) => (l(), n("span", {
|
|
34
|
+
class: y(a(u)),
|
|
35
|
+
style: i(a(f))
|
|
36
|
+
}, [
|
|
37
|
+
(e.src || e.srcSet) && !r.value ? (l(), n("img", {
|
|
38
|
+
key: 0,
|
|
39
|
+
src: e.src,
|
|
40
|
+
alt: e.alt,
|
|
41
|
+
srcset: e.srcSet,
|
|
42
|
+
style: i(a(m)),
|
|
43
|
+
onError: d
|
|
44
|
+
}, null, 44, L)) : e.icon ? (l(), S(a(C), { key: 1 })) : k(t.$slots, "default", { key: 2 })
|
|
45
|
+
], 6));
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
F as default
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=avatar.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.vue2.mjs","sources":["../../../../../packages/components/avatar/avatar.vue"],"sourcesContent":["<template>\n <span :class=\"avatarClass\" :style=\"sizeStyle\">\n <img\n\t\t\t\tv-if=\"(src || srcSet) && !hasLoadError\"\n\t\t\t\t:src=\"src\"\n\t\t\t\t:alt=\"alt\"\n\t\t\t\t:srcset=\"srcSet\"\n\t\t\t\t:style=\"fitStyle\"\n\t\t\t\t@error=\"handleError\"\n\t\t/>\n <vft-icon v-else-if=\"icon\" />\n <slot v-else />\n </span>\n</template>\n\n<script lang=\"ts\" setup>\nimport { addUnit, isNumber, isString } from '@vft/utils';\nimport type { CSSProperties } from 'vue';\nimport { computed, ref, watch } from 'vue';\nimport VftIcon, { type IconProps } from '@vft-ui/components/icon'\nimport { useNamespace } from '@vft-ui/use';\n\ninterface Props {\n\tsize?: number | 'large' | 'default' | 'small'\n\tshape?: 'circle' | 'square'\n\ticon?: IconProps\n\tsrc?: string\n\talt?: string\n\tsrcSet?: string\n\tfit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'\n}\n\ndefineProps({\n \"size\": { default: '' },\n \"shape\": { default: 'circle' },\n \"icon\": null,\n \"src\": null,\n \"alt\": null,\n \"srcSet\": null,\n \"fit\": { default: 'cover' }\n})\n\nconst emit = defineEmits(['error']);\n\nconst ns = useNamespace('avatar');\n\nconst hasLoadError = ref(false);\n\nconst avatarClass = computed(() => {\n\tconst classList = [ns.b()];\n\tif (isString(__props.size)) classList.push(ns.m(__props.size));\n\tif (__props.icon) classList.push(ns.m('icon'));\n\tif (__props.shape) classList.push(ns.m(__props.shape));\n\treturn classList;\n});\n\nconst sizeStyle = computed(() => {\n\treturn isNumber(__props.size)\n\t\t? (ns.cssVarBlock({\n\t\t\tsize: addUnit(__props.size) || ''\n\t\t}) as CSSProperties)\n\t\t: undefined;\n});\n\nconst fitStyle = computed<CSSProperties>(() => ({\n\tobjectFit: __props.fit\n}));\n\n// need reset hasLoadError to false if src changed\nwatch(\n\t() => __props.src,\n\t() => (hasLoadError.value = false)\n);\n\nfunction handleError (e: Event) {\n\thasLoadError.value = true;\n\temit('error', e);\n}\n</script>\n\n"],"names":["ns","useNamespace","hasLoadError","ref","avatarClass","computed","classList","isString","__props","sizeStyle","isNumber","addUnit","fitStyle","watch","handleError","e","emit"],"mappings":";;;;;;;;;;;;;;;;;AA4CM,UAAAA,IAAKC,EAAa,QAAQ,GAE1BC,IAAeC,EAAI,EAAK,GAExBC,IAAcC,EAAS,MAAM;AAClC,YAAMC,IAAY,CAACN,EAAG,EAAG,CAAA;AACrB,aAAAO,EAASC,EAAQ,IAAI,KAAGF,EAAU,KAAKN,EAAG,EAAEQ,EAAQ,IAAI,CAAC,GACzDA,EAAQ,QAAMF,EAAU,KAAKN,EAAG,EAAE,MAAM,CAAC,GACzCQ,EAAQ,SAAOF,EAAU,KAAKN,EAAG,EAAEQ,EAAQ,KAAK,CAAC,GAC9CF;AAAA,IAAA,CACP,GAEKG,IAAYJ,EAAS,MACnBK,EAASF,EAAQ,IAAI,IACxBR,EAAG,YAAY;AAAA,MACjB,MAAMW,EAAQH,EAAQ,IAAI,KAAK;AAAA,IAAA,CAC/B,IACC,MACH,GAEKI,IAAWP,EAAwB,OAAO;AAAA,MAC/C,WAAWG,EAAQ;AAAA,IAClB,EAAA;AAGF,IAAAK;AAAA,MACC,MAAML,EAAQ;AAAA,MACd,MAAON,EAAa,QAAQ;AAAA,IAAA;AAG7B,aAASY,EAAaC,GAAU;AAC/B,MAAAb,EAAa,QAAQ,IACrBc,EAAK,SAASD,CAAC;AAAA,IAChB;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const VftAvatar: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
size: {
|
|
3
|
+
type: import("vue").PropType<number | "large" | "small" | "default" | undefined>;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
shape: {
|
|
7
|
+
type: import("vue").PropType<"circle" | "square" | undefined>;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
icon: {
|
|
11
|
+
type: import("vue").PropType<import("..").IconProps | undefined>;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
src: {
|
|
15
|
+
type: import("vue").PropType<string | undefined>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
alt: {
|
|
19
|
+
type: import("vue").PropType<string | undefined>;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
srcSet: {
|
|
23
|
+
type: import("vue").PropType<string | undefined>;
|
|
24
|
+
required: false;
|
|
25
|
+
};
|
|
26
|
+
fit: {
|
|
27
|
+
type: import("vue").PropType<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
|
|
28
|
+
required: false;
|
|
29
|
+
};
|
|
30
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "error"[], "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
size: {
|
|
32
|
+
type: import("vue").PropType<number | "large" | "small" | "default" | undefined>;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
shape: {
|
|
36
|
+
type: import("vue").PropType<"circle" | "square" | undefined>;
|
|
37
|
+
required: false;
|
|
38
|
+
};
|
|
39
|
+
icon: {
|
|
40
|
+
type: import("vue").PropType<import("..").IconProps | undefined>;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
src: {
|
|
44
|
+
type: import("vue").PropType<string | undefined>;
|
|
45
|
+
required: false;
|
|
46
|
+
};
|
|
47
|
+
alt: {
|
|
48
|
+
type: import("vue").PropType<string | undefined>;
|
|
49
|
+
required: false;
|
|
50
|
+
};
|
|
51
|
+
srcSet: {
|
|
52
|
+
type: import("vue").PropType<string | undefined>;
|
|
53
|
+
required: false;
|
|
54
|
+
};
|
|
55
|
+
fit: {
|
|
56
|
+
type: import("vue").PropType<"fill" | "contain" | "cover" | "none" | "scale-down" | undefined>;
|
|
57
|
+
required: false;
|
|
58
|
+
};
|
|
59
|
+
}>> & {
|
|
60
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}, {}>> & Record<string, any>;
|
|
62
|
+
export default VftAvatar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/avatar/index.ts"],"sourcesContent":["import { withInstall } from '@vft-ui/utils'\n\nimport Avatar from './avatar.vue'\n\nexport const VftAvatar = withInstall(Avatar)\nexport default VftAvatar\n\n"],"names":["VftAvatar","withInstall","Avatar"],"mappings":";;;AAIa,MAAAA,IAAYC,EAAYC,CAAM;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
import { type IconProps } from 'vft/es/components';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
visibilityHeight: {
|
|
5
|
+
type: __PropType<number | undefined>;
|
|
6
|
+
required: false;
|
|
7
|
+
};
|
|
8
|
+
target: {
|
|
9
|
+
type: __PropType<string | undefined>;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
right: {
|
|
13
|
+
type: __PropType<number | undefined>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
bottom: {
|
|
17
|
+
type: __PropType<number | undefined>;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
icon: {
|
|
21
|
+
type: __PropType<IconProps | undefined>;
|
|
22
|
+
required: false;
|
|
23
|
+
};
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
visibilityHeight: {
|
|
26
|
+
type: __PropType<number | undefined>;
|
|
27
|
+
required: false;
|
|
28
|
+
};
|
|
29
|
+
target: {
|
|
30
|
+
type: __PropType<string | undefined>;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
33
|
+
right: {
|
|
34
|
+
type: __PropType<number | undefined>;
|
|
35
|
+
required: false;
|
|
36
|
+
};
|
|
37
|
+
bottom: {
|
|
38
|
+
type: __PropType<number | undefined>;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
icon: {
|
|
42
|
+
type: __PropType<IconProps | undefined>;
|
|
43
|
+
required: false;
|
|
44
|
+
};
|
|
45
|
+
}>> & {
|
|
46
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {}>;
|
|
48
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"back-top.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { defineComponent as p, getCurrentInstance as g, computed as c, openBlock as r, createBlock as m, Transition as C, unref as t, withCtx as h, createElementBlock as y, normalizeStyle as v, normalizeClass as x, withModifiers as B, renderSlot as T, normalizeProps as $, mergeProps as z, createCommentVNode as s } from "vue";
|
|
2
|
+
import { singleAttrToObj as S } from "@vft/utils";
|
|
3
|
+
import "../divider/index.mjs";
|
|
4
|
+
import { VftIcon as _ } from "../icon/index.mjs";
|
|
5
|
+
import "../avatar/index.mjs";
|
|
6
|
+
import "../empty/index.mjs";
|
|
7
|
+
import "../result/index.mjs";
|
|
8
|
+
import "../exception/index.mjs";
|
|
9
|
+
import { useBackTop as w } from "./use-back-top.mjs";
|
|
10
|
+
import { useNamespace as I } from "../../hooks/use-namespace/index.mjs";
|
|
11
|
+
const o = (
|
|
12
|
+
/* hoist-static*/
|
|
13
|
+
I("back-top")
|
|
14
|
+
), N = p({
|
|
15
|
+
name: o.b()
|
|
16
|
+
}), F = /* @__PURE__ */ p({
|
|
17
|
+
...N,
|
|
18
|
+
props: {
|
|
19
|
+
visibilityHeight: { default: 200 },
|
|
20
|
+
target: null,
|
|
21
|
+
right: { default: 40 },
|
|
22
|
+
bottom: { default: 40 },
|
|
23
|
+
icon: { default: "vi-back-top" }
|
|
24
|
+
},
|
|
25
|
+
emits: ["click"],
|
|
26
|
+
setup(n, { emit: u }) {
|
|
27
|
+
const f = g(), { handleClick: i, visible: d } = w(f.props, u, o.b()), b = c(() => ({
|
|
28
|
+
right: `${n.right}px`,
|
|
29
|
+
bottom: `${n.bottom}px`
|
|
30
|
+
})), a = c(() => S(n.icon, "icon", {
|
|
31
|
+
color: "black"
|
|
32
|
+
}));
|
|
33
|
+
return (k, l) => (r(), m(C, {
|
|
34
|
+
name: `${t(o).namespace}-fade-in`
|
|
35
|
+
}, {
|
|
36
|
+
default: h(() => [
|
|
37
|
+
t(d) ? (r(), y("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
style: v(t(b)),
|
|
40
|
+
class: x(t(o).b()),
|
|
41
|
+
onClick: l[0] || (l[0] = B(
|
|
42
|
+
//@ts-ignore
|
|
43
|
+
(...e) => t(i) && t(i)(...e),
|
|
44
|
+
["stop"]
|
|
45
|
+
))
|
|
46
|
+
}, [
|
|
47
|
+
T(k.$slots, "default", {}, () => {
|
|
48
|
+
var e;
|
|
49
|
+
return [
|
|
50
|
+
(e = t(a)) != null && e.icon ? (r(), m(t(_), $(z({ key: 0 }, t(a))), null, 16)) : s("", !0)
|
|
51
|
+
];
|
|
52
|
+
})
|
|
53
|
+
], 6)) : s("", !0)
|
|
54
|
+
]),
|
|
55
|
+
_: 3
|
|
56
|
+
}, 8, ["name"]));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
F as default
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=back-top.vue2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"back-top.vue2.mjs","sources":["../../../../../packages/components/back-top/back-top.vue"],"sourcesContent":["<script lang=\"ts\">\nconst ns = /* hoist-static*/ useNamespace('back-top')\n\nimport { defineComponent as DO_defineComponent } from 'vue';\nexport default /*#__PURE__*/ DO_defineComponent({\n\tname: ns.b()\n});</script>\n<script lang=\"ts\" setup>\nimport { singleAttrToObj } from '@vft/utils';\nimport { type IconProps, VftIcon } from '@vft-ui/components';\nimport { useBackTop } from './use-back-top';\nimport { useNamespace } from '@vft-ui/use';\nimport { computed, getCurrentInstance } from 'vue';\n\ninterface BackTopProps {\n /** 滚动高度达到此参数值才出现 */\n visibilityHeight?: number\n /** 触发滚动的对象 */\n target?: string\n /** 控制其显示位置,距离页面右边距 */\n right?: number\n /** 控制其显示位置,距离页面底部距离 */\n bottom?: number\n /** 滚动 icon dom */\n icon?: IconProps\n}\n\ndefineProps({\n \"visibilityHeight\": { default: 200 },\n \"target\": null,\n \"right\": { default: 40 },\n \"bottom\": { default: 40 },\n \"icon\": { default: 'vi-back-top' }\n})\n\nconst emit = defineEmits(['click']);\n\n\n\n;\n\nconst instance = getCurrentInstance()!;\n\nconst { handleClick, visible } = useBackTop(instance.props, emit, ns.b());\n\nconst backTopStyle = computed(() => ({\n right: `${__props.right}px`,\n bottom: `${__props.bottom}px`\n}));\n\nconst _icon = computed(() => {\n return singleAttrToObj(__props.icon, 'icon', {\n color: 'black'\n }) as IconProps;\n});\n</script>\n\n<template>\n <transition :name=\"`${ns.namespace}-fade-in`\">\n <div\n v-if=\"visible\"\n :style=\"backTopStyle\"\n :class=\"ns.b()\"\n @click.stop=\"handleClick\"\n >\n <slot>\n <vft-icon v-if=\"_icon?.icon\" v-bind=\"_icon\" />\n </slot>\n </div>\n </transition>\n</template>\n"],"names":["ns","useNamespace","__default__","DO_defineComponent","instance","getCurrentInstance","handleClick","visible","useBackTop","emit","backTopStyle","computed","__props","_icon","singleAttrToObj"],"mappings":";;;;;;;;;;AACA,MAAMA;AAAA;AAAA,EAAuBC,EAAa,UAAU;AAAA,GAGpDC,IAA6BC,EAAmB;AAAA,EAC/C,MAAMH,EAAG,EAAE;AACZ,CAAC;;;;;;;;;;;AAmCD,UAAMI,IAAWC,KAEX,EAAE,aAAAC,GAAa,SAAAC,EAAY,IAAAC,EAAWJ,EAAS,OAAOK,GAAMT,EAAG,EAAA,CAAG,GAElEU,IAAeC,EAAS,OAAO;AAAA,MACnC,OAAO,GAAGC,EAAQ;AAAA,MAClB,QAAQ,GAAGA,EAAQ;AAAA,IACnB,EAAA,GAEIC,IAAQF,EAAS,MACdG,EAAgBF,EAAQ,MAAM,QAAQ;AAAA,MAC3C,OAAO;AAAA,IAAA,CACR,CACF;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const VftBackTop: import("vft/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
visibilityHeight: {
|
|
3
|
+
type: import("vue").PropType<number | undefined>;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
target: {
|
|
7
|
+
type: import("vue").PropType<string | undefined>;
|
|
8
|
+
required: false;
|
|
9
|
+
};
|
|
10
|
+
right: {
|
|
11
|
+
type: import("vue").PropType<number | undefined>;
|
|
12
|
+
required: false;
|
|
13
|
+
};
|
|
14
|
+
bottom: {
|
|
15
|
+
type: import("vue").PropType<number | undefined>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
icon: {
|
|
19
|
+
type: import("vue").PropType<import("..").IconProps | undefined>;
|
|
20
|
+
required: false;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
visibilityHeight: {
|
|
24
|
+
type: import("vue").PropType<number | undefined>;
|
|
25
|
+
required: false;
|
|
26
|
+
};
|
|
27
|
+
target: {
|
|
28
|
+
type: import("vue").PropType<string | undefined>;
|
|
29
|
+
required: false;
|
|
30
|
+
};
|
|
31
|
+
right: {
|
|
32
|
+
type: import("vue").PropType<number | undefined>;
|
|
33
|
+
required: false;
|
|
34
|
+
};
|
|
35
|
+
bottom: {
|
|
36
|
+
type: import("vue").PropType<number | undefined>;
|
|
37
|
+
required: false;
|
|
38
|
+
};
|
|
39
|
+
icon: {
|
|
40
|
+
type: import("vue").PropType<import("..").IconProps | undefined>;
|
|
41
|
+
required: false;
|
|
42
|
+
};
|
|
43
|
+
}>> & {
|
|
44
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}, {}>> & Record<string, any>;
|
|
46
|
+
export default VftBackTop;
|
|
47
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/back-top/index.ts"],"sourcesContent":["import { withInstall } from '@vft-ui/utils'\n\nimport BackTop from './back-top.vue'\n\nexport const VftBackTop = withInstall(BackTop)\nexport default VftBackTop\n\nexport * from './types'\n"],"names":["VftBackTop","withInstall","BackTop"],"mappings":";;;AAIa,MAAAA,IAAaC,EAAYC,CAAO;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconProps } from '../../common';
|
|
2
|
+
export interface BackTopProps {
|
|
3
|
+
/** 滚动高度达到此参数值才出现 */
|
|
4
|
+
visibilityHeight?: number;
|
|
5
|
+
/** 触发滚动的对象 */
|
|
6
|
+
target?: string;
|
|
7
|
+
/** 控制其显示位置,距离页面右边距 */
|
|
8
|
+
right?: number;
|
|
9
|
+
/** 控制其显示位置,距离页面底部距离 */
|
|
10
|
+
bottom?: number;
|
|
11
|
+
/** 滚动 icon dom */
|
|
12
|
+
icon?: IconProps;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { shallowRef as u, ref as f, onMounted as m, watch as h, nextTick as T } from "vue";
|
|
2
|
+
import { useThrottleFn as g, useEventListener as b, useTimeoutFn as k } from "@vueuse/core";
|
|
3
|
+
import "@vue/shared";
|
|
4
|
+
import { throwError as a } from "../../utils/error.mjs";
|
|
5
|
+
const E = (t, c, i) => {
|
|
6
|
+
const e = u(), o = u(), r = f(!1), n = () => {
|
|
7
|
+
e.value && e.value.scrollTo({ left: 0, top: 0, behavior: "smooth" });
|
|
8
|
+
}, s = () => {
|
|
9
|
+
e.value && (r.value = e.value.scrollTop >= t.visibilityHeight);
|
|
10
|
+
}, v = (l) => {
|
|
11
|
+
n(), c("click", l);
|
|
12
|
+
}, d = g(s, 300, !0);
|
|
13
|
+
return b(o, "scroll", d), m(() => {
|
|
14
|
+
o.value = document, e.value = document.documentElement, t.target && k(() => {
|
|
15
|
+
e.value = document.querySelector(t.target) ?? void 0, e.value || a(i, `target does not exist: ${t.target}`), o.value = e.value;
|
|
16
|
+
}, 10);
|
|
17
|
+
}), h(
|
|
18
|
+
() => t.target,
|
|
19
|
+
(l) => {
|
|
20
|
+
T(() => {
|
|
21
|
+
l && (e.value = document.querySelector(l) ?? void 0, e.value || a(i, `target does not exist: ${l}`), e.value && (r.value = e.value.scrollTop >= t.visibilityHeight), o.value = e.value);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
), {
|
|
25
|
+
visible: r,
|
|
26
|
+
handleClick: v
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
E as useBackTop
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=use-back-top.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-back-top.mjs","sources":["../../../../../packages/components/back-top/use-back-top.ts"],"sourcesContent":["import { onMounted, ref, shallowRef, watch, nextTick } from 'vue';\nimport { useEventListener, useThrottleFn, useTimeoutFn } from '@vueuse/core';\nimport { throwError } from '@vft-ui/utils';\nimport { type BackTopProps } from './types';\n\nexport const useBackTop = (props: BackTopProps, emit: Function, componentName: string) => {\n const el = shallowRef<HTMLElement>();\n const container = shallowRef<Document | HTMLElement>();\n const visible = ref(false);\n \n const scrollToTop = () => {\n if (!el.value) return;\n el.value.scrollTo(({ left: 0, top: 0, behavior: 'smooth' }));\n };\n \n const handleScroll = () => {\n if (el.value) visible.value = el.value.scrollTop >= props.visibilityHeight!;\n };\n \n const handleClick = (event: MouseEvent) => {\n scrollToTop();\n emit('click', event);\n };\n \n const handleScrollThrottled = useThrottleFn(handleScroll, 300, true);\n \n useEventListener(container, 'scroll', handleScrollThrottled);\n \n onMounted(() => {\n container.value = document;\n el.value = document.documentElement;\n \n if (props.target) {\n useTimeoutFn(() => {\n el.value = document.querySelector<HTMLElement>(props.target!) ?? undefined;\n if (!el.value) {\n throwError(componentName, `target does not exist: ${props.target}`);\n }\n container.value = el.value;\n }, 10);\n }\n });\n \n // listener scroll target,if scroll target change,the scrollTop dom visible need also change\n watch(\n () => props.target,\n (val) => {\n nextTick(() => {\n if (val) {\n el.value = document.querySelector<HTMLElement>(val) ?? undefined;\n if (!el.value) {\n throwError(componentName, `target does not exist: ${val}`);\n }\n if (el.value) visible.value = el.value.scrollTop >= props.visibilityHeight!;\n container.value = el.value;\n }\n });\n }\n );\n \n return {\n visible,\n handleClick\n };\n};\n"],"names":["useBackTop","props","emit","componentName","el","shallowRef","container","visible","ref","scrollToTop","handleScroll","handleClick","event","handleScrollThrottled","useThrottleFn","useEventListener","onMounted","useTimeoutFn","throwError","watch","val","nextTick"],"mappings":";;;;AAKO,MAAMA,IAAa,CAACC,GAAqBC,GAAgBC,MAA0B;AACxF,QAAMC,IAAKC,KACLC,IAAYD,KACZE,IAAUC,EAAI,EAAK,GAEnBC,IAAc,MAAM;AACxB,IAAKL,EAAG,SACLA,EAAA,MAAM,SAAU,EAAE,MAAM,GAAG,KAAK,GAAG,UAAU,SAAA,CAAW;AAAA,EAAA,GAGvDM,IAAe,MAAM;AACzB,IAAIN,EAAG,UAAOG,EAAQ,QAAQH,EAAG,MAAM,aAAaH,EAAM;AAAA,EAAA,GAGtDU,IAAc,CAACC,MAAsB;AAC7B,IAAAH,KACZP,EAAK,SAASU,CAAK;AAAA,EAAA,GAGfC,IAAwBC,EAAcJ,GAAc,KAAK,EAAI;AAElD,SAAAK,EAAAT,GAAW,UAAUO,CAAqB,GAE3DG,EAAU,MAAM;AACd,IAAAV,EAAU,QAAQ,UAClBF,EAAG,QAAQ,SAAS,iBAEhBH,EAAM,UACRgB,EAAa,MAAM;AACjB,MAAAb,EAAG,QAAQ,SAAS,cAA2BH,EAAM,MAAO,KAAK,QAC5DG,EAAG,SACKc,EAAAf,GAAe,0BAA0BF,EAAM,QAAQ,GAEpEK,EAAU,QAAQF,EAAG;AAAA,OACpB,EAAE;AAAA,EACP,CACD,GAGDe;AAAA,IACE,MAAMlB,EAAM;AAAA,IACZ,CAACmB,MAAQ;AACP,MAAAC,EAAS,MAAM;AACb,QAAID,MACFhB,EAAG,QAAQ,SAAS,cAA2BgB,CAAG,KAAK,QAClDhB,EAAG,SACKc,EAAAf,GAAe,0BAA0BiB,GAAK,GAEvDhB,EAAG,UAAOG,EAAQ,QAAQH,EAAG,MAAM,aAAaH,EAAM,mBAC1DK,EAAU,QAAQF,EAAG;AAAA,MACvB,CACD;AAAA,IACH;AAAA,EAAA,GAGK;AAAA,IACL,SAAAG;AAAA,IACA,aAAAI;AAAA,EAAA;AAEJ;"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|