first commit
This commit is contained in:
43
node_modules/vant/lib/action-bar-button/ActionBarButton.d.ts
generated
vendored
Normal file
43
node_modules/vant/lib/action-bar-button/ActionBarButton.d.ts
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
import { type PropType, type ExtractPropTypes } from 'vue';
|
||||
import { ButtonType } from '../button';
|
||||
export declare const actionBarButtonProps: {
|
||||
to: PropType<import("vue-router").RouteLocationRaw>;
|
||||
url: StringConstructor;
|
||||
replace: BooleanConstructor;
|
||||
} & {
|
||||
type: PropType<ButtonType>;
|
||||
text: StringConstructor;
|
||||
icon: StringConstructor;
|
||||
color: StringConstructor;
|
||||
loading: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
};
|
||||
export type ActionBarButtonProps = ExtractPropTypes<typeof actionBarButtonProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
to: PropType<import("vue-router").RouteLocationRaw>;
|
||||
url: StringConstructor;
|
||||
replace: BooleanConstructor;
|
||||
} & {
|
||||
type: PropType<ButtonType>;
|
||||
text: StringConstructor;
|
||||
icon: StringConstructor;
|
||||
color: StringConstructor;
|
||||
loading: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
to: PropType<import("vue-router").RouteLocationRaw>;
|
||||
url: StringConstructor;
|
||||
replace: BooleanConstructor;
|
||||
} & {
|
||||
type: PropType<ButtonType>;
|
||||
text: StringConstructor;
|
||||
icon: StringConstructor;
|
||||
color: StringConstructor;
|
||||
loading: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
}>> & Readonly<{}>, {
|
||||
replace: boolean;
|
||||
disabled: boolean;
|
||||
loading: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
92
node_modules/vant/lib/action-bar-button/ActionBarButton.js
generated
vendored
Normal file
92
node_modules/vant/lib/action-bar-button/ActionBarButton.js
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name2 in all)
|
||||
__defProp(target, name2, { get: all[name2], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
__export(stdin_exports, {
|
||||
actionBarButtonProps: () => actionBarButtonProps,
|
||||
default: () => stdin_default
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
var import_ActionBar = require("../action-bar/ActionBar");
|
||||
var import_use = require("@vant/use");
|
||||
var import_use_expose = require("../composables/use-expose");
|
||||
var import_use_route = require("../composables/use-route");
|
||||
var import_button = require("../button");
|
||||
const [name, bem] = (0, import_utils.createNamespace)("action-bar-button");
|
||||
const actionBarButtonProps = (0, import_utils.extend)({}, import_use_route.routeProps, {
|
||||
type: String,
|
||||
text: String,
|
||||
icon: String,
|
||||
color: String,
|
||||
loading: Boolean,
|
||||
disabled: Boolean
|
||||
});
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: actionBarButtonProps,
|
||||
setup(props, {
|
||||
slots
|
||||
}) {
|
||||
const route = (0, import_use_route.useRoute)();
|
||||
const {
|
||||
parent,
|
||||
index
|
||||
} = (0, import_use.useParent)(import_ActionBar.ACTION_BAR_KEY);
|
||||
const isFirst = (0, import_vue.computed)(() => {
|
||||
if (parent) {
|
||||
const prev = parent.children[index.value - 1];
|
||||
return !(prev && "isButton" in prev);
|
||||
}
|
||||
});
|
||||
const isLast = (0, import_vue.computed)(() => {
|
||||
if (parent) {
|
||||
const next = parent.children[index.value + 1];
|
||||
return !(next && "isButton" in next);
|
||||
}
|
||||
});
|
||||
(0, import_use_expose.useExpose)({
|
||||
isButton: true
|
||||
});
|
||||
return () => {
|
||||
const {
|
||||
type,
|
||||
icon,
|
||||
text,
|
||||
color,
|
||||
loading,
|
||||
disabled
|
||||
} = props;
|
||||
return (0, import_vue.createVNode)(import_button.Button, {
|
||||
"class": bem([type, {
|
||||
last: isLast.value,
|
||||
first: isFirst.value
|
||||
}]),
|
||||
"size": "large",
|
||||
"type": type,
|
||||
"icon": icon,
|
||||
"color": color,
|
||||
"loading": loading,
|
||||
"disabled": disabled,
|
||||
"onClick": route
|
||||
}, {
|
||||
default: () => [slots.default ? slots.default() : text]
|
||||
});
|
||||
};
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/action-bar-button/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/action-bar-button/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media (max-width: 321px){.van-action-bar-button{font-size:13px}}
|
||||
36
node_modules/vant/lib/action-bar-button/index.d.ts
generated
vendored
Normal file
36
node_modules/vant/lib/action-bar-button/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
export declare const ActionBarButton: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
||||
url: StringConstructor;
|
||||
replace: BooleanConstructor;
|
||||
} & {
|
||||
type: import("vue").PropType<import("..").ButtonType>;
|
||||
text: StringConstructor;
|
||||
icon: StringConstructor;
|
||||
color: StringConstructor;
|
||||
loading: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
to: import("vue").PropType<import("vue-router").RouteLocationRaw>;
|
||||
url: StringConstructor;
|
||||
replace: BooleanConstructor;
|
||||
} & {
|
||||
type: import("vue").PropType<import("..").ButtonType>;
|
||||
text: StringConstructor;
|
||||
icon: StringConstructor;
|
||||
color: StringConstructor;
|
||||
loading: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
}>> & Readonly<{}>, {
|
||||
replace: boolean;
|
||||
disabled: boolean;
|
||||
loading: boolean;
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default ActionBarButton;
|
||||
export { actionBarButtonProps } from './ActionBarButton';
|
||||
export type { ActionBarButtonProps } from './ActionBarButton';
|
||||
export type { ActionBarButtonThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanActionBarButton: typeof ActionBarButton;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/action-bar-button/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/action-bar-button/index.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
__export(stdin_exports, {
|
||||
ActionBarButton: () => ActionBarButton,
|
||||
actionBarButtonProps: () => import_ActionBarButton2.actionBarButtonProps,
|
||||
default: () => stdin_default
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_ActionBarButton = __toESM(require("./ActionBarButton"));
|
||||
var import_ActionBarButton2 = require("./ActionBarButton");
|
||||
const ActionBarButton = (0, import_utils.withInstall)(import_ActionBarButton.default);
|
||||
var stdin_default = ActionBarButton;
|
||||
1
node_modules/vant/lib/action-bar-button/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/action-bar-button/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
7
node_modules/vant/lib/action-bar-button/style/index.js
generated
vendored
Normal file
7
node_modules/vant/lib/action-bar-button/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
require("../../style/base.css");
|
||||
require("../../action-bar/index.css");
|
||||
require("../../badge/index.css");
|
||||
require("../../icon/index.css");
|
||||
require("../../loading/index.css");
|
||||
require("../../button/index.css");
|
||||
require("../index.css");
|
||||
5
node_modules/vant/lib/action-bar-button/types.d.ts
generated
vendored
Normal file
5
node_modules/vant/lib/action-bar-button/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export type ActionBarButtonThemeVars = {
|
||||
actionBarButtonHeight?: string;
|
||||
actionBarButtonWarningColor?: string;
|
||||
actionBarButtonDangerColor?: string;
|
||||
};
|
||||
15
node_modules/vant/lib/action-bar-button/types.js
generated
vendored
Normal file
15
node_modules/vant/lib/action-bar-button/types.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
var stdin_exports = {};
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
Reference in New Issue
Block a user