rappel-ui 1.0.32 → 1.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/cjs/components/button/index.js +1 -1
- package/cjs/components/button/src/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/button/src/button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/button/src/constants.d.ts +1 -1
- package/cjs/components/button/src/constants.js +1 -1
- package/cjs/components/button/src/types.d.ts +1 -0
- package/cjs/components/dropdown/index.d.ts +157 -0
- package/cjs/components/dropdown/index.js +1 -0
- package/cjs/components/dropdown/src/constants.d.ts +15 -0
- package/cjs/components/dropdown/src/constants.js +1 -0
- package/cjs/components/dropdown/src/dropdown-item.js +1 -0
- package/cjs/components/dropdown/src/dropdown-item.vue.d.ts +21 -0
- package/cjs/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/dropdown-menu.js +1 -0
- package/cjs/components/dropdown/src/dropdown-menu.vue.d.ts +14 -0
- package/cjs/components/dropdown/src/dropdown-menu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/dropdown-submenu.js +1 -0
- package/cjs/components/dropdown/src/dropdown-submenu.vue.d.ts +17 -0
- package/cjs/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/dropdown.js +1 -0
- package/cjs/components/dropdown/src/dropdown.vue.d.ts +51 -0
- package/cjs/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.js +1 -0
- package/cjs/components/dropdown/src/types.d.ts +30 -0
- package/cjs/components/dropdown/src/use-dropdown-emit.d.ts +13 -0
- package/cjs/components/dropdown/src/use-dropdown-emit.js +1 -0
- package/cjs/components/dropdown/style/css.d.ts +0 -0
- package/cjs/components/dropdown/style/css.js +2 -0
- package/cjs/components/dropdown/style/index.d.ts +0 -0
- package/cjs/components/dropdown/style/index.js +2 -0
- package/cjs/components/index.d.ts +1 -0
- package/cjs/components/index.js +1 -1
- package/cjs/components/message/src/use-message-emit.d.ts +8 -8
- package/cjs/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popconfirm/src/use-popconfirm-emit.d.ts +8 -8
- package/cjs/components/popover/src/popover.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/popover/src/use-popover-emit.d.ts +8 -8
- package/cjs/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/svg-icon/src/types.d.ts +1 -1
- package/cjs/components/tooltip/index.d.ts +8 -1
- package/cjs/components/tooltip/src/tooltip.vue.d.ts +4 -1
- package/cjs/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/tooltip/src/types.d.ts +2 -0
- package/cjs/components/tooltip/src/use-tooltip-emit.d.ts +8 -8
- package/cjs/components/transition/src/transition.vue_vue_type_script_setup_true_lang.js +1 -1
- package/cjs/components/transition/src/use-transition-emit.d.ts +8 -8
- package/cjs/composables/use-namespace/index.d.ts +2 -0
- package/cjs/composables/use-namespace/index.js +1 -1
- package/cjs/index.d.ts +473 -454
- package/cjs/index.js +1 -1
- package/cjs/svg-icons/create-icon.d.ts +3 -12
- package/cjs/svg-icons/create-icon.js +1 -1
- package/cjs/svg-icons/get-async-icon.js +1 -1
- package/cjs/svg-icons/icon-names.d.ts +1 -1
- package/cjs/svg-icons/icon-names.js +1 -1
- package/cjs/svg-icons/index.d.ts +5 -0
- package/cjs/svg-icons/index.js +1 -1
- package/cjs/svg-icons/src/arrow-backward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-backward.js +1 -1
- package/cjs/svg-icons/src/arrow-down.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-down.js +1 -1
- package/cjs/svg-icons/src/arrow-downward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-downward.js +1 -1
- package/cjs/svg-icons/src/arrow-forward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-forward.js +1 -1
- package/cjs/svg-icons/src/arrow-left.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-left.js +1 -1
- package/cjs/svg-icons/src/arrow-right.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-right.js +1 -1
- package/cjs/svg-icons/src/arrow-up.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-up.js +1 -1
- package/cjs/svg-icons/src/arrow-upward.d.ts +3 -12
- package/cjs/svg-icons/src/arrow-upward.js +1 -1
- package/cjs/svg-icons/src/check-circle.d.ts +3 -12
- package/cjs/svg-icons/src/check-circle.js +1 -1
- package/cjs/svg-icons/src/check-fill.d.ts +3 -12
- package/cjs/svg-icons/src/check-fill.js +1 -1
- package/cjs/svg-icons/src/check.d.ts +3 -12
- package/cjs/svg-icons/src/check.js +1 -1
- package/cjs/svg-icons/src/close-circle.d.ts +3 -12
- package/cjs/svg-icons/src/close-circle.js +1 -1
- package/cjs/svg-icons/src/close-fill.d.ts +3 -12
- package/cjs/svg-icons/src/close-short.d.ts +3 -12
- package/cjs/svg-icons/src/close-short.js +1 -1
- package/cjs/svg-icons/src/close.d.ts +3 -12
- package/cjs/svg-icons/src/close.js +1 -1
- package/cjs/svg-icons/src/copy-closure.d.ts +3 -12
- package/cjs/svg-icons/src/copy-closure.js +1 -1
- package/cjs/svg-icons/src/copy.d.ts +3 -12
- package/cjs/svg-icons/src/copy.js +1 -1
- package/cjs/svg-icons/src/delete.d.ts +3 -12
- package/cjs/svg-icons/src/delete.js +1 -1
- package/cjs/svg-icons/src/exclam-fill.d.ts +3 -12
- package/cjs/svg-icons/src/exclam.d.ts +3 -12
- package/cjs/svg-icons/src/exclam.js +1 -1
- package/cjs/svg-icons/src/help.d.ts +3 -12
- package/cjs/svg-icons/src/help.js +1 -1
- package/cjs/svg-icons/src/info-circle.d.ts +3 -12
- package/cjs/svg-icons/src/info-circle.js +1 -1
- package/cjs/svg-icons/src/info-fill.d.ts +3 -12
- package/cjs/svg-icons/src/loading.d.ts +3 -12
- package/cjs/svg-icons/src/loading.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle-horizontal.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle-horizontal.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle-outline-horizontal.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle-outline-vertical.js +1 -1
- package/cjs/svg-icons/src/more-dot-circle.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-circle.js +1 -1
- package/cjs/svg-icons/src/more-dot-square-horizontal.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-square-horizontal.js +1 -1
- package/cjs/svg-icons/src/more-dot-square.d.ts +3 -12
- package/cjs/svg-icons/src/more-dot-square.js +1 -1
- package/cjs/svg-icons/src/more-line.d.ts +3 -12
- package/cjs/svg-icons/src/more-line.js +1 -1
- package/cjs/svg-icons/src/play.d.ts +34 -0
- package/cjs/svg-icons/src/play.js +1 -0
- package/cjs/svg-icons/src/search-bold.d.ts +3 -12
- package/cjs/svg-icons/src/search-bold.js +1 -1
- package/cjs/svg-icons/src/search.d.ts +3 -12
- package/cjs/svg-icons/src/search.js +1 -1
- package/cjs/svg-icons/src/star-fill.d.ts +3 -12
- package/cjs/svg-icons/src/star.d.ts +3 -12
- package/cjs/svg-icons/src/star.js +1 -1
- package/cjs/svg-icons/src/triangle-backward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-backward-fill.js +1 -0
- package/cjs/svg-icons/src/triangle-downward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-downward-fill.js +1 -0
- package/cjs/svg-icons/src/triangle-forward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-forward-fill.js +1 -0
- package/cjs/svg-icons/src/triangle-upward-fill.d.ts +34 -0
- package/cjs/svg-icons/src/triangle-upward-fill.js +1 -0
- package/cjs/svg-icons/types.d.ts +1 -1
- package/cjs/utils/index.js +1 -1
- package/cjs/utils/util.d.ts +76 -94
- package/cjs/utils/util.js +1 -3
- package/cjs/utils/vue/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +9 -11
- package/es/components/button/index.mjs +2 -2
- package/es/components/button/src/button-group.vue_vue_type_script_setup_true_lang.mjs +23 -12
- package/es/components/button/src/button.vue_vue_type_script_setup_true_lang.mjs +50 -46
- package/es/components/button/src/constants.d.ts +1 -1
- package/es/components/button/src/constants.mjs +2 -2
- package/es/components/button/src/types.d.ts +1 -0
- package/es/components/dropdown/index.d.ts +157 -0
- package/es/components/dropdown/index.mjs +15 -0
- package/es/components/dropdown/src/constants.d.ts +15 -0
- package/es/components/dropdown/src/constants.mjs +17 -0
- package/es/components/dropdown/src/dropdown-item.mjs +5 -0
- package/es/components/dropdown/src/dropdown-item.vue.d.ts +21 -0
- package/es/components/dropdown/src/dropdown-item.vue_vue_type_script_setup_true_lang.mjs +70 -0
- package/es/components/dropdown/src/dropdown-menu.mjs +5 -0
- package/es/components/dropdown/src/dropdown-menu.vue.d.ts +14 -0
- package/es/components/dropdown/src/dropdown-menu.vue_vue_type_script_setup_true_lang.mjs +14 -0
- package/es/components/dropdown/src/dropdown-submenu.mjs +5 -0
- package/es/components/dropdown/src/dropdown-submenu.vue.d.ts +17 -0
- package/es/components/dropdown/src/dropdown-submenu.vue_vue_type_script_setup_true_lang.mjs +43 -0
- package/es/components/dropdown/src/dropdown.mjs +5 -0
- package/es/components/dropdown/src/dropdown.vue.d.ts +51 -0
- package/es/components/dropdown/src/dropdown.vue_vue_type_script_setup_true_lang.mjs +226 -0
- package/es/components/dropdown/src/types.d.ts +30 -0
- package/es/components/dropdown/src/use-dropdown-emit.d.ts +13 -0
- package/es/components/dropdown/src/use-dropdown-emit.mjs +11 -0
- package/es/components/dropdown/style/css.d.ts +0 -0
- package/es/components/dropdown/style/css.mjs +2 -0
- package/es/components/dropdown/style/index.d.ts +0 -0
- package/es/components/dropdown/style/index.mjs +2 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +11 -4
- package/es/components/message/src/use-message-emit.d.ts +8 -8
- package/es/components/popconfirm/src/popconfirm.vue_vue_type_script_setup_true_lang.mjs +6 -4
- package/es/components/popconfirm/src/use-popconfirm-emit.d.ts +8 -8
- package/es/components/popover/src/popover.vue_vue_type_script_setup_true_lang.mjs +4 -2
- package/es/components/popover/src/use-popover-emit.d.ts +8 -8
- package/es/components/svg-icon/src/svg-icon.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/svg-icon/src/types.d.ts +1 -1
- package/es/components/tooltip/index.d.ts +8 -1
- package/es/components/tooltip/src/tooltip.vue.d.ts +4 -1
- package/es/components/tooltip/src/tooltip.vue_vue_type_script_setup_true_lang.mjs +123 -111
- package/es/components/tooltip/src/types.d.ts +2 -0
- package/es/components/tooltip/src/use-tooltip-emit.d.ts +8 -8
- package/es/components/transition/src/transition.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/transition/src/use-transition-emit.d.ts +8 -8
- package/es/composables/use-namespace/index.d.ts +2 -0
- package/es/composables/use-namespace/index.mjs +2 -0
- package/es/index.d.ts +473 -454
- package/es/index.mjs +77 -71
- package/es/svg-icons/create-icon.d.ts +3 -12
- package/es/svg-icons/create-icon.mjs +3 -7
- package/es/svg-icons/get-async-icon.mjs +48 -42
- package/es/svg-icons/icon-names.d.ts +1 -1
- package/es/svg-icons/icon-names.mjs +1 -1
- package/es/svg-icons/index.d.ts +5 -0
- package/es/svg-icons/index.mjs +12 -2
- package/es/svg-icons/src/arrow-backward.d.ts +3 -12
- package/es/svg-icons/src/arrow-backward.mjs +3 -1
- package/es/svg-icons/src/arrow-down.d.ts +3 -12
- package/es/svg-icons/src/arrow-down.mjs +3 -1
- package/es/svg-icons/src/arrow-downward.d.ts +3 -12
- package/es/svg-icons/src/arrow-downward.mjs +3 -1
- package/es/svg-icons/src/arrow-forward.d.ts +3 -12
- package/es/svg-icons/src/arrow-forward.mjs +3 -1
- package/es/svg-icons/src/arrow-left.d.ts +3 -12
- package/es/svg-icons/src/arrow-left.mjs +3 -1
- package/es/svg-icons/src/arrow-right.d.ts +3 -12
- package/es/svg-icons/src/arrow-right.mjs +3 -1
- package/es/svg-icons/src/arrow-up.d.ts +3 -12
- package/es/svg-icons/src/arrow-up.mjs +3 -1
- package/es/svg-icons/src/arrow-upward.d.ts +3 -12
- package/es/svg-icons/src/arrow-upward.mjs +3 -1
- package/es/svg-icons/src/check-circle.d.ts +3 -12
- package/es/svg-icons/src/check-circle.mjs +3 -1
- package/es/svg-icons/src/check-fill.d.ts +3 -12
- package/es/svg-icons/src/check-fill.mjs +4 -2
- package/es/svg-icons/src/check.d.ts +3 -12
- package/es/svg-icons/src/check.mjs +3 -1
- package/es/svg-icons/src/close-circle.d.ts +3 -12
- package/es/svg-icons/src/close-circle.mjs +3 -1
- package/es/svg-icons/src/close-fill.d.ts +3 -12
- package/es/svg-icons/src/close-fill.mjs +1 -0
- package/es/svg-icons/src/close-short.d.ts +3 -12
- package/es/svg-icons/src/close-short.mjs +3 -1
- package/es/svg-icons/src/close.d.ts +3 -12
- package/es/svg-icons/src/close.mjs +3 -1
- package/es/svg-icons/src/copy-closure.d.ts +3 -12
- package/es/svg-icons/src/copy-closure.mjs +3 -1
- package/es/svg-icons/src/copy.d.ts +3 -12
- package/es/svg-icons/src/copy.mjs +3 -1
- package/es/svg-icons/src/delete.d.ts +3 -12
- package/es/svg-icons/src/delete.mjs +3 -1
- package/es/svg-icons/src/exclam-fill.d.ts +3 -12
- package/es/svg-icons/src/exclam-fill.mjs +1 -0
- package/es/svg-icons/src/exclam.d.ts +3 -12
- package/es/svg-icons/src/exclam.mjs +3 -1
- package/es/svg-icons/src/help.d.ts +3 -12
- package/es/svg-icons/src/help.mjs +3 -1
- package/es/svg-icons/src/info-circle.d.ts +3 -12
- package/es/svg-icons/src/info-circle.mjs +3 -1
- package/es/svg-icons/src/info-fill.d.ts +3 -12
- package/es/svg-icons/src/info-fill.mjs +1 -0
- package/es/svg-icons/src/loading.d.ts +3 -12
- package/es/svg-icons/src/loading.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle-horizontal.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle-horizontal.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle-outline-horizontal.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle-outline-vertical.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle-outline-vertical.mjs +3 -1
- package/es/svg-icons/src/more-dot-circle.d.ts +3 -12
- package/es/svg-icons/src/more-dot-circle.mjs +3 -1
- package/es/svg-icons/src/more-dot-square-horizontal.d.ts +3 -12
- package/es/svg-icons/src/more-dot-square-horizontal.mjs +3 -1
- package/es/svg-icons/src/more-dot-square.d.ts +3 -12
- package/es/svg-icons/src/more-dot-square.mjs +3 -1
- package/es/svg-icons/src/more-line.d.ts +3 -12
- package/es/svg-icons/src/more-line.mjs +3 -1
- package/es/svg-icons/src/play.d.ts +34 -0
- package/es/svg-icons/src/play.mjs +9 -0
- package/es/svg-icons/src/search-bold.d.ts +3 -12
- package/es/svg-icons/src/search-bold.mjs +3 -1
- package/es/svg-icons/src/search.d.ts +3 -12
- package/es/svg-icons/src/search.mjs +3 -1
- package/es/svg-icons/src/star-fill.d.ts +3 -12
- package/es/svg-icons/src/star-fill.mjs +1 -0
- package/es/svg-icons/src/star.d.ts +3 -12
- package/es/svg-icons/src/star.mjs +3 -1
- package/es/svg-icons/src/triangle-backward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-backward-fill.mjs +9 -0
- package/es/svg-icons/src/triangle-downward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-downward-fill.mjs +9 -0
- package/es/svg-icons/src/triangle-forward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-forward-fill.mjs +9 -0
- package/es/svg-icons/src/triangle-upward-fill.d.ts +34 -0
- package/es/svg-icons/src/triangle-upward-fill.mjs +9 -0
- package/es/svg-icons/types.d.ts +1 -1
- package/es/utils/index.mjs +2 -2
- package/es/utils/util.d.ts +76 -94
- package/es/utils/util.mjs +41 -74
- package/es/utils/vue/index.mjs +4 -1
- package/package.json +3 -2
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/re-button-group.css +1 -1
- package/theme-chalk/re-button.css +1 -1
- package/theme-chalk/re-dropdown.css +1 -0
- package/theme-chalk/re-message.css +1 -1
- package/theme-chalk/re-popconfirm.css +1 -1
- package/theme-chalk/re-popover.css +1 -1
- package/theme-chalk/re-tooltip.css +1 -1
- package/theme-chalk/src/button-group.scss +32 -8
- package/theme-chalk/src/dropdown.scss +97 -0
- package/theme-chalk/src/function/index.scss +1 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/message.scss +2 -28
- package/theme-chalk/src/mixins/_button.scss +1 -1
- package/theme-chalk/src/mixins/_dropdown.scss +17 -0
- package/theme-chalk/src/mixins/_transition.scss +29 -0
- package/theme-chalk/src/mixins/index.scss +6 -0
- package/theme-chalk/src/popconfirm.scss +3 -0
- package/theme-chalk/src/popover.scss +3 -0
- package/theme-chalk/src/tooltip.scss +3 -10
- package/cjs/_virtual/_rolldown_dynamic_import_helper.js +0 -1
- package/cjs/rappel-ui/resolvers.js +0 -1
- package/es/_virtual/_rolldown_dynamic_import_helper.mjs +0 -9
- package/es/rappel-ui/resolvers.mjs +0 -18
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { useNamespace as e } from "../../../composables/use-namespace/index.mjs";
|
|
2
|
+
import "../../../composables/index.mjs";
|
|
3
|
+
import { filterNodeTypes as t } from "../../tooltip/src/constants.mjs";
|
|
4
|
+
import n from "./dropdown-menu.mjs";
|
|
5
|
+
import { _dropdownProvideKey as r, originsMap as i } from "./constants.mjs";
|
|
6
|
+
import a from "./dropdown-item.mjs";
|
|
7
|
+
import o from "./dropdown-submenu.mjs";
|
|
8
|
+
import { useDropdownEmits as s } from "./use-dropdown-emit.mjs";
|
|
9
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, defineComponent as p, h as m, mergeModels as h, mergeProps as g, openBlock as _, provide as v, renderList as y, renderSlot as b, resolveComponent as x, resolveDynamicComponent as S, unref as C, useModel as w, useSlots as T, useTemplateRef as E, withCtx as D } from "vue";
|
|
10
|
+
//#region packages/components/dropdown/src/dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var O = p({
|
|
12
|
+
name: "ReDropdownSubmenu",
|
|
13
|
+
__name: "dropdown",
|
|
14
|
+
props: h({
|
|
15
|
+
options: { default: () => [] },
|
|
16
|
+
itemProps: { default: () => ({}) },
|
|
17
|
+
closeOnSelect: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
visible: { type: Boolean },
|
|
22
|
+
content: {},
|
|
23
|
+
isHtml: { type: Boolean },
|
|
24
|
+
placement: { default: "bottom" },
|
|
25
|
+
delay: {},
|
|
26
|
+
width: { default: () => void 0 },
|
|
27
|
+
height: { default: () => void 0 },
|
|
28
|
+
maxWidth: { default: () => void 0 },
|
|
29
|
+
maxHeight: { default: () => void 0 },
|
|
30
|
+
trigger: { default: "hover" },
|
|
31
|
+
disabled: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: () => void 0
|
|
34
|
+
},
|
|
35
|
+
clickToToggle: { type: Boolean },
|
|
36
|
+
showDelay: { default: 0 },
|
|
37
|
+
hideDelay: { default: 200 },
|
|
38
|
+
showArrow: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
floatingClass: { default: () => void 0 },
|
|
43
|
+
floatingStyle: {
|
|
44
|
+
type: [
|
|
45
|
+
Boolean,
|
|
46
|
+
null,
|
|
47
|
+
String,
|
|
48
|
+
Object,
|
|
49
|
+
Array
|
|
50
|
+
],
|
|
51
|
+
default: () => void 0
|
|
52
|
+
},
|
|
53
|
+
theme: { default: "light" },
|
|
54
|
+
reverseTheme: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: !1
|
|
57
|
+
},
|
|
58
|
+
offset: {
|
|
59
|
+
type: [
|
|
60
|
+
Number,
|
|
61
|
+
Object,
|
|
62
|
+
Function
|
|
63
|
+
],
|
|
64
|
+
default: 10
|
|
65
|
+
},
|
|
66
|
+
teleported: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !0
|
|
69
|
+
},
|
|
70
|
+
appendTo: { default: "body" },
|
|
71
|
+
persistent: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: !0
|
|
74
|
+
},
|
|
75
|
+
boundary: { default: "clippingAncestors" },
|
|
76
|
+
elementContext: { default: "floating" },
|
|
77
|
+
altBoundary: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
},
|
|
81
|
+
rootBoundary: { default: "viewport" },
|
|
82
|
+
transition: { default: "dropdown" },
|
|
83
|
+
mode: {},
|
|
84
|
+
cssTransition: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: !0
|
|
87
|
+
},
|
|
88
|
+
cssDuration: { default: 300 },
|
|
89
|
+
arrowSize: { default: 8 },
|
|
90
|
+
arrowOffset: { default: 4 },
|
|
91
|
+
arrowOptions: { default: () => void 0 },
|
|
92
|
+
shiftOptions: {},
|
|
93
|
+
flipOffset: { default: 8 },
|
|
94
|
+
flipOptions: { default: () => void 0 },
|
|
95
|
+
inlineOptions: { default: () => void 0 },
|
|
96
|
+
hideOptions: {},
|
|
97
|
+
isExternal: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: () => void 0
|
|
100
|
+
},
|
|
101
|
+
externalRef: { default: () => void 0 },
|
|
102
|
+
isVirtual: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: () => void 0
|
|
105
|
+
},
|
|
106
|
+
virtualRef: { default: () => void 0 },
|
|
107
|
+
zIndex: {},
|
|
108
|
+
transform: { type: Boolean },
|
|
109
|
+
strategy: {}
|
|
110
|
+
}, {
|
|
111
|
+
visible: { type: Boolean },
|
|
112
|
+
visibleModifiers: {}
|
|
113
|
+
}),
|
|
114
|
+
emits: h([
|
|
115
|
+
"select",
|
|
116
|
+
"beforeEnter",
|
|
117
|
+
"enter",
|
|
118
|
+
"enterCancelled",
|
|
119
|
+
"afterEnter",
|
|
120
|
+
"beforeLeave",
|
|
121
|
+
"leave",
|
|
122
|
+
"leaveCancelled",
|
|
123
|
+
"afterLeave"
|
|
124
|
+
], ["update:visible"]),
|
|
125
|
+
setup(p, { expose: h, emit: O }) {
|
|
126
|
+
let { n: k } = e("dropdown"), { beforeEnter: A, enter: j, afterEnter: M, beforeLeave: N, leave: P, afterLeave: F, enterCancelled: I, leaveCancelled: L, select: R } = s(O), z = w(p, "visible"), B = l(() => [k(), p.floatingClass]), V = T(), H = l(() => {
|
|
127
|
+
var e, n;
|
|
128
|
+
let r = V == null || (e = V.default) == null || (e = e.call(V)) == null ? void 0 : e.filter((e) => e && !t.includes(e.type.toString()))[0];
|
|
129
|
+
return (r == null || (n = r.type) == null ? void 0 : n.toString()) === "Symbol(v-txt)" ? m("span", {}, r) : r;
|
|
130
|
+
}), U = E("tooltipRef"), W = l(() => {
|
|
131
|
+
var e;
|
|
132
|
+
let t = (e = U.value) == null ? void 0 : e.floatingPlacement, n = i[t];
|
|
133
|
+
return [p.floatingStyle, { "transform-origin": n }];
|
|
134
|
+
}), G = l(() => Array.isArray(p.options) && p.options.length > 0), K = (e, t) => {
|
|
135
|
+
t.disabled || (R(e, t), p.closeOnSelect && (z.value = !1));
|
|
136
|
+
}, q = Object.assign({}, {
|
|
137
|
+
label: "label",
|
|
138
|
+
value: "value",
|
|
139
|
+
disabled: "disabled",
|
|
140
|
+
children: "children"
|
|
141
|
+
}, p.itemProps || {}), J = (e) => ({
|
|
142
|
+
...e,
|
|
143
|
+
label: e[q.label],
|
|
144
|
+
value: e[q.value],
|
|
145
|
+
disabled: e[q.disabled],
|
|
146
|
+
children: e[q.children]
|
|
147
|
+
}), Y = (e) => e.map((e) => {
|
|
148
|
+
let t = J(e);
|
|
149
|
+
return Array.isArray(t.children) && t.children.length > 0 && (t.children = Y(t.children)), t;
|
|
150
|
+
}), X = l(() => Y(p.options));
|
|
151
|
+
return v(r, { select: K }), h({
|
|
152
|
+
tooltipRef: U,
|
|
153
|
+
select: K
|
|
154
|
+
}), (e, t) => {
|
|
155
|
+
let r = x("re-tooltip");
|
|
156
|
+
return _(), u(r, {
|
|
157
|
+
ref_key: "tooltipRef",
|
|
158
|
+
ref: U,
|
|
159
|
+
visible: z.value,
|
|
160
|
+
"onUpdate:visible": t[0] || (t[0] = (e) => z.value = e),
|
|
161
|
+
width: p.width,
|
|
162
|
+
height: p.height,
|
|
163
|
+
"max-width": p.maxWidth,
|
|
164
|
+
"max-height": p.maxHeight,
|
|
165
|
+
"floating-class": B.value,
|
|
166
|
+
"floating-style": W.value,
|
|
167
|
+
disabled: p.disabled,
|
|
168
|
+
theme: p.theme,
|
|
169
|
+
placement: p.placement,
|
|
170
|
+
trigger: p.trigger,
|
|
171
|
+
"reverse-theme": p.reverseTheme,
|
|
172
|
+
"show-delay": p.showDelay,
|
|
173
|
+
"hide-delay": p.hideDelay,
|
|
174
|
+
transition: p.transition,
|
|
175
|
+
"css-duration": p.cssDuration,
|
|
176
|
+
"css-transition": p.cssTransition,
|
|
177
|
+
transform: !1,
|
|
178
|
+
"show-arrow": p.showArrow,
|
|
179
|
+
offset: p.offset,
|
|
180
|
+
teleported: p.teleported,
|
|
181
|
+
"append-to": p.appendTo,
|
|
182
|
+
persistent: p.persistent,
|
|
183
|
+
boundary: p.boundary,
|
|
184
|
+
"element-context": p.elementContext,
|
|
185
|
+
"alt-boundary": p.altBoundary,
|
|
186
|
+
"root-boundary": p.rootBoundary,
|
|
187
|
+
"arrow-size": p.arrowSize,
|
|
188
|
+
"arrow-offset": p.arrowOffset,
|
|
189
|
+
"flip-offset": p.flipOffset,
|
|
190
|
+
"arrow-options": p.arrowOptions,
|
|
191
|
+
"flip-options": p.flipOptions,
|
|
192
|
+
"inline-options": p.inlineOptions,
|
|
193
|
+
"is-external": p.isExternal,
|
|
194
|
+
"external-ref": p.externalRef,
|
|
195
|
+
"is-virtual": p.isVirtual,
|
|
196
|
+
"virtual-ref": p.virtualRef,
|
|
197
|
+
onBeforeEnter: C(A),
|
|
198
|
+
onEnter: C(j),
|
|
199
|
+
onAfterEnter: C(M),
|
|
200
|
+
onBeforeLeave: C(N),
|
|
201
|
+
onLeave: C(P),
|
|
202
|
+
onAfterLeave: C(F),
|
|
203
|
+
onEnterCancelled: C(I),
|
|
204
|
+
onLeaveCancelled: C(L)
|
|
205
|
+
}, {
|
|
206
|
+
content: D(() => [b(e.$slots, "menu", { options: p.options }, () => [G.value ? (_(), u(n, { key: 0 }, {
|
|
207
|
+
default: D(() => [b(e.$slots, "item", { options: p.options }, () => [(_(!0), f(c, null, y(X.value, (e) => {
|
|
208
|
+
var t;
|
|
209
|
+
return _(), f(c, { key: e.value }, [e != null && (t = e.children) != null && t.length ? (_(), u(o, {
|
|
210
|
+
key: 0,
|
|
211
|
+
item: e
|
|
212
|
+
}, null, 8, ["item"])) : (_(), u(a, g({
|
|
213
|
+
key: 1,
|
|
214
|
+
ref_for: !0
|
|
215
|
+
}, e), null, 16))], 64);
|
|
216
|
+
}), 128))])]),
|
|
217
|
+
_: 3
|
|
218
|
+
})) : d("", !0)])]),
|
|
219
|
+
default: D(() => [(_(), u(S(H.value)))]),
|
|
220
|
+
_: 3
|
|
221
|
+
}, 8, "visible.width.height.max-width.max-height.floating-class.floating-style.disabled.theme.placement.trigger.reverse-theme.show-delay.hide-delay.transition.css-duration.css-transition.show-arrow.offset.teleported.append-to.persistent.boundary.element-context.alt-boundary.root-boundary.arrow-size.arrow-offset.flip-offset.arrow-options.flip-options.inline-options.is-external.external-ref.is-virtual.virtual-ref.onBeforeEnter.onEnter.onAfterEnter.onBeforeLeave.onLeave.onAfterLeave.onEnterCancelled.onLeaveCancelled".split("."));
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
//#endregion
|
|
226
|
+
export { O as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { TooltipProps, TooltipEmits } from '../../tooltip';
|
|
3
|
+
export interface DropdownProps extends TooltipProps {
|
|
4
|
+
options?: OptionsItem[];
|
|
5
|
+
itemProps?: ItemProps;
|
|
6
|
+
closeOnSelect?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ItemProps {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
disabled?: string;
|
|
12
|
+
children?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DropdownEmits extends TooltipEmits {
|
|
15
|
+
select: [value: any, item: OptionsItem];
|
|
16
|
+
}
|
|
17
|
+
export interface OptionsItem {
|
|
18
|
+
value: any;
|
|
19
|
+
label?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
children?: OptionsItem[];
|
|
22
|
+
hasChildren?: boolean;
|
|
23
|
+
icon?: string | Component;
|
|
24
|
+
}
|
|
25
|
+
export interface DropdownProvides {
|
|
26
|
+
select: (value: any, item: OptionsItem) => void;
|
|
27
|
+
}
|
|
28
|
+
export interface DropdownSubmenuProps {
|
|
29
|
+
item?: OptionsItem;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EmitFn } from 'vue';
|
|
2
|
+
import { DropdownEmits, OptionsItem } from './types';
|
|
3
|
+
export declare function useDropdownEmits(emits: EmitFn<DropdownEmits>): {
|
|
4
|
+
select: (value: any, item: OptionsItem) => void;
|
|
5
|
+
beforeEnter: (el: HTMLElement) => void;
|
|
6
|
+
enter: (el: HTMLElement, done: any) => void;
|
|
7
|
+
enterCancelled: (el: HTMLElement) => void;
|
|
8
|
+
afterEnter: (el: HTMLElement) => void;
|
|
9
|
+
beforeLeave: (el: HTMLElement) => void;
|
|
10
|
+
leave: (el: HTMLElement, done: any) => void;
|
|
11
|
+
leaveCancelled: (el: HTMLElement) => void;
|
|
12
|
+
afterLeave: (el: HTMLElement) => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useTooltipEmits as e } from "../../tooltip/src/use-tooltip-emit.mjs";
|
|
2
|
+
//#region packages/components/dropdown/src/use-dropdown-emit.ts
|
|
3
|
+
function t(t) {
|
|
4
|
+
let n = e(t), r = (e, n) => t("select", e, n);
|
|
5
|
+
return {
|
|
6
|
+
...n,
|
|
7
|
+
select: r
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as useDropdownEmits };
|
|
File without changes
|
|
File without changes
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __exportAll as e } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { _buttonGroupProvideKey as t, buttonNativeTypes as n, buttonSizes as r, buttonTypes as i } from "./button/src/constants.mjs";
|
|
3
3
|
import { ReButton as a, ReButtonGroup as o } from "./button/index.mjs";
|
|
4
4
|
import { ReInput as s } from "./input/index.mjs";
|
|
5
5
|
import { ReTabs as c } from "./tabs/index.mjs";
|
|
@@ -17,10 +17,16 @@ import { RePopover as y } from "./popover/index.mjs";
|
|
|
17
17
|
import { RePopconfirm as b } from "./popconfirm/index.mjs";
|
|
18
18
|
import { createMessage as x } from "./message/src/create-message.mjs";
|
|
19
19
|
import { ReMessage as S } from "./message/index.mjs";
|
|
20
|
+
import { useDropdownEmits as C } from "./dropdown/src/use-dropdown-emit.mjs";
|
|
21
|
+
import { ReDropdown as w, ReDropdownItem as T, ReDropdownMenu as E, ReDropdownSubmenu as D } from "./dropdown/index.mjs";
|
|
20
22
|
//#region packages/components/index.ts
|
|
21
|
-
var
|
|
23
|
+
var O = e({
|
|
22
24
|
ReButton: () => a,
|
|
23
25
|
ReButtonGroup: () => o,
|
|
26
|
+
ReDropdown: () => w,
|
|
27
|
+
ReDropdownItem: () => T,
|
|
28
|
+
ReDropdownMenu: () => E,
|
|
29
|
+
ReDropdownSubmenu: () => D,
|
|
24
30
|
ReFilterPanel: () => f,
|
|
25
31
|
ReInput: () => s,
|
|
26
32
|
ReMessage: () => S,
|
|
@@ -33,14 +39,15 @@ var C = e({
|
|
|
33
39
|
ReTabs: () => c,
|
|
34
40
|
ReTooltip: () => _,
|
|
35
41
|
ReTransition: () => h,
|
|
36
|
-
|
|
42
|
+
_buttonGroupProvideKey: () => t,
|
|
37
43
|
buttonNativeTypes: () => n,
|
|
38
44
|
buttonSizes: () => r,
|
|
39
45
|
buttonTypes: () => i,
|
|
40
46
|
createMessage: () => x,
|
|
47
|
+
useDropdownEmits: () => C,
|
|
41
48
|
usePopoverEmits: () => v,
|
|
42
49
|
useTooltipEmits: () => g,
|
|
43
50
|
useTransitionEmits: () => m
|
|
44
51
|
});
|
|
45
52
|
//#endregion
|
|
46
|
-
export { a as ReButton, o as ReButtonGroup, f as ReFilterPanel, s as ReInput, S as ReMessage, d as ReNeutralColor, b as RePopconfirm, y as RePopover, l as RePrimaryColor, u as ReSecondaryColor, p as ReSvgIcon, c as ReTabs, _ as ReTooltip, h as ReTransition, t as
|
|
53
|
+
export { a as ReButton, o as ReButtonGroup, w as ReDropdown, T as ReDropdownItem, E as ReDropdownMenu, D as ReDropdownSubmenu, f as ReFilterPanel, s as ReInput, S as ReMessage, d as ReNeutralColor, b as RePopconfirm, y as RePopover, l as RePrimaryColor, u as ReSecondaryColor, p as ReSvgIcon, c as ReTabs, _ as ReTooltip, h as ReTransition, t as _buttonGroupProvideKey, n as buttonNativeTypes, r as buttonSizes, i as buttonTypes, O as components_exports, x as createMessage, C as useDropdownEmits, v as usePopoverEmits, g as useTooltipEmits, m as useTransitionEmits };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmitFn } from 'vue';
|
|
2
2
|
import { MessageEmits } from './types';
|
|
3
3
|
export declare function useMessageEmits(emits: EmitFn<MessageEmits>): {
|
|
4
|
-
beforeEnter: (el:
|
|
5
|
-
enter: (el:
|
|
6
|
-
enterCancelled: (el:
|
|
7
|
-
afterEnter: (el:
|
|
8
|
-
beforeLeave: (el:
|
|
9
|
-
leave: (el:
|
|
10
|
-
leaveCancelled: (el:
|
|
11
|
-
afterLeave: (el:
|
|
4
|
+
beforeEnter: (el: HTMLElement) => void;
|
|
5
|
+
enter: (el: HTMLElement, done: any) => void;
|
|
6
|
+
enterCancelled: (el: HTMLElement) => void;
|
|
7
|
+
afterEnter: (el: HTMLElement) => void;
|
|
8
|
+
beforeLeave: (el: HTMLElement) => void;
|
|
9
|
+
leave: (el: HTMLElement, done: any) => void;
|
|
10
|
+
leaveCancelled: (el: HTMLElement) => void;
|
|
11
|
+
afterLeave: (el: HTMLElement) => void;
|
|
12
12
|
};
|
|
@@ -92,7 +92,7 @@ var D = ["innerHTML"], O = d({
|
|
|
92
92
|
type: Boolean,
|
|
93
93
|
default: !0
|
|
94
94
|
},
|
|
95
|
-
cssDuration: { default:
|
|
95
|
+
cssDuration: { default: 300 },
|
|
96
96
|
arrowSize: { default: 8 },
|
|
97
97
|
arrowOffset: { default: 4 },
|
|
98
98
|
arrowOptions: { default: () => void 0 },
|
|
@@ -111,7 +111,9 @@ var D = ["innerHTML"], O = d({
|
|
|
111
111
|
default: () => void 0
|
|
112
112
|
},
|
|
113
113
|
virtualRef: { default: () => void 0 },
|
|
114
|
-
zIndex: {}
|
|
114
|
+
zIndex: {},
|
|
115
|
+
transform: { type: Boolean },
|
|
116
|
+
strategy: {}
|
|
115
117
|
}, {
|
|
116
118
|
visible: { type: Boolean },
|
|
117
119
|
visibleModifiers: {}
|
|
@@ -208,14 +210,14 @@ var D = ["innerHTML"], O = d({
|
|
|
208
210
|
class: m([b(A)("icon")]),
|
|
209
211
|
"aria-hidden": "true"
|
|
210
212
|
}, null, 8, ["class"]))], 64)) : o("", !0)]), g(e.$slots, "title", { title: d.title }, () => [c("div", { class: m([b(A)("title")]) }, y(d.title), 3)])], 2)]),
|
|
211
|
-
g(e.$slots, "content", { content: d.content }, () => [d.isHtml ? (h(), s("div", {
|
|
213
|
+
g(e.$slots, "content", { content: d.content }, () => [d.content ? (h(), s(r, { key: 0 }, [d.isHtml ? (h(), s("div", {
|
|
212
214
|
key: 0,
|
|
213
215
|
class: m([b(A)("content")]),
|
|
214
216
|
innerHTML: d.content
|
|
215
217
|
}, null, 10, D)) : (h(), s("div", {
|
|
216
218
|
key: 1,
|
|
217
219
|
class: m([b(A)("content")])
|
|
218
|
-
}, y(d.content), 3))]),
|
|
220
|
+
}, y(d.content), 3))], 64)) : o("", !0)]),
|
|
219
221
|
g(e.$slots, "footer", {
|
|
220
222
|
cancel: K,
|
|
221
223
|
cancelSize: d.cancelSize,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmitFn } from 'vue';
|
|
2
2
|
import { PopconfirmEmits } from './types';
|
|
3
3
|
export declare function usePopconfirmEmits(emits: EmitFn<PopconfirmEmits>): {
|
|
4
|
-
beforeEnter: (el:
|
|
5
|
-
enter: (el:
|
|
6
|
-
enterCancelled: (el:
|
|
7
|
-
afterEnter: (el:
|
|
8
|
-
beforeLeave: (el:
|
|
9
|
-
leave: (el:
|
|
10
|
-
leaveCancelled: (el:
|
|
11
|
-
afterLeave: (el:
|
|
4
|
+
beforeEnter: (el: HTMLElement) => void;
|
|
5
|
+
enter: (el: HTMLElement, done: any) => void;
|
|
6
|
+
enterCancelled: (el: HTMLElement) => void;
|
|
7
|
+
afterEnter: (el: HTMLElement) => void;
|
|
8
|
+
beforeLeave: (el: HTMLElement) => void;
|
|
9
|
+
leave: (el: HTMLElement, done: any) => void;
|
|
10
|
+
leaveCancelled: (el: HTMLElement) => void;
|
|
11
|
+
afterLeave: (el: HTMLElement) => void;
|
|
12
12
|
};
|
|
@@ -79,7 +79,7 @@ var b = ["innerHTML"], x = s({
|
|
|
79
79
|
type: Boolean,
|
|
80
80
|
default: !0
|
|
81
81
|
},
|
|
82
|
-
cssDuration: { default:
|
|
82
|
+
cssDuration: { default: 300 },
|
|
83
83
|
arrowSize: { default: 8 },
|
|
84
84
|
arrowOffset: { default: 4 },
|
|
85
85
|
arrowOptions: { default: () => void 0 },
|
|
@@ -98,7 +98,9 @@ var b = ["innerHTML"], x = s({
|
|
|
98
98
|
default: () => void 0
|
|
99
99
|
},
|
|
100
100
|
virtualRef: { default: () => void 0 },
|
|
101
|
-
zIndex: {}
|
|
101
|
+
zIndex: {},
|
|
102
|
+
transform: { type: Boolean },
|
|
103
|
+
strategy: {}
|
|
102
104
|
}, {
|
|
103
105
|
visible: { type: Boolean },
|
|
104
106
|
visibleModifiers: {}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EmitFn } from 'vue';
|
|
2
2
|
import { PopoverEmits } from './types';
|
|
3
3
|
export declare function usePopoverEmits(emits: EmitFn<PopoverEmits>): {
|
|
4
|
-
beforeEnter: (el:
|
|
5
|
-
enter: (el:
|
|
6
|
-
enterCancelled: (el:
|
|
7
|
-
afterEnter: (el:
|
|
8
|
-
beforeLeave: (el:
|
|
9
|
-
leave: (el:
|
|
10
|
-
leaveCancelled: (el:
|
|
11
|
-
afterLeave: (el:
|
|
4
|
+
beforeEnter: (el: HTMLElement) => void;
|
|
5
|
+
enter: (el: HTMLElement, done: any) => void;
|
|
6
|
+
enterCancelled: (el: HTMLElement) => void;
|
|
7
|
+
afterEnter: (el: HTMLElement) => void;
|
|
8
|
+
beforeLeave: (el: HTMLElement) => void;
|
|
9
|
+
leave: (el: HTMLElement, done: any) => void;
|
|
10
|
+
leaveCancelled: (el: HTMLElement) => void;
|
|
11
|
+
afterLeave: (el: HTMLElement) => void;
|
|
12
12
|
};
|
|
@@ -22,7 +22,7 @@ var l = [
|
|
|
22
22
|
size: { default: 16 },
|
|
23
23
|
fill: { default: () => void 0 },
|
|
24
24
|
fillRule: { default: () => void 0 },
|
|
25
|
-
|
|
25
|
+
stroke: { default: () => void 0 },
|
|
26
26
|
spin: {
|
|
27
27
|
type: Boolean,
|
|
28
28
|
default: !1
|
|
@@ -39,7 +39,7 @@ var l = [
|
|
|
39
39
|
"stroke-linecap": "round",
|
|
40
40
|
"stroke-linejoin": "round",
|
|
41
41
|
"stroke-width": "2",
|
|
42
|
-
stroke: a.
|
|
42
|
+
stroke: a.stroke,
|
|
43
43
|
xmlns: "http://www.w3.org/2000/svg",
|
|
44
44
|
"aria-hidden": "true"
|
|
45
45
|
}, [i("path", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, StyleValue } from 'vue';
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComputedRef, ShallowRef, Ref, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, StyleValue } from 'vue';
|
|
2
2
|
import { TooltipProps } from '.';
|
|
3
3
|
import { VirtualElement, Placement } from '@floating-ui/vue';
|
|
4
4
|
export * from './src/use-tooltip-emit';
|
|
@@ -25,6 +25,8 @@ export declare const ReTooltip: {
|
|
|
25
25
|
triggerRef: ComputedRef<HTMLElement | VirtualElement | null | undefined>;
|
|
26
26
|
floatingRef: Readonly< ShallowRef<HTMLElement | null>>;
|
|
27
27
|
arrowRef: Readonly< ShallowRef<HTMLSpanElement | null, HTMLSpanElement | null>>;
|
|
28
|
+
floatingPlacement: Readonly< Ref<Placement, Placement>>;
|
|
29
|
+
isPositioned: Readonly< Ref<boolean, boolean>>;
|
|
28
30
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
31
|
beforeEnter: (el: HTMLElement) => any;
|
|
30
32
|
enter: (el: HTMLElement, done: () => void) => any;
|
|
@@ -63,6 +65,8 @@ export declare const ReTooltip: {
|
|
|
63
65
|
triggerRef: ComputedRef<HTMLElement | VirtualElement | null | undefined>;
|
|
64
66
|
floatingRef: Readonly< ShallowRef<HTMLElement | null>>;
|
|
65
67
|
arrowRef: Readonly< ShallowRef<HTMLSpanElement | null, HTMLSpanElement | null>>;
|
|
68
|
+
floatingPlacement: Readonly< Ref<Placement, Placement>>;
|
|
69
|
+
isPositioned: Readonly< Ref<boolean, boolean>>;
|
|
66
70
|
}, {}, {}, {}, {}>;
|
|
67
71
|
__isFragment?: never;
|
|
68
72
|
__isTeleport?: never;
|
|
@@ -88,6 +92,8 @@ export declare const ReTooltip: {
|
|
|
88
92
|
triggerRef: ComputedRef<HTMLElement | VirtualElement | null | undefined>;
|
|
89
93
|
floatingRef: Readonly< ShallowRef<HTMLElement | null>>;
|
|
90
94
|
arrowRef: Readonly< ShallowRef<HTMLSpanElement | null, HTMLSpanElement | null>>;
|
|
95
|
+
floatingPlacement: Readonly< Ref<Placement, Placement>>;
|
|
96
|
+
isPositioned: Readonly< Ref<boolean, boolean>>;
|
|
91
97
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
92
98
|
beforeEnter: (el: HTMLElement) => any;
|
|
93
99
|
enter: (el: HTMLElement, done: () => void) => any;
|
|
@@ -104,6 +110,7 @@ export declare const ReTooltip: {
|
|
|
104
110
|
isHtml: boolean | undefined;
|
|
105
111
|
content: string;
|
|
106
112
|
zIndex: number;
|
|
113
|
+
placement: Placement;
|
|
107
114
|
}) => any;
|
|
108
115
|
} & {
|
|
109
116
|
arrow?: (props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue, DefineComponent, ComputedRef, ShallowRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { StyleValue, DefineComponent, ComputedRef, ShallowRef, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { TooltipProps } from './types';
|
|
3
3
|
import { Placement, VirtualElement } from '@floating-ui/vue';
|
|
4
4
|
type __VLS_Props = TooltipProps;
|
|
@@ -10,6 +10,7 @@ declare var __VLS_23: {
|
|
|
10
10
|
isHtml: boolean | undefined;
|
|
11
11
|
content: string;
|
|
12
12
|
zIndex: number;
|
|
13
|
+
placement: Placement;
|
|
13
14
|
}, __VLS_25: {
|
|
14
15
|
showArrow: boolean;
|
|
15
16
|
arrowStyle: StyleValue;
|
|
@@ -30,6 +31,8 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
|
|
|
30
31
|
triggerRef: ComputedRef<HTMLElement | VirtualElement | null | undefined>;
|
|
31
32
|
floatingRef: Readonly< ShallowRef<HTMLElement | null>>;
|
|
32
33
|
arrowRef: Readonly< ShallowRef<HTMLSpanElement | null, HTMLSpanElement | null>>;
|
|
34
|
+
floatingPlacement: Readonly< Ref<Placement, Placement>>;
|
|
35
|
+
isPositioned: Readonly< Ref<boolean, boolean>>;
|
|
33
36
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
34
37
|
beforeEnter: (el: HTMLElement) => any;
|
|
35
38
|
enter: (el: HTMLElement, done: () => void) => any;
|