更新 lib

This commit is contained in:
zhouliujun 2020-10-12 14:08:30 +08:00
parent c5429ae032
commit 1b0d55aab0
3 changed files with 15 additions and 21 deletions

View File

@ -142,12 +142,12 @@ if (typeof window !== 'undefined') {
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js
var es6_function_name = __webpack_require__("7cfd");
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/index.vue?vue&type=template&id=f019ba8a&
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/index.vue?vue&type=template&id=d74f17bc&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.playerId}})}
var staticRenderFns = []
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=f019ba8a&
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=d74f17bc&
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/web.dom.iterable.js
var web_dom_iterable = __webpack_require__("4634");
@ -178,22 +178,17 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
type: [String],
default: null
},
// id:{
// required: false,
// type: [String],
// default: null
// },
cssLink: {
//css版本源
required: false,
type: [String],
default: "https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css"
default: "https://g.alicdn.com/de/prismplayer/2.9.0/skins/default/aliplayer-min.css"
},
scriptSrc: {
//js版本源
required: false,
type: [String],
default: "https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js"
default: "https://g.alicdn.com/de/prismplayer/2.9.0/aliplayer-min.js"
}
},
data: function data() {
@ -810,7 +805,9 @@ var component = normalizeComponent(
// 导入单个组件
// 定义 install 方法
AliplayerV2.install = function (Vue) {
AliplayerV2.install = function (Vue, options) {
if (options && options.cssLink) AliplayerV2.props.cssLink.default = options.cssLink;
if (options && options.scriptSrc) AliplayerV2.props.scriptSrc.default = options.scriptSrc;
Vue.component(AliplayerV2.name, AliplayerV2);
};

View File

@ -151,12 +151,12 @@ if (typeof window !== 'undefined') {
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/es6.function.name.js
var es6_function_name = __webpack_require__("7cfd");
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/index.vue?vue&type=template&id=f019ba8a&
// CONCATENATED MODULE: ./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05d0d90a-vue-loader-template"}!./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./packages/AliplayerV2/index.vue?vue&type=template&id=d74f17bc&
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"id":_vm.playerId}})}
var staticRenderFns = []
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=f019ba8a&
// CONCATENATED MODULE: ./packages/AliplayerV2/index.vue?vue&type=template&id=d74f17bc&
// EXTERNAL MODULE: ./node_modules/_core-js@2.6.10@core-js/modules/web.dom.iterable.js
var web_dom_iterable = __webpack_require__("4634");
@ -187,22 +187,17 @@ var es6_regexp_to_string = __webpack_require__("cc1d");
type: [String],
default: null
},
// id:{
// required: false,
// type: [String],
// default: null
// },
cssLink: {
//css版本源
required: false,
type: [String],
default: "https://g.alicdn.com/de/prismplayer/2.8.2/skins/default/aliplayer-min.css"
default: "https://g.alicdn.com/de/prismplayer/2.9.0/skins/default/aliplayer-min.css"
},
scriptSrc: {
//js版本源
required: false,
type: [String],
default: "https://g.alicdn.com/de/prismplayer/2.8.2/aliplayer-min.js"
default: "https://g.alicdn.com/de/prismplayer/2.9.0/aliplayer-min.js"
}
},
data: function data() {
@ -819,7 +814,9 @@ var component = normalizeComponent(
// 导入单个组件
// 定义 install 方法
AliplayerV2.install = function (Vue) {
AliplayerV2.install = function (Vue, options) {
if (options && options.cssLink) AliplayerV2.props.cssLink.default = options.cssLink;
if (options && options.scriptSrc) AliplayerV2.props.scriptSrc.default = options.scriptSrc;
Vue.component(AliplayerV2.name, AliplayerV2);
};

File diff suppressed because one or more lines are too long