Comparing version 1.1.2 to 1.1.3
{ | ||
"description": "bpui", | ||
"dependencies": { | ||
"@bpui/libs": "^1.1.0" | ||
"@bpui/libs": "^1.1.1" | ||
}, | ||
@@ -40,3 +40,3 @@ "devDependencies": { | ||
"name": "bpui.js", | ||
"version": "1.1.2" | ||
"version": "1.1.3" | ||
} |
@@ -19,2 +19,7 @@ 'use strict'; | ||
{ | ||
name: 'tableView', | ||
style: function() { return require('../../@bpui/table-view/style/_index.scss') }, | ||
lib: function() { return import('../../@bpui/table-view') }, | ||
}, | ||
{ | ||
name: 'checkbox', | ||
@@ -21,0 +26,0 @@ style: function() { return require('../../@bpui/checkbox/style/_index.scss') }, |
@@ -17,2 +17,7 @@ 'use strict'; | ||
{ | ||
name: 'tableView', | ||
style: function() { require(['@bpui/table-view/style/_index.scss']) }, | ||
lib: function () { return import('@bpui/table-view') }, | ||
}, | ||
{ | ||
name: 'checkbox', | ||
@@ -19,0 +24,0 @@ style: function() { require(['@bpui/checkbox/style/_index.scss']) }, |
exports.ComponentName = { | ||
navbarView: 'navbarView', | ||
tableView: 'tableView', | ||
checkbox: 'checkbox', | ||
@@ -4,0 +5,0 @@ radio: 'radio', |
@@ -76,2 +76,20 @@ | ||
// | ||
static get bpTableView() { return componentInstance.getComponent('tableView').default.bpTableView; } | ||
static get bpTableCell() { return componentInstance.getComponent('tableView').default.bpTableCell; } | ||
static get bpTableCellCenter() { return componentInstance.getComponent('tableView').default.bpTableCellCenter; } | ||
static get bpTableCellLeft() { return componentInstance.getComponent('tableView').default.bpTableCellLeft; } | ||
static get bpTableCellRight() { return componentInstance.getComponent('tableView').default.bpTableCellRight; } | ||
static get bpTableCellEditor() { return componentInstance.getComponent('tableView').default.bpTableCellEditor; } | ||
static get bpTableViewComponents() { | ||
return { | ||
bpTableView: this.bpTableView, | ||
bpTableCell: this.bpTableCell, | ||
bpTableCellCenter: this.bpTableCellCenter, | ||
bpTableCellLeft: this.bpTableCellLeft, | ||
bpTableCellRight: this.bpTableCellRight, | ||
bpTableCellEditor: this.bpTableCellEditor, | ||
} | ||
} | ||
// | ||
static get bpNavbarView() { | ||
@@ -78,0 +96,0 @@ return componentInstance.getComponent('navbarView').default.bpNavbarView; |
@@ -1,24 +0,35 @@ | ||
import '@bpui/libs/types'; | ||
export * from '@bpui/navbar-view/types'; | ||
export * from '@bpui/checkbox/types'; | ||
export * from '@bpui/radio/types'; | ||
export * from '@bpui/switch/types'; | ||
export * from '@bpui/input/types'; | ||
export * from '@bpui/dialog/types'; | ||
export * from '@bpui/picker/types'; | ||
export * from '@bpui/actionsheet/types'; | ||
export * from '@bpui/popover/types'; | ||
export * from '@bpui/uploader/types'; | ||
import "@bpui/libs/types"; | ||
export * from "@bpui/navbar-view/types"; | ||
export * from "@bpui/table-view/types"; | ||
export * from "@bpui/checkbox/types"; | ||
export * from "@bpui/radio/types"; | ||
export * from "@bpui/switch/types"; | ||
export * from "@bpui/input/types"; | ||
export * from "@bpui/dialog/types"; | ||
export * from "@bpui/picker/types"; | ||
export * from "@bpui/actionsheet/types"; | ||
export * from "@bpui/popover/types"; | ||
export * from "@bpui/uploader/types"; | ||
import { | ||
bpTableView, | ||
bpTableCell, | ||
bpTableCellCenter, | ||
bpTableCellLeft, | ||
bpTableCellRight, | ||
bpTableCellEditor, | ||
} from "@bpui/table-view/types"; | ||
export enum ComponentName { | ||
navbarView = 'navbarView', | ||
checkbox = 'checkbox', | ||
radio = 'radio', | ||
switch = 'switch', | ||
input = 'input', | ||
dialog = 'dialog', | ||
picker = 'picker', | ||
actionsheet = 'actionsheet', | ||
popover = 'popover', | ||
uploader = 'uploader', | ||
navbarView = "navbarView", | ||
tableView = "tableView", | ||
checkbox = "checkbox", | ||
radio = "radio", | ||
switch = "switch", | ||
input = "input", | ||
dialog = "dialog", | ||
picker = "picker", | ||
actionsheet = "actionsheet", | ||
popover = "popover", | ||
uploader = "uploader" | ||
} | ||
@@ -28,12 +39,18 @@ | ||
export const bpTableViewComponents:{ | ||
bpTableView, | ||
bpTableCell, | ||
bpTableCellCenter, | ||
bpTableCellLeft, | ||
bpTableCellRight, | ||
bpTableCellEditor, | ||
}; | ||
/** | ||
* @desc: 注册动态组件. | ||
* @desc: 注册动态组件. | ||
* @param App: 传递Vue. | ||
* @param components: 按需加载指定的组件. 不提供则加载所有组件. | ||
* 会自动加载所指定的组件的插件. | ||
*/ | ||
export function registerComponents( | ||
App:any, | ||
components?:ComponentName[] | ||
): Promise<void>; | ||
*/ | ||
export function registerComponents(App: any, components?: ComponentName[]): Promise<void>; | ||
@@ -45,18 +62,15 @@ /** | ||
*/ | ||
export function registerApp( | ||
routes: { | ||
routePath: Array< {path:string,component:any,[key:string]:any} >, | ||
basePath?: string, | ||
}, | ||
): void; | ||
export function registerApp(routes: { | ||
routePath: Array<{ path: string; component: any; [key: string]: any }>; | ||
basePath?: string; | ||
}): void; | ||
/** | ||
* 通过route来获得适合的layout组件. | ||
* @param layouts | ||
* @param newRoute | ||
* @param oldRoute | ||
* @param layouts | ||
* @param newRoute | ||
* @param oldRoute | ||
*/ | ||
export function getLayout(layouts: any, newRoute: bp.Location, oldRoute: bp.Location): any; | ||
export interface Hook { | ||
@@ -67,3 +81,3 @@ /** | ||
*/ | ||
addWidgetShake(foo:(paddingRight:number)=>void):void; | ||
addWidgetShake(foo: (paddingRight: number) => void): void; | ||
@@ -73,4 +87,4 @@ /** | ||
*/ | ||
removeWidgetShake(foo:(paddingRight:number)=>void):void; | ||
removeWidgetShake(foo: (paddingRight: number) => void): void; | ||
} | ||
export const hook: Hook; |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
20945
524
3
12
Updated@bpui/libs@^1.1.1