@mayaxxp/cueui 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cueui.common.482.js +170 -0
- package/dist/cueui.common.482.js.map +1 -0
- package/dist/cueui.common.835.js +319 -0
- package/dist/cueui.common.835.js.map +1 -0
- package/dist/cueui.common.js +24253 -23202
- package/dist/cueui.common.js.map +1 -1
- package/dist/cueui.css +1 -1
- package/dist/cueui.umd.263.js +170 -0
- package/dist/cueui.umd.263.js.map +1 -0
- package/dist/cueui.umd.586.js +319 -0
- package/dist/cueui.umd.586.js.map +1 -0
- package/dist/cueui.umd.js +24995 -23944
- package/dist/cueui.umd.js.map +1 -1
- package/dist/cueui.umd.min.695.js +2 -0
- package/dist/cueui.umd.min.695.js.map +1 -0
- package/dist/cueui.umd.min.913.js +8 -0
- package/dist/cueui.umd.min.913.js.map +1 -0
- package/dist/cueui.umd.min.js +2 -2
- package/dist/cueui.umd.min.js.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
((typeof self !== 'undefined' ? self : this)["webpackChunk_mayaxxp_cueui"] = (typeof self !== 'undefined' ? self : this)["webpackChunk_mayaxxp_cueui"] || []).push([[482],{
|
|
3
|
+
|
|
4
|
+
/***/ 8482:
|
|
5
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6
|
+
|
|
7
|
+
// ESM COMPAT FLAG
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
|
|
10
|
+
// EXPORTS
|
|
11
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
"default": function() { return /* binding */ Pagination; }
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
;// ./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/Pagination/index.vue?vue&type=template&id=771ad2a6&scoped=true
|
|
16
|
+
var render = function render() {
|
|
17
|
+
var _vm = this,
|
|
18
|
+
_c = _vm._self._c;
|
|
19
|
+
return _c('div', {
|
|
20
|
+
class: {
|
|
21
|
+
[_vm.prefixCls('pagination-container')]: true,
|
|
22
|
+
hidden: _vm.hidden
|
|
23
|
+
}
|
|
24
|
+
}, [_c('el-pagination', _vm._b({
|
|
25
|
+
attrs: {
|
|
26
|
+
"current-page": _vm.currentPage,
|
|
27
|
+
"background": "",
|
|
28
|
+
"page-size": _vm.pageSize,
|
|
29
|
+
"layout": _vm.layout,
|
|
30
|
+
"page-sizes": _vm.pageSizes,
|
|
31
|
+
"total": _vm.total
|
|
32
|
+
},
|
|
33
|
+
on: {
|
|
34
|
+
"update:currentPage": function ($event) {
|
|
35
|
+
_vm.currentPage = $event;
|
|
36
|
+
},
|
|
37
|
+
"update:current-page": function ($event) {
|
|
38
|
+
_vm.currentPage = $event;
|
|
39
|
+
},
|
|
40
|
+
"update:pageSize": function ($event) {
|
|
41
|
+
_vm.pageSize = $event;
|
|
42
|
+
},
|
|
43
|
+
"update:page-size": function ($event) {
|
|
44
|
+
_vm.pageSize = $event;
|
|
45
|
+
},
|
|
46
|
+
"size-change": _vm.handleSizeChange,
|
|
47
|
+
"current-change": _vm.handleCurrentChange
|
|
48
|
+
}
|
|
49
|
+
}, 'el-pagination', _vm.$attrs, false))], 1);
|
|
50
|
+
};
|
|
51
|
+
var staticRenderFns = [];
|
|
52
|
+
|
|
53
|
+
// EXTERNAL MODULE: ./packages/mixins/index.js
|
|
54
|
+
var mixins = __webpack_require__(7329);
|
|
55
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/Pagination/index.vue?vue&type=script&lang=js
|
|
56
|
+
// import { scrollTo } from '@/utils/scroll-to'
|
|
57
|
+
|
|
58
|
+
/* harmony default export */ var Paginationvue_type_script_lang_js = ({
|
|
59
|
+
name: 'Pagination',
|
|
60
|
+
mixins: [mixins/* default */.A],
|
|
61
|
+
props: {
|
|
62
|
+
total: {
|
|
63
|
+
required: true,
|
|
64
|
+
type: Number
|
|
65
|
+
},
|
|
66
|
+
page: {
|
|
67
|
+
type: Number,
|
|
68
|
+
default: 1
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
type: Number,
|
|
72
|
+
default: 20
|
|
73
|
+
},
|
|
74
|
+
pageSizes: {
|
|
75
|
+
type: Array,
|
|
76
|
+
default() {
|
|
77
|
+
return [20, 50, 100, 500];
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
layout: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: 'total, sizes, prev, pager, next, jumper'
|
|
83
|
+
},
|
|
84
|
+
background: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: true
|
|
87
|
+
},
|
|
88
|
+
autoScroll: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
92
|
+
hidden: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
computed: {
|
|
98
|
+
currentPage: {
|
|
99
|
+
get() {
|
|
100
|
+
return this.page;
|
|
101
|
+
},
|
|
102
|
+
set(val) {
|
|
103
|
+
this.$emit('update:page', val);
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
pageSize: {
|
|
107
|
+
get() {
|
|
108
|
+
return this.limit;
|
|
109
|
+
},
|
|
110
|
+
set(val) {
|
|
111
|
+
this.$emit('update:limit', val);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
methods: {
|
|
116
|
+
handleSizeChange(val) {
|
|
117
|
+
this.$emit('pagination', {
|
|
118
|
+
page: this.currentPage,
|
|
119
|
+
limit: val
|
|
120
|
+
});
|
|
121
|
+
if (this.autoScroll) {
|
|
122
|
+
// scrollTo(0, 800)
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
handleCurrentChange(val) {
|
|
126
|
+
this.$emit('pagination', {
|
|
127
|
+
page: val,
|
|
128
|
+
limit: this.pageSize
|
|
129
|
+
});
|
|
130
|
+
if (this.autoScroll) {
|
|
131
|
+
// scrollTo(0, 800)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
;// ./packages/components/Pagination/index.vue?vue&type=script&lang=js
|
|
137
|
+
/* harmony default export */ var components_Paginationvue_type_script_lang_js = (Paginationvue_type_script_lang_js);
|
|
138
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/style-resources-loader/lib/index.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/Pagination/index.vue?vue&type=style&index=0&id=771ad2a6&prod&lang=scss&scoped=true
|
|
139
|
+
// extracted by mini-css-extract-plugin
|
|
140
|
+
|
|
141
|
+
;// ./packages/components/Pagination/index.vue?vue&type=style&index=0&id=771ad2a6&prod&lang=scss&scoped=true
|
|
142
|
+
|
|
143
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
144
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
145
|
+
;// ./packages/components/Pagination/index.vue
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
;
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
/* normalize component */
|
|
153
|
+
|
|
154
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
155
|
+
components_Paginationvue_type_script_lang_js,
|
|
156
|
+
render,
|
|
157
|
+
staticRenderFns,
|
|
158
|
+
false,
|
|
159
|
+
null,
|
|
160
|
+
"771ad2a6",
|
|
161
|
+
null
|
|
162
|
+
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
/* harmony default export */ var Pagination = (component.exports);
|
|
166
|
+
|
|
167
|
+
/***/ })
|
|
168
|
+
|
|
169
|
+
}]);
|
|
170
|
+
//# sourceMappingURL=cueui.common.482.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cueui.common.482.js","mappings":"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","sources":["webpack://@mayaxxp/cueui/./packages/components/Pagination/index.vue","webpack://@mayaxxp/cueui/packages/components/Pagination/index.vue","webpack://@mayaxxp/cueui/./packages/components/Pagination/index.vue?53e0","webpack://@mayaxxp/cueui/./packages/components/Pagination/index.vue?988c","webpack://@mayaxxp/cueui/./packages/components/Pagination/index.vue?79cf","webpack://@mayaxxp/cueui/./packages/components/Pagination/index.vue?5723"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{class:{ [_vm.prefixCls('pagination-container')]: true, hidden: _vm.hidden }},[_c('el-pagination',_vm._b({attrs:{\"current-page\":_vm.currentPage,\"background\":\"\",\"page-size\":_vm.pageSize,\"layout\":_vm.layout,\"page-sizes\":_vm.pageSizes,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"update:pageSize\":function($event){_vm.pageSize=$event},\"update:page-size\":function($event){_vm.pageSize=$event},\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}},'el-pagination',_vm.$attrs,false))],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <div :class=\"{ [prefixCls('pagination-container')]: true, hidden: hidden }\">\n <!-- :background=\"background\" -->\n <el-pagination\n :current-page.sync=\"currentPage\"\n background\n :page-size.sync=\"pageSize\"\n :layout=\"layout\"\n :page-sizes=\"pageSizes\"\n :total=\"total\"\n v-bind=\"$attrs\"\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n />\n </div>\n</template>\n\n<script>\n// import { scrollTo } from '@/utils/scroll-to'\nimport mixin from '../../mixins/index.js'\nexport default {\n name: 'Pagination',\n mixins: [mixin],\n props: {\n total: {\n required: true,\n type: Number,\n },\n page: {\n type: Number,\n default: 1,\n },\n limit: {\n type: Number,\n default: 20,\n },\n pageSizes: {\n type: Array,\n default() {\n return [20, 50, 100, 500]\n },\n },\n layout: {\n type: String,\n default: 'total, sizes, prev, pager, next, jumper',\n },\n background: {\n type: Boolean,\n default: true,\n },\n autoScroll: {\n type: Boolean,\n default: true,\n },\n hidden: {\n type: Boolean,\n default: false,\n },\n },\n computed: {\n currentPage: {\n get() {\n return this.page\n },\n set(val) {\n this.$emit('update:page', val)\n },\n },\n pageSize: {\n get() {\n return this.limit\n },\n set(val) {\n this.$emit('update:limit', val)\n },\n },\n },\n methods: {\n handleSizeChange(val) {\n this.$emit('pagination', { page: this.currentPage, limit: val })\n if (this.autoScroll) {\n // scrollTo(0, 800)\n }\n },\n handleCurrentChange(val) {\n this.$emit('pagination', { page: val, limit: this.pageSize })\n if (this.autoScroll) {\n // scrollTo(0, 800)\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\" scoped>\n// 引入全局变量文件 .#{$namespace}\n@import '#/styles/index.scss';\n@import '#/styles/variables.scss';\n.#{$namespace}-pagination-container {\n background: #fff;\n text-align: right;\n margin-bottom: 0px;\n &.hidden {\n display: none;\n }\n}\n</style>\n","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","// extracted by mini-css-extract-plugin\nexport {};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!../../../node_modules/style-resources-loader/lib/index.js??clonedRuleSet-22.use[4]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=771ad2a6&prod&lang=scss&scoped=true\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=771ad2a6&scoped=true\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=771ad2a6&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"771ad2a6\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","_c","_self","class","prefixCls","hidden","_b","attrs","currentPage","pageSize","layout","pageSizes","total","on","update:currentPage","$event","update:current-page","update:pageSize","update:page-size","handleSizeChange","handleCurrentChange","$attrs","staticRenderFns","mixin","name","mixins","props","required","type","Number","page","default","limit","Array","String","background","Boolean","autoScroll","computed","get","set","val","$emit","methods"],"sourceRoot":""}
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackChunk_mayaxxp_cueui"] = (typeof self !== 'undefined' ? self : this)["webpackChunk_mayaxxp_cueui"] || []).push([[835],{
|
|
2
|
+
|
|
3
|
+
/***/ 2835:
|
|
4
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
// ESM COMPAT FLAG
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
|
|
10
|
+
// EXPORTS
|
|
11
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
"default": function() { return /* binding */ Screenfull; }
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
;// ./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/Screenfull/index.vue?vue&type=template&id=3f002a1f
|
|
16
|
+
var render = function render() {
|
|
17
|
+
var _vm = this,
|
|
18
|
+
_c = _vm._self._c;
|
|
19
|
+
return _c('el-tooltip', {
|
|
20
|
+
attrs: {
|
|
21
|
+
"effect": "dark",
|
|
22
|
+
"content": _vm.isFullscreen ? _vm.$t('common.outFullScreen') : _vm.$t('common.fullScreen'),
|
|
23
|
+
"placement": "top"
|
|
24
|
+
}
|
|
25
|
+
}, [_c('el-link', {
|
|
26
|
+
attrs: {
|
|
27
|
+
"icon": `${_vm.isFullscreen ? 'el-icon-copy-document' : 'el-icon-full-screen'} common-head-icon`,
|
|
28
|
+
"underline": false
|
|
29
|
+
},
|
|
30
|
+
on: {
|
|
31
|
+
"click": function ($event) {
|
|
32
|
+
return _vm.click();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})], 1);
|
|
36
|
+
};
|
|
37
|
+
var staticRenderFns = [];
|
|
38
|
+
|
|
39
|
+
// EXTERNAL MODULE: ./node_modules/screenfull/dist/screenfull.js
|
|
40
|
+
var screenfull = __webpack_require__(1916);
|
|
41
|
+
var screenfull_default = /*#__PURE__*/__webpack_require__.n(screenfull);
|
|
42
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/Screenfull/index.vue?vue&type=script&lang=js
|
|
43
|
+
|
|
44
|
+
/* harmony default export */ var Screenfullvue_type_script_lang_js = ({
|
|
45
|
+
props: {
|
|
46
|
+
isContainer: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
name: 'Screenfull',
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
refEle: '',
|
|
55
|
+
isFullscreen: false
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
mounted() {
|
|
59
|
+
this.init();
|
|
60
|
+
this.refEle = this.$options.parent.$el;
|
|
61
|
+
},
|
|
62
|
+
beforeDestroy() {
|
|
63
|
+
this.destroy();
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
click() {
|
|
67
|
+
if (!(screenfull_default()).enabled) {
|
|
68
|
+
this.$message({
|
|
69
|
+
message: '不支持全屏',
|
|
70
|
+
type: 'warning'
|
|
71
|
+
});
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
if (this.isContainer) {
|
|
75
|
+
screenfull_default().toggle(this.refEle);
|
|
76
|
+
} else {
|
|
77
|
+
screenfull_default().toggle();
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
change() {
|
|
81
|
+
this.isFullscreen = (screenfull_default()).isFullscreen;
|
|
82
|
+
},
|
|
83
|
+
init() {
|
|
84
|
+
if ((screenfull_default()).enabled) {
|
|
85
|
+
screenfull_default().on('change', this.change);
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
destroy() {
|
|
89
|
+
if ((screenfull_default()).enabled) {
|
|
90
|
+
screenfull_default().off('change', this.change);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
;// ./packages/components/Screenfull/index.vue?vue&type=script&lang=js
|
|
96
|
+
/* harmony default export */ var components_Screenfullvue_type_script_lang_js = (Screenfullvue_type_script_lang_js);
|
|
97
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
98
|
+
var componentNormalizer = __webpack_require__(1656);
|
|
99
|
+
;// ./packages/components/Screenfull/index.vue
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* normalize component */
|
|
106
|
+
;
|
|
107
|
+
var component = (0,componentNormalizer/* default */.A)(
|
|
108
|
+
components_Screenfullvue_type_script_lang_js,
|
|
109
|
+
render,
|
|
110
|
+
staticRenderFns,
|
|
111
|
+
false,
|
|
112
|
+
null,
|
|
113
|
+
null,
|
|
114
|
+
null
|
|
115
|
+
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
/* harmony default export */ var Screenfull = (component.exports);
|
|
119
|
+
|
|
120
|
+
/***/ }),
|
|
121
|
+
|
|
122
|
+
/***/ 1916:
|
|
123
|
+
/***/ (function(module) {
|
|
124
|
+
|
|
125
|
+
/*!
|
|
126
|
+
* screenfull
|
|
127
|
+
* v4.2.0 - 2019-04-01
|
|
128
|
+
* (c) Sindre Sorhus; MIT License
|
|
129
|
+
*/
|
|
130
|
+
(function () {
|
|
131
|
+
'use strict';
|
|
132
|
+
|
|
133
|
+
var document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};
|
|
134
|
+
var isCommonjs = true && module.exports;
|
|
135
|
+
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;
|
|
136
|
+
|
|
137
|
+
var fn = (function () {
|
|
138
|
+
var val;
|
|
139
|
+
|
|
140
|
+
var fnMap = [
|
|
141
|
+
[
|
|
142
|
+
'requestFullscreen',
|
|
143
|
+
'exitFullscreen',
|
|
144
|
+
'fullscreenElement',
|
|
145
|
+
'fullscreenEnabled',
|
|
146
|
+
'fullscreenchange',
|
|
147
|
+
'fullscreenerror'
|
|
148
|
+
],
|
|
149
|
+
// New WebKit
|
|
150
|
+
[
|
|
151
|
+
'webkitRequestFullscreen',
|
|
152
|
+
'webkitExitFullscreen',
|
|
153
|
+
'webkitFullscreenElement',
|
|
154
|
+
'webkitFullscreenEnabled',
|
|
155
|
+
'webkitfullscreenchange',
|
|
156
|
+
'webkitfullscreenerror'
|
|
157
|
+
|
|
158
|
+
],
|
|
159
|
+
// Old WebKit (Safari 5.1)
|
|
160
|
+
[
|
|
161
|
+
'webkitRequestFullScreen',
|
|
162
|
+
'webkitCancelFullScreen',
|
|
163
|
+
'webkitCurrentFullScreenElement',
|
|
164
|
+
'webkitCancelFullScreen',
|
|
165
|
+
'webkitfullscreenchange',
|
|
166
|
+
'webkitfullscreenerror'
|
|
167
|
+
|
|
168
|
+
],
|
|
169
|
+
[
|
|
170
|
+
'mozRequestFullScreen',
|
|
171
|
+
'mozCancelFullScreen',
|
|
172
|
+
'mozFullScreenElement',
|
|
173
|
+
'mozFullScreenEnabled',
|
|
174
|
+
'mozfullscreenchange',
|
|
175
|
+
'mozfullscreenerror'
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
'msRequestFullscreen',
|
|
179
|
+
'msExitFullscreen',
|
|
180
|
+
'msFullscreenElement',
|
|
181
|
+
'msFullscreenEnabled',
|
|
182
|
+
'MSFullscreenChange',
|
|
183
|
+
'MSFullscreenError'
|
|
184
|
+
]
|
|
185
|
+
];
|
|
186
|
+
|
|
187
|
+
var i = 0;
|
|
188
|
+
var l = fnMap.length;
|
|
189
|
+
var ret = {};
|
|
190
|
+
|
|
191
|
+
for (; i < l; i++) {
|
|
192
|
+
val = fnMap[i];
|
|
193
|
+
if (val && val[1] in document) {
|
|
194
|
+
for (i = 0; i < val.length; i++) {
|
|
195
|
+
ret[fnMap[0][i]] = val[i];
|
|
196
|
+
}
|
|
197
|
+
return ret;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return false;
|
|
202
|
+
})();
|
|
203
|
+
|
|
204
|
+
var eventNameMap = {
|
|
205
|
+
change: fn.fullscreenchange,
|
|
206
|
+
error: fn.fullscreenerror
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
var screenfull = {
|
|
210
|
+
request: function (elem) {
|
|
211
|
+
return new Promise(function (resolve) {
|
|
212
|
+
var request = fn.requestFullscreen;
|
|
213
|
+
|
|
214
|
+
var onFullScreenEntered = function () {
|
|
215
|
+
this.off('change', onFullScreenEntered);
|
|
216
|
+
resolve();
|
|
217
|
+
}.bind(this);
|
|
218
|
+
|
|
219
|
+
elem = elem || document.documentElement;
|
|
220
|
+
|
|
221
|
+
// Work around Safari 5.1 bug: reports support for
|
|
222
|
+
// keyboard in fullscreen even though it doesn't.
|
|
223
|
+
// Browser sniffing, since the alternative with
|
|
224
|
+
// setTimeout is even worse.
|
|
225
|
+
if (/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)) {
|
|
226
|
+
elem[request]();
|
|
227
|
+
} else {
|
|
228
|
+
elem[request](keyboardAllowed ? Element.ALLOW_KEYBOARD_INPUT : {});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
this.on('change', onFullScreenEntered);
|
|
232
|
+
}.bind(this));
|
|
233
|
+
},
|
|
234
|
+
exit: function () {
|
|
235
|
+
return new Promise(function (resolve) {
|
|
236
|
+
if (!this.isFullscreen) {
|
|
237
|
+
resolve();
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
var onFullScreenExit = function () {
|
|
242
|
+
this.off('change', onFullScreenExit);
|
|
243
|
+
resolve();
|
|
244
|
+
}.bind(this);
|
|
245
|
+
|
|
246
|
+
document[fn.exitFullscreen]();
|
|
247
|
+
|
|
248
|
+
this.on('change', onFullScreenExit);
|
|
249
|
+
}.bind(this));
|
|
250
|
+
},
|
|
251
|
+
toggle: function (elem) {
|
|
252
|
+
return this.isFullscreen ? this.exit() : this.request(elem);
|
|
253
|
+
},
|
|
254
|
+
onchange: function (callback) {
|
|
255
|
+
this.on('change', callback);
|
|
256
|
+
},
|
|
257
|
+
onerror: function (callback) {
|
|
258
|
+
this.on('error', callback);
|
|
259
|
+
},
|
|
260
|
+
on: function (event, callback) {
|
|
261
|
+
var eventName = eventNameMap[event];
|
|
262
|
+
if (eventName) {
|
|
263
|
+
document.addEventListener(eventName, callback, false);
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
off: function (event, callback) {
|
|
267
|
+
var eventName = eventNameMap[event];
|
|
268
|
+
if (eventName) {
|
|
269
|
+
document.removeEventListener(eventName, callback, false);
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
raw: fn
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
if (!fn) {
|
|
276
|
+
if (isCommonjs) {
|
|
277
|
+
module.exports = false;
|
|
278
|
+
} else {
|
|
279
|
+
window.screenfull = false;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
Object.defineProperties(screenfull, {
|
|
286
|
+
isFullscreen: {
|
|
287
|
+
get: function () {
|
|
288
|
+
return Boolean(document[fn.fullscreenElement]);
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
element: {
|
|
292
|
+
enumerable: true,
|
|
293
|
+
get: function () {
|
|
294
|
+
return document[fn.fullscreenElement];
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
enabled: {
|
|
298
|
+
enumerable: true,
|
|
299
|
+
get: function () {
|
|
300
|
+
// Coerce to boolean in case of old WebKit
|
|
301
|
+
return Boolean(document[fn.fullscreenEnabled]);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
if (isCommonjs) {
|
|
307
|
+
module.exports = screenfull;
|
|
308
|
+
// TODO: remove this in the next major version
|
|
309
|
+
module.exports["default"] = screenfull;
|
|
310
|
+
} else {
|
|
311
|
+
window.screenfull = screenfull;
|
|
312
|
+
}
|
|
313
|
+
})();
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
/***/ })
|
|
317
|
+
|
|
318
|
+
}]);
|
|
319
|
+
//# sourceMappingURL=cueui.common.835.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cueui.common.835.js","mappings":";;;;;;;;;;;;;;;AAAA,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,YAAY,EAAC;IAACE,KAAK,EAAC;MAAC,QAAQ,EAAC,MAAM;MAAC,SAAS,EAACH,GAAG,CAACI,YAAY,GAACJ,GAAG,CAACK,EAAE,CAAC,sBAAsB,CAAC,GAACL,GAAG,CAACK,EAAE,CAAC,mBAAmB,CAAC;MAAC,WAAW,EAAC;IAAK;EAAC,CAAC,EAAC,CAACJ,EAAE,CAAC,SAAS,EAAC;IAACE,KAAK,EAAC;MAAC,MAAM,EAAC,GAAGH,GAAG,CAACI,YAAY,GAAC,uBAAuB,GAAC,qBAAqB,mBAAmB;MAAC,WAAW,EAAC;IAAK,CAAC;IAACE,EAAE,EAAC;MAAC,OAAO,EAAC,SAAAC,CAASC,MAAM,EAAC;QAAC,OAAOR,GAAG,CAACO,KAAK,CAAC,CAAC;MAAA;IAAC;EAAC,CAAC,CAAC,CAAC,EAAC,CAAC,CAAC;AACjZ,CAAC;AACD,IAAIE,eAAe,GAAG,EAAE;;;;;;ACQxB;AACA,sEAAe;EACfE,KAAA;IACAC,WAAA;MACAC,IAAA,EAAAC,OAAA;MACAC,OAAA;IACA;EACA;EACAC,IAAA;EACAC,KAAA;IACA;MACAC,MAAA;MACAd,YAAA;IACA;EACA;EACAe,QAAA;IACA,KAAAC,IAAA;IACA,KAAAF,MAAA,QAAAG,QAAA,CAAAC,MAAA,CAAAC,GAAA;EACA;EACAC,cAAA;IACA,KAAAC,OAAA;EACA;EACAC,OAAA;IACAnB,MAAA;MACA,KAAAG,8BAAA;QACA,KAAAkB,QAAA;UACAC,OAAA;UACAhB,IAAA;QACA;QACA;MACA;MACA,SAAAD,WAAA;QACAF,2BAAA,MAAAQ,MAAA;MACA;QACAR,2BAAA;MACA;IACA;IACAqB,OAAA;MACA,KAAA3B,YAAA,GAAAM,mCAAA;IACA;IACAU,KAAA;MACA,IAAAV,8BAAA;QACAA,uBAAA,gBAAAqB,MAAA;MACA;IACA;IACAN,QAAA;MACA,IAAAf,8BAAA;QACAA,wBAAA,gBAAAqB,MAAA;MACA;IACA;EACA;AACA,CAAC,E;;AC7D8R,CAAC,iFAAe,iCAAG,EAAC,C;;;;ACAhO;AAC3B;AACL;;;AAGnD;AACA,CAAsG;AACtG,gBAAgB,sCAAU;AAC1B,EAAE,4CAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,+CAAe,iB;;;;;;;AClBf;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;;AAEA;AACA,kBAAkB,KAA6B;AAC/C;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,SAAS,OAAO;AAChB;AACA;AACA,gBAAgB,gBAAgB;AAChC;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN,sEAAsE;AACtE;;AAEA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,KAAK;;AAEL;;AAEA;AACA,IAAI;AACJ,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA,EAAE,yBAAsB;AACxB,GAAG;AACH;AACA;AACA,CAAC","sources":["webpack://@mayaxxp/cueui/./packages/components/Screenfull/index.vue","webpack://@mayaxxp/cueui/packages/components/Screenfull/index.vue","webpack://@mayaxxp/cueui/./packages/components/Screenfull/index.vue?1d80","webpack://@mayaxxp/cueui/./packages/components/Screenfull/index.vue?cdbd","webpack://@mayaxxp/cueui/./node_modules/screenfull/dist/screenfull.js"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-tooltip',{attrs:{\"effect\":\"dark\",\"content\":_vm.isFullscreen?_vm.$t('common.outFullScreen'):_vm.$t('common.fullScreen'),\"placement\":\"top\"}},[_c('el-link',{attrs:{\"icon\":`${_vm.isFullscreen?'el-icon-copy-document':'el-icon-full-screen'} common-head-icon`,\"underline\":false},on:{\"click\":function($event){return _vm.click()}}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n <el-tooltip effect=\"dark\"\n :content=\"isFullscreen?$t('common.outFullScreen'):$t('common.fullScreen')\" placement=\"top\">\n <el-link\n :icon=\"`${isFullscreen?'el-icon-copy-document':'el-icon-full-screen'} common-head-icon`\"\n :underline=\"false\" @click=\"click()\" />\n </el-tooltip>\n</template>\n\n<script>\nimport screenfull from 'screenfull'\nexport default {\n props: {\n isContainer: {\n type: Boolean,\n default: true\n }\n },\n name: 'Screenfull',\n data() {\n return {\n refEle: '',\n isFullscreen: false\n }\n },\n mounted() {\n this.init()\n this.refEle = this.$options.parent.$el\n },\n beforeDestroy() {\n this.destroy()\n },\n methods: {\n click() {\n if (!screenfull.enabled) {\n this.$message({\n message: '不支持全屏',\n type: 'warning'\n })\n return false\n }\n if (this.isContainer) {\n screenfull.toggle(this.refEle)\n } else {\n screenfull.toggle()\n }\n },\n change() {\n this.isFullscreen = screenfull.isFullscreen\n },\n init() {\n if (screenfull.enabled) {\n screenfull.on('change', this.change)\n }\n },\n destroy() {\n if (screenfull.enabled) {\n screenfull.off('change', this.change)\n }\n }\n }\n}\n</script>","import mod from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=3f002a1f\"\nimport script from \"./index.vue?vue&type=script&lang=js\"\nexport * from \"./index.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","/*!\n* screenfull\n* v4.2.0 - 2019-04-01\n* (c) Sindre Sorhus; MIT License\n*/\n(function () {\n\t'use strict';\n\n\tvar document = typeof window !== 'undefined' && typeof window.document !== 'undefined' ? window.document : {};\n\tvar isCommonjs = typeof module !== 'undefined' && module.exports;\n\tvar keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;\n\n\tvar fn = (function () {\n\t\tvar val;\n\n\t\tvar fnMap = [\n\t\t\t[\n\t\t\t\t'requestFullscreen',\n\t\t\t\t'exitFullscreen',\n\t\t\t\t'fullscreenElement',\n\t\t\t\t'fullscreenEnabled',\n\t\t\t\t'fullscreenchange',\n\t\t\t\t'fullscreenerror'\n\t\t\t],\n\t\t\t// New WebKit\n\t\t\t[\n\t\t\t\t'webkitRequestFullscreen',\n\t\t\t\t'webkitExitFullscreen',\n\t\t\t\t'webkitFullscreenElement',\n\t\t\t\t'webkitFullscreenEnabled',\n\t\t\t\t'webkitfullscreenchange',\n\t\t\t\t'webkitfullscreenerror'\n\n\t\t\t],\n\t\t\t// Old WebKit (Safari 5.1)\n\t\t\t[\n\t\t\t\t'webkitRequestFullScreen',\n\t\t\t\t'webkitCancelFullScreen',\n\t\t\t\t'webkitCurrentFullScreenElement',\n\t\t\t\t'webkitCancelFullScreen',\n\t\t\t\t'webkitfullscreenchange',\n\t\t\t\t'webkitfullscreenerror'\n\n\t\t\t],\n\t\t\t[\n\t\t\t\t'mozRequestFullScreen',\n\t\t\t\t'mozCancelFullScreen',\n\t\t\t\t'mozFullScreenElement',\n\t\t\t\t'mozFullScreenEnabled',\n\t\t\t\t'mozfullscreenchange',\n\t\t\t\t'mozfullscreenerror'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'msRequestFullscreen',\n\t\t\t\t'msExitFullscreen',\n\t\t\t\t'msFullscreenElement',\n\t\t\t\t'msFullscreenEnabled',\n\t\t\t\t'MSFullscreenChange',\n\t\t\t\t'MSFullscreenError'\n\t\t\t]\n\t\t];\n\n\t\tvar i = 0;\n\t\tvar l = fnMap.length;\n\t\tvar ret = {};\n\n\t\tfor (; i < l; i++) {\n\t\t\tval = fnMap[i];\n\t\t\tif (val && val[1] in document) {\n\t\t\t\tfor (i = 0; i < val.length; i++) {\n\t\t\t\t\tret[fnMap[0][i]] = val[i];\n\t\t\t\t}\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t})();\n\n\tvar eventNameMap = {\n\t\tchange: fn.fullscreenchange,\n\t\terror: fn.fullscreenerror\n\t};\n\n\tvar screenfull = {\n\t\trequest: function (elem) {\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\tvar request = fn.requestFullscreen;\n\n\t\t\t\tvar onFullScreenEntered = function () {\n\t\t\t\t\tthis.off('change', onFullScreenEntered);\n\t\t\t\t\tresolve();\n\t\t\t\t}.bind(this);\n\n\t\t\t\telem = elem || document.documentElement;\n\n\t\t\t\t// Work around Safari 5.1 bug: reports support for\n\t\t\t\t// keyboard in fullscreen even though it doesn't.\n\t\t\t\t// Browser sniffing, since the alternative with\n\t\t\t\t// setTimeout is even worse.\n\t\t\t\tif (/ Version\\/5\\.1(?:\\.\\d+)? Safari\\//.test(navigator.userAgent)) {\n\t\t\t\t\telem[request]();\n\t\t\t\t} else {\n\t\t\t\t\telem[request](keyboardAllowed ? Element.ALLOW_KEYBOARD_INPUT : {});\n\t\t\t\t}\n\n\t\t\t\tthis.on('change', onFullScreenEntered);\n\t\t\t}.bind(this));\n\t\t},\n\t\texit: function () {\n\t\t\treturn new Promise(function (resolve) {\n\t\t\t\tif (!this.isFullscreen) {\n\t\t\t\t\tresolve();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tvar onFullScreenExit = function () {\n\t\t\t\t\tthis.off('change', onFullScreenExit);\n\t\t\t\t\tresolve();\n\t\t\t\t}.bind(this);\n\n\t\t\t\tdocument[fn.exitFullscreen]();\n\n\t\t\t\tthis.on('change', onFullScreenExit);\n\t\t\t}.bind(this));\n\t\t},\n\t\ttoggle: function (elem) {\n\t\t\treturn this.isFullscreen ? this.exit() : this.request(elem);\n\t\t},\n\t\tonchange: function (callback) {\n\t\t\tthis.on('change', callback);\n\t\t},\n\t\tonerror: function (callback) {\n\t\t\tthis.on('error', callback);\n\t\t},\n\t\ton: function (event, callback) {\n\t\t\tvar eventName = eventNameMap[event];\n\t\t\tif (eventName) {\n\t\t\t\tdocument.addEventListener(eventName, callback, false);\n\t\t\t}\n\t\t},\n\t\toff: function (event, callback) {\n\t\t\tvar eventName = eventNameMap[event];\n\t\t\tif (eventName) {\n\t\t\t\tdocument.removeEventListener(eventName, callback, false);\n\t\t\t}\n\t\t},\n\t\traw: fn\n\t};\n\n\tif (!fn) {\n\t\tif (isCommonjs) {\n\t\t\tmodule.exports = false;\n\t\t} else {\n\t\t\twindow.screenfull = false;\n\t\t}\n\n\t\treturn;\n\t}\n\n\tObject.defineProperties(screenfull, {\n\t\tisFullscreen: {\n\t\t\tget: function () {\n\t\t\t\treturn Boolean(document[fn.fullscreenElement]);\n\t\t\t}\n\t\t},\n\t\telement: {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\treturn document[fn.fullscreenElement];\n\t\t\t}\n\t\t},\n\t\tenabled: {\n\t\t\tenumerable: true,\n\t\t\tget: function () {\n\t\t\t\t// Coerce to boolean in case of old WebKit\n\t\t\t\treturn Boolean(document[fn.fullscreenEnabled]);\n\t\t\t}\n\t\t}\n\t});\n\n\tif (isCommonjs) {\n\t\tmodule.exports = screenfull;\n\t\t// TODO: remove this in the next major version\n\t\tmodule.exports.default = screenfull;\n\t} else {\n\t\twindow.screenfull = screenfull;\n\t}\n})();\n"],"names":["render","_vm","_c","_self","attrs","isFullscreen","$t","on","click","$event","staticRenderFns","screenfull","props","isContainer","type","Boolean","default","name","data","refEle","mounted","init","$options","parent","$el","beforeDestroy","destroy","methods","enabled","$message","message","toggle","change","off"],"sourceRoot":""}
|