fix(tiny-loading): 修复loading组件在vue2.0版本报错bug (#46)

This commit is contained in:
ajaxzheng 2023-03-10 15:49:32 +08:00 committed by GitHub
parent de940e9d0e
commit 505e4d1140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 7 deletions

View File

@ -1,4 +1,9 @@
{
"ActionMenu": {
"path": "packages/action-menu/index.js",
"type": "component",
"exclude": false
},
"ActionSheet": {
"path": "packages/action-sheet/index.js",
"type": "component",
@ -56,11 +61,6 @@
"exclude": false,
"onlyMode": "mobile"
},
"ActionMenu": {
"path": "packages/action-menu/index.js",
"type": "component",
"exclude": false
},
"Badge": {
"path": "packages/badge/index.js",
"type": "component",
@ -677,6 +677,11 @@
"type": "template",
"exclude": false
},
"GridToolbarCustom-select": {
"path": "packages/grid-toolbar/src/custom-select.vue",
"type": "template",
"exclude": false
},
"GridToolbarCustom-switch": {
"path": "packages/grid-toolbar/src/custom-switch.vue",
"type": "template",
@ -788,6 +793,16 @@
"type": "component",
"exclude": false
},
"LoadingMobile": {
"path": "packages/loading/src/mobile.vue",
"type": "template",
"exclude": false
},
"LoadingPc": {
"path": "packages/loading/src/pc.vue",
"type": "template",
"exclude": false
},
"Locales": {
"path": "packages/locales/index.js",
"type": "component",
@ -952,6 +967,16 @@
"type": "component",
"exclude": false
},
"PopoverMobile": {
"path": "packages/popover/src/mobile.vue",
"type": "template",
"exclude": false
},
"PopoverPc": {
"path": "packages/popover/src/pc.vue",
"type": "template",
"exclude": false
},
"Popup": {
"path": "packages/popup/index.js",
"type": "component",
@ -1193,6 +1218,16 @@
"type": "component",
"exclude": false
},
"TableMobile": {
"path": "packages/table/src/mobile.vue",
"type": "template",
"exclude": false
},
"TablePc": {
"path": "packages/table/src/pc.vue",
"type": "template",
"exclude": false
},
"Tabs": {
"path": "packages/tabs/index.js",
"type": "component",
@ -1213,6 +1248,11 @@
"type": "template",
"exclude": false
},
"TabsTab-navTab-bar": {
"path": "packages/tabs/src/tab-bar.vue",
"type": "template",
"exclude": false
},
"Tag": {
"path": "packages/tag/index.js",
"type": "component",
@ -1385,6 +1425,11 @@
"type": "component",
"exclude": false
},
"UserHeadMobile": {
"path": "packages/user-head/src/mobile.vue",
"type": "template",
"exclude": false
},
"UserHeadPc": {
"path": "packages/user-head/src/pc.vue",
"type": "template",

View File

@ -37,6 +37,7 @@ export default {
type: String,
default: () => constants.LOAD_ICON_TEXT
},
_constants: Object
},
setup(props, context) {
return $setup({ props, context, template })

View File

@ -21,7 +21,7 @@ const defaults = {
customClass: '',
fullscreen: true,
type: 'primary',
tiny_mode: 'pc',
tiny_mode: 'pc'
}
let fullscreenLoading = null