Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-search

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-search - npm Package Compare versions

Comparing version 2.8.0 to 2.8.2

12

lib/index.js

@@ -21,8 +21,12 @@ function _extends() {

var template = function template2(mode) {
if ("mobile" === (process.env.TINY_MODE || mode))
if ("pc" === (process.env.TINY_MODE || mode)) {
return PcTemplate;
}
if ("mobile" === (process.env.TINY_MODE || mode)) {
return MobileTemplate;
else if ("mobile-first" === (process.env.TINY_MODE || mode))
}
if ("mobile-first" === (process.env.TINY_MODE || mode)) {
return MobileFirstTemplate;
else
return PcTemplate;
}
return PcTemplate;
};

@@ -29,0 +33,0 @@ var Search = defineComponent({

{
"name": "@opentiny/vue-search",
"version": "2.8.0",
"version": "2.8.2",
"description": "",

@@ -8,5 +8,5 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-renderless": "~3.8.0",
"@opentiny/vue-common": "~2.8.0",
"@opentiny/vue-icon": "~2.8.0"
"@opentiny/vue-renderless": "~3.8.2",
"@opentiny/vue-common": "~2.8.2",
"@opentiny/vue-icon": "~2.8.2"
},

@@ -13,0 +13,0 @@ "license": "MIT",

@@ -1,142 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api").Data, {}, {}, {
mini: {
type: BooleanConstructor;
default: boolean;
};
buttonText: {
type: StringConstructor;
default: () => any;
};
/**
* 设置为透明模式,配置为true时,边框变为透明且收缩后半透明显示,一般用在带有背景的场景
*/
transparent: {
type: BooleanConstructor;
default: boolean;
};
/**
* 搜索的类型选项,格式为[{text:'文档',value:1},...],不配置时类型选择固定显示为All
*/
searchTypes: {
type: ArrayConstructor;
default: () => never[];
};
/**
* 设置搜索输入框内的提示占位文本
*/
placeholder: {
type: StringConstructor;
default: string;
};
modelValue: StringConstructor;
clearable: {
type: BooleanConstructor;
default: boolean;
};
tabindex: {
type: StringConstructor;
default: string;
};
/**
* 配置搜索输入框enter键,enter按下触发搜索
*/
isEnterSearch: {
type: BooleanConstructor;
default: boolean;
};
/**
* 配置主题色,primary:蓝 gray:灰
*/
themeType: {
type: StringConstructor;
default: string;
validator: (value: string) => boolean;
};
showButton: {
type: BooleanConstructor;
default: boolean;
};
changeBgColor: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (FunctionConstructor | ObjectConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, {
tabindex: string;
tiny_mode_root: boolean;
clearable: boolean;
mini: boolean;
placeholder: string;
buttonText: string;
transparent: boolean;
searchTypes: unknown[];
isEnterSearch: boolean;
themeType: string;
showButton: boolean;
changeBgColor: boolean;
} & {
modelValue?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
tabindex: string;
tiny_mode_root: boolean;
clearable: boolean;
mini: boolean;
placeholder: string;
buttonText: string;
transparent: boolean;
searchTypes: unknown[];
isEnterSearch: boolean;
themeType: string;
showButton: boolean;
changeBgColor: boolean;
} & {
modelValue?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, {
tabindex: string;
tiny_mode_root: boolean;
clearable: boolean;
mini: boolean;
placeholder: string;
buttonText: string;
transparent: boolean;
searchTypes: unknown[];
isEnterSearch: boolean;
themeType: string;
showButton: boolean;
changeBgColor: boolean;
} & {
modelValue?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
}, {
tabindex: string;
clearable: boolean;
mini: boolean;
placeholder: string;
buttonText: string;
transparent: boolean;
searchTypes: unknown[];
isEnterSearch: boolean;
themeType: string;
showButton: boolean;
changeBgColor: boolean;
}, true>);
declare const _default: any;
export default _default;

@@ -1,30 +0,2 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}> & import("@vue/composition-api").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}>, import("@vue/composition-api").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _sfc_main: any;
export default _sfc_main;

@@ -1,30 +0,2 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}> & import("@vue/composition-api").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}>, import("@vue/composition-api").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _sfc_main: any;
export default _sfc_main;

@@ -1,30 +0,2 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}> & import("@vue/composition-api").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}>, import("@vue/composition-api").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _sfc_main: any;
export default _sfc_main;
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc