jr_table_ui 0.0.0-stage → 0.1.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/README.md +23 -2
- package/lib/jr_table_ui.common.js +253 -0
- package/lib/jr_table_ui.umd.js +264 -0
- package/lib/jr_table_ui.umd.min.js +2 -0
- package/package.json +33 -4
package/README.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# jr_table_ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Project setup
|
|
4
|
+
```
|
|
5
|
+
npm install
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### Compiles and hot-reloads for development
|
|
9
|
+
```
|
|
10
|
+
npm run serve
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Compiles and minifies for production
|
|
14
|
+
```
|
|
15
|
+
npm run build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Lints and fixes files
|
|
19
|
+
```
|
|
20
|
+
npm run lint
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Customize configuration
|
|
24
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ // runtime can't be in strict mode because 'output.globalObject' reads 'this'.
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/define property getters */
|
|
8
|
+
/******/ // define getter/value functions for harmony exports
|
|
9
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
10
|
+
/******/ for(var key in definition) {
|
|
11
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
12
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
13
|
+
/******/ }
|
|
14
|
+
/******/ }
|
|
15
|
+
/******/ };
|
|
16
|
+
/******/
|
|
17
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
18
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
21
|
+
/******/ // define __esModule on exports
|
|
22
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
23
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
24
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
25
|
+
/******/ }
|
|
26
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/************************************************************************/
|
|
30
|
+
var __webpack_exports__ = {};
|
|
31
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
32
|
+
!function() {
|
|
33
|
+
"use strict";
|
|
34
|
+
// ESM COMPAT FLAG
|
|
35
|
+
__webpack_require__.r(__webpack_exports__);
|
|
36
|
+
|
|
37
|
+
// EXPORTS
|
|
38
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
39
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
43
|
+
/* eslint-disable no-var */
|
|
44
|
+
// This file is imported into lib/wc client bundles.
|
|
45
|
+
|
|
46
|
+
if (typeof window !== 'undefined') {
|
|
47
|
+
var currentScript = window.document.currentScript
|
|
48
|
+
if (false) // removed by dead control flow
|
|
49
|
+
{ var getCurrentScript; }
|
|
50
|
+
|
|
51
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
52
|
+
if (src) {
|
|
53
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Indicate to webpack that this file can be concatenated
|
|
58
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
59
|
+
|
|
60
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./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!./src/packages/test/index.vue?vue&type=template&id=618dbeb4&scoped=true
|
|
61
|
+
var render = function render() {
|
|
62
|
+
var _vm = this,
|
|
63
|
+
_c = _vm._self._c;
|
|
64
|
+
return _c('div', {
|
|
65
|
+
staticClass: "test"
|
|
66
|
+
}, [_c('div', {
|
|
67
|
+
on: {
|
|
68
|
+
"click": function ($event) {
|
|
69
|
+
$event.stopPropagation();
|
|
70
|
+
return _vm.testClick.apply(null, arguments);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, [_vm._v("Test")])]);
|
|
74
|
+
};
|
|
75
|
+
var staticRenderFns = [];
|
|
76
|
+
|
|
77
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/packages/test/index.vue?vue&type=script&lang=js
|
|
78
|
+
/* harmony default export */ var testvue_type_script_lang_js = ({
|
|
79
|
+
name: "Test",
|
|
80
|
+
components: {},
|
|
81
|
+
props: {
|
|
82
|
+
name: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: ""
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
data() {
|
|
88
|
+
return {};
|
|
89
|
+
},
|
|
90
|
+
computed: {},
|
|
91
|
+
watch: {},
|
|
92
|
+
methods: {
|
|
93
|
+
testClick() {
|
|
94
|
+
console.log(this.name);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
// 生命周期钩子 (Vue 2)
|
|
98
|
+
beforeCreate() {},
|
|
99
|
+
created() {},
|
|
100
|
+
beforeMount() {},
|
|
101
|
+
mounted() {},
|
|
102
|
+
beforeUpdate() {},
|
|
103
|
+
updated() {},
|
|
104
|
+
beforeDestroy() {},
|
|
105
|
+
destroyed() {},
|
|
106
|
+
activated() {}
|
|
107
|
+
});
|
|
108
|
+
;// ./src/packages/test/index.vue?vue&type=script&lang=js
|
|
109
|
+
/* harmony default export */ var packages_testvue_type_script_lang_js = (testvue_type_script_lang_js);
|
|
110
|
+
;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
111
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
112
|
+
|
|
113
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
114
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
115
|
+
// be included in the final webpack user bundle.
|
|
116
|
+
|
|
117
|
+
function normalizeComponent(
|
|
118
|
+
scriptExports,
|
|
119
|
+
render,
|
|
120
|
+
staticRenderFns,
|
|
121
|
+
functionalTemplate,
|
|
122
|
+
injectStyles,
|
|
123
|
+
scopeId,
|
|
124
|
+
moduleIdentifier /* server only */,
|
|
125
|
+
shadowMode /* vue-cli only */
|
|
126
|
+
) {
|
|
127
|
+
// Vue.extend constructor export interop
|
|
128
|
+
var options =
|
|
129
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
130
|
+
|
|
131
|
+
// render functions
|
|
132
|
+
if (render) {
|
|
133
|
+
options.render = render
|
|
134
|
+
options.staticRenderFns = staticRenderFns
|
|
135
|
+
options._compiled = true
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// functional template
|
|
139
|
+
if (functionalTemplate) {
|
|
140
|
+
options.functional = true
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// scopedId
|
|
144
|
+
if (scopeId) {
|
|
145
|
+
options._scopeId = 'data-v-' + scopeId
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
var hook
|
|
149
|
+
if (moduleIdentifier) {
|
|
150
|
+
// server build
|
|
151
|
+
hook = function (context) {
|
|
152
|
+
// 2.3 injection
|
|
153
|
+
context =
|
|
154
|
+
context || // cached call
|
|
155
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
156
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
157
|
+
// 2.2 with runInNewContext: true
|
|
158
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
159
|
+
context = __VUE_SSR_CONTEXT__
|
|
160
|
+
}
|
|
161
|
+
// inject component styles
|
|
162
|
+
if (injectStyles) {
|
|
163
|
+
injectStyles.call(this, context)
|
|
164
|
+
}
|
|
165
|
+
// register component module identifier for async chunk inferrence
|
|
166
|
+
if (context && context._registeredComponents) {
|
|
167
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// used by ssr in case component is cached and beforeCreate
|
|
171
|
+
// never gets called
|
|
172
|
+
options._ssrRegister = hook
|
|
173
|
+
} else if (injectStyles) {
|
|
174
|
+
hook = shadowMode
|
|
175
|
+
? function () {
|
|
176
|
+
injectStyles.call(
|
|
177
|
+
this,
|
|
178
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
179
|
+
)
|
|
180
|
+
}
|
|
181
|
+
: injectStyles
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (hook) {
|
|
185
|
+
if (options.functional) {
|
|
186
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
187
|
+
// go through the normalizer
|
|
188
|
+
options._injectStyles = hook
|
|
189
|
+
// register for functional component in vue file
|
|
190
|
+
var originalRender = options.render
|
|
191
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
192
|
+
hook.call(context)
|
|
193
|
+
return originalRender(h, context)
|
|
194
|
+
}
|
|
195
|
+
} else {
|
|
196
|
+
// inject component registration as beforeCreate hook
|
|
197
|
+
var existing = options.beforeCreate
|
|
198
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
exports: scriptExports,
|
|
204
|
+
options: options
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
;// ./src/packages/test/index.vue
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
/* normalize component */
|
|
215
|
+
;
|
|
216
|
+
var component = normalizeComponent(
|
|
217
|
+
packages_testvue_type_script_lang_js,
|
|
218
|
+
render,
|
|
219
|
+
staticRenderFns,
|
|
220
|
+
false,
|
|
221
|
+
null,
|
|
222
|
+
"618dbeb4",
|
|
223
|
+
null
|
|
224
|
+
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
/* harmony default export */ var test = (component.exports);
|
|
228
|
+
;// ./src/packages/index.js
|
|
229
|
+
|
|
230
|
+
const components = [test];
|
|
231
|
+
const install = Vue => {
|
|
232
|
+
if (install.installed) return;
|
|
233
|
+
install.installed = true;
|
|
234
|
+
components.forEach(c => Vue.component('Lh' + c.name, c));
|
|
235
|
+
};
|
|
236
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
237
|
+
install(window.Vue);
|
|
238
|
+
}
|
|
239
|
+
/* harmony default export */ var src_packages = ({
|
|
240
|
+
install,
|
|
241
|
+
...components
|
|
242
|
+
});
|
|
243
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
/* harmony default export */ var entry_lib = (src_packages);
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
}();
|
|
250
|
+
module.exports = __webpack_exports__;
|
|
251
|
+
/******/ })()
|
|
252
|
+
;
|
|
253
|
+
//# sourceMappingURL=jr_table_ui.common.js.map
|
|
@@ -0,0 +1,264 @@
|
|
|
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["jr_table_ui"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["jr_table_ui"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ // runtime can't be in strict mode because 'output.globalObject' reads 'this'.
|
|
13
|
+
/******/ // The require scope
|
|
14
|
+
/******/ var __webpack_require__ = {};
|
|
15
|
+
/******/
|
|
16
|
+
/************************************************************************/
|
|
17
|
+
/******/ /* webpack/runtime/define property getters */
|
|
18
|
+
/******/ // define getter/value functions for harmony exports
|
|
19
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
20
|
+
/******/ for(var key in definition) {
|
|
21
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
22
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
23
|
+
/******/ }
|
|
24
|
+
/******/ }
|
|
25
|
+
/******/ };
|
|
26
|
+
/******/
|
|
27
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
28
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); };
|
|
29
|
+
/******/
|
|
30
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
31
|
+
/******/ // define __esModule on exports
|
|
32
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
33
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
34
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
35
|
+
/******/ }
|
|
36
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
37
|
+
/******/ };
|
|
38
|
+
/******/
|
|
39
|
+
/************************************************************************/
|
|
40
|
+
var __webpack_exports__ = {};
|
|
41
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
42
|
+
!function() {
|
|
43
|
+
"use strict";
|
|
44
|
+
// ESM COMPAT FLAG
|
|
45
|
+
__webpack_require__.r(__webpack_exports__);
|
|
46
|
+
|
|
47
|
+
// EXPORTS
|
|
48
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
49
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
53
|
+
/* eslint-disable no-var */
|
|
54
|
+
// This file is imported into lib/wc client bundles.
|
|
55
|
+
|
|
56
|
+
if (typeof window !== 'undefined') {
|
|
57
|
+
var currentScript = window.document.currentScript
|
|
58
|
+
if (false) // removed by dead control flow
|
|
59
|
+
{ var getCurrentScript; }
|
|
60
|
+
|
|
61
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
62
|
+
if (src) {
|
|
63
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Indicate to webpack that this file can be concatenated
|
|
68
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
69
|
+
|
|
70
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.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!./src/packages/test/index.vue?vue&type=template&id=618dbeb4&scoped=true
|
|
71
|
+
var render = function render() {
|
|
72
|
+
var _vm = this,
|
|
73
|
+
_c = _vm._self._c;
|
|
74
|
+
return _c('div', {
|
|
75
|
+
staticClass: "test"
|
|
76
|
+
}, [_c('div', {
|
|
77
|
+
on: {
|
|
78
|
+
"click": function ($event) {
|
|
79
|
+
$event.stopPropagation();
|
|
80
|
+
return _vm.testClick.apply(null, arguments);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}, [_vm._v("Test")])]);
|
|
84
|
+
};
|
|
85
|
+
var staticRenderFns = [];
|
|
86
|
+
|
|
87
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/packages/test/index.vue?vue&type=script&lang=js
|
|
88
|
+
/* harmony default export */ var testvue_type_script_lang_js = ({
|
|
89
|
+
name: "Test",
|
|
90
|
+
components: {},
|
|
91
|
+
props: {
|
|
92
|
+
name: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: ""
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
data() {
|
|
98
|
+
return {};
|
|
99
|
+
},
|
|
100
|
+
computed: {},
|
|
101
|
+
watch: {},
|
|
102
|
+
methods: {
|
|
103
|
+
testClick() {
|
|
104
|
+
console.log(this.name);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
// 生命周期钩子 (Vue 2)
|
|
108
|
+
beforeCreate() {},
|
|
109
|
+
created() {},
|
|
110
|
+
beforeMount() {},
|
|
111
|
+
mounted() {},
|
|
112
|
+
beforeUpdate() {},
|
|
113
|
+
updated() {},
|
|
114
|
+
beforeDestroy() {},
|
|
115
|
+
destroyed() {},
|
|
116
|
+
activated() {}
|
|
117
|
+
});
|
|
118
|
+
;// ./src/packages/test/index.vue?vue&type=script&lang=js
|
|
119
|
+
/* harmony default export */ var packages_testvue_type_script_lang_js = (testvue_type_script_lang_js);
|
|
120
|
+
;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
121
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
122
|
+
|
|
123
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
124
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
125
|
+
// be included in the final webpack user bundle.
|
|
126
|
+
|
|
127
|
+
function normalizeComponent(
|
|
128
|
+
scriptExports,
|
|
129
|
+
render,
|
|
130
|
+
staticRenderFns,
|
|
131
|
+
functionalTemplate,
|
|
132
|
+
injectStyles,
|
|
133
|
+
scopeId,
|
|
134
|
+
moduleIdentifier /* server only */,
|
|
135
|
+
shadowMode /* vue-cli only */
|
|
136
|
+
) {
|
|
137
|
+
// Vue.extend constructor export interop
|
|
138
|
+
var options =
|
|
139
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
140
|
+
|
|
141
|
+
// render functions
|
|
142
|
+
if (render) {
|
|
143
|
+
options.render = render
|
|
144
|
+
options.staticRenderFns = staticRenderFns
|
|
145
|
+
options._compiled = true
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// functional template
|
|
149
|
+
if (functionalTemplate) {
|
|
150
|
+
options.functional = true
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// scopedId
|
|
154
|
+
if (scopeId) {
|
|
155
|
+
options._scopeId = 'data-v-' + scopeId
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
var hook
|
|
159
|
+
if (moduleIdentifier) {
|
|
160
|
+
// server build
|
|
161
|
+
hook = function (context) {
|
|
162
|
+
// 2.3 injection
|
|
163
|
+
context =
|
|
164
|
+
context || // cached call
|
|
165
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
166
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
167
|
+
// 2.2 with runInNewContext: true
|
|
168
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
169
|
+
context = __VUE_SSR_CONTEXT__
|
|
170
|
+
}
|
|
171
|
+
// inject component styles
|
|
172
|
+
if (injectStyles) {
|
|
173
|
+
injectStyles.call(this, context)
|
|
174
|
+
}
|
|
175
|
+
// register component module identifier for async chunk inferrence
|
|
176
|
+
if (context && context._registeredComponents) {
|
|
177
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
// used by ssr in case component is cached and beforeCreate
|
|
181
|
+
// never gets called
|
|
182
|
+
options._ssrRegister = hook
|
|
183
|
+
} else if (injectStyles) {
|
|
184
|
+
hook = shadowMode
|
|
185
|
+
? function () {
|
|
186
|
+
injectStyles.call(
|
|
187
|
+
this,
|
|
188
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
189
|
+
)
|
|
190
|
+
}
|
|
191
|
+
: injectStyles
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (hook) {
|
|
195
|
+
if (options.functional) {
|
|
196
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
197
|
+
// go through the normalizer
|
|
198
|
+
options._injectStyles = hook
|
|
199
|
+
// register for functional component in vue file
|
|
200
|
+
var originalRender = options.render
|
|
201
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
202
|
+
hook.call(context)
|
|
203
|
+
return originalRender(h, context)
|
|
204
|
+
}
|
|
205
|
+
} else {
|
|
206
|
+
// inject component registration as beforeCreate hook
|
|
207
|
+
var existing = options.beforeCreate
|
|
208
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return {
|
|
213
|
+
exports: scriptExports,
|
|
214
|
+
options: options
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
;// ./src/packages/test/index.vue
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/* normalize component */
|
|
225
|
+
;
|
|
226
|
+
var component = normalizeComponent(
|
|
227
|
+
packages_testvue_type_script_lang_js,
|
|
228
|
+
render,
|
|
229
|
+
staticRenderFns,
|
|
230
|
+
false,
|
|
231
|
+
null,
|
|
232
|
+
"618dbeb4",
|
|
233
|
+
null
|
|
234
|
+
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
/* harmony default export */ var test = (component.exports);
|
|
238
|
+
;// ./src/packages/index.js
|
|
239
|
+
|
|
240
|
+
const components = [test];
|
|
241
|
+
const install = Vue => {
|
|
242
|
+
if (install.installed) return;
|
|
243
|
+
install.installed = true;
|
|
244
|
+
components.forEach(c => Vue.component('Lh' + c.name, c));
|
|
245
|
+
};
|
|
246
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
247
|
+
install(window.Vue);
|
|
248
|
+
}
|
|
249
|
+
/* harmony default export */ var src_packages = ({
|
|
250
|
+
install,
|
|
251
|
+
...components
|
|
252
|
+
});
|
|
253
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
/* harmony default export */ var entry_lib = (src_packages);
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
}();
|
|
260
|
+
/******/ return __webpack_exports__;
|
|
261
|
+
/******/ })()
|
|
262
|
+
;
|
|
263
|
+
});
|
|
264
|
+
//# sourceMappingURL=jr_table_ui.umd.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["jr_table_ui"]=t():e["jr_table_ui"]=t()})("undefined"!==typeof self?self:this,function(){return function(){var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};return function(){"use strict";if(e.r(t),e.d(t,{default:function(){return _}}),"undefined"!==typeof window){var n=window.document.currentScript,o=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(e.p=o[1])}var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"test"},[t("div",{on:{click:function(t){return t.stopPropagation(),e.testClick.apply(null,arguments)}}},[e._v("Test")])])},i=[],s={name:"Test",components:{},props:{name:{type:String,default:""}},data(){return{}},computed:{},watch:{},methods:{testClick(){console.log(this.name)}},beforeCreate(){},created(){},beforeMount(){},mounted(){},beforeUpdate(){},updated(){},beforeDestroy(){},destroyed(){},activated(){}},a=s;function d(e,t,n,o,r,i,s,a){var d,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(d=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__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=d):r&&(d=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),d)if(c.functional){c._injectStyles=d;var f=c.render;c.render=function(e,t){return d.call(t),f(e,t)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,d):[d]}return{exports:e,options:c}}var c=d(a,r,i,!1,null,"618dbeb4",null),f=c.exports;const u=[f],l=e=>{l.installed||(l.installed=!0,u.forEach(t=>e.component("Lh"+t.name,t)))};"undefined"!==typeof window&&window.Vue&&l(window.Vue);var p={install:l,...u},_=p}(),t}()});
|
|
2
|
+
//# sourceMappingURL=jr_table_ui.umd.min.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jr_table_ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "lib/jr_table_ui.common.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vue-cli-service serve",
|
|
7
|
+
"build": "vue-cli-service build",
|
|
8
|
+
"build:lib": "vue-cli-service build --target lib --name jr_table_ui --dest lib src/packages/index.js",
|
|
9
|
+
"lint": "vue-cli-service lint"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"lib/*.js",
|
|
13
|
+
"lib/*.css"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"core-js": "^3.8.3",
|
|
20
|
+
"vue": "^2.6.14",
|
|
21
|
+
"@babel/core": "^7.12.16",
|
|
22
|
+
"@babel/eslint-parser": "^7.12.16",
|
|
23
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
24
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
25
|
+
"@vue/cli-service": "~5.0.0",
|
|
26
|
+
"eslint": "^7.32.0",
|
|
27
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
28
|
+
"vue-template-compiler": "^2.6.14"
|
|
29
|
+
},
|
|
30
|
+
"browserslist": [
|
|
31
|
+
"> 1%",
|
|
32
|
+
"last 2 versions",
|
|
33
|
+
"not dead"
|
|
34
|
+
]
|
|
35
|
+
}
|