nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions

View File

@@ -167,10 +167,16 @@ exports.rerender = tryWrap(function (id, options) {
if (Array.isArray(instance.$options.cached)) {
instance.$options.cached = []
}
// post 2.5.4: v-once trees are cached on instance._staticTrees.
// Pure static trees are cached on the staticRenderFns array
// (both already reset above)
// 2.6: temporarily mark rendered scoped slots as unstable so that
// child components can be forced to update
var restore = patchScopedSlots(instance)
instance.$forceUpdate()
instance.$nextTick(restore)
})
} else {
// functional or no instance created yet
@@ -241,3 +247,25 @@ exports.reload = tryWrap(function (id, options) {
}
})
})
// 2.6 optimizes template-compiled scoped slots and skips updates if child
// only uses scoped slots. We need to patch the scoped slots resolving helper
// to temporarily mark all scoped slots as unstable in order to force child
// updates.
function patchScopedSlots (instance) {
if (!instance._u) { return }
// https://github.com/vuejs/vue/blob/dev/src/core/instance/render-helpers/resolve-scoped-slots.js
var original = instance._u
instance._u = function (slots) {
try {
// 2.6.4 ~ 2.6.6
return original(slots, true)
} catch (e) {
// 2.5 / >= 2.6.7
return original(slots, null, true)
}
}
return function () {
instance._u = original
}
}

View File

@@ -1,26 +1,26 @@
{
"_from": "vue-hot-reload-api@^2.2.0",
"_id": "vue-hot-reload-api@2.3.1",
"_from": "vue-hot-reload-api@^2.3.0",
"_id": "vue-hot-reload-api@2.3.3",
"_inBundle": false,
"_integrity": "sha512-AA86yKZ5uOKz87/q1UpngEXhbRkaYg1b7HMMVRobNV1IVKqZe8oLIzo6iMocVwZXnYitlGwf2k4ZRLOZlS8oPQ==",
"_integrity": "sha512-KmvZVtmM26BQOMK1rwUZsrqxEGeKiYSZGA7SNWE6uExx8UX/cj9hq2MRV/wWC3Cq6AoeDGk57rL9YMFRel/q+g==",
"_location": "/vue-hot-reload-api",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "vue-hot-reload-api@^2.2.0",
"raw": "vue-hot-reload-api@^2.3.0",
"name": "vue-hot-reload-api",
"escapedName": "vue-hot-reload-api",
"rawSpec": "^2.2.0",
"rawSpec": "^2.3.0",
"saveSpec": null,
"fetchSpec": "^2.2.0"
"fetchSpec": "^2.3.0"
},
"_requiredBy": [
"/vue-loader"
],
"_resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.1.tgz",
"_shasum": "b2d3d95402a811602380783ea4f566eb875569a2",
"_spec": "vue-hot-reload-api@^2.2.0",
"_resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.3.tgz",
"_shasum": "2756f46cb3258054c5f4723de8ae7e87302a1ccf",
"_spec": "vue-hot-reload-api@^2.3.0",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\vue-loader",
"author": {
"name": "Evan You"
@@ -32,9 +32,9 @@
"deprecated": false,
"description": "hot reload api for *.vue components",
"devDependencies": {
"buble": "^0.16.0",
"jest": "^21.2.1",
"vue": "^2.4.4"
"buble": "^0.19.6",
"jest": "^23.6.0",
"vue": "^2.5.21"
},
"files": [
"dist"
@@ -57,5 +57,5 @@
"prepublishOnly": "npm run test && npm run build",
"test": "jest"
},
"version": "2.3.1"
"version": "2.3.3"
}