xt-element-ui 2.1.61 → 2.2.0
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/docs/components/base/xt-bar.md +5 -5
- package/docs/components/base/xt-chart.md +5 -5
- package/docs/components/base/xt-line.md +4 -4
- package/docs/components/base/xt-multi.md +5 -5
- package/docs/components/base/xt-pie.md +5 -5
- package/lib/index.common.js +503 -165
- package/lib/index.css +1 -1
- package/lib/index.umd.js +506 -168
- package/lib/index.umd.min.js +1 -1
- package/lib/xt-badge/demo.html +10 -0
- package/lib/xt-badge/index.js +1 -0
- package/lib/xt-badge/xt-badge.common.js +335 -0
- package/lib/xt-badge/xt-badge.css +1 -0
- package/lib/xt-badge/xt-badge.umd.js +345 -0
- package/lib/xt-badge/xt-badge.umd.min.js +1 -0
- package/lib/xt-button/demo.html +10 -0
- package/lib/xt-button/index.js +1 -0
- package/lib/xt-button/xt-button.common.js +331 -0
- package/lib/xt-button/xt-button.css +1 -0
- package/lib/xt-button/xt-button.umd.js +341 -0
- package/lib/xt-button/xt-button.umd.min.js +1 -0
- package/lib/xt-card/demo.html +10 -0
- package/lib/xt-card/index.js +1 -0
- package/lib/xt-card/xt-card.common.js +325 -0
- package/lib/xt-card/xt-card.css +1 -0
- package/lib/xt-card/xt-card.umd.js +335 -0
- package/lib/xt-card/xt-card.umd.min.js +1 -0
- package/lib/xt-card-item/demo.html +10 -0
- package/lib/xt-card-item/index.js +1 -0
- package/lib/xt-card-item/xt-card-item.common.js +291 -0
- package/lib/xt-card-item/xt-card-item.css +1 -0
- package/lib/xt-card-item/xt-card-item.umd.js +301 -0
- package/lib/xt-card-item/xt-card-item.umd.min.js +1 -0
- package/lib/xt-chart/demo.html +10 -0
- package/lib/xt-chart/index.js +1 -0
- package/lib/xt-chart/xt-chart.common.js +109203 -0
- package/lib/xt-chart/xt-chart.css +1 -0
- package/lib/xt-chart/xt-chart.umd.js +109213 -0
- package/lib/xt-chart/xt-chart.umd.min.js +1 -0
- package/lib/xt-config-provider/demo.html +10 -0
- package/lib/xt-config-provider/index.js +1 -0
- package/lib/xt-config-provider/xt-config-provider.common.js +108388 -0
- package/lib/xt-config-provider/xt-config-provider.css +1 -0
- package/lib/xt-config-provider/xt-config-provider.umd.js +108398 -0
- package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -0
- package/lib/xt-date-picker/demo.html +10 -0
- package/lib/xt-date-picker/index.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.common.js +768 -0
- package/lib/xt-date-picker/xt-date-picker.css +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.js +778 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -0
- package/lib/xt-flex-box/demo.html +10 -0
- package/lib/xt-flex-box/index.js +1 -0
- package/lib/xt-flex-box/xt-flex-box.common.js +303 -0
- package/lib/xt-flex-box/xt-flex-box.css +1 -0
- package/lib/xt-flex-box/xt-flex-box.umd.js +313 -0
- package/lib/xt-flex-box/xt-flex-box.umd.min.js +1 -0
- package/lib/xt-form-schema/demo.html +10 -0
- package/lib/xt-form-schema/index.js +1 -0
- package/lib/xt-form-schema/xt-form-schema.common.js +510 -0
- package/lib/xt-form-schema/xt-form-schema.css +1 -0
- package/lib/xt-form-schema/xt-form-schema.umd.js +520 -0
- package/lib/xt-form-schema/xt-form-schema.umd.min.js +1 -0
- package/lib/xt-grid-box/demo.html +10 -0
- package/lib/xt-grid-box/index.js +1 -0
- package/lib/xt-grid-box/xt-grid-box.common.js +404 -0
- package/lib/xt-grid-box/xt-grid-box.css +1 -0
- package/lib/xt-grid-box/xt-grid-box.umd.js +414 -0
- package/lib/xt-grid-box/xt-grid-box.umd.min.js +1 -0
- package/lib/xt-grid-item/demo.html +10 -0
- package/lib/xt-grid-item/index.js +1 -0
- package/lib/xt-grid-item/xt-grid-item.common.js +381 -0
- package/lib/xt-grid-item/xt-grid-item.css +1 -0
- package/lib/xt-grid-item/xt-grid-item.umd.js +391 -0
- package/lib/xt-grid-item/xt-grid-item.umd.min.js +1 -0
- package/lib/xt-icon/demo.html +10 -0
- package/lib/xt-icon/index.js +1 -0
- package/lib/xt-icon/xt-icon.common.js +430 -0
- package/lib/xt-icon/xt-icon.css +1 -0
- package/lib/xt-icon/xt-icon.umd.js +440 -0
- package/lib/xt-icon/xt-icon.umd.min.js +1 -0
- package/lib/xt-input/demo.html +10 -0
- package/lib/xt-input/index.js +1 -0
- package/lib/xt-input/xt-input.common.js +584 -0
- package/lib/xt-input/xt-input.css +1 -0
- package/lib/xt-input/xt-input.umd.js +594 -0
- package/lib/xt-input/xt-input.umd.min.js +1 -0
- package/lib/xt-list/demo.html +10 -0
- package/lib/xt-list/index.js +1 -0
- package/lib/xt-list/xt-list.common.js +714 -0
- package/lib/xt-list/xt-list.css +1 -0
- package/lib/xt-list/xt-list.umd.js +724 -0
- package/lib/xt-list/xt-list.umd.min.js +1 -0
- package/lib/xt-map/demo.html +10 -0
- package/lib/xt-map/index.js +1 -0
- package/lib/xt-map/xt-map.common.js +1951 -0
- package/lib/xt-map/xt-map.css +1 -0
- package/lib/xt-map/xt-map.umd.js +1961 -0
- package/lib/xt-map/xt-map.umd.min.js +1 -0
- package/lib/xt-map-provider/demo.html +10 -0
- package/lib/xt-map-provider/index.js +1 -0
- package/lib/xt-map-provider/xt-map-provider.common.js +644 -0
- package/lib/xt-map-provider/xt-map-provider.css +1 -0
- package/lib/xt-map-provider/xt-map-provider.umd.js +654 -0
- package/lib/xt-map-provider/xt-map-provider.umd.min.js +1 -0
- package/lib/xt-page/demo.html +10 -0
- package/lib/xt-page/index.js +1 -0
- package/lib/xt-page/xt-page.common.js +353 -0
- package/lib/xt-page/xt-page.css +1 -0
- package/lib/xt-page/xt-page.umd.js +363 -0
- package/lib/xt-page/xt-page.umd.min.js +1 -0
- package/lib/xt-progress/demo.html +10 -0
- package/lib/xt-progress/index.js +1 -0
- package/lib/xt-progress/xt-progress.common.js +327 -0
- package/lib/xt-progress/xt-progress.css +1 -0
- package/lib/xt-progress/xt-progress.umd.js +337 -0
- package/lib/xt-progress/xt-progress.umd.min.js +1 -0
- package/lib/xt-scroll-arrow/demo.html +10 -0
- package/lib/xt-scroll-arrow/index.js +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +495 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +505 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -0
- package/lib/xt-select-tree/demo.html +10 -0
- package/lib/xt-select-tree/index.js +1 -0
- package/lib/xt-select-tree/xt-select-tree.common.js +1791 -0
- package/lib/xt-select-tree/xt-select-tree.css +1 -0
- package/lib/xt-select-tree/xt-select-tree.umd.js +1801 -0
- package/lib/xt-select-tree/xt-select-tree.umd.min.js +1 -0
- package/lib/xt-step-price/demo.html +10 -0
- package/lib/xt-step-price/index.js +1 -0
- package/lib/xt-step-price/xt-step-price.common.js +800 -0
- package/lib/xt-step-price/xt-step-price.css +1 -0
- package/lib/xt-step-price/xt-step-price.umd.js +810 -0
- package/lib/xt-step-price/xt-step-price.umd.min.js +1 -0
- package/lib/xt-step-price-item/demo.html +10 -0
- package/lib/xt-step-price-item/index.js +1 -0
- package/lib/xt-step-price-item/xt-step-price-item.common.js +417 -0
- package/lib/xt-step-price-item/xt-step-price-item.umd.js +427 -0
- package/lib/xt-step-price-item/xt-step-price-item.umd.min.js +1 -0
- package/lib/xt-tab-pane/demo.html +10 -0
- package/lib/xt-tab-pane/index.js +1 -0
- package/lib/xt-tab-pane/xt-tab-pane.common.js +309 -0
- package/lib/xt-tab-pane/xt-tab-pane.umd.js +319 -0
- package/lib/xt-tab-pane/xt-tab-pane.umd.min.js +1 -0
- package/lib/xt-table/demo.html +10 -0
- package/lib/xt-table/index.js +1 -0
- package/lib/xt-table/xt-table.common.js +1027 -0
- package/lib/xt-table/xt-table.css +1 -0
- package/lib/xt-table/xt-table.umd.js +1037 -0
- package/lib/xt-table/xt-table.umd.min.js +1 -0
- package/lib/xt-tabs/demo.html +10 -0
- package/lib/xt-tabs/index.js +1 -0
- package/lib/xt-tabs/xt-tabs.common.js +463 -0
- package/lib/xt-tabs/xt-tabs.css +1 -0
- package/lib/xt-tabs/xt-tabs.umd.js +473 -0
- package/lib/xt-tabs/xt-tabs.umd.min.js +1 -0
- package/lib/xt-text/demo.html +10 -0
- package/lib/xt-text/index.js +1 -0
- package/lib/xt-text/xt-text.common.js +536 -0
- package/lib/xt-text/xt-text.css +1 -0
- package/lib/xt-text/xt-text.umd.js +546 -0
- package/lib/xt-text/xt-text.umd.min.js +1 -0
- package/lib/xt-time/demo.html +10 -0
- package/lib/xt-time/index.js +1 -0
- package/lib/xt-time/xt-time.common.js +555 -0
- package/lib/xt-time/xt-time.css +1 -0
- package/lib/xt-time/xt-time.umd.js +565 -0
- package/lib/xt-time/xt-time.umd.min.js +1 -0
- package/lib/xt-transfer-tree/demo.html +10 -0
- package/lib/xt-transfer-tree/index.js +1 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.common.js +594 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.css +1 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +604 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.min.js +1 -0
- package/lib/xt-upload/demo.html +10 -0
- package/lib/xt-upload/index.js +1 -0
- package/lib/xt-upload/xt-upload.common.js +1292 -0
- package/lib/xt-upload/xt-upload.css +1 -0
- package/lib/xt-upload/xt-upload.umd.js +1302 -0
- package/lib/xt-upload/xt-upload.umd.min.js +1 -0
- package/package.json +10 -7
- package/src/components/xt-badge/index.js +8 -7
- package/src/components/xt-button/index.js +1 -0
- package/src/components/xt-card/index.js +1 -0
- package/src/components/xt-card-item/index.js +1 -0
- package/src/components/xt-config-provider/index.js +1 -0
- package/src/components/xt-flex-box/index.js +1 -0
- package/src/components/xt-grid-box/index.js +1 -0
- package/src/components/xt-icon/index.js +1 -0
- package/src/components/xt-input/index.js +1 -0
- package/src/components/xt-map/index.js +1 -0
- package/src/components/xt-progress/index.js +8 -7
- package/src/components/xt-scroll-arrow/index.js +8 -7
- package/src/components/xt-step-price/index.js +1 -0
- package/src/components/xt-tab-pane/index.js +10 -0
- package/src/components/{xt-tabs/TabPane.vue → xt-tab-pane/index.vue} +14 -1
- package/src/components/xt-tabs/index.js +9 -10
- package/src/components/xt-tabs/index.vue +303 -44
- package/src/components/xt-text/index.js +1 -0
- package/src/components/xt-time/index.js +1 -0
- package/src/index.js +34 -2
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["xt-card"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["xt-card"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ "419e":
|
|
100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
// extracted by mini-css-extract-plugin
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ "fb15":
|
|
107
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
108
|
+
|
|
109
|
+
"use strict";
|
|
110
|
+
// ESM COMPAT FLAG
|
|
111
|
+
__webpack_require__.r(__webpack_exports__);
|
|
112
|
+
|
|
113
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
114
|
+
// This file is imported into lib/wc client bundles.
|
|
115
|
+
|
|
116
|
+
if (typeof window !== 'undefined') {
|
|
117
|
+
var currentScript = window.document.currentScript
|
|
118
|
+
if (false) { var getCurrentScript; }
|
|
119
|
+
|
|
120
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
121
|
+
if (src) {
|
|
122
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Indicate to webpack that this file can be concatenated
|
|
127
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
128
|
+
|
|
129
|
+
// EXTERNAL MODULE: ./src/components/xt-card/style/index.scss
|
|
130
|
+
var style = __webpack_require__("419e");
|
|
131
|
+
|
|
132
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b8cd9b04-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card/index.vue?vue&type=template&id=32926c78
|
|
133
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-card',_vm._b({staticClass:"xt-card",class:_vm.cardClasses,scopedSlots:_vm._u([(_vm.$slots.header || _vm.title)?{key:"header",fn:function(){return [_vm._t("header",function(){return [_vm._v(_vm._s(_vm.title))]})]},proxy:true}:null],null,true)},'el-card',_vm.$attrs,false),[_vm._t("default")],2)
|
|
134
|
+
}
|
|
135
|
+
var staticRenderFns = []
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
// CONCATENATED MODULE: ./src/components/xt-card/index.vue?vue&type=template&id=32926c78
|
|
139
|
+
|
|
140
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card/index.vue?vue&type=script&lang=js
|
|
141
|
+
|
|
142
|
+
/* harmony default export */ var xt_cardvue_type_script_lang_js = ({
|
|
143
|
+
name: 'XtCard',
|
|
144
|
+
inheritAttrs: false,
|
|
145
|
+
inject: {
|
|
146
|
+
xtConfig: {
|
|
147
|
+
default: () => ({
|
|
148
|
+
theme: 'light',
|
|
149
|
+
size: 'medium',
|
|
150
|
+
primaryColor: '#1890ff'
|
|
151
|
+
})
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
props: {
|
|
155
|
+
title: {
|
|
156
|
+
type: String,
|
|
157
|
+
default: ''
|
|
158
|
+
},
|
|
159
|
+
shadow: {
|
|
160
|
+
type: String,
|
|
161
|
+
default: 'always',
|
|
162
|
+
validator: (val) => ['always', 'hover', 'never'].includes(val)
|
|
163
|
+
},
|
|
164
|
+
bordered: {
|
|
165
|
+
type: Boolean,
|
|
166
|
+
default: true
|
|
167
|
+
},
|
|
168
|
+
bodyClass: {
|
|
169
|
+
type: String,
|
|
170
|
+
default: ''
|
|
171
|
+
},
|
|
172
|
+
size: {
|
|
173
|
+
type: String,
|
|
174
|
+
default: null,
|
|
175
|
+
validator: (val) => !val || ['small', 'medium', 'large'].includes(val)
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
computed: {
|
|
179
|
+
finalSize() {
|
|
180
|
+
// 优先使用组件自身的 size,其次继承 XtConfigProvider 的 size,最后使用默认值
|
|
181
|
+
return this.size || this.xtConfig.size || 'medium'
|
|
182
|
+
},
|
|
183
|
+
cardClasses() {
|
|
184
|
+
return [
|
|
185
|
+
`xt-card-${this.shadow}`,
|
|
186
|
+
`xt-card-${this.finalSize}`,
|
|
187
|
+
{
|
|
188
|
+
'xt-card-no-border': !this.bordered,
|
|
189
|
+
[this.bodyClass]: this.bodyClass
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
// CONCATENATED MODULE: ./src/components/xt-card/index.vue?vue&type=script&lang=js
|
|
197
|
+
/* harmony default export */ var components_xt_cardvue_type_script_lang_js = (xt_cardvue_type_script_lang_js);
|
|
198
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
199
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
200
|
+
|
|
201
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
202
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
203
|
+
// be included in the final webpack user bundle.
|
|
204
|
+
|
|
205
|
+
function normalizeComponent(
|
|
206
|
+
scriptExports,
|
|
207
|
+
render,
|
|
208
|
+
staticRenderFns,
|
|
209
|
+
functionalTemplate,
|
|
210
|
+
injectStyles,
|
|
211
|
+
scopeId,
|
|
212
|
+
moduleIdentifier /* server only */,
|
|
213
|
+
shadowMode /* vue-cli only */
|
|
214
|
+
) {
|
|
215
|
+
// Vue.extend constructor export interop
|
|
216
|
+
var options =
|
|
217
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
218
|
+
|
|
219
|
+
// render functions
|
|
220
|
+
if (render) {
|
|
221
|
+
options.render = render
|
|
222
|
+
options.staticRenderFns = staticRenderFns
|
|
223
|
+
options._compiled = true
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// functional template
|
|
227
|
+
if (functionalTemplate) {
|
|
228
|
+
options.functional = true
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// scopedId
|
|
232
|
+
if (scopeId) {
|
|
233
|
+
options._scopeId = 'data-v-' + scopeId
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
var hook
|
|
237
|
+
if (moduleIdentifier) {
|
|
238
|
+
// server build
|
|
239
|
+
hook = function (context) {
|
|
240
|
+
// 2.3 injection
|
|
241
|
+
context =
|
|
242
|
+
context || // cached call
|
|
243
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
244
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
245
|
+
// 2.2 with runInNewContext: true
|
|
246
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
247
|
+
context = __VUE_SSR_CONTEXT__
|
|
248
|
+
}
|
|
249
|
+
// inject component styles
|
|
250
|
+
if (injectStyles) {
|
|
251
|
+
injectStyles.call(this, context)
|
|
252
|
+
}
|
|
253
|
+
// register component module identifier for async chunk inferrence
|
|
254
|
+
if (context && context._registeredComponents) {
|
|
255
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
// used by ssr in case component is cached and beforeCreate
|
|
259
|
+
// never gets called
|
|
260
|
+
options._ssrRegister = hook
|
|
261
|
+
} else if (injectStyles) {
|
|
262
|
+
hook = shadowMode
|
|
263
|
+
? function () {
|
|
264
|
+
injectStyles.call(
|
|
265
|
+
this,
|
|
266
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
267
|
+
)
|
|
268
|
+
}
|
|
269
|
+
: injectStyles
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (hook) {
|
|
273
|
+
if (options.functional) {
|
|
274
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
275
|
+
// go through the normalizer
|
|
276
|
+
options._injectStyles = hook
|
|
277
|
+
// register for functional component in vue file
|
|
278
|
+
var originalRender = options.render
|
|
279
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
280
|
+
hook.call(context)
|
|
281
|
+
return originalRender(h, context)
|
|
282
|
+
}
|
|
283
|
+
} else {
|
|
284
|
+
// inject component registration as beforeCreate hook
|
|
285
|
+
var existing = options.beforeCreate
|
|
286
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return {
|
|
291
|
+
exports: scriptExports,
|
|
292
|
+
options: options
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// CONCATENATED MODULE: ./src/components/xt-card/index.vue
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
/* normalize component */
|
|
303
|
+
|
|
304
|
+
var component = normalizeComponent(
|
|
305
|
+
components_xt_cardvue_type_script_lang_js,
|
|
306
|
+
render,
|
|
307
|
+
staticRenderFns,
|
|
308
|
+
false,
|
|
309
|
+
null,
|
|
310
|
+
null,
|
|
311
|
+
null
|
|
312
|
+
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
/* harmony default export */ var xt_card = (component.exports);
|
|
316
|
+
// CONCATENATED MODULE: ./src/components/xt-card/index.js
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
xt_card.install = function (Vue) {
|
|
321
|
+
Vue.component(xt_card.name, xt_card)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* harmony default export */ var components_xt_card = (xt_card);
|
|
325
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_card);
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
/***/ })
|
|
333
|
+
|
|
334
|
+
/******/ });
|
|
335
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-card"]=t():e["xt-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"419e":function(e,t,n){},fb15:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("419e");var i=function(){var e=this,t=e._self._c;return t("el-card",e._b({staticClass:"xt-card",class:e.cardClasses,scopedSlots:e._u([e.$slots.header||e.title?{key:"header",fn:function(){return[e._t("header",(function(){return[e._v(e._s(e.title))]}))]},proxy:!0}:null],null,!0)},"el-card",e.$attrs,!1),[e._t("default")],2)},s=[],a={name:"XtCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:e=>["always","hover","never"].includes(e)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:e=>!e||["small","medium","large"].includes(e)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["xt-card-"+this.shadow,"xt-card-"+this.finalSize,{"xt-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},l=a;function u(e,t,n,r,o,i,s,a){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},u._ssrRegister=l):o&&(l=a?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(u.functional){u._injectStyles=l;var d=u.render;u.render=function(e,t){return l.call(t),d(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:u}}var d=u(l,i,s,!1,null,null,null),f=d.exports;f.install=function(e){e.component(f.name,f)};var c=f;t["default"]=c}})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./xt-card-item.common.js');
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
module.exports =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ "c1e7":
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
// extracted by mini-css-extract-plugin
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ "fb15":
|
|
98
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
+
|
|
100
|
+
"use strict";
|
|
101
|
+
// ESM COMPAT FLAG
|
|
102
|
+
__webpack_require__.r(__webpack_exports__);
|
|
103
|
+
|
|
104
|
+
// EXPORTS
|
|
105
|
+
__webpack_require__.d(__webpack_exports__, "XtCardItem", function() { return /* reexport */ xt_card_item; });
|
|
106
|
+
|
|
107
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
108
|
+
// This file is imported into lib/wc client bundles.
|
|
109
|
+
|
|
110
|
+
if (typeof window !== 'undefined') {
|
|
111
|
+
var currentScript = window.document.currentScript
|
|
112
|
+
if (false) { var getCurrentScript; }
|
|
113
|
+
|
|
114
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
115
|
+
if (src) {
|
|
116
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Indicate to webpack that this file can be concatenated
|
|
121
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
122
|
+
|
|
123
|
+
// EXTERNAL MODULE: ./src/components/xt-card-item/style/index.scss
|
|
124
|
+
var style = __webpack_require__("c1e7");
|
|
125
|
+
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b8cd9b04-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=template&id=dbcd74f4
|
|
127
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('xt-card',{staticClass:"xt-card-item",class:{ [`is-${_vm.type}`]: _vm.type ? true : false},attrs:{"bordered":false}},[_c('xt-flex-box',{attrs:{"content":"between"}},[_c('div',[_c('div',[_c('xt-text',{attrs:{"bold":"","size":"extra-large"}},[_vm._v(_vm._s(_vm.title))])],1),_c('xt-text',{attrs:{"bold":"","size":"large","format":"thousand","type":_vm.type,"decimals":0},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:"value"}}),_c('div',{staticStyle:{"margin":"5px 0"}},[_c('xt-text',{attrs:{"size":"small"}},[_vm._v("较昨日")]),_c('xt-text',{attrs:{"format":"normal","type":_vm.diff > 0 ? 'success' : 'danger',"suffix":_vm.diff > 0 ? '↑' : '↓'},model:{value:(_vm.change),callback:function ($$v) {_vm.change=$$v},expression:"change"}})],1)],1),_c('div',{staticStyle:{"height":"100%"}},[_vm._t("icon",function(){return [_c('xt-text',{attrs:{"size":"extra-large","type":_vm.type}},[_c('xt-icon',{attrs:{"name":"el-icon-user","size":48}})],1)]})],2)])],1)
|
|
128
|
+
}
|
|
129
|
+
var staticRenderFns = []
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue?vue&type=template&id=dbcd74f4
|
|
133
|
+
|
|
134
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-card-item/index.vue?vue&type=script&lang=js
|
|
135
|
+
|
|
136
|
+
/* harmony default export */ var xt_card_itemvue_type_script_lang_js = ({
|
|
137
|
+
name: "XtCardItem",
|
|
138
|
+
props: {
|
|
139
|
+
type: { type: String, default: "primary" },
|
|
140
|
+
title: { type: String, default: '' },
|
|
141
|
+
diff: { type: Number, default: 0 },
|
|
142
|
+
value: { type: Number, default: 0 },
|
|
143
|
+
change: { type: Number, default: 0 },
|
|
144
|
+
},
|
|
145
|
+
data() {
|
|
146
|
+
return {
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue?vue&type=script&lang=js
|
|
152
|
+
/* harmony default export */ var components_xt_card_itemvue_type_script_lang_js = (xt_card_itemvue_type_script_lang_js);
|
|
153
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
154
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
155
|
+
|
|
156
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
157
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
158
|
+
// be included in the final webpack user bundle.
|
|
159
|
+
|
|
160
|
+
function normalizeComponent(
|
|
161
|
+
scriptExports,
|
|
162
|
+
render,
|
|
163
|
+
staticRenderFns,
|
|
164
|
+
functionalTemplate,
|
|
165
|
+
injectStyles,
|
|
166
|
+
scopeId,
|
|
167
|
+
moduleIdentifier /* server only */,
|
|
168
|
+
shadowMode /* vue-cli only */
|
|
169
|
+
) {
|
|
170
|
+
// Vue.extend constructor export interop
|
|
171
|
+
var options =
|
|
172
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
173
|
+
|
|
174
|
+
// render functions
|
|
175
|
+
if (render) {
|
|
176
|
+
options.render = render
|
|
177
|
+
options.staticRenderFns = staticRenderFns
|
|
178
|
+
options._compiled = true
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// functional template
|
|
182
|
+
if (functionalTemplate) {
|
|
183
|
+
options.functional = true
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// scopedId
|
|
187
|
+
if (scopeId) {
|
|
188
|
+
options._scopeId = 'data-v-' + scopeId
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
var hook
|
|
192
|
+
if (moduleIdentifier) {
|
|
193
|
+
// server build
|
|
194
|
+
hook = function (context) {
|
|
195
|
+
// 2.3 injection
|
|
196
|
+
context =
|
|
197
|
+
context || // cached call
|
|
198
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
199
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
200
|
+
// 2.2 with runInNewContext: true
|
|
201
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
202
|
+
context = __VUE_SSR_CONTEXT__
|
|
203
|
+
}
|
|
204
|
+
// inject component styles
|
|
205
|
+
if (injectStyles) {
|
|
206
|
+
injectStyles.call(this, context)
|
|
207
|
+
}
|
|
208
|
+
// register component module identifier for async chunk inferrence
|
|
209
|
+
if (context && context._registeredComponents) {
|
|
210
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
// used by ssr in case component is cached and beforeCreate
|
|
214
|
+
// never gets called
|
|
215
|
+
options._ssrRegister = hook
|
|
216
|
+
} else if (injectStyles) {
|
|
217
|
+
hook = shadowMode
|
|
218
|
+
? function () {
|
|
219
|
+
injectStyles.call(
|
|
220
|
+
this,
|
|
221
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
222
|
+
)
|
|
223
|
+
}
|
|
224
|
+
: injectStyles
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (hook) {
|
|
228
|
+
if (options.functional) {
|
|
229
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
230
|
+
// go through the normalizer
|
|
231
|
+
options._injectStyles = hook
|
|
232
|
+
// register for functional component in vue file
|
|
233
|
+
var originalRender = options.render
|
|
234
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
235
|
+
hook.call(context)
|
|
236
|
+
return originalRender(h, context)
|
|
237
|
+
}
|
|
238
|
+
} else {
|
|
239
|
+
// inject component registration as beforeCreate hook
|
|
240
|
+
var existing = options.beforeCreate
|
|
241
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
return {
|
|
246
|
+
exports: scriptExports,
|
|
247
|
+
options: options
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// CONCATENATED MODULE: ./src/components/xt-card-item/index.vue
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/* normalize component */
|
|
258
|
+
|
|
259
|
+
var component = normalizeComponent(
|
|
260
|
+
components_xt_card_itemvue_type_script_lang_js,
|
|
261
|
+
render,
|
|
262
|
+
staticRenderFns,
|
|
263
|
+
false,
|
|
264
|
+
null,
|
|
265
|
+
null,
|
|
266
|
+
null
|
|
267
|
+
|
|
268
|
+
)
|
|
269
|
+
|
|
270
|
+
/* harmony default export */ var xt_card_item = (component.exports);
|
|
271
|
+
// CONCATENATED MODULE: ./src/components/xt-card-item/index.js
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
xt_card_item.install = function (Vue) {
|
|
276
|
+
Vue.component(xt_card_item.name, xt_card_item)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/* harmony default export */ var components_xt_card_item = (xt_card_item);
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_card_item);
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
/***/ })
|
|
290
|
+
|
|
291
|
+
/******/ });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xt-card-item{border:1px solid var(--xt-border-color,#dcdfe6);border-radius:var(--xt-border-radius-small,4px);box-shadow:var(--xt-card-shadow,0 2px 12px 0 rgba(0,0,0,.1));background-color:var(--xt-bg-color-block,#fff);overflow:hidden;color:var(--xt-text-color-primary,#303133);transition:var(--xt-transition-duration,.3s)}.xt-card-item .card__header{padding:18px 20px;box-sizing:border-box;font-weight:600;font-size:var(--xt-font-size-medium,16px)}.xt-card-item .card__body{padding:var(--xt-card-padding,20px)}.xt-card-item .card__body .value{font-size:var(--xt-font-size-large,18px);font-weight:600;color:var(--xt-color-primary,#1890ff)}.xt-card-item .card__body .unit{font-size:var(--xt-font-size-base,14px);color:var(--xt-color-text-secondary,#909399);margin-left:4px}.xt-card-item .value{font-weight:600}.xt-card-item .card__header+.card__body{padding-top:0}.xt-card-item.noPadding .card__body{padding:0}
|