@questwork/vue-q-widget-vue3 3.1.19 → 3.1.20
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.
|
@@ -10,6 +10,7 @@ import { ElementQList } from './qList'
|
|
|
10
10
|
import { ElementQPaginator } from './qPaginator'
|
|
11
11
|
import { ElementQScheduler } from './qScheduler'
|
|
12
12
|
import { ElementQTab } from './qTab'
|
|
13
|
+
import { ElementQWidget } from './qWidget'
|
|
13
14
|
|
|
14
15
|
export default {
|
|
15
16
|
ElementQButton,
|
|
@@ -24,6 +25,7 @@ export default {
|
|
|
24
25
|
ElementQPaginator,
|
|
25
26
|
ElementQScheduler,
|
|
26
27
|
ElementQTab,
|
|
28
|
+
ElementQWidget
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
export {
|
|
@@ -39,4 +41,5 @@ export {
|
|
|
39
41
|
ElementQPaginator,
|
|
40
42
|
ElementQScheduler,
|
|
41
43
|
ElementQTab,
|
|
44
|
+
ElementQWidget
|
|
42
45
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Element } from '../element'
|
|
2
|
+
|
|
3
|
+
class ElementQWidget extends Element {
|
|
4
|
+
constructor(opt = {}) {
|
|
5
|
+
super(opt)
|
|
6
|
+
this.defaultStateName = {
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
getConfig() {
|
|
11
|
+
const config = {
|
|
12
|
+
...(this.state || {}),
|
|
13
|
+
...(this.config || {}),
|
|
14
|
+
...(this.state[this.name] || {})
|
|
15
|
+
}
|
|
16
|
+
return config
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
ElementQWidget
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
ElementQWidget
|
|
26
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@questwork/vue-q-widget-vue3",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.20",
|
|
4
4
|
"description": "Questwork vue component Sample",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
},
|
|
10
10
|
"./style.css": "./dist/q-widget.min.css"
|
|
11
11
|
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "vite build",
|
|
14
|
+
"build:copy": "vite build && cp -r dist/*.js '../congress.system/public/libs/vue.v3/' && cp -r dist/*.js '../wordpress.plugins/wp-q-components/assets/js/vue.v3/' && cp -r dist/*.css '../congress.system/public/userfile/shared/css/vue.v3/' && cp -r dist/*.css '../wordpress.plugins/wp-q-components/assets/css/vue.v3/'",
|
|
15
|
+
"build:storybook": "storybook build -c .storybook -o storybook",
|
|
16
|
+
"storybook": "storybook dev -p 6061"
|
|
17
|
+
},
|
|
12
18
|
"author": {
|
|
13
19
|
"name": "Questwork Consulting Limited",
|
|
14
20
|
"email": "info@questwork.com",
|
|
@@ -60,11 +66,5 @@
|
|
|
60
66
|
},
|
|
61
67
|
"engines": {
|
|
62
68
|
"node": ">=10.0.0"
|
|
63
|
-
},
|
|
64
|
-
"scripts": {
|
|
65
|
-
"build": "vite build",
|
|
66
|
-
"build:copy": "vite build && cp -r dist/*.js '../congress.system/public/libs/vue.v3/' && cp -r dist/*.js '../wordpress.plugins/wp-q-components/assets/js/vue.v3/' && cp -r dist/*.css '../congress.system/public/userfile/shared/css/vue.v3/' && cp -r dist/*.css '../wordpress.plugins/wp-q-components/assets/css/vue.v3/'",
|
|
67
|
-
"build:storybook": "storybook build -c .storybook -o storybook",
|
|
68
|
-
"storybook": "storybook dev -p 6061"
|
|
69
69
|
}
|
|
70
|
-
}
|
|
70
|
+
}
|