gwell-dialog 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/.eslintignore +5 -0
- package/.eslintrc.js +61 -0
- package/.prettierignore +9 -0
- package/.prettierrc +7 -0
- package/.yarnignore +27 -0
- package/README.md +24 -0
- package/jsconfig.json +19 -0
- package/lib/gwell-dialog.common.js +273 -0
- package/lib/gwell-dialog.umd.js +284 -0
- package/lib/gwell-dialog.umd.min.js +2 -0
- package/package.json +49 -0
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true
|
|
5
|
+
},
|
|
6
|
+
extends: ['plugin:vue/essential','eslint:recommended', '@vue/prettier', 'plugin:prettier/recommended'],
|
|
7
|
+
parserOptions: {
|
|
8
|
+
parser: 'babel-eslint'
|
|
9
|
+
},
|
|
10
|
+
// 0是off关闭,1是warning警告,2是error报错
|
|
11
|
+
rules: {
|
|
12
|
+
// =>的前/后空格
|
|
13
|
+
'arrow-spacing': 2,
|
|
14
|
+
// 强制驼峰法命名
|
|
15
|
+
camelcase: 2,
|
|
16
|
+
// 逗号后必须有空格
|
|
17
|
+
'comma-spacing': 2,
|
|
18
|
+
// 必须使用全等 === 和 !==
|
|
19
|
+
eqeqeq: 2,
|
|
20
|
+
// 缩进风格(2个空格)
|
|
21
|
+
indent: [2, 2], // 或[2, 'tab']
|
|
22
|
+
// 强制在对象字面量的属性中键和值之间使用一致的间距 例 :后面必须有空格
|
|
23
|
+
'key-spacing': 2,
|
|
24
|
+
// 强制在关键字前后使用一致的空格
|
|
25
|
+
'keyword-spacing': 2,
|
|
26
|
+
// 禁止使用console
|
|
27
|
+
'no-console': 0,
|
|
28
|
+
// 禁止使用debugger
|
|
29
|
+
'no-debugger': 2,
|
|
30
|
+
// 禁止空格和 tab 的混合缩进
|
|
31
|
+
'no-mixed-spaces-and-tabs': 2,
|
|
32
|
+
// 不能有多余的空格
|
|
33
|
+
'no-multi-spaces': 2,
|
|
34
|
+
// 禁止重复声明变量
|
|
35
|
+
'no-redeclare': 2,
|
|
36
|
+
// 函数调用时 函数名与()之间不能有空格
|
|
37
|
+
'no-spaced-func': 2,
|
|
38
|
+
// 不能使用undefined
|
|
39
|
+
'no-undefined': 2,
|
|
40
|
+
// 变量初始化时不能直接给它赋值为undefined
|
|
41
|
+
'no-undef-init': 2,
|
|
42
|
+
// 禁用var,用let和const代替
|
|
43
|
+
'no-var': 0,
|
|
44
|
+
// 语句强制分号结尾
|
|
45
|
+
semi: [2, 'always'], // 可改为never,always
|
|
46
|
+
// 函数括号之前的空格
|
|
47
|
+
'space-before-function-paren': [2, 'always'],
|
|
48
|
+
// 强制在块之前使用一致的空格({符号前)
|
|
49
|
+
'space-before-blocks': 2,
|
|
50
|
+
// 注释风格要不要有空格什么的
|
|
51
|
+
'spaced-comment': 2,
|
|
52
|
+
// 要求操作符周围有空格
|
|
53
|
+
'space-infix-ops': 2,
|
|
54
|
+
// 强制在一元操作符前后使用一致的空格
|
|
55
|
+
'space-unary-ops': 2,
|
|
56
|
+
// 强制在 switch 的冒号左右有空格
|
|
57
|
+
'switch-colon-spacing': 2,
|
|
58
|
+
// 单引号
|
|
59
|
+
quotes: [2, 'single']
|
|
60
|
+
}
|
|
61
|
+
}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
package/.yarnignore
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
node_modules/
|
|
3
|
+
examples/
|
|
4
|
+
packages/
|
|
5
|
+
public/
|
|
6
|
+
vue.config.js
|
|
7
|
+
babel.config.js
|
|
8
|
+
*.map
|
|
9
|
+
*.html
|
|
10
|
+
|
|
11
|
+
# local env files
|
|
12
|
+
.env.local
|
|
13
|
+
.env.*.local
|
|
14
|
+
|
|
15
|
+
# Log files
|
|
16
|
+
npm-debug.log*
|
|
17
|
+
yarn-debug.log*
|
|
18
|
+
yarn-error.log*
|
|
19
|
+
|
|
20
|
+
# Editor directories and files
|
|
21
|
+
.idea
|
|
22
|
+
.vscode
|
|
23
|
+
*.suo
|
|
24
|
+
*.ntvs*
|
|
25
|
+
*.njsproj
|
|
26
|
+
*.sln
|
|
27
|
+
*.sw*
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# gwell-dialog
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
```
|
|
5
|
+
yarn install
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### Compiles and hot-reloads for development
|
|
9
|
+
```
|
|
10
|
+
yarn serve
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Compiles and minifies for production
|
|
14
|
+
```
|
|
15
|
+
yarn build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Lints and fixes files
|
|
19
|
+
```
|
|
20
|
+
yarn lint
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Customize configuration
|
|
24
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
package/jsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es5",
|
|
4
|
+
"module": "esnext",
|
|
5
|
+
"baseUrl": "./",
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"paths": {
|
|
8
|
+
"@/*": [
|
|
9
|
+
"src/*"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"lib": [
|
|
13
|
+
"esnext",
|
|
14
|
+
"dom",
|
|
15
|
+
"dom.iterable",
|
|
16
|
+
"scripthost"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
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
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
51
|
+
/* eslint-disable no-var */
|
|
52
|
+
// This file is imported into lib/wc client bundles.
|
|
53
|
+
|
|
54
|
+
if (typeof window !== 'undefined') {
|
|
55
|
+
var currentScript = window.document.currentScript
|
|
56
|
+
if (false) { var getCurrentScript; }
|
|
57
|
+
|
|
58
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
59
|
+
if (src) {
|
|
60
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Indicate to webpack that this file can be concatenated
|
|
65
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
66
|
+
|
|
67
|
+
;// CONCATENATED MODULE: ./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[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/dialog/main.vue?vue&type=template&id=2352fbf0&scoped=true
|
|
68
|
+
var render = function render() {
|
|
69
|
+
var _vm = this,
|
|
70
|
+
_c = _vm._self._c;
|
|
71
|
+
return _c('div', [_vm._v("组件")]);
|
|
72
|
+
};
|
|
73
|
+
var staticRenderFns = [];
|
|
74
|
+
|
|
75
|
+
;// CONCATENATED MODULE: ./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!./packages/dialog/main.vue?vue&type=script&lang=js
|
|
76
|
+
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
77
|
+
//import引入组件才能使用
|
|
78
|
+
name: 'GwellDialog',
|
|
79
|
+
components: {},
|
|
80
|
+
props: {},
|
|
81
|
+
data() {
|
|
82
|
+
return {};
|
|
83
|
+
},
|
|
84
|
+
// 生命周期,创建完成时(可以访问当前this实例)
|
|
85
|
+
created() {},
|
|
86
|
+
// 生命周期:挂载完成时(可以访问DOM元素)
|
|
87
|
+
mounted() {},
|
|
88
|
+
// 计算属性
|
|
89
|
+
computed: {},
|
|
90
|
+
// 监听data中的数据变化
|
|
91
|
+
watch: {},
|
|
92
|
+
// 方法集合
|
|
93
|
+
methods: {}
|
|
94
|
+
});
|
|
95
|
+
;// CONCATENATED MODULE: ./packages/dialog/main.vue?vue&type=script&lang=js
|
|
96
|
+
/* harmony default export */ var dialog_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
97
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
98
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
99
|
+
|
|
100
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
101
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
102
|
+
// be included in the final webpack user bundle.
|
|
103
|
+
|
|
104
|
+
function normalizeComponent(
|
|
105
|
+
scriptExports,
|
|
106
|
+
render,
|
|
107
|
+
staticRenderFns,
|
|
108
|
+
functionalTemplate,
|
|
109
|
+
injectStyles,
|
|
110
|
+
scopeId,
|
|
111
|
+
moduleIdentifier /* server only */,
|
|
112
|
+
shadowMode /* vue-cli only */
|
|
113
|
+
) {
|
|
114
|
+
// Vue.extend constructor export interop
|
|
115
|
+
var options =
|
|
116
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
117
|
+
|
|
118
|
+
// render functions
|
|
119
|
+
if (render) {
|
|
120
|
+
options.render = render
|
|
121
|
+
options.staticRenderFns = staticRenderFns
|
|
122
|
+
options._compiled = true
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// functional template
|
|
126
|
+
if (functionalTemplate) {
|
|
127
|
+
options.functional = true
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// scopedId
|
|
131
|
+
if (scopeId) {
|
|
132
|
+
options._scopeId = 'data-v-' + scopeId
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
var hook
|
|
136
|
+
if (moduleIdentifier) {
|
|
137
|
+
// server build
|
|
138
|
+
hook = function (context) {
|
|
139
|
+
// 2.3 injection
|
|
140
|
+
context =
|
|
141
|
+
context || // cached call
|
|
142
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
143
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
144
|
+
// 2.2 with runInNewContext: true
|
|
145
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
146
|
+
context = __VUE_SSR_CONTEXT__
|
|
147
|
+
}
|
|
148
|
+
// inject component styles
|
|
149
|
+
if (injectStyles) {
|
|
150
|
+
injectStyles.call(this, context)
|
|
151
|
+
}
|
|
152
|
+
// register component module identifier for async chunk inferrence
|
|
153
|
+
if (context && context._registeredComponents) {
|
|
154
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
// used by ssr in case component is cached and beforeCreate
|
|
158
|
+
// never gets called
|
|
159
|
+
options._ssrRegister = hook
|
|
160
|
+
} else if (injectStyles) {
|
|
161
|
+
hook = shadowMode
|
|
162
|
+
? function () {
|
|
163
|
+
injectStyles.call(
|
|
164
|
+
this,
|
|
165
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
166
|
+
)
|
|
167
|
+
}
|
|
168
|
+
: injectStyles
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (hook) {
|
|
172
|
+
if (options.functional) {
|
|
173
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
174
|
+
// go through the normalizer
|
|
175
|
+
options._injectStyles = hook
|
|
176
|
+
// register for functional component in vue file
|
|
177
|
+
var originalRender = options.render
|
|
178
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
179
|
+
hook.call(context)
|
|
180
|
+
return originalRender(h, context)
|
|
181
|
+
}
|
|
182
|
+
} else {
|
|
183
|
+
// inject component registration as beforeCreate hook
|
|
184
|
+
var existing = options.beforeCreate
|
|
185
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return {
|
|
190
|
+
exports: scriptExports,
|
|
191
|
+
options: options
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
;// CONCATENATED MODULE: ./packages/dialog/main.vue
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
/* normalize component */
|
|
202
|
+
;
|
|
203
|
+
var component = normalizeComponent(
|
|
204
|
+
dialog_mainvue_type_script_lang_js,
|
|
205
|
+
render,
|
|
206
|
+
staticRenderFns,
|
|
207
|
+
false,
|
|
208
|
+
null,
|
|
209
|
+
"2352fbf0",
|
|
210
|
+
null
|
|
211
|
+
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
/* harmony default export */ var main = (component.exports);
|
|
215
|
+
;// CONCATENATED MODULE: ./packages/dialog/index.js
|
|
216
|
+
/*
|
|
217
|
+
* @Author: lengyihan@gwell.cc
|
|
218
|
+
* @Date: 2023-11-14 18:19:17
|
|
219
|
+
* @LastEditors: lengyihan
|
|
220
|
+
* @LastEditTime: 2023-11-17 10:27:46
|
|
221
|
+
* @Description:
|
|
222
|
+
* @FilePath: \gwell-dialog\packages\dialog\index.js
|
|
223
|
+
*/
|
|
224
|
+
//导入组件,组件必须声明name
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
//为组件添加install方法,用于按需引入
|
|
228
|
+
main.install = function (Vue) {
|
|
229
|
+
Vue.component(main.name, main);
|
|
230
|
+
};
|
|
231
|
+
/* harmony default export */ var dialog = (main);
|
|
232
|
+
;// CONCATENATED MODULE: ./packages/index.js
|
|
233
|
+
/*
|
|
234
|
+
* @Author: lengyihan
|
|
235
|
+
* @Date: 2023-11-14 18:14:54
|
|
236
|
+
* @LastEditors: lengyihan
|
|
237
|
+
* @LastEditTime: 2023-11-17 10:25:32
|
|
238
|
+
* @Description:
|
|
239
|
+
* @FilePath: \gwell-dialog\packages\index.js
|
|
240
|
+
*/
|
|
241
|
+
//导入单个组件
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
//以数组的结构保存组件,便于遍历
|
|
245
|
+
const components = [dialog];
|
|
246
|
+
// 定义 install 方法
|
|
247
|
+
const install = function (Vue) {
|
|
248
|
+
if (install.installed) return;
|
|
249
|
+
install.installed = true;
|
|
250
|
+
// 遍历并注册全局组件
|
|
251
|
+
components.map(component => {
|
|
252
|
+
Vue.component(component.name, component);
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
256
|
+
install(window.Vue);
|
|
257
|
+
}
|
|
258
|
+
/* harmony default export */ var packages_0 = ({
|
|
259
|
+
// 导出的对象必须具备一个 install 方法
|
|
260
|
+
install,
|
|
261
|
+
// 组件列表
|
|
262
|
+
Dialog: dialog
|
|
263
|
+
});
|
|
264
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
/* harmony default export */ var entry_lib = (packages_0);
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
module.exports = __webpack_exports__;
|
|
271
|
+
/******/ })()
|
|
272
|
+
;
|
|
273
|
+
//# sourceMappingURL=gwell-dialog.common.js.map
|
|
@@ -0,0 +1,284 @@
|
|
|
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["gwell-dialog"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["gwell-dialog"] = 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
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
61
|
+
/* eslint-disable no-var */
|
|
62
|
+
// This file is imported into lib/wc client bundles.
|
|
63
|
+
|
|
64
|
+
if (typeof window !== 'undefined') {
|
|
65
|
+
var currentScript = window.document.currentScript
|
|
66
|
+
if (false) { var getCurrentScript; }
|
|
67
|
+
|
|
68
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
69
|
+
if (src) {
|
|
70
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Indicate to webpack that this file can be concatenated
|
|
75
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
76
|
+
|
|
77
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-84.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/dialog/main.vue?vue&type=template&id=2352fbf0&scoped=true
|
|
78
|
+
var render = function render() {
|
|
79
|
+
var _vm = this,
|
|
80
|
+
_c = _vm._self._c;
|
|
81
|
+
return _c('div', [_vm._v("组件")]);
|
|
82
|
+
};
|
|
83
|
+
var staticRenderFns = [];
|
|
84
|
+
|
|
85
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-84.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/dialog/main.vue?vue&type=script&lang=js
|
|
86
|
+
/* harmony default export */ var mainvue_type_script_lang_js = ({
|
|
87
|
+
//import引入组件才能使用
|
|
88
|
+
name: 'GwellDialog',
|
|
89
|
+
components: {},
|
|
90
|
+
props: {},
|
|
91
|
+
data() {
|
|
92
|
+
return {};
|
|
93
|
+
},
|
|
94
|
+
// 生命周期,创建完成时(可以访问当前this实例)
|
|
95
|
+
created() {},
|
|
96
|
+
// 生命周期:挂载完成时(可以访问DOM元素)
|
|
97
|
+
mounted() {},
|
|
98
|
+
// 计算属性
|
|
99
|
+
computed: {},
|
|
100
|
+
// 监听data中的数据变化
|
|
101
|
+
watch: {},
|
|
102
|
+
// 方法集合
|
|
103
|
+
methods: {}
|
|
104
|
+
});
|
|
105
|
+
;// CONCATENATED MODULE: ./packages/dialog/main.vue?vue&type=script&lang=js
|
|
106
|
+
/* harmony default export */ var dialog_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
107
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
108
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
109
|
+
|
|
110
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
111
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
112
|
+
// be included in the final webpack user bundle.
|
|
113
|
+
|
|
114
|
+
function normalizeComponent(
|
|
115
|
+
scriptExports,
|
|
116
|
+
render,
|
|
117
|
+
staticRenderFns,
|
|
118
|
+
functionalTemplate,
|
|
119
|
+
injectStyles,
|
|
120
|
+
scopeId,
|
|
121
|
+
moduleIdentifier /* server only */,
|
|
122
|
+
shadowMode /* vue-cli only */
|
|
123
|
+
) {
|
|
124
|
+
// Vue.extend constructor export interop
|
|
125
|
+
var options =
|
|
126
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
127
|
+
|
|
128
|
+
// render functions
|
|
129
|
+
if (render) {
|
|
130
|
+
options.render = render
|
|
131
|
+
options.staticRenderFns = staticRenderFns
|
|
132
|
+
options._compiled = true
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// functional template
|
|
136
|
+
if (functionalTemplate) {
|
|
137
|
+
options.functional = true
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// scopedId
|
|
141
|
+
if (scopeId) {
|
|
142
|
+
options._scopeId = 'data-v-' + scopeId
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
var hook
|
|
146
|
+
if (moduleIdentifier) {
|
|
147
|
+
// server build
|
|
148
|
+
hook = function (context) {
|
|
149
|
+
// 2.3 injection
|
|
150
|
+
context =
|
|
151
|
+
context || // cached call
|
|
152
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
153
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
154
|
+
// 2.2 with runInNewContext: true
|
|
155
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
156
|
+
context = __VUE_SSR_CONTEXT__
|
|
157
|
+
}
|
|
158
|
+
// inject component styles
|
|
159
|
+
if (injectStyles) {
|
|
160
|
+
injectStyles.call(this, context)
|
|
161
|
+
}
|
|
162
|
+
// register component module identifier for async chunk inferrence
|
|
163
|
+
if (context && context._registeredComponents) {
|
|
164
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// used by ssr in case component is cached and beforeCreate
|
|
168
|
+
// never gets called
|
|
169
|
+
options._ssrRegister = hook
|
|
170
|
+
} else if (injectStyles) {
|
|
171
|
+
hook = shadowMode
|
|
172
|
+
? function () {
|
|
173
|
+
injectStyles.call(
|
|
174
|
+
this,
|
|
175
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
176
|
+
)
|
|
177
|
+
}
|
|
178
|
+
: injectStyles
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (hook) {
|
|
182
|
+
if (options.functional) {
|
|
183
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
184
|
+
// go through the normalizer
|
|
185
|
+
options._injectStyles = hook
|
|
186
|
+
// register for functional component in vue file
|
|
187
|
+
var originalRender = options.render
|
|
188
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
189
|
+
hook.call(context)
|
|
190
|
+
return originalRender(h, context)
|
|
191
|
+
}
|
|
192
|
+
} else {
|
|
193
|
+
// inject component registration as beforeCreate hook
|
|
194
|
+
var existing = options.beforeCreate
|
|
195
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return {
|
|
200
|
+
exports: scriptExports,
|
|
201
|
+
options: options
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
;// CONCATENATED MODULE: ./packages/dialog/main.vue
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/* normalize component */
|
|
212
|
+
;
|
|
213
|
+
var component = normalizeComponent(
|
|
214
|
+
dialog_mainvue_type_script_lang_js,
|
|
215
|
+
render,
|
|
216
|
+
staticRenderFns,
|
|
217
|
+
false,
|
|
218
|
+
null,
|
|
219
|
+
"2352fbf0",
|
|
220
|
+
null
|
|
221
|
+
|
|
222
|
+
)
|
|
223
|
+
|
|
224
|
+
/* harmony default export */ var main = (component.exports);
|
|
225
|
+
;// CONCATENATED MODULE: ./packages/dialog/index.js
|
|
226
|
+
/*
|
|
227
|
+
* @Author: lengyihan@gwell.cc
|
|
228
|
+
* @Date: 2023-11-14 18:19:17
|
|
229
|
+
* @LastEditors: lengyihan
|
|
230
|
+
* @LastEditTime: 2023-11-17 10:27:46
|
|
231
|
+
* @Description:
|
|
232
|
+
* @FilePath: \gwell-dialog\packages\dialog\index.js
|
|
233
|
+
*/
|
|
234
|
+
//导入组件,组件必须声明name
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
//为组件添加install方法,用于按需引入
|
|
238
|
+
main.install = function (Vue) {
|
|
239
|
+
Vue.component(main.name, main);
|
|
240
|
+
};
|
|
241
|
+
/* harmony default export */ var dialog = (main);
|
|
242
|
+
;// CONCATENATED MODULE: ./packages/index.js
|
|
243
|
+
/*
|
|
244
|
+
* @Author: lengyihan
|
|
245
|
+
* @Date: 2023-11-14 18:14:54
|
|
246
|
+
* @LastEditors: lengyihan
|
|
247
|
+
* @LastEditTime: 2023-11-17 10:25:32
|
|
248
|
+
* @Description:
|
|
249
|
+
* @FilePath: \gwell-dialog\packages\index.js
|
|
250
|
+
*/
|
|
251
|
+
//导入单个组件
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
//以数组的结构保存组件,便于遍历
|
|
255
|
+
const components = [dialog];
|
|
256
|
+
// 定义 install 方法
|
|
257
|
+
const install = function (Vue) {
|
|
258
|
+
if (install.installed) return;
|
|
259
|
+
install.installed = true;
|
|
260
|
+
// 遍历并注册全局组件
|
|
261
|
+
components.map(component => {
|
|
262
|
+
Vue.component(component.name, component);
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
266
|
+
install(window.Vue);
|
|
267
|
+
}
|
|
268
|
+
/* harmony default export */ var packages_0 = ({
|
|
269
|
+
// 导出的对象必须具备一个 install 方法
|
|
270
|
+
install,
|
|
271
|
+
// 组件列表
|
|
272
|
+
Dialog: dialog
|
|
273
|
+
});
|
|
274
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
/* harmony default export */ var entry_lib = (packages_0);
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
/******/ return __webpack_exports__;
|
|
281
|
+
/******/ })()
|
|
282
|
+
;
|
|
283
|
+
});
|
|
284
|
+
//# sourceMappingURL=gwell-dialog.umd.js.map
|
|
@@ -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["gwell-dialog"]=n():e["gwell-dialog"]=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,{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,n=e._self._c;return n("div",[e._v("组件")])},i=[],a={name:"GwellDialog",components:{},props:{},data(){return{}},created(){},mounted(){},computed:{},watch:{},methods:{}},d=a;function f(e,n,t,o,r,i,a,d){var f,c="function"===typeof e?e.options:e;if(n&&(c.render=n,c.staticRenderFns=t,c._compiled=!0),o&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),a?(f=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(a)},c._ssrRegister=f):r&&(f=d?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),f)if(c.functional){c._injectStyles=f;var s=c.render;c.render=function(e,n){return f.call(n),s(e,n)}}else{var u=c.beforeCreate;c.beforeCreate=u?[].concat(u,f):[f]}return{exports:e,options:c}}var c=f(d,r,i,!1,null,"2352fbf0",null),s=c.exports;s.install=function(e){e.component(s.name,s)};var u=s;const l=[u],p=function(e){p.installed||(p.installed=!0,l.map((n=>{e.component(n.name,n)})))};"undefined"!==typeof window&&window.Vue&&p(window.Vue);var _={install:p,Dialog:u},m=_;return n}()}));
|
|
2
|
+
//# sourceMappingURL=gwell-dialog.umd.min.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gwell-dialog",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "the dialog based on vue.js that can insert tags",
|
|
5
|
+
"main": "lib/gwell-dialog.umd.min.js",
|
|
6
|
+
"private": false,
|
|
7
|
+
"author": "lengleng",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"serve": "vue-cli-service serve",
|
|
10
|
+
"build": "vue-cli-service build",
|
|
11
|
+
"lint": "vue-cli-service lint",
|
|
12
|
+
"prettier": "prettier --write .",
|
|
13
|
+
"lib": "vue-cli-service build --target lib --name gwell-dialog --dest lib packages/index.js"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"core-js": "^3.8.3",
|
|
17
|
+
"vue": "^2.6.14",
|
|
18
|
+
"vue-router": "^3.5.1",
|
|
19
|
+
"vuex": "^3.6.2"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@babel/core": "^7.12.16",
|
|
23
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
24
|
+
"@vue/cli-plugin-eslint": "~4.5.0",
|
|
25
|
+
"@vue/cli-plugin-router": "~5.0.0",
|
|
26
|
+
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
27
|
+
"@vue/cli-service": "~5.0.0",
|
|
28
|
+
"@vue/eslint-config-prettier": "^8.0.0",
|
|
29
|
+
"babel-eslint": "^10.1.0",
|
|
30
|
+
"eslint": "^6.7.2",
|
|
31
|
+
"eslint-config-prettier": "^8.5.0",
|
|
32
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
33
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
34
|
+
"prettier": "^2.7.1",
|
|
35
|
+
"sass": "^1.32.7",
|
|
36
|
+
"sass-loader": "^12.0.0",
|
|
37
|
+
"vue-template-compiler": "^2.6.14"
|
|
38
|
+
},
|
|
39
|
+
"browserslist": [
|
|
40
|
+
"> 1%",
|
|
41
|
+
"last 2 versions",
|
|
42
|
+
"not dead"
|
|
43
|
+
],
|
|
44
|
+
"directories": {
|
|
45
|
+
"example": "examples",
|
|
46
|
+
"lib": "lib"
|
|
47
|
+
},
|
|
48
|
+
"license": "ISC"
|
|
49
|
+
}
|