tj-form 1.0.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/TJ-form.common.js +235 -0
- package/TJ-form.common.js.map +1 -0
- package/TJ-form.umd.js +246 -0
- package/TJ-form.umd.js.map +1 -0
- package/TJ-form.umd.min.js +2 -0
- package/TJ-form.umd.min.js.map +1 -0
- package/demo.html +1 -0
- package/package.json +12 -0
@@ -0,0 +1,235 @@
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
2
|
+
/******/ "use strict";
|
3
|
+
/******/ // The require scope
|
4
|
+
/******/ var __webpack_require__ = {};
|
5
|
+
/******/
|
6
|
+
/************************************************************************/
|
7
|
+
/******/ /* webpack/runtime/define property getters */
|
8
|
+
/******/ !function() {
|
9
|
+
/******/ // define getter functions for harmony exports
|
10
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
11
|
+
/******/ for(var key in definition) {
|
12
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14
|
+
/******/ }
|
15
|
+
/******/ }
|
16
|
+
/******/ };
|
17
|
+
/******/ }();
|
18
|
+
/******/
|
19
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20
|
+
/******/ !function() {
|
21
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
22
|
+
/******/ }();
|
23
|
+
/******/
|
24
|
+
/******/ /* webpack/runtime/make namespace object */
|
25
|
+
/******/ !function() {
|
26
|
+
/******/ // define __esModule on exports
|
27
|
+
/******/ __webpack_require__.r = function(exports) {
|
28
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
29
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
30
|
+
/******/ }
|
31
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
32
|
+
/******/ };
|
33
|
+
/******/ }();
|
34
|
+
/******/
|
35
|
+
/******/ /* webpack/runtime/publicPath */
|
36
|
+
/******/ !function() {
|
37
|
+
/******/ __webpack_require__.p = "";
|
38
|
+
/******/ }();
|
39
|
+
/******/
|
40
|
+
/************************************************************************/
|
41
|
+
var __webpack_exports__ = {};
|
42
|
+
// ESM COMPAT FLAG
|
43
|
+
__webpack_require__.r(__webpack_exports__);
|
44
|
+
|
45
|
+
// EXPORTS
|
46
|
+
__webpack_require__.d(__webpack_exports__, {
|
47
|
+
FirstComponent: function() { return /* reexport */ FirstComponent; },
|
48
|
+
"default": function() { return /* binding */ entry_lib; }
|
49
|
+
});
|
50
|
+
|
51
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
52
|
+
/* eslint-disable no-var */
|
53
|
+
// This file is imported into lib/wc client bundles.
|
54
|
+
|
55
|
+
if (typeof window !== 'undefined') {
|
56
|
+
var currentScript = window.document.currentScript
|
57
|
+
if (false) { var getCurrentScript; }
|
58
|
+
|
59
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
60
|
+
if (src) {
|
61
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
// Indicate to webpack that this file can be concatenated
|
66
|
+
/* harmony default export */ var setPublicPath = (null);
|
67
|
+
|
68
|
+
;// ./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/components/FirstComponent.vue?vue&type=template&id=31155988&scoped=true
|
69
|
+
var render = function render() {
|
70
|
+
var _vm = this,
|
71
|
+
_c = _vm._self._c;
|
72
|
+
return _vm._m(0);
|
73
|
+
};
|
74
|
+
var staticRenderFns = [function () {
|
75
|
+
var _vm = this,
|
76
|
+
_c = _vm._self._c;
|
77
|
+
return _c('div', [_c('span', [_vm._v("这是要打包的第一个组件222")])]);
|
78
|
+
}];
|
79
|
+
|
80
|
+
;// ./src/components/FirstComponent.vue?vue&type=template&id=31155988&scoped=true
|
81
|
+
|
82
|
+
;// ./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/components/FirstComponent.vue?vue&type=script&lang=js
|
83
|
+
/* harmony default export */ var FirstComponentvue_type_script_lang_js = ({
|
84
|
+
name: 'FirstComponent'
|
85
|
+
});
|
86
|
+
;// ./src/components/FirstComponent.vue?vue&type=script&lang=js
|
87
|
+
/* harmony default export */ var components_FirstComponentvue_type_script_lang_js = (FirstComponentvue_type_script_lang_js);
|
88
|
+
;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
89
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
90
|
+
|
91
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
92
|
+
// This module is a runtime utility for cleaner component module output and will
|
93
|
+
// be included in the final webpack user bundle.
|
94
|
+
|
95
|
+
function normalizeComponent(
|
96
|
+
scriptExports,
|
97
|
+
render,
|
98
|
+
staticRenderFns,
|
99
|
+
functionalTemplate,
|
100
|
+
injectStyles,
|
101
|
+
scopeId,
|
102
|
+
moduleIdentifier /* server only */,
|
103
|
+
shadowMode /* vue-cli only */
|
104
|
+
) {
|
105
|
+
// Vue.extend constructor export interop
|
106
|
+
var options =
|
107
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
108
|
+
|
109
|
+
// render functions
|
110
|
+
if (render) {
|
111
|
+
options.render = render
|
112
|
+
options.staticRenderFns = staticRenderFns
|
113
|
+
options._compiled = true
|
114
|
+
}
|
115
|
+
|
116
|
+
// functional template
|
117
|
+
if (functionalTemplate) {
|
118
|
+
options.functional = true
|
119
|
+
}
|
120
|
+
|
121
|
+
// scopedId
|
122
|
+
if (scopeId) {
|
123
|
+
options._scopeId = 'data-v-' + scopeId
|
124
|
+
}
|
125
|
+
|
126
|
+
var hook
|
127
|
+
if (moduleIdentifier) {
|
128
|
+
// server build
|
129
|
+
hook = function (context) {
|
130
|
+
// 2.3 injection
|
131
|
+
context =
|
132
|
+
context || // cached call
|
133
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
134
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
135
|
+
// 2.2 with runInNewContext: true
|
136
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
137
|
+
context = __VUE_SSR_CONTEXT__
|
138
|
+
}
|
139
|
+
// inject component styles
|
140
|
+
if (injectStyles) {
|
141
|
+
injectStyles.call(this, context)
|
142
|
+
}
|
143
|
+
// register component module identifier for async chunk inferrence
|
144
|
+
if (context && context._registeredComponents) {
|
145
|
+
context._registeredComponents.add(moduleIdentifier)
|
146
|
+
}
|
147
|
+
}
|
148
|
+
// used by ssr in case component is cached and beforeCreate
|
149
|
+
// never gets called
|
150
|
+
options._ssrRegister = hook
|
151
|
+
} else if (injectStyles) {
|
152
|
+
hook = shadowMode
|
153
|
+
? function () {
|
154
|
+
injectStyles.call(
|
155
|
+
this,
|
156
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
157
|
+
)
|
158
|
+
}
|
159
|
+
: injectStyles
|
160
|
+
}
|
161
|
+
|
162
|
+
if (hook) {
|
163
|
+
if (options.functional) {
|
164
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
165
|
+
// go through the normalizer
|
166
|
+
options._injectStyles = hook
|
167
|
+
// register for functional component in vue file
|
168
|
+
var originalRender = options.render
|
169
|
+
options.render = function renderWithStyleInjection(h, context) {
|
170
|
+
hook.call(context)
|
171
|
+
return originalRender(h, context)
|
172
|
+
}
|
173
|
+
} else {
|
174
|
+
// inject component registration as beforeCreate hook
|
175
|
+
var existing = options.beforeCreate
|
176
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
return {
|
181
|
+
exports: scriptExports,
|
182
|
+
options: options
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
;// ./src/components/FirstComponent.vue
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
/* normalize component */
|
193
|
+
;
|
194
|
+
var component = normalizeComponent(
|
195
|
+
components_FirstComponentvue_type_script_lang_js,
|
196
|
+
render,
|
197
|
+
staticRenderFns,
|
198
|
+
false,
|
199
|
+
null,
|
200
|
+
"31155988",
|
201
|
+
null
|
202
|
+
|
203
|
+
)
|
204
|
+
|
205
|
+
/* harmony default export */ var FirstComponent = (component.exports);
|
206
|
+
;// ./index.js
|
207
|
+
//import vue文件的name from 路径
|
208
|
+
|
209
|
+
const components = [FirstComponent];
|
210
|
+
const install = function (Vue) {
|
211
|
+
if (install.installed) return;
|
212
|
+
install.installed = true;
|
213
|
+
components.forEach(component => Vue.component(component.name, component));
|
214
|
+
};
|
215
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
216
|
+
install(window.Vue);
|
217
|
+
}
|
218
|
+
|
219
|
+
// 暴露安装方法和组件
|
220
|
+
const ChatRobotPlugin = {
|
221
|
+
install,
|
222
|
+
FirstComponent: FirstComponent
|
223
|
+
};
|
224
|
+
/* harmony default export */ var index = (ChatRobotPlugin);
|
225
|
+
|
226
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
227
|
+
|
228
|
+
|
229
|
+
/* harmony default export */ var entry_lib = (index);
|
230
|
+
|
231
|
+
|
232
|
+
module.exports = __webpack_exports__;
|
233
|
+
/******/ })()
|
234
|
+
;
|
235
|
+
//# sourceMappingURL=TJ-form.common.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TJ-form.common.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOD,GAAG,CAACG,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC;AACD,IAAIC,eAAe,GAAG,CAAC,YAAW;EAAC,IAAIJ,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,KAAK,EAAC,CAACA,EAAE,CAAC,MAAM,EAAC,CAACD,GAAG,CAACK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC,CAAC;;;;;AEIF,0EAAe;EACfC,IAAA;AACA,CAAC;;ACT2P,CAAC,qFAAe,qCAAG,EAAC;;ACAhR;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FwG;AACvC;AACL;;;AAG5D;AACA,CAAmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAe;;AClBf;AACiE;AAEjE,MAAME,UAAU,GAAG,CACfD,cAAc,CACjB;AAED,MAAME,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC3B,IAAID,OAAO,CAACE,SAAS,EAAE;EACvBF,OAAO,CAACE,SAAS,GAAG,IAAI;EACxBH,UAAU,CAACI,OAAO,CAACC,SAAS,IAAIH,GAAG,CAACG,SAAS,CAACA,SAAS,CAACP,IAAI,EAAEO,SAAS,CAAC,CAAC;AAC7E,CAAC;AAED,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACJ,GAAG,EAAE;EAC7CD,OAAO,CAACK,MAAM,CAACJ,GAAG,CAAC;AACvB;;AAEA;AACA,MAAMK,eAAe,GAAG;EACpBN,OAAO;EACPF,cAAcA,EAAAA,cAAAA;AAClB,CAAC;AAED,0CAAeQ,eAAe,EAAC;;;ACvBP;AACA;AACxB,8CAAe,KAAG;AACI","sources":["webpack://tj-form/webpack/bootstrap","webpack://tj-form/webpack/runtime/define property getters","webpack://tj-form/webpack/runtime/hasOwnProperty shorthand","webpack://tj-form/webpack/runtime/make namespace object","webpack://tj-form/webpack/runtime/publicPath","webpack://tj-form/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://tj-form/./src/components/FirstComponent.vue","webpack://tj-form/./src/components/FirstComponent.vue?f56c","webpack://tj-form/src/components/FirstComponent.vue","webpack://tj-form/./src/components/FirstComponent.vue?68fa","webpack://tj-form/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://tj-form/./src/components/FirstComponent.vue?5f55","webpack://tj-form/./index.js","webpack://tj-form/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(\"这是要打包的第一个组件222\")])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../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!./FirstComponent.vue?vue&type=template&id=31155988&scoped=true\"","<template> \r\n <div >\r\n <span>这是要打包的第一个组件222</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'FirstComponent',\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\r\n","import mod from \"-!../../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!./FirstComponent.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../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!./FirstComponent.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./FirstComponent.vue?vue&type=template&id=31155988&scoped=true\"\nimport script from \"./FirstComponent.vue?vue&type=script&lang=js\"\nexport * from \"./FirstComponent.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 \"31155988\",\n null\n \n)\n\nexport default component.exports","//import vue文件的name from 路径 \r\nimport FirstComponent from \"./src/components/FirstComponent.vue\"; \r\n\r\nconst components = [\r\n FirstComponent,\r\n];\r\n\r\nconst install = function (Vue) {\r\n if (install.installed) return;\r\n install.installed = true;\r\n components.forEach(component => Vue.component(component.name, component));\r\n};\r\n\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 暴露安装方法和组件\r\nconst ChatRobotPlugin = {\r\n install,\r\n FirstComponent,\r\n};\r\n\r\nexport default ChatRobotPlugin;\r\nexport { FirstComponent };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["render","_vm","_c","_self","_m","staticRenderFns","_v","name","FirstComponent","components","install","Vue","installed","forEach","component","window","ChatRobotPlugin"],"sourceRoot":""}
|
package/TJ-form.umd.js
ADDED
@@ -0,0 +1,246 @@
|
|
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["TJ-form"] = factory();
|
8
|
+
else
|
9
|
+
root["TJ-form"] = factory();
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
12
|
+
/******/ "use strict";
|
13
|
+
/******/ // The require scope
|
14
|
+
/******/ var __webpack_require__ = {};
|
15
|
+
/******/
|
16
|
+
/************************************************************************/
|
17
|
+
/******/ /* webpack/runtime/define property getters */
|
18
|
+
/******/ !function() {
|
19
|
+
/******/ // define getter functions for harmony exports
|
20
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
21
|
+
/******/ for(var key in definition) {
|
22
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
23
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
24
|
+
/******/ }
|
25
|
+
/******/ }
|
26
|
+
/******/ };
|
27
|
+
/******/ }();
|
28
|
+
/******/
|
29
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
30
|
+
/******/ !function() {
|
31
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
32
|
+
/******/ }();
|
33
|
+
/******/
|
34
|
+
/******/ /* webpack/runtime/make namespace object */
|
35
|
+
/******/ !function() {
|
36
|
+
/******/ // define __esModule on exports
|
37
|
+
/******/ __webpack_require__.r = function(exports) {
|
38
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
39
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
40
|
+
/******/ }
|
41
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
42
|
+
/******/ };
|
43
|
+
/******/ }();
|
44
|
+
/******/
|
45
|
+
/******/ /* webpack/runtime/publicPath */
|
46
|
+
/******/ !function() {
|
47
|
+
/******/ __webpack_require__.p = "";
|
48
|
+
/******/ }();
|
49
|
+
/******/
|
50
|
+
/************************************************************************/
|
51
|
+
var __webpack_exports__ = {};
|
52
|
+
// ESM COMPAT FLAG
|
53
|
+
__webpack_require__.r(__webpack_exports__);
|
54
|
+
|
55
|
+
// EXPORTS
|
56
|
+
__webpack_require__.d(__webpack_exports__, {
|
57
|
+
FirstComponent: function() { return /* reexport */ FirstComponent; },
|
58
|
+
"default": function() { return /* binding */ entry_lib; }
|
59
|
+
});
|
60
|
+
|
61
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
62
|
+
/* eslint-disable no-var */
|
63
|
+
// This file is imported into lib/wc client bundles.
|
64
|
+
|
65
|
+
if (typeof window !== 'undefined') {
|
66
|
+
var currentScript = window.document.currentScript
|
67
|
+
if (false) { var getCurrentScript; }
|
68
|
+
|
69
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
70
|
+
if (src) {
|
71
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
// Indicate to webpack that this file can be concatenated
|
76
|
+
/* harmony default export */ var setPublicPath = (null);
|
77
|
+
|
78
|
+
;// ./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/components/FirstComponent.vue?vue&type=template&id=31155988&scoped=true
|
79
|
+
var render = function render() {
|
80
|
+
var _vm = this,
|
81
|
+
_c = _vm._self._c;
|
82
|
+
return _vm._m(0);
|
83
|
+
};
|
84
|
+
var staticRenderFns = [function () {
|
85
|
+
var _vm = this,
|
86
|
+
_c = _vm._self._c;
|
87
|
+
return _c('div', [_c('span', [_vm._v("这是要打包的第一个组件222")])]);
|
88
|
+
}];
|
89
|
+
|
90
|
+
;// ./src/components/FirstComponent.vue?vue&type=template&id=31155988&scoped=true
|
91
|
+
|
92
|
+
;// ./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/components/FirstComponent.vue?vue&type=script&lang=js
|
93
|
+
/* harmony default export */ var FirstComponentvue_type_script_lang_js = ({
|
94
|
+
name: 'FirstComponent'
|
95
|
+
});
|
96
|
+
;// ./src/components/FirstComponent.vue?vue&type=script&lang=js
|
97
|
+
/* harmony default export */ var components_FirstComponentvue_type_script_lang_js = (FirstComponentvue_type_script_lang_js);
|
98
|
+
;// ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
99
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
100
|
+
|
101
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
102
|
+
// This module is a runtime utility for cleaner component module output and will
|
103
|
+
// be included in the final webpack user bundle.
|
104
|
+
|
105
|
+
function normalizeComponent(
|
106
|
+
scriptExports,
|
107
|
+
render,
|
108
|
+
staticRenderFns,
|
109
|
+
functionalTemplate,
|
110
|
+
injectStyles,
|
111
|
+
scopeId,
|
112
|
+
moduleIdentifier /* server only */,
|
113
|
+
shadowMode /* vue-cli only */
|
114
|
+
) {
|
115
|
+
// Vue.extend constructor export interop
|
116
|
+
var options =
|
117
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
118
|
+
|
119
|
+
// render functions
|
120
|
+
if (render) {
|
121
|
+
options.render = render
|
122
|
+
options.staticRenderFns = staticRenderFns
|
123
|
+
options._compiled = true
|
124
|
+
}
|
125
|
+
|
126
|
+
// functional template
|
127
|
+
if (functionalTemplate) {
|
128
|
+
options.functional = true
|
129
|
+
}
|
130
|
+
|
131
|
+
// scopedId
|
132
|
+
if (scopeId) {
|
133
|
+
options._scopeId = 'data-v-' + scopeId
|
134
|
+
}
|
135
|
+
|
136
|
+
var hook
|
137
|
+
if (moduleIdentifier) {
|
138
|
+
// server build
|
139
|
+
hook = function (context) {
|
140
|
+
// 2.3 injection
|
141
|
+
context =
|
142
|
+
context || // cached call
|
143
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
144
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
145
|
+
// 2.2 with runInNewContext: true
|
146
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
147
|
+
context = __VUE_SSR_CONTEXT__
|
148
|
+
}
|
149
|
+
// inject component styles
|
150
|
+
if (injectStyles) {
|
151
|
+
injectStyles.call(this, context)
|
152
|
+
}
|
153
|
+
// register component module identifier for async chunk inferrence
|
154
|
+
if (context && context._registeredComponents) {
|
155
|
+
context._registeredComponents.add(moduleIdentifier)
|
156
|
+
}
|
157
|
+
}
|
158
|
+
// used by ssr in case component is cached and beforeCreate
|
159
|
+
// never gets called
|
160
|
+
options._ssrRegister = hook
|
161
|
+
} else if (injectStyles) {
|
162
|
+
hook = shadowMode
|
163
|
+
? function () {
|
164
|
+
injectStyles.call(
|
165
|
+
this,
|
166
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
167
|
+
)
|
168
|
+
}
|
169
|
+
: injectStyles
|
170
|
+
}
|
171
|
+
|
172
|
+
if (hook) {
|
173
|
+
if (options.functional) {
|
174
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
175
|
+
// go through the normalizer
|
176
|
+
options._injectStyles = hook
|
177
|
+
// register for functional component in vue file
|
178
|
+
var originalRender = options.render
|
179
|
+
options.render = function renderWithStyleInjection(h, context) {
|
180
|
+
hook.call(context)
|
181
|
+
return originalRender(h, context)
|
182
|
+
}
|
183
|
+
} else {
|
184
|
+
// inject component registration as beforeCreate hook
|
185
|
+
var existing = options.beforeCreate
|
186
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
return {
|
191
|
+
exports: scriptExports,
|
192
|
+
options: options
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
;// ./src/components/FirstComponent.vue
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
/* normalize component */
|
203
|
+
;
|
204
|
+
var component = normalizeComponent(
|
205
|
+
components_FirstComponentvue_type_script_lang_js,
|
206
|
+
render,
|
207
|
+
staticRenderFns,
|
208
|
+
false,
|
209
|
+
null,
|
210
|
+
"31155988",
|
211
|
+
null
|
212
|
+
|
213
|
+
)
|
214
|
+
|
215
|
+
/* harmony default export */ var FirstComponent = (component.exports);
|
216
|
+
;// ./index.js
|
217
|
+
//import vue文件的name from 路径
|
218
|
+
|
219
|
+
const components = [FirstComponent];
|
220
|
+
const install = function (Vue) {
|
221
|
+
if (install.installed) return;
|
222
|
+
install.installed = true;
|
223
|
+
components.forEach(component => Vue.component(component.name, component));
|
224
|
+
};
|
225
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
226
|
+
install(window.Vue);
|
227
|
+
}
|
228
|
+
|
229
|
+
// 暴露安装方法和组件
|
230
|
+
const ChatRobotPlugin = {
|
231
|
+
install,
|
232
|
+
FirstComponent: FirstComponent
|
233
|
+
};
|
234
|
+
/* harmony default export */ var index = (ChatRobotPlugin);
|
235
|
+
|
236
|
+
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
237
|
+
|
238
|
+
|
239
|
+
/* harmony default export */ var entry_lib = (index);
|
240
|
+
|
241
|
+
|
242
|
+
/******/ return __webpack_exports__;
|
243
|
+
/******/ })()
|
244
|
+
;
|
245
|
+
});
|
246
|
+
//# sourceMappingURL=TJ-form.umd.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TJ-form.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;UCVA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;;;;;;;;;;;;;;ACAA;AACA;;AAEA;AACA;AACA,MAAM,KAAuC,EAAE,yBAQ5C;;AAEH;AACA;AACA,IAAI,qBAAuB;AAC3B;AACA;;AAEA;AACA,kDAAe,IAAI;;;ACtBnB,IAAIA,MAAM,GAAG,SAASA,MAAMA,CAAA,EAAE;EAAC,IAAIC,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOD,GAAG,CAACG,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC;AACD,IAAIC,eAAe,GAAG,CAAC,YAAW;EAAC,IAAIJ,GAAG,GAAC,IAAI;IAACC,EAAE,GAACD,GAAG,CAACE,KAAK,CAACD,EAAE;EAAC,OAAOA,EAAE,CAAC,KAAK,EAAC,CAACA,EAAE,CAAC,MAAM,EAAC,CAACD,GAAG,CAACK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AACxH,CAAC,CAAC;;;;;AEIF,0EAAe;EACfC,IAAA;AACA,CAAC;;ACT2P,CAAC,qFAAe,qCAAG,EAAC;;ACAhR;;AAEA;AACA;AACA;;AAEe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;;AC/FwG;AACvC;AACL;;;AAG5D;AACA,CAAmG;AACnG,gBAAgB,kBAAU;AAC1B,EAAE,gDAAM;AACR,EAAE,MAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;AACA;AACA;;AAEA,mDAAe;;AClBf;AACiE;AAEjE,MAAME,UAAU,GAAG,CACfD,cAAc,CACjB;AAED,MAAME,OAAO,GAAG,SAAAA,CAAUC,GAAG,EAAE;EAC3B,IAAID,OAAO,CAACE,SAAS,EAAE;EACvBF,OAAO,CAACE,SAAS,GAAG,IAAI;EACxBH,UAAU,CAACI,OAAO,CAACC,SAAS,IAAIH,GAAG,CAACG,SAAS,CAACA,SAAS,CAACP,IAAI,EAAEO,SAAS,CAAC,CAAC;AAC7E,CAAC;AAED,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAIA,MAAM,CAACJ,GAAG,EAAE;EAC7CD,OAAO,CAACK,MAAM,CAACJ,GAAG,CAAC;AACvB;;AAEA;AACA,MAAMK,eAAe,GAAG;EACpBN,OAAO;EACPF,cAAcA,EAAAA,cAAAA;AAClB,CAAC;AAED,0CAAeQ,eAAe,EAAC;;;ACvBP;AACA;AACxB,8CAAe,KAAG;AACI","sources":["webpack://TJ-form/webpack/universalModuleDefinition","webpack://TJ-form/webpack/bootstrap","webpack://TJ-form/webpack/runtime/define property getters","webpack://TJ-form/webpack/runtime/hasOwnProperty shorthand","webpack://TJ-form/webpack/runtime/make namespace object","webpack://TJ-form/webpack/runtime/publicPath","webpack://TJ-form/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://TJ-form/./src/components/FirstComponent.vue","webpack://TJ-form/./src/components/FirstComponent.vue?59f2","webpack://TJ-form/src/components/FirstComponent.vue","webpack://TJ-form/./src/components/FirstComponent.vue?87ec","webpack://TJ-form/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://TJ-form/./src/components/FirstComponent.vue?5f55","webpack://TJ-form/./index.js","webpack://TJ-form/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TJ-form\"] = factory();\n\telse\n\t\troot[\"TJ-form\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(\"这是要打包的第一个组件222\")])])\n}]\n\nexport { render, staticRenderFns }","export * from \"-!../../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!./FirstComponent.vue?vue&type=template&id=31155988&scoped=true\"","<template> \r\n <div >\r\n <span>这是要打包的第一个组件222</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'FirstComponent',\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\r\n","import mod from \"-!../../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!./FirstComponent.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../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!./FirstComponent.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./FirstComponent.vue?vue&type=template&id=31155988&scoped=true\"\nimport script from \"./FirstComponent.vue?vue&type=script&lang=js\"\nexport * from \"./FirstComponent.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 \"31155988\",\n null\n \n)\n\nexport default component.exports","//import vue文件的name from 路径 \r\nimport FirstComponent from \"./src/components/FirstComponent.vue\"; \r\n\r\nconst components = [\r\n FirstComponent,\r\n];\r\n\r\nconst install = function (Vue) {\r\n if (install.installed) return;\r\n install.installed = true;\r\n components.forEach(component => Vue.component(component.name, component));\r\n};\r\n\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 暴露安装方法和组件\r\nconst ChatRobotPlugin = {\r\n install,\r\n FirstComponent,\r\n};\r\n\r\nexport default ChatRobotPlugin;\r\nexport { FirstComponent };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["render","_vm","_c","_self","_m","staticRenderFns","_v","name","FirstComponent","components","install","Vue","installed","forEach","component","window","ChatRobotPlugin"],"sourceRoot":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(function(e,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["TJ-form"]=n():e["TJ-form"]=n()})("undefined"!==typeof self?self:this,(function(){return function(){"use strict";var e={};!function(){e.d=function(n,t){for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})}}(),function(){e.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){e.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){e.p=""}();var n={};if(e.r(n),e.d(n,{FirstComponent:function(){return d},default:function(){return m}}),"undefined"!==typeof window){var t=window.document.currentScript,o=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(e.p=o[1])}var r=function(){var e=this;e._self._c;return e._m(0)},i=[function(){var e=this,n=e._self._c;return n("div",[n("span",[e._v("这是要打包的第一个组件222")])])}],f={name:"FirstComponent"},s=f;function c(e,n,t,o,r,i,f,s){var c,u="function"===typeof e?e.options:e;if(n&&(u.render=n,u.staticRenderFns=t,u._compiled=!0),o&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),f?(c=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(f)},u._ssrRegister=c):r&&(c=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(e,n){return c.call(n),d(e,n)}}else{var a=u.beforeCreate;u.beforeCreate=a?[].concat(a,c):[c]}return{exports:e,options:u}}var u=c(s,r,i,!1,null,"31155988",null),d=u.exports;const a=[d],p=function(e){p.installed||(p.installed=!0,a.forEach((n=>e.component(n.name,n))))};"undefined"!==typeof window&&window.Vue&&p(window.Vue);const l={install:p,FirstComponent:d};var _=l,m=_;return n}()}));
|
2
|
+
//# sourceMappingURL=TJ-form.umd.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TJ-form.umd.min.js","mappings":"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","sources":["webpack://TJ-form/webpack/universalModuleDefinition","webpack://TJ-form/webpack/bootstrap","webpack://TJ-form/webpack/runtime/define property getters","webpack://TJ-form/webpack/runtime/hasOwnProperty shorthand","webpack://TJ-form/webpack/runtime/make namespace object","webpack://TJ-form/webpack/runtime/publicPath","webpack://TJ-form/./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js","webpack://TJ-form/./src/components/FirstComponent.vue","webpack://TJ-form/src/components/FirstComponent.vue","webpack://TJ-form/./src/components/FirstComponent.vue?972d","webpack://TJ-form/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://TJ-form/./src/components/FirstComponent.vue?5f55","webpack://TJ-form/./index.js","webpack://TJ-form/./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"TJ-form\"] = factory();\n\telse\n\t\troot[\"TJ-form\"] = factory();\n})((typeof self !== 'undefined' ? self : this), function() {\nreturn ","// The require scope\nvar __webpack_require__ = {};\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","/* eslint-disable no-var */\n// This file is imported into lib/wc client bundles.\n\nif (typeof window !== 'undefined') {\n var currentScript = window.document.currentScript\n if (process.env.NEED_CURRENTSCRIPT_POLYFILL) {\n var getCurrentScript = require('@soda/get-current-script')\n currentScript = getCurrentScript()\n\n // for backward compatibility, because previously we directly included the polyfill\n if (!('currentScript' in document)) {\n Object.defineProperty(document, 'currentScript', { get: getCurrentScript })\n }\n }\n\n var src = currentScript && currentScript.src.match(/(.+\\/)[^/]+\\.js(\\?.*)?$/)\n if (src) {\n __webpack_public_path__ = src[1] // eslint-disable-line\n }\n}\n\n// Indicate to webpack that this file can be concatenated\nexport default null\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_vm._v(\"这是要打包的第一个组件222\")])])\n}]\n\nexport { render, staticRenderFns }","<template> \r\n <div >\r\n <span>这是要打包的第一个组件222</span>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'FirstComponent',\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\r\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-124.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FirstComponent.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js??clonedRuleSet-124.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FirstComponent.vue?vue&type=script&lang=js\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./FirstComponent.vue?vue&type=template&id=31155988&scoped=true\"\nimport script from \"./FirstComponent.vue?vue&type=script&lang=js\"\nexport * from \"./FirstComponent.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 \"31155988\",\n null\n \n)\n\nexport default component.exports","//import vue文件的name from 路径 \r\nimport FirstComponent from \"./src/components/FirstComponent.vue\"; \r\n\r\nconst components = [\r\n FirstComponent,\r\n];\r\n\r\nconst install = function (Vue) {\r\n if (install.installed) return;\r\n install.installed = true;\r\n components.forEach(component => Vue.component(component.name, component));\r\n};\r\n\r\nif (typeof window !== 'undefined' && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 暴露安装方法和组件\r\nconst ChatRobotPlugin = {\r\n install,\r\n FirstComponent,\r\n};\r\n\r\nexport default ChatRobotPlugin;\r\nexport { FirstComponent };\r\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n"],"names":["root","factory","exports","module","define","amd","self","this","__webpack_require__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","p","window","currentScript","document","src","match","render","_vm","_self","_c","_m","staticRenderFns","_v","name","normalizeComponent","scriptExports","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","options","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","concat","component","components","FirstComponent","install","Vue","installed","forEach","ChatRobotPlugin"],"sourceRoot":""}
|
package/demo.html
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
<!doctype html><meta charset="utf-8"><title>TJ-form demo</title><script src="./TJ-form.umd.js"></script><link rel="stylesheet" href="./TJ-form.css"><script>console.log(TJ-form)</script>
|
package/package.json
ADDED