eoss 0.1.0-alpha.20 → 0.1.0-alpha.21
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/lib/account-login.js +1943 -1890
- package/lib/alert.js +4 -4
- package/lib/aside.js +4 -4
- package/lib/autocomplete.js +4936 -4834
- package/lib/avatar.js +4 -4
- package/lib/backtop.js +4 -4
- package/lib/badge.js +4 -4
- package/lib/breadcrumb-item.js +6 -6
- package/lib/breadcrumb.js +7 -7
- package/lib/button-group.js +11 -14
- package/lib/button.js +6 -6
- package/lib/ca-login.js +2480 -2382
- package/lib/calendar.js +798 -798
- package/lib/card.js +4 -4
- package/lib/carousel-item.js +911 -813
- package/lib/carousel.js +1646 -1548
- package/lib/cascader-panel.js +2556 -2458
- package/lib/cascader.js +4546 -4444
- package/lib/checkbox-button.js +4 -4
- package/lib/checkbox-group.js +2894 -2841
- package/lib/checkbox.js +4 -4
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +35159 -2572
- package/lib/collapse.js +35410 -2762
- package/lib/color-picker.js +494 -490
- package/lib/config/api.js +15 -1
- package/lib/container.js +4 -4
- package/lib/cron.js +4 -4
- package/lib/data-table.js +1895 -1842
- package/lib/date-picker.js +6422 -6320
- package/lib/dialog.js +2912 -2806
- package/lib/divider.js +4 -4
- package/lib/drawer.js +311 -299
- package/lib/dropdown-item.js +6 -6
- package/lib/dropdown-menu.js +539 -535
- package/lib/dropdown.js +2270 -2172
- package/lib/email-login.js +1783 -1730
- package/lib/empty.js +723 -0
- package/lib/eoss.common.js +63680 -56193
- package/lib/flip.js +4 -4
- package/lib/flow-group.js +2985 -2887
- package/lib/flow.js +28067 -28022
- package/lib/footer.js +4 -4
- package/lib/form-item.js +1935 -1837
- package/lib/form.js +9230 -9092
- package/lib/header.js +4 -4
- package/lib/icon.js +1708 -1590
- package/lib/icons.js +4 -4
- package/lib/image-viewer.js +1660 -1562
- package/lib/image.js +162 -162
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +76 -76
- package/lib/input-number.js +172 -172
- package/lib/input.js +1362 -1264
- package/lib/link.js +4 -4
- package/lib/loading.js +321 -317
- package/lib/login.js +3306 -3300
- package/lib/lowcode.js +13320 -0
- package/lib/main.js +14465 -14339
- package/lib/marquee.js +1237 -1139
- package/lib/menu-item-group.js +119 -119
- package/lib/menu-item.js +114 -114
- package/lib/menu.js +6193 -6091
- package/lib/message-box.js +3582 -3480
- package/lib/message.js +2265 -2163
- package/lib/notification.js +2430 -2328
- package/lib/option-group.js +4 -4
- package/lib/option.js +842 -744
- package/lib/page-header.js +4 -4
- package/lib/pagination.js +1916 -1815
- package/lib/phone-login.js +1788 -1735
- package/lib/popconfirm.js +8 -8
- package/lib/popover.js +4559 -4457
- package/lib/progress.js +4 -4
- package/lib/qr-code.js +9 -9
- package/lib/qrcode-login.js +1600 -1543
- package/lib/radio-button.js +6 -6
- package/lib/radio-group.js +2142 -2089
- package/lib/radio.js +6 -6
- package/lib/rate.js +1226 -1128
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +2695 -2597
- package/lib/select.js +5985 -5961
- package/lib/selector-panel.js +5239 -5186
- package/lib/selector.js +1712 -1659
- package/lib/slider.js +16 -16
- package/lib/step.js +35836 -2736
- package/lib/steps.js +1281 -1183
- package/lib/submenu.js +461 -457
- package/lib/switch.js +1010 -912
- package/lib/tab-pane.js +4 -4
- package/lib/table-column.js +2595 -2497
- package/lib/table.js +9225 -9239
- package/lib/tabs.js +2414 -2320
- package/lib/tag.js +4 -4
- package/lib/theme-chalk/account-login.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fonts/iconfont.ttf +0 -0
- package/lib/theme-chalk/fonts/iconfont.woff +0 -0
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/login.css +1 -1
- package/lib/theme-chalk/lowcode.css +1 -0
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/qrcode-login.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/time-picker.js +5823 -5819
- package/lib/time-select.js +3578 -3574
- package/lib/timeline-item.js +4 -4
- package/lib/timeline.js +4 -4
- package/lib/tips.js +1633 -1580
- package/lib/toolbar.js +213 -213
- package/lib/tooltip.js +4441 -4339
- package/lib/transfer.js +938 -840
- package/lib/tree-group.js +1875 -1757
- package/lib/tree.js +2626 -2573
- package/lib/upload.js +7209 -7156
- package/lib/utils/ajax.js +185 -243
- package/lib/utils/bus.js +2 -2
- package/lib/utils/popup/index.js +5 -1
- package/lib/utils/util.js +108 -11
- package/package.json +2 -2
- package/packages/button/src/button-group.vue +1 -4
- package/packages/collapse/src/collapse-item.vue +47 -33
- package/packages/dialog/src/dialog.vue +4 -1
- package/packages/drawer/src/drawer.vue +12 -4
- package/packages/empty/index.js +7 -0
- package/packages/empty/src/img-empty.vue +132 -0
- package/packages/empty/src/index.vue +49 -0
- package/packages/form/src/form-item-render.vue +16 -18
- package/packages/form/src/form.vue +27 -5
- package/packages/icons/src/icon.json +1 -1
- package/packages/login/src/login.vue +19 -21
- package/packages/login/src/mixins.js +2 -1
- package/packages/lowcode/index.js +5 -0
- package/packages/lowcode/src/aside.vue +331 -0
- package/packages/lowcode/src/attribute/bind.vue +441 -0
- package/packages/lowcode/src/attribute/dependency.vue +325 -0
- package/packages/lowcode/src/attribute/function.vue +112 -0
- package/packages/lowcode/src/attribute/property.vue +331 -0
- package/packages/lowcode/src/attribute/styles.vue +318 -0
- package/packages/lowcode/src/attribute.vue +135 -0
- package/packages/lowcode/src/canvas.vue +296 -0
- package/packages/lowcode/src/json.vue +32 -0
- package/packages/lowcode/src/lowcode.vue +539 -0
- package/packages/lowcode/src/modules.vue +93 -0
- package/packages/lowcode/src/pages.vue +91 -0
- package/packages/lowcode/src/render.vue +247 -0
- package/packages/lowcode/src/source.vue +32 -0
- package/packages/lowcode/src/toolbar.vue +162 -0
- package/packages/main/src/components/pages.vue +28 -2
- package/packages/main/src/components/set-menus.vue +3 -3
- package/packages/main/src/components/user.vue +6 -1
- package/packages/main/src/early.vue +2 -2
- package/packages/main/src/gzw.vue +55 -61
- package/packages/main/src/minxs.js +113 -36
- package/packages/pagination/src/pager.vue +2 -2
- package/packages/pagination/src/pagination.js +4 -1
- package/packages/qrcode-login/src/qrcode-login.vue +6 -2
- package/packages/select/src/select.vue +28 -6
- package/packages/steps/src/step.vue +7 -5
- package/packages/tabs/src/tab-nav.vue +1 -0
- package/packages/tabs/src/tabs.vue +0 -2
- package/packages/theme-chalk/dist/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/dist/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/gulpfile.js +3 -0
- package/packages/theme-chalk/src/account-login.scss +1 -0
- package/packages/theme-chalk/src/base.scss +1 -1
- package/packages/theme-chalk/src/common/var.scss +16 -0
- package/packages/theme-chalk/src/empty.scss +45 -0
- package/packages/theme-chalk/src/fonts/iconfont.ttf +0 -0
- package/packages/theme-chalk/src/fonts/iconfont.woff +0 -0
- package/packages/theme-chalk/src/form.scss +1 -8
- package/packages/theme-chalk/src/icon.scss +30 -1
- package/packages/theme-chalk/src/index.scss +2 -0
- package/packages/theme-chalk/src/input-number.scss +0 -4
- package/packages/theme-chalk/src/input.scss +9 -0
- package/packages/theme-chalk/src/login.scss +32 -29
- package/packages/theme-chalk/src/lowcode.scss +461 -0
- package/packages/theme-chalk/src/main.scss +28 -65
- package/packages/theme-chalk/src/pagination.scss +4 -55
- package/packages/theme-chalk/src/qrcode-login.scss +3 -1
- package/packages/theme-chalk/src/tabs.scss +81 -50
- package/src/config/api.js +13 -0
- package/src/index.js +17 -4
- package/src/utils/ajax.js +61 -65
- package/src/utils/bus.js +2 -2
- package/src/utils/popup/index.js +5 -1
- package/src/utils/util.js +104 -7
- package/lib/index_/345/211/257/346/234/254.js +0 -583
- package/packages/dialog copy/index.js +0 -8
- package/packages/dialog copy/src/dialog.vue +0 -615
- package/src/index_/345/211/257/346/234/254.js +0 -359
- /package/{packages/form/src → src/components}/field-render.vue +0 -0
package/lib/image.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 202);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -94,7 +94,7 @@ module.exports = require("throttle-debounce");
|
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/
|
|
97
|
+
/***/ 202:
|
|
98
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
99
|
|
|
100
100
|
"use strict";
|
|
@@ -172,14 +172,14 @@ render._withStripped = true
|
|
|
172
172
|
// CONCATENATED MODULE: ./packages/image/src/image.vue?vue&type=template&id=28a5c600&
|
|
173
173
|
|
|
174
174
|
// EXTERNAL MODULE: external "eoss/lib/image-viewer"
|
|
175
|
-
var image_viewer_ = __webpack_require__(
|
|
175
|
+
var image_viewer_ = __webpack_require__(96);
|
|
176
176
|
var image_viewer_default = /*#__PURE__*/__webpack_require__.n(image_viewer_);
|
|
177
177
|
|
|
178
178
|
// EXTERNAL MODULE: ./src/utils/dom.js
|
|
179
|
-
var dom = __webpack_require__(
|
|
179
|
+
var dom = __webpack_require__(5);
|
|
180
180
|
|
|
181
181
|
// EXTERNAL MODULE: ./src/utils/types.js
|
|
182
|
-
var types = __webpack_require__(
|
|
182
|
+
var types = __webpack_require__(6);
|
|
183
183
|
|
|
184
184
|
// EXTERNAL MODULE: external "throttle-debounce"
|
|
185
185
|
var external_throttle_debounce_ = __webpack_require__(14);
|
|
@@ -527,7 +527,7 @@ var prevOverflow = '';
|
|
|
527
527
|
// CONCATENATED MODULE: ./packages/image/src/image.vue?vue&type=script&lang=js&
|
|
528
528
|
/* harmony default export */ var src_imagevue_type_script_lang_js_ = (imagevue_type_script_lang_js_);
|
|
529
529
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
530
|
-
var componentNormalizer = __webpack_require__(
|
|
530
|
+
var componentNormalizer = __webpack_require__(3);
|
|
531
531
|
|
|
532
532
|
// CONCATENATED MODULE: ./packages/image/src/image.vue
|
|
533
533
|
|
|
@@ -561,81 +561,119 @@ src_image.install = function (Vue) {
|
|
|
561
561
|
|
|
562
562
|
/***/ }),
|
|
563
563
|
|
|
564
|
-
/***/ 2:
|
|
565
|
-
/***/ (function(module, exports) {
|
|
566
|
-
|
|
567
|
-
module.exports = require("vue");
|
|
568
|
-
|
|
569
|
-
/***/ }),
|
|
570
|
-
|
|
571
564
|
/***/ 3:
|
|
572
565
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
573
566
|
|
|
574
567
|
"use strict";
|
|
575
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
576
|
-
/*
|
|
577
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
578
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
579
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
580
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
581
|
-
/**
|
|
582
|
-
* 检查一个值是否为字符串类型
|
|
583
|
-
* @param {*} obj 要检查的值
|
|
584
|
-
* @returns {boolean} 如果值为字符串则返回true,否则返回false
|
|
585
|
-
*/
|
|
586
|
-
function isString(obj) {
|
|
587
|
-
return Object.prototype.toString.call(obj) === '[object String]';
|
|
588
|
-
}
|
|
568
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
569
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
589
570
|
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
* @returns {boolean} 如果值为对象则返回true,否则返回false
|
|
594
|
-
*/
|
|
595
|
-
function isObject(obj) {
|
|
596
|
-
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
597
|
-
}
|
|
571
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
572
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
573
|
+
// be included in the final webpack user bundle.
|
|
598
574
|
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
575
|
+
function normalizeComponent(
|
|
576
|
+
scriptExports,
|
|
577
|
+
render,
|
|
578
|
+
staticRenderFns,
|
|
579
|
+
functionalTemplate,
|
|
580
|
+
injectStyles,
|
|
581
|
+
scopeId,
|
|
582
|
+
moduleIdentifier /* server only */,
|
|
583
|
+
shadowMode /* vue-cli only */
|
|
584
|
+
) {
|
|
585
|
+
// Vue.extend constructor export interop
|
|
586
|
+
var options =
|
|
587
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
607
588
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
var getType = {};
|
|
615
|
-
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
616
|
-
}
|
|
589
|
+
// render functions
|
|
590
|
+
if (render) {
|
|
591
|
+
options.render = render
|
|
592
|
+
options.staticRenderFns = staticRenderFns
|
|
593
|
+
options._compiled = true
|
|
594
|
+
}
|
|
617
595
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
*/
|
|
623
|
-
function isUndefined(val) {
|
|
624
|
-
return val === void 0;
|
|
625
|
-
}
|
|
596
|
+
// functional template
|
|
597
|
+
if (functionalTemplate) {
|
|
598
|
+
options.functional = true
|
|
599
|
+
}
|
|
626
600
|
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
601
|
+
// scopedId
|
|
602
|
+
if (scopeId) {
|
|
603
|
+
options._scopeId = 'data-v-' + scopeId
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
var hook
|
|
607
|
+
if (moduleIdentifier) {
|
|
608
|
+
// server build
|
|
609
|
+
hook = function (context) {
|
|
610
|
+
// 2.3 injection
|
|
611
|
+
context =
|
|
612
|
+
context || // cached call
|
|
613
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
614
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
615
|
+
// 2.2 with runInNewContext: true
|
|
616
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
617
|
+
context = __VUE_SSR_CONTEXT__
|
|
618
|
+
}
|
|
619
|
+
// inject component styles
|
|
620
|
+
if (injectStyles) {
|
|
621
|
+
injectStyles.call(this, context)
|
|
622
|
+
}
|
|
623
|
+
// register component module identifier for async chunk inferrence
|
|
624
|
+
if (context && context._registeredComponents) {
|
|
625
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
// used by ssr in case component is cached and beforeCreate
|
|
629
|
+
// never gets called
|
|
630
|
+
options._ssrRegister = hook
|
|
631
|
+
} else if (injectStyles) {
|
|
632
|
+
hook = shadowMode
|
|
633
|
+
? function () {
|
|
634
|
+
injectStyles.call(
|
|
635
|
+
this,
|
|
636
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
637
|
+
)
|
|
638
|
+
}
|
|
639
|
+
: injectStyles
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
if (hook) {
|
|
643
|
+
if (options.functional) {
|
|
644
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
645
|
+
// go through the normalizer
|
|
646
|
+
options._injectStyles = hook
|
|
647
|
+
// register for functional component in vue file
|
|
648
|
+
var originalRender = options.render
|
|
649
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
650
|
+
hook.call(context)
|
|
651
|
+
return originalRender(h, context)
|
|
652
|
+
}
|
|
653
|
+
} else {
|
|
654
|
+
// inject component registration as beforeCreate hook
|
|
655
|
+
var existing = options.beforeCreate
|
|
656
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
return {
|
|
661
|
+
exports: scriptExports,
|
|
662
|
+
options: options
|
|
663
|
+
}
|
|
634
664
|
}
|
|
635
665
|
|
|
666
|
+
|
|
636
667
|
/***/ }),
|
|
637
668
|
|
|
638
669
|
/***/ 4:
|
|
670
|
+
/***/ (function(module, exports) {
|
|
671
|
+
|
|
672
|
+
module.exports = require("vue");
|
|
673
|
+
|
|
674
|
+
/***/ }),
|
|
675
|
+
|
|
676
|
+
/***/ 5:
|
|
639
677
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
640
678
|
|
|
641
679
|
"use strict";
|
|
@@ -651,7 +689,7 @@ function isDefined(val) {
|
|
|
651
689
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
|
|
652
690
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
|
|
653
691
|
/* unused harmony export insertAfter */
|
|
654
|
-
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
692
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
|
|
655
693
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
656
694
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
|
657
695
|
|
|
@@ -894,112 +932,74 @@ function insertAfter(newEl, targetEl) {
|
|
|
894
932
|
|
|
895
933
|
/***/ }),
|
|
896
934
|
|
|
897
|
-
/***/
|
|
935
|
+
/***/ 6:
|
|
898
936
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
899
937
|
|
|
900
938
|
"use strict";
|
|
901
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
902
|
-
/*
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
moduleIdentifier /* server only */,
|
|
916
|
-
shadowMode /* vue-cli only */
|
|
917
|
-
) {
|
|
918
|
-
// Vue.extend constructor export interop
|
|
919
|
-
var options =
|
|
920
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
921
|
-
|
|
922
|
-
// render functions
|
|
923
|
-
if (render) {
|
|
924
|
-
options.render = render
|
|
925
|
-
options.staticRenderFns = staticRenderFns
|
|
926
|
-
options._compiled = true
|
|
927
|
-
}
|
|
928
|
-
|
|
929
|
-
// functional template
|
|
930
|
-
if (functionalTemplate) {
|
|
931
|
-
options.functional = true
|
|
932
|
-
}
|
|
939
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
940
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
941
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
942
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
943
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
944
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
945
|
+
/**
|
|
946
|
+
* 检查一个值是否为字符串类型
|
|
947
|
+
* @param {*} obj 要检查的值
|
|
948
|
+
* @returns {boolean} 如果值为字符串则返回true,否则返回false
|
|
949
|
+
*/
|
|
950
|
+
function isString(obj) {
|
|
951
|
+
return Object.prototype.toString.call(obj) === '[object String]';
|
|
952
|
+
}
|
|
933
953
|
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
954
|
+
/**
|
|
955
|
+
* 检查一个值是否为对象类型
|
|
956
|
+
* @param {*} obj 要检查的值
|
|
957
|
+
* @returns {boolean} 如果值为对象则返回true,否则返回false
|
|
958
|
+
*/
|
|
959
|
+
function isObject(obj) {
|
|
960
|
+
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
961
|
+
}
|
|
938
962
|
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
948
|
-
// 2.2 with runInNewContext: true
|
|
949
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
950
|
-
context = __VUE_SSR_CONTEXT__
|
|
951
|
-
}
|
|
952
|
-
// inject component styles
|
|
953
|
-
if (injectStyles) {
|
|
954
|
-
injectStyles.call(this, context)
|
|
955
|
-
}
|
|
956
|
-
// register component module identifier for async chunk inferrence
|
|
957
|
-
if (context && context._registeredComponents) {
|
|
958
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
// used by ssr in case component is cached and beforeCreate
|
|
962
|
-
// never gets called
|
|
963
|
-
options._ssrRegister = hook
|
|
964
|
-
} else if (injectStyles) {
|
|
965
|
-
hook = shadowMode
|
|
966
|
-
? function () {
|
|
967
|
-
injectStyles.call(
|
|
968
|
-
this,
|
|
969
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
970
|
-
)
|
|
971
|
-
}
|
|
972
|
-
: injectStyles
|
|
973
|
-
}
|
|
963
|
+
/**
|
|
964
|
+
* 检查一个节点是否为HTML元素
|
|
965
|
+
* @param {Node} node 要检查的节点
|
|
966
|
+
* @returns {boolean} 如果节点为HTML元素则返回true,否则返回false
|
|
967
|
+
*/
|
|
968
|
+
function isHtmlElement(node) {
|
|
969
|
+
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
970
|
+
}
|
|
974
971
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
return originalRender(h, context)
|
|
985
|
-
}
|
|
986
|
-
} else {
|
|
987
|
-
// inject component registration as beforeCreate hook
|
|
988
|
-
var existing = options.beforeCreate
|
|
989
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
990
|
-
}
|
|
991
|
-
}
|
|
972
|
+
/**
|
|
973
|
+
* 检查一个值是否为函数类型
|
|
974
|
+
* @param {*} functionToCheck 要检查的值
|
|
975
|
+
* @returns {boolean} 如果值为函数则返回true,否则返回false
|
|
976
|
+
*/
|
|
977
|
+
function isFunction(functionToCheck) {
|
|
978
|
+
var getType = {};
|
|
979
|
+
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
980
|
+
}
|
|
992
981
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
982
|
+
/**
|
|
983
|
+
* 检查一个值是否为undefined
|
|
984
|
+
* @param {*} val 要检查的值
|
|
985
|
+
* @returns {boolean} 如果值为undefined则返回true,否则返回false
|
|
986
|
+
*/
|
|
987
|
+
function isUndefined(val) {
|
|
988
|
+
return val === void 0;
|
|
997
989
|
}
|
|
998
990
|
|
|
991
|
+
/**
|
|
992
|
+
* 检查一个值是否已定义(不是undefined或null)
|
|
993
|
+
* @param {*} val 要检查的值
|
|
994
|
+
* @returns {boolean} 如果值已定义则返回true,否则返回false
|
|
995
|
+
*/
|
|
996
|
+
function isDefined(val) {
|
|
997
|
+
return val !== undefined && val !== null;
|
|
998
|
+
}
|
|
999
999
|
|
|
1000
1000
|
/***/ }),
|
|
1001
1001
|
|
|
1002
|
-
/***/
|
|
1002
|
+
/***/ 96:
|
|
1003
1003
|
/***/ (function(module, exports) {
|
|
1004
1004
|
|
|
1005
1005
|
module.exports = require("eoss/lib/image-viewer");
|