first commit
This commit is contained in:
27
node_modules/vant/es/action-bar/ActionBar.d.ts
generated
vendored
Normal file
27
node_modules/vant/es/action-bar/ActionBar.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { type ExtractPropTypes } from 'vue';
|
||||
export declare const ACTION_BAR_KEY: unique symbol;
|
||||
export declare const actionBarProps: {
|
||||
placeholder: BooleanConstructor;
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
};
|
||||
export type ActionBarProps = ExtractPropTypes<typeof actionBarProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
placeholder: BooleanConstructor;
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
placeholder: BooleanConstructor;
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
placeholder: boolean;
|
||||
safeAreaInsetBottom: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
44
node_modules/vant/es/action-bar/ActionBar.mjs
generated
vendored
Normal file
44
node_modules/vant/es/action-bar/ActionBar.mjs
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
import { defineComponent, ref, createVNode as _createVNode } from "vue";
|
||||
import { truthProp, createNamespace } from "../utils/index.mjs";
|
||||
import { useChildren } from "@vant/use";
|
||||
import { usePlaceholder } from "../composables/use-placeholder.mjs";
|
||||
const [name, bem] = createNamespace("action-bar");
|
||||
const ACTION_BAR_KEY = Symbol(name);
|
||||
const actionBarProps = {
|
||||
placeholder: Boolean,
|
||||
safeAreaInsetBottom: truthProp
|
||||
};
|
||||
var stdin_default = defineComponent({
|
||||
name,
|
||||
props: actionBarProps,
|
||||
setup(props, {
|
||||
slots
|
||||
}) {
|
||||
const root = ref();
|
||||
const renderPlaceholder = usePlaceholder(root, bem);
|
||||
const {
|
||||
linkChildren
|
||||
} = useChildren(ACTION_BAR_KEY);
|
||||
linkChildren();
|
||||
const renderActionBar = () => {
|
||||
var _a;
|
||||
return _createVNode("div", {
|
||||
"ref": root,
|
||||
"class": [bem(), {
|
||||
"van-safe-area-bottom": props.safeAreaInsetBottom
|
||||
}]
|
||||
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
||||
};
|
||||
return () => {
|
||||
if (props.placeholder) {
|
||||
return renderPlaceholder(renderActionBar);
|
||||
}
|
||||
return renderActionBar();
|
||||
};
|
||||
}
|
||||
});
|
||||
export {
|
||||
ACTION_BAR_KEY,
|
||||
actionBarProps,
|
||||
stdin_default as default
|
||||
};
|
||||
1
node_modules/vant/es/action-bar/index.css
generated
vendored
Normal file
1
node_modules/vant/es/action-bar/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
||||
25
node_modules/vant/es/action-bar/index.d.ts
generated
vendored
Normal file
25
node_modules/vant/es/action-bar/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
export declare const ActionBar: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
placeholder: BooleanConstructor;
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
placeholder: BooleanConstructor;
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>> & Readonly<{}>, {
|
||||
placeholder: boolean;
|
||||
safeAreaInsetBottom: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default ActionBar;
|
||||
export { actionBarProps } from './ActionBar';
|
||||
export type { ActionBarProps } from './ActionBar';
|
||||
export type { ActionBarThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanActionBar: typeof ActionBar;
|
||||
}
|
||||
}
|
||||
10
node_modules/vant/es/action-bar/index.mjs
generated
vendored
Normal file
10
node_modules/vant/es/action-bar/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { withInstall } from "../utils/index.mjs";
|
||||
import _ActionBar from "./ActionBar.mjs";
|
||||
const ActionBar = withInstall(_ActionBar);
|
||||
var stdin_default = ActionBar;
|
||||
import { actionBarProps } from "./ActionBar.mjs";
|
||||
export {
|
||||
ActionBar,
|
||||
actionBarProps,
|
||||
stdin_default as default
|
||||
};
|
||||
1
node_modules/vant/es/action-bar/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/es/action-bar/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
2
node_modules/vant/es/action-bar/style/index.mjs
generated
vendored
Normal file
2
node_modules/vant/es/action-bar/style/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import "../../style/base.css";
|
||||
import "../index.css";
|
||||
4
node_modules/vant/es/action-bar/types.d.ts
generated
vendored
Normal file
4
node_modules/vant/es/action-bar/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export type ActionBarThemeVars = {
|
||||
actionBarBackground?: string;
|
||||
actionBarHeight?: string;
|
||||
};
|
||||
0
node_modules/vant/es/action-bar/types.mjs
generated
vendored
Normal file
0
node_modules/vant/es/action-bar/types.mjs
generated
vendored
Normal file
Reference in New Issue
Block a user