Socket
Socket
Sign inDemoInstall

vant

Package Overview
Dependencies
23
Maintainers
7
Versions
559
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.2 to 4.2.0

es/watermark/index.css

3

es/index.d.ts

@@ -96,2 +96,3 @@ export * from "./action-bar";

export * from "./uploader";
export * from "./watermark";
declare namespace _default {

@@ -103,2 +104,2 @@ export { install };

export function install(app: any): void;
export const version: "4.1.2";
export const version: "4.2.0";

@@ -6,2 +6,6 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").DefineComponent<{

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -24,2 +28,6 @@ type: import("vue").PropType<string>;

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -42,2 +50,3 @@ type: import("vue").PropType<string>;

rows: string | number;
dots: string;
expandText: string;

@@ -44,0 +53,0 @@ collapseText: string;

@@ -7,2 +7,6 @@ import { type ExtractPropTypes } from 'vue';

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -27,2 +31,6 @@ type: import("vue").PropType<string>;

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -45,2 +53,6 @@ type: import("vue").PropType<string>;

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -63,2 +75,3 @@ type: import("vue").PropType<string>;

rows: string | number;
dots: string;
expandText: string;

@@ -65,0 +78,0 @@ collapseText: string;

@@ -96,2 +96,3 @@ export * from "./action-bar";

export * from "./uploader";
export * from "./watermark";
declare namespace _default {

@@ -103,2 +104,2 @@ export { install };

export function install(app: any): void;
export const version: "4.1.2";
export const version: "4.2.0";

@@ -120,2 +120,3 @@ var __defProp = Object.defineProperty;

var import_uploader = require("./uploader");
var import_watermark = require("./watermark");
__reExport(stdin_exports, require("./action-bar"), module.exports);

@@ -216,3 +217,4 @@ __reExport(stdin_exports, require("./action-bar-button"), module.exports);

__reExport(stdin_exports, require("./uploader"), module.exports);
const version = "4.1.2";
__reExport(stdin_exports, require("./watermark"), module.exports);
const version = "4.2.0";
function install(app) {

@@ -313,3 +315,4 @@ const components = [

import_tree_select.TreeSelect,
import_uploader.Uploader
import_uploader.Uploader,
import_watermark.Watermark
];

@@ -316,0 +319,0 @@ components.forEach((item) => {

@@ -30,2 +30,3 @@ var __defProp = Object.defineProperty;

var import_popup = require("../popup");
const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
const popupInheritKeys = [...import_shared.popupSharedPropKeys, "round", "closeOnPopstate", "safeAreaInsetBottom"];

@@ -80,13 +81,13 @@ const iconMap = {

const renderIcon = (icon) => {
if (iconMap[icon]) {
return (0, import_vue.createVNode)("div", {
"class": bem("icon", [icon])
}, [(0, import_vue.createVNode)(import_icon.Icon, {
"name": iconMap[icon] || icon
}, null)]);
if (isImage(icon)) {
return (0, import_vue.createVNode)("img", {
"src": icon,
"class": bem("image-icon")
}, null);
}
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)]);
};

@@ -93,0 +94,0 @@ const renderOption = (option, index) => {

@@ -363,3 +363,3 @@ var __defProp = Object.defineProperty;

(0, import_vue2.watch)(() => props.autoplay, autoplay);
(0, import_vue2.watch)([import_utils.windowWidth, import_utils.windowHeight], resize);
(0, import_vue2.watch)([import_utils.windowWidth, import_utils.windowHeight, () => props.width, () => props.height], resize);
(0, import_vue2.watch)((0, import_use.usePageVisibility)(), (visible) => {

@@ -366,0 +366,0 @@ if (visible === "visible") {

@@ -6,2 +6,6 @@ export declare const TextEllipsis: import("../utils").WithInstall<import("vue").DefineComponent<{

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -24,2 +28,6 @@ type: import("vue").PropType<string>;

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -42,2 +50,3 @@ type: import("vue").PropType<string>;

rows: string | number;
dots: string;
expandText: string;

@@ -44,0 +53,0 @@ collapseText: string;

@@ -7,2 +7,6 @@ import { type ExtractPropTypes } from 'vue';

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -27,2 +31,6 @@ type: import("vue").PropType<string>;

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -45,2 +53,6 @@ type: import("vue").PropType<string>;

};
dots: {
type: import("vue").PropType<string>;
default: string;
};
content: {

@@ -63,2 +75,3 @@ type: import("vue").PropType<string>;

rows: string | number;
dots: string;
expandText: string;

@@ -65,0 +78,0 @@ collapseText: string;

@@ -31,2 +31,3 @@ var __defProp = Object.defineProperty;

rows: (0, import_utils.makeNumericProp)(1),
dots: (0, import_utils.makeStringProp)("..."),
content: (0, import_utils.makeStringProp)(""),

@@ -75,6 +76,6 @@ expandText: (0, import_utils.makeStringProp)(""),

const {
dots,
content,
expandText
} = props;
const dot = "...";
let left = 0;

@@ -85,3 +86,3 @@ let right = content.length;

const mid = Math.floor((left + right) / 2);
container2.innerText = content.slice(0, mid) + dot + expandText;
container2.innerText = content.slice(0, mid) + dots + expandText;
if (container2.offsetHeight <= maxHeight2) {

@@ -94,3 +95,3 @@ left = mid + 1;

}
return content.slice(0, res) + dot;
return content.slice(0, res) + dots;
};

@@ -97,0 +98,0 @@ const container = cloneContainer();

{
"name": "vant",
"version": "4.1.2",
"version": "4.2.0",
"description": "Mobile UI Components built on Vue",

@@ -5,0 +5,0 @@ "main": "lib/vant.cjs.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc