first commit
This commit is contained in:
165
node_modules/vant/lib/share-sheet/ShareSheet.d.ts
generated
vendored
Normal file
165
node_modules/vant/lib/share-sheet/ShareSheet.d.ts
generated
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
import { type ExtractPropTypes } from 'vue';
|
||||
export type ShareSheetOption = {
|
||||
name: string;
|
||||
icon: string;
|
||||
className?: string;
|
||||
description?: string;
|
||||
};
|
||||
export type ShareSheetOptions = ShareSheetOption[] | ShareSheetOption[][];
|
||||
export declare const shareSheetProps: {
|
||||
show: BooleanConstructor;
|
||||
zIndex: (NumberConstructor | StringConstructor)[];
|
||||
overlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
duration: (NumberConstructor | StringConstructor)[];
|
||||
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
||||
lockScroll: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
lazyRender: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
||||
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
||||
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
||||
overlayClass: import("vue").PropType<unknown>;
|
||||
transitionAppear: BooleanConstructor;
|
||||
closeOnClickOverlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
} & {
|
||||
title: StringConstructor;
|
||||
round: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
options: {
|
||||
type: import("vue").PropType<(ShareSheetOption | ShareSheetOption[])[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
cancelText: StringConstructor;
|
||||
description: StringConstructor;
|
||||
closeOnPopstate: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
};
|
||||
export type ShareSheetProps = ExtractPropTypes<typeof shareSheetProps>;
|
||||
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
zIndex: (NumberConstructor | StringConstructor)[];
|
||||
overlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
duration: (NumberConstructor | StringConstructor)[];
|
||||
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
||||
lockScroll: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
lazyRender: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
||||
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
||||
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
||||
overlayClass: import("vue").PropType<unknown>;
|
||||
transitionAppear: BooleanConstructor;
|
||||
closeOnClickOverlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
} & {
|
||||
title: StringConstructor;
|
||||
round: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
options: {
|
||||
type: import("vue").PropType<(ShareSheetOption | ShareSheetOption[])[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
cancelText: StringConstructor;
|
||||
description: StringConstructor;
|
||||
closeOnPopstate: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
zIndex: (NumberConstructor | StringConstructor)[];
|
||||
overlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
duration: (NumberConstructor | StringConstructor)[];
|
||||
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
||||
lockScroll: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
lazyRender: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
||||
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
||||
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
||||
overlayClass: import("vue").PropType<unknown>;
|
||||
transitionAppear: BooleanConstructor;
|
||||
closeOnClickOverlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
} & {
|
||||
title: StringConstructor;
|
||||
round: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
options: {
|
||||
type: import("vue").PropType<(ShareSheetOption | ShareSheetOption[])[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
cancelText: StringConstructor;
|
||||
description: StringConstructor;
|
||||
closeOnPopstate: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onSelect?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
||||
onCancel?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
round: boolean;
|
||||
overlay: boolean;
|
||||
show: boolean;
|
||||
safeAreaInsetBottom: boolean;
|
||||
lockScroll: boolean;
|
||||
lazyRender: boolean;
|
||||
transitionAppear: boolean;
|
||||
closeOnClickOverlay: boolean;
|
||||
closeOnPopstate: boolean;
|
||||
options: (ShareSheetOption | ShareSheetOption[])[];
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
||||
export default _default;
|
||||
142
node_modules/vant/lib/share-sheet/ShareSheet.js
generated
vendored
Normal file
142
node_modules/vant/lib/share-sheet/ShareSheet.js
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
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, {
|
||||
default: () => stdin_default,
|
||||
shareSheetProps: () => shareSheetProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_vue = require("vue");
|
||||
var import_utils = require("../utils");
|
||||
var import_shared = require("../popup/shared");
|
||||
var import_icon = require("../icon");
|
||||
var import_popup = require("../popup");
|
||||
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
|
||||
const popupInheritKeys = [...import_shared.popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];
|
||||
const iconMap = {
|
||||
qq: "qq",
|
||||
link: "link-o",
|
||||
weibo: "weibo",
|
||||
qrcode: "qr",
|
||||
poster: "photo-o",
|
||||
wechat: "wechat",
|
||||
"weapp-qrcode": "miniprogram-o",
|
||||
"wechat-moments": "wechat-moments"
|
||||
};
|
||||
const [name, bem, t] = (0, import_utils.createNamespace)("share-sheet");
|
||||
const shareSheetProps = (0, import_utils.extend)({}, import_shared.popupSharedProps, {
|
||||
title: String,
|
||||
round: import_utils.truthProp,
|
||||
options: (0, import_utils.makeArrayProp)(),
|
||||
cancelText: String,
|
||||
description: String,
|
||||
closeOnPopstate: import_utils.truthProp,
|
||||
safeAreaInsetBottom: import_utils.truthProp
|
||||
});
|
||||
var stdin_default = (0, import_vue.defineComponent)({
|
||||
name,
|
||||
props: shareSheetProps,
|
||||
emits: ["cancel", "select", "update:show"],
|
||||
setup(props, {
|
||||
emit,
|
||||
slots
|
||||
}) {
|
||||
const updateShow = (value) => emit("update:show", value);
|
||||
const onCancel = () => {
|
||||
updateShow(false);
|
||||
emit("cancel");
|
||||
};
|
||||
const onSelect = (option, index) => emit("select", option, index);
|
||||
const renderHeader = () => {
|
||||
const title = slots.title ? slots.title() : props.title;
|
||||
const description = slots.description ? slots.description() : props.description;
|
||||
if (title || description) {
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"class": bem("header")
|
||||
}, [title && (0, import_vue.createVNode)("h2", {
|
||||
"class": bem("title")
|
||||
}, [title]), description && (0, import_vue.createVNode)("span", {
|
||||
"class": bem("description")
|
||||
}, [description])]);
|
||||
}
|
||||
};
|
||||
const renderIcon = (icon) => {
|
||||
if (isImage(icon)) {
|
||||
return (0, import_vue.createVNode)("img", {
|
||||
"src": icon,
|
||||
"class": bem("image-icon")
|
||||
}, null);
|
||||
}
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"class": bem("icon", [icon])
|
||||
}, [(0, import_vue.createVNode)(import_icon.Icon, {
|
||||
"name": iconMap[icon] || icon
|
||||
}, null)]);
|
||||
};
|
||||
const renderOption = (option, index) => {
|
||||
const {
|
||||
name: name2,
|
||||
icon,
|
||||
className,
|
||||
description
|
||||
} = option;
|
||||
return (0, import_vue.createVNode)("div", {
|
||||
"role": "button",
|
||||
"tabindex": 0,
|
||||
"class": [bem("option"), className, import_utils.HAPTICS_FEEDBACK],
|
||||
"onClick": () => onSelect(option, index)
|
||||
}, [renderIcon(icon), name2 && (0, import_vue.createVNode)("span", {
|
||||
"class": bem("name")
|
||||
}, [name2]), description && (0, import_vue.createVNode)("span", {
|
||||
"class": bem("option-description")
|
||||
}, [description])]);
|
||||
};
|
||||
const renderOptions = (options, border) => (0, import_vue.createVNode)("div", {
|
||||
"class": bem("options", {
|
||||
border
|
||||
})
|
||||
}, [options.map(renderOption)]);
|
||||
const renderRows = () => {
|
||||
const {
|
||||
options
|
||||
} = props;
|
||||
if (Array.isArray(options[0])) {
|
||||
return options.map((item, index) => renderOptions(item, index !== 0));
|
||||
}
|
||||
return renderOptions(options);
|
||||
};
|
||||
const renderCancelButton = () => {
|
||||
var _a;
|
||||
const cancelText = (_a = props.cancelText) != null ? _a : t("cancel");
|
||||
if (slots.cancel || cancelText) {
|
||||
return (0, import_vue.createVNode)("button", {
|
||||
"type": "button",
|
||||
"class": bem("cancel"),
|
||||
"onClick": onCancel
|
||||
}, [slots.cancel ? slots.cancel() : cancelText]);
|
||||
}
|
||||
};
|
||||
return () => (0, import_vue.createVNode)(import_popup.Popup, (0, import_vue.mergeProps)({
|
||||
"class": bem(),
|
||||
"position": "bottom",
|
||||
"onUpdate:show": updateShow
|
||||
}, (0, import_utils.pick)(props, popupInheritKeys)), {
|
||||
default: () => [renderHeader(), renderRows(), renderCancelButton()]
|
||||
});
|
||||
}
|
||||
});
|
||||
1
node_modules/vant/lib/share-sheet/index.css
generated
vendored
Normal file
1
node_modules/vant/lib/share-sheet/index.css
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
:root,:host{--van-share-sheet-header-padding: var(--van-padding-sm) var(--van-padding-md);--van-share-sheet-title-color: var(--van-text-color);--van-share-sheet-title-font-size: var(--van-font-size-md);--van-share-sheet-title-line-height: var(--van-line-height-md);--van-share-sheet-description-color: var(--van-text-color-2);--van-share-sheet-description-font-size: var(--van-font-size-sm);--van-share-sheet-description-line-height: 16px;--van-share-sheet-icon-size: 48px;--van-share-sheet-option-name-color: var(--van-gray-7);--van-share-sheet-option-name-font-size: var(--van-font-size-sm);--van-share-sheet-option-description-color: var(--van-text-color-3);--van-share-sheet-option-description-font-size: var(--van-font-size-sm);--van-share-sheet-cancel-button-font-size: var(--van-font-size-lg);--van-share-sheet-cancel-button-height: 48px;--van-share-sheet-cancel-button-background: var(--van-background-2)}.van-share-sheet__header{padding:var(--van-share-sheet-header-padding);text-align:center}.van-share-sheet__title{margin-top:var(--van-padding-xs);color:var(--van-share-sheet-title-color);font-weight:400;font-size:var(--van-share-sheet-title-font-size);line-height:var(--van-share-sheet-title-line-height)}.van-share-sheet__description{display:block;margin-top:var(--van-padding-xs);color:var(--van-share-sheet-description-color);font-size:var(--van-share-sheet-description-font-size);line-height:var(--van-share-sheet-description-line-height)}.van-share-sheet__options{position:relative;display:flex;padding:var(--van-padding-md) 0 var(--van-padding-md) var(--van-padding-xs);overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:0;right:0;left:var(--van-padding-md);border-top:1px solid var(--van-border-color);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:flex;flex-direction:column;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__icon,.van-share-sheet__image-icon{width:var(--van-share-sheet-icon-size);height:var(--van-share-sheet-icon-size);margin:0 var(--van-padding-md)}.van-share-sheet__icon{display:flex;align-items:center;justify-content:center;color:var(--van-gray-7);border-radius:100%;background-color:var(--van-gray-2)}.van-share-sheet__icon--link,.van-share-sheet__icon--poster,.van-share-sheet__icon--qrcode{font-size:26px}.van-share-sheet__icon--weapp-qrcode{font-size:28px}.van-share-sheet__icon--qq,.van-share-sheet__icon--weibo,.van-share-sheet__icon--wechat,.van-share-sheet__icon--wechat-moments{font-size:30px;color:var(--van-white)}.van-share-sheet__icon--qq{background-color:#38b9fa}.van-share-sheet__icon--wechat{background-color:#0bc15f}.van-share-sheet__icon--weibo{background-color:#ee575e}.van-share-sheet__icon--wechat-moments{background-color:#7bc845}.van-share-sheet__name{margin-top:var(--van-padding-xs);padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-name-color);font-size:var(--van-share-sheet-option-name-font-size)}.van-share-sheet__option-description{padding:0 var(--van-padding-base);color:var(--van-share-sheet-option-description-color);font-size:var(--van-share-sheet-option-description-font-size)}.van-share-sheet__cancel{display:block;width:100%;padding:0;font-size:var(--van-share-sheet-cancel-button-font-size);line-height:var(--van-share-sheet-cancel-button-height);text-align:center;background:var(--van-share-sheet-cancel-button-background);border:none;cursor:pointer}.van-share-sheet__cancel:before{display:block;height:var(--van-padding-xs);background-color:var(--van-background);content:" "}.van-share-sheet__cancel:active{background-color:var(--van-active-color)}
|
||||
117
node_modules/vant/lib/share-sheet/index.d.ts
generated
vendored
Normal file
117
node_modules/vant/lib/share-sheet/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
export declare const ShareSheet: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
zIndex: (NumberConstructor | StringConstructor)[];
|
||||
overlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
duration: (NumberConstructor | StringConstructor)[];
|
||||
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
||||
lockScroll: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
lazyRender: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
||||
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
||||
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
||||
overlayClass: import("vue").PropType<unknown>;
|
||||
transitionAppear: BooleanConstructor;
|
||||
closeOnClickOverlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
} & {
|
||||
title: StringConstructor;
|
||||
round: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
options: {
|
||||
type: import("vue").PropType<(import("./ShareSheet").ShareSheetOption | import("./ShareSheet").ShareSheetOption[])[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
cancelText: StringConstructor;
|
||||
description: StringConstructor;
|
||||
closeOnPopstate: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
show: BooleanConstructor;
|
||||
zIndex: (NumberConstructor | StringConstructor)[];
|
||||
overlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
duration: (NumberConstructor | StringConstructor)[];
|
||||
teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
|
||||
lockScroll: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
lazyRender: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
beforeClose: import("vue").PropType<import("../utils").Interceptor>;
|
||||
overlayProps: import("vue").PropType<Partial<import("..").OverlayProps>>;
|
||||
overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
|
||||
overlayClass: import("vue").PropType<unknown>;
|
||||
transitionAppear: BooleanConstructor;
|
||||
closeOnClickOverlay: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
} & {
|
||||
title: StringConstructor;
|
||||
round: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
options: {
|
||||
type: import("vue").PropType<(import("./ShareSheet").ShareSheetOption | import("./ShareSheet").ShareSheetOption[])[]>;
|
||||
default: () => never[];
|
||||
};
|
||||
cancelText: StringConstructor;
|
||||
description: StringConstructor;
|
||||
closeOnPopstate: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
safeAreaInsetBottom: {
|
||||
type: BooleanConstructor;
|
||||
default: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onSelect?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
||||
onCancel?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
round: boolean;
|
||||
overlay: boolean;
|
||||
show: boolean;
|
||||
safeAreaInsetBottom: boolean;
|
||||
lockScroll: boolean;
|
||||
lazyRender: boolean;
|
||||
transitionAppear: boolean;
|
||||
closeOnClickOverlay: boolean;
|
||||
closeOnPopstate: boolean;
|
||||
options: (import("./ShareSheet").ShareSheetOption | import("./ShareSheet").ShareSheetOption[])[];
|
||||
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
||||
export default ShareSheet;
|
||||
export { shareSheetProps } from './ShareSheet';
|
||||
export type { ShareSheetProps, ShareSheetOption, ShareSheetOptions, } from './ShareSheet';
|
||||
export type { ShareSheetThemeVars } from './types';
|
||||
declare module 'vue' {
|
||||
interface GlobalComponents {
|
||||
VanShareSheet: typeof ShareSheet;
|
||||
}
|
||||
}
|
||||
39
node_modules/vant/lib/share-sheet/index.js
generated
vendored
Normal file
39
node_modules/vant/lib/share-sheet/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, {
|
||||
ShareSheet: () => ShareSheet,
|
||||
default: () => stdin_default,
|
||||
shareSheetProps: () => import_ShareSheet2.shareSheetProps
|
||||
});
|
||||
module.exports = __toCommonJS(stdin_exports);
|
||||
var import_utils = require("../utils");
|
||||
var import_ShareSheet = __toESM(require("./ShareSheet"));
|
||||
var import_ShareSheet2 = require("./ShareSheet");
|
||||
const ShareSheet = (0, import_utils.withInstall)(import_ShareSheet.default);
|
||||
var stdin_default = ShareSheet;
|
||||
1
node_modules/vant/lib/share-sheet/style/index.d.ts
generated
vendored
Normal file
1
node_modules/vant/lib/share-sheet/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
6
node_modules/vant/lib/share-sheet/style/index.js
generated
vendored
Normal file
6
node_modules/vant/lib/share-sheet/style/index.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
require("../../style/base.css");
|
||||
require("../../badge/index.css");
|
||||
require("../../icon/index.css");
|
||||
require("../../overlay/index.css");
|
||||
require("../../popup/index.css");
|
||||
require("../index.css");
|
||||
17
node_modules/vant/lib/share-sheet/types.d.ts
generated
vendored
Normal file
17
node_modules/vant/lib/share-sheet/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export type ShareSheetThemeVars = {
|
||||
shareSheetHeaderPadding?: string;
|
||||
shareSheetTitleColor?: string;
|
||||
shareSheetTitleFontSize?: string;
|
||||
shareSheetTitleLineHeight?: number | string;
|
||||
shareSheetDescriptionColor?: string;
|
||||
shareSheetDescriptionFontSize?: string;
|
||||
shareSheetDescriptionLineHeight?: number | string;
|
||||
shareSheetIconSize?: string;
|
||||
shareSheetOptionNameColor?: string;
|
||||
shareSheetOptionNameFontSize?: string;
|
||||
shareSheetOptionDescriptionColor?: string;
|
||||
shareSheetOptionDescriptionFontSize?: string;
|
||||
shareSheetCancelButtonFontSize?: string;
|
||||
shareSheetCancelButtonHeight?: string;
|
||||
shareSheetCancelButtonBackground?: string;
|
||||
};
|
||||
15
node_modules/vant/lib/share-sheet/types.js
generated
vendored
Normal file
15
node_modules/vant/lib/share-sheet/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