clickgo 7.7.4 → 7.8.0
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/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/theme/software-dark.cgt +0 -0
- package/dist/theme/software-light.cgt +0 -0
- package/doc/clickgo-rag.md +21 -8
- package/package.json +3 -2
|
Binary file
|
|
Binary file
|
package/doc/clickgo-rag.md
CHANGED
|
@@ -1677,7 +1677,13 @@ month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日
|
|
|
1677
1677
|
|
|
1678
1678
|
`boolean` | `string`
|
|
1679
1679
|
|
|
1680
|
-
|
|
1680
|
+
是否显示返回当前选中年月的按钮,默认 true。
|
|
1681
|
+
|
|
1682
|
+
#### todaybtn
|
|
1683
|
+
|
|
1684
|
+
`boolean` | `string`
|
|
1685
|
+
|
|
1686
|
+
是否显示今天按钮,默认 true。按 tz 对应的日期选择今天,遵循 start/end 和 disabledList;range 模式下设置起点。
|
|
1681
1687
|
|
|
1682
1688
|
### 事件
|
|
1683
1689
|
|
|
@@ -1738,7 +1744,7 @@ month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日
|
|
|
1738
1744
|
|
|
1739
1745
|
`Array<number | string>` | `string`
|
|
1740
1746
|
|
|
1741
|
-
|
|
1747
|
+
双向绑定,毫秒时间戳数组 [开始, 结束]。空数组表示未选择。外部同时设置 modelValue 和 tz 时以传入时间戳为准;单独切换 tz 保留所选墙上日期和时间。外部赋值直接同步,不裁剪范围。
|
|
1742
1748
|
|
|
1743
1749
|
#### tz
|
|
1744
1750
|
|
|
@@ -1750,19 +1756,19 @@ month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日
|
|
|
1750
1756
|
|
|
1751
1757
|
`number` | `string`
|
|
1752
1758
|
|
|
1753
|
-
|
|
1759
|
+
可选开始时间限制(秒/毫秒),手动选择、快捷范围和面板内切换时区均裁到允许区间。
|
|
1754
1760
|
|
|
1755
1761
|
#### end
|
|
1756
1762
|
|
|
1757
1763
|
`number` | `string`
|
|
1758
1764
|
|
|
1759
|
-
|
|
1765
|
+
可选结束时间限制(秒/毫秒),完全无交集的快捷范围禁用。
|
|
1760
1766
|
|
|
1761
1767
|
#### time
|
|
1762
1768
|
|
|
1763
1769
|
`boolean` | `string`
|
|
1764
1770
|
|
|
1765
|
-
是否显示时间选择,默认 true
|
|
1771
|
+
是否显示时间选择,默认 true。开始和结束时间独立设置,窄屏同样可用;关闭时手动选择完整日期。
|
|
1766
1772
|
|
|
1767
1773
|
#### zone
|
|
1768
1774
|
|
|
@@ -1774,7 +1780,7 @@ month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日
|
|
|
1774
1780
|
|
|
1775
1781
|
`boolean` | `string`
|
|
1776
1782
|
|
|
1777
|
-
|
|
1783
|
+
是否显示清除已选范围的按钮,默认 true。完成范围选择后面板自动关闭。
|
|
1778
1784
|
|
|
1779
1785
|
### 事件
|
|
1780
1786
|
|
|
@@ -1788,7 +1794,11 @@ month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日
|
|
|
1788
1794
|
|
|
1789
1795
|
使用 flex 布局,包含开始和结束两个日期选择框。点击选择框弹出日期范围选择面板。
|
|
1790
1796
|
|
|
1791
|
-
|
|
1797
|
+
宽屏显示两个月份,窄屏显示一个月。日历上方的快捷按钮自动换行,包含今天、近 3 天、近 7 天、本月、近 1 个月、近 3 个月和近 6 个月。
|
|
1798
|
+
|
|
1799
|
+
快捷范围按 tz 计算并包含今天,开始为 00:00:00,结束为今天 23:59:59(毫秒为 0,与日历精度一致)。本月从当月 1 日开始;近 N 个月先回退 N 个自然月,日号超出目标月时取月末,再从次日开始。例如 11 月 5 日的近 1 个月为 10 月 6 日至 11 月 5 日;3 月 31 日的近 1 个月为 3 月 1 日至 3 月 31 日。
|
|
1800
|
+
|
|
1801
|
+
点击快捷按钮一次提交两端并关闭面板,值有变化时触发一次 changed。手动选择允许在同一天完成范围,按独立设置的起止时间提交;结束早于开始或范围与边界无交集时不提交。未完成的选择在重新打开或清空时重置。取消时区选择后,再打开会恢复当前时区。
|
|
1792
1802
|
|
|
1793
1803
|
支持时间和时区选择。禁用日期呈现灰色不可选。
|
|
1794
1804
|
|
|
@@ -1798,6 +1808,7 @@ month 模式归一到所选时区的当月 1 日 00:00:00.000;外部传入日
|
|
|
1798
1808
|
<daterange v-model="range" v-model:tz="tz"></daterange>
|
|
1799
1809
|
```
|
|
1800
1810
|
|
|
1811
|
+
|
|
1801
1812
|
## delete
|
|
1802
1813
|
---
|
|
1803
1814
|
|
|
@@ -7160,7 +7171,9 @@ QR 码组件,用于生成二维码。
|
|
|
7160
7171
|
|
|
7161
7172
|
`string`
|
|
7162
7173
|
|
|
7163
|
-
|
|
7174
|
+
占位文字,默认空字符串。不可编辑模式下,单选和多选均在没有选中值时显示;多选取消全部选项后恢复显示。已选项的标签为空时不显示占位文字。
|
|
7175
|
+
|
|
7176
|
+
可编辑模式沿用输入框行为,输入为空时显示,多选已有标签时也可继续提示输入。普通单选(未启用 `editable`、`search`、`multi`)有可选数据时自动选中首项,此时显示选项标签。
|
|
7164
7177
|
|
|
7165
7178
|
#### data
|
|
7166
7179
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clickgo",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "Background interface, software interface, mobile phone APP interface operation library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
"types": "./dist/clickgo.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"sass": "sass --watch dist/:dist/ --style compressed --no-source-map",
|
|
17
|
-
"check": "tsc --noEmit --pretty false && eslint \"dist/**/*.ts\" --format stylish && npm run test:command && npm run test:locale && npm run test:style && npm run test:desktop && npm run test:form && npm run test:task && npm run test:module && npm run test:vflow && npm run test:scroll && npm run test:jodit && npm run test:select && npm run test:date && npm run test:nav && npm run test:breadcrumb && npm run test:objviewer && npm run test:accordion",
|
|
17
|
+
"check": "tsc --noEmit --pretty false && eslint \"dist/**/*.ts\" --format stylish && npm run test:command && npm run test:locale && npm run test:style && npm run test:desktop && npm run test:form && npm run test:task && npm run test:module && npm run test:vflow && npm run test:scroll && npm run test:jodit && npm run test:select && npm run test:date && npm run test:daterange && npm run test:nav && npm run test:breadcrumb && npm run test:objviewer && npm run test:accordion",
|
|
18
18
|
"test:accordion": "node dist/abox/test/accordion.mjs",
|
|
19
19
|
"test:objviewer": "node dist/abox/test/objviewer.mjs",
|
|
20
20
|
"test:command": "node dist/abox/test/command.mjs",
|
|
21
21
|
"test:select": "node dist/abox/test/select.mjs",
|
|
22
|
+
"test:daterange": "node dist/abox/test/daterange.mjs",
|
|
22
23
|
"test:date": "node dist/abox/test/date.mjs",
|
|
23
24
|
"test:module": "node dist/abox/test/tool-assets.mjs && node dist/abox/test/tool-clone.mjs && node dist/abox/test/tool-json.mjs && node dist/abox/test/tool-data.mjs && node dist/abox/test/tool-state-machine.mjs && node dist/abox/test/core-module-loading.mjs && node dist/abox/test/tuieditor-locale.mjs && node dist/abox/test/app-package.mjs && node dist/abox/test/tool-encoding.mjs && node dist/abox/test/tool-compressor.mjs",
|
|
24
25
|
"test:jodit": "node dist/abox/test/jodit-lifecycle.mjs",
|