@authing/vue-ui-components 3.1.1 → 3.1.6
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/components/AuthingGuard/index.js +8 -0
- package/{src/components/AuthingGuard.vue → components/AuthingGuard/src/index.vue} +23 -17
- package/components/Guard/index.js +8 -0
- package/components/Guard/src/index.vue +156 -0
- package/components/index.js +25 -0
- package/lib/index.min.css +1 -1
- package/lib/index.min.js +474 -1
- package/package.json +59 -43
- package/.eslintignore +0 -2
- package/LICENSE +0 -21
- package/configs/rollup.config.base.js +0 -78
- package/configs/rollup.config.browser.js +0 -15
- package/configs/rollup.config.es.js +0 -16
- package/configs/rollup.config.umd.js +0 -15
- package/src/components/index.d.ts +0 -0
- package/src/components/index.js +0 -21
- package/src/icons.js +0 -18
- package/src/index.js +0 -79
- package/src/mixins/CoupledChild.js +0 -49
- package/src/mixins/CoupledParent.js +0 -172
- package/src/mixins/DisableScroll.js +0 -25
- package/src/mixins/DisabledChild.js +0 -25
- package/src/mixins/DisabledParent.js +0 -35
- package/vue.config.js +0 -36
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (Use with the DisabledParent mixin)
|
|
3
|
-
* This mixin should be implemented on all components that can be disabled.
|
|
4
|
-
*/
|
|
5
|
-
// @vue/component
|
|
6
|
-
export default {
|
|
7
|
-
inject: {
|
|
8
|
-
VueDisableMixin: {
|
|
9
|
-
default: null,
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
props: {
|
|
14
|
-
disabled: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: false,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
computed: {
|
|
21
|
-
finalDisabled () {
|
|
22
|
-
return this.disabled || (this.VueDisableMixin && this.VueDisableMixin.data.value)
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (Use with the DisabledChild mixin)
|
|
3
|
-
* Allow disabling an entire tree of components implementing the DisabledChild mixin.
|
|
4
|
-
*/
|
|
5
|
-
// @vue/component
|
|
6
|
-
export default {
|
|
7
|
-
provide () {
|
|
8
|
-
return {
|
|
9
|
-
VueDisableMixin: {
|
|
10
|
-
data: this.injectedDisableData,
|
|
11
|
-
},
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
props: {
|
|
16
|
-
disabled: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: false,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
data () {
|
|
23
|
-
return {
|
|
24
|
-
injectedDisableData: {
|
|
25
|
-
value: this.disabled,
|
|
26
|
-
},
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
watch: {
|
|
31
|
-
disabled (value, oldValue) {
|
|
32
|
-
if (value !== oldValue) this.injectedDisableData.value = value
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
}
|
package/vue.config.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
lintOnSave: false,
|
|
5
|
-
|
|
6
|
-
outputDir: './docs',
|
|
7
|
-
publicPath: './',
|
|
8
|
-
|
|
9
|
-
configureWebpack: {
|
|
10
|
-
entry: {
|
|
11
|
-
app: path.resolve(__dirname, './docs-src/main.js'),
|
|
12
|
-
},
|
|
13
|
-
resolve: {
|
|
14
|
-
alias: {
|
|
15
|
-
'@style': path.resolve(__dirname, './src/style/imports.styl'),
|
|
16
|
-
'@': path.resolve(__dirname, './docs-src'),
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
chainWebpack: config => {
|
|
22
|
-
config.module
|
|
23
|
-
.rule('js')
|
|
24
|
-
.include
|
|
25
|
-
.add(path.resolve(__dirname, './docs-src'))
|
|
26
|
-
|
|
27
|
-
config.module
|
|
28
|
-
.rule('vue')
|
|
29
|
-
.use('vue-loader')
|
|
30
|
-
.loader('vue-loader')
|
|
31
|
-
.tap(options => {
|
|
32
|
-
options.compilerOptions.preserveWhitespace = true
|
|
33
|
-
return options
|
|
34
|
-
})
|
|
35
|
-
},
|
|
36
|
-
}
|