@94ai/nf-double-week 3.1.37 → 3.1.38
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/lib/nf-double-week.cjs.js +577 -3560
- package/lib/nf-double-week.esm-bundler.js +572 -3555
- package/package/index.ts +8 -0
- package/package/nf-double-week.vue +35 -0
- package/package/picker.vue +780 -0
- package/package/popper.js +1276 -0
- package/package/style/css.ts +1 -0
- package/package/style/index.ts +1 -0
- package/package/week-range.vue +436 -0
- package/package/week-table.vue +296 -0
- package/package.json +3 -3
package/package/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import NfDoubleWeek from './nf-double-week.vue'
|
|
2
|
+
import { Vue2, PluginObject } from 'vue-demi'
|
|
3
|
+
|
|
4
|
+
NfDoubleWeek.install = (app: typeof Vue2) => {
|
|
5
|
+
app!.component('nf-double-week', NfDoubleWeek)
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default NfDoubleWeek as typeof NfDoubleWeek & PluginObject<undefined>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import Picker from './picker.vue'
|
|
3
|
+
import WeekRangePanel from './week-range.vue'
|
|
4
|
+
|
|
5
|
+
const getPanel = function() {
|
|
6
|
+
return WeekRangePanel
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
mixins: [Picker],
|
|
11
|
+
|
|
12
|
+
name: 'NfDoubleWeek',
|
|
13
|
+
|
|
14
|
+
props: {
|
|
15
|
+
timeArrowControl: Boolean
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
watch: {
|
|
19
|
+
type(type) {
|
|
20
|
+
if (this.picker) {
|
|
21
|
+
this.unmountPicker()
|
|
22
|
+
this.panel = getPanel(type)
|
|
23
|
+
this.mountPicker()
|
|
24
|
+
} else {
|
|
25
|
+
this.panel = getPanel(type)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
|
|
30
|
+
created() {
|
|
31
|
+
this.panel = getPanel(this.type)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
</script>
|