Skip to content

Commit

Permalink
Build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
mercs600 committed Oct 28, 2020
1 parent 27734e3 commit d2a65fb
Show file tree
Hide file tree
Showing 8 changed files with 3,955 additions and 3,679 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var PerfectScrollbar$1 = {
methods: {
create () {
if (!(this.ps && this.$isServer)) {
this.ps = new PerfectScrollbar(this.$refs.container, this.options);
this.ps = new PerfectScrollbar(this.$el, this.options);

eventNames.forEach(eventName => {
this.ps.element.addEventListener(eventName, event => this.$emit(eventName, event));
Expand Down Expand Up @@ -103,40 +103,40 @@ var PerfectScrollbar$1 = {
render () {
return vue.h(this.tag,
{
ref: 'container',
class: 'ps'
},
this.$slots.default())
this.$slots.default && this.$slots.default())
}
};

function install (Vue, settings) {
if (settings) {
if (settings.name && typeof settings.name === 'string') {
PerfectScrollbar$1.name = settings.name;
}
var index = {
install: (Vue, settings) => {
if (settings) {
if (settings.name && typeof settings.name === 'string') {
PerfectScrollbar$1.name = settings.name;
}

if (settings.options && typeof settings.options === 'object') {
PerfectScrollbar$1.props.options.default = () => {
return settings.options
};
}
if (settings.options && typeof settings.options === 'object') {
PerfectScrollbar$1.props.options.default = () => {
return settings.options
};
}

if (settings.tag && typeof settings.tag === 'string') {
PerfectScrollbar$1.props.tag.default = settings.tag;
}
if (settings.tag && typeof settings.tag === 'string') {
PerfectScrollbar$1.props.tag.default = settings.tag;
}

if (settings.watchOptions && typeof settings.watchOptions === 'boolean') {
PerfectScrollbar$1.props.watchOptions = settings.watchOptions;
if (settings.watchOptions && typeof settings.watchOptions === 'boolean') {
PerfectScrollbar$1.props.watchOptions = settings.watchOptions;
}
}
}

Vue.component(
PerfectScrollbar$1.name,
PerfectScrollbar$1
);
}
Vue.component(
PerfectScrollbar$1.name,
PerfectScrollbar$1
);
}
};

exports.install = install;
exports.default = index;
exports.PerfectScrollbar = PerfectScrollbar$1;
exports.default = install;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var PerfectScrollbar$1 = {
methods: {
create () {
if (!(this.ps && this.$isServer)) {
this.ps = new PerfectScrollbar(this.$refs.container, this.options);
this.ps = new PerfectScrollbar(this.$el, this.options);

eventNames.forEach(eventName => {
this.ps.element.addEventListener(eventName, event => this.$emit(eventName, event));
Expand Down Expand Up @@ -97,39 +97,40 @@ var PerfectScrollbar$1 = {
render () {
return h(this.tag,
{
ref: 'container',
class: 'ps'
},
this.$slots.default())
this.$slots.default && this.$slots.default())
}
};

function install (Vue, settings) {
if (settings) {
if (settings.name && typeof settings.name === 'string') {
PerfectScrollbar$1.name = settings.name;
}
var index = {
install: (Vue, settings) => {
if (settings) {
if (settings.name && typeof settings.name === 'string') {
PerfectScrollbar$1.name = settings.name;
}

if (settings.options && typeof settings.options === 'object') {
PerfectScrollbar$1.props.options.default = () => {
return settings.options
};
}
if (settings.options && typeof settings.options === 'object') {
PerfectScrollbar$1.props.options.default = () => {
return settings.options
};
}

if (settings.tag && typeof settings.tag === 'string') {
PerfectScrollbar$1.props.tag.default = settings.tag;
}
if (settings.tag && typeof settings.tag === 'string') {
PerfectScrollbar$1.props.tag.default = settings.tag;
}

if (settings.watchOptions && typeof settings.watchOptions === 'boolean') {
PerfectScrollbar$1.props.watchOptions = settings.watchOptions;
if (settings.watchOptions && typeof settings.watchOptions === 'boolean') {
PerfectScrollbar$1.props.watchOptions = settings.watchOptions;
}
}
}

Vue.component(
PerfectScrollbar$1.name,
PerfectScrollbar$1
);
}
Vue.component(
PerfectScrollbar$1.name,
PerfectScrollbar$1
);
}
};

export default install;
export { install, PerfectScrollbar$1 as PerfectScrollbar };
export default index;
export { PerfectScrollbar$1 as PerfectScrollbar };
File renamed without changes.
Loading

0 comments on commit d2a65fb

Please sign in to comment.