sard-uniapp 1.10.1 → 1.10.3
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/README.md +7 -3
- package/changelog.md +10 -0
- package/components/_template/_template.vue +1 -1
- package/components/accordion/accordion.vue +1 -1
- package/components/accordion-item/accordion-item.vue +1 -1
- package/components/action-sheet/action-sheet.vue +1 -1
- package/components/alert/alert.vue +1 -1
- package/components/avatar/avatar.vue +1 -1
- package/components/back-top/back-top.vue +1 -1
- package/components/badge/badge.vue +1 -1
- package/components/button/button.vue +1 -1
- package/components/calendar/calendar.vue +1 -1
- package/components/calendar-month/calendar-month.vue +1 -1
- package/components/card/card.vue +1 -1
- package/components/cascader/cascader.vue +2 -2
- package/components/cascader-input/cascader-input.d.ts +4 -4
- package/components/cascader-input/cascader-input.vue +8 -5
- package/components/cascader-input/common.d.ts +2 -2
- package/components/check-icon/check-icon.vue +1 -1
- package/components/checkbox/checkbox.vue +1 -1
- package/components/checkbox-group/checkbox-group.vue +1 -1
- package/components/checkbox-input/checkbox-input.vue +2 -1
- package/components/col/col.vue +1 -1
- package/components/collapse/collapse.vue +1 -1
- package/components/datetime-picker-input/datetime-picker-input.vue +3 -2
- package/components/dialog/dialog.vue +1 -1
- package/components/dropdown/dropdown.vue +1 -1
- package/components/dropdown-item/dropdown-item.vue +1 -1
- package/components/empty/empty.vue +1 -1
- package/components/fab/fab.vue +1 -1
- package/components/floating-bubble/floating-bubble.vue +1 -1
- package/components/form/form.vue +1 -1
- package/components/form-item/form-item.vue +1 -1
- package/components/grid/grid.vue +1 -1
- package/components/grid-item/grid-item.vue +1 -1
- package/components/icon/icon.vue +1 -1
- package/components/indexes/indexes.vue +1 -1
- package/components/indexes-anchor/indexes-anchor.vue +1 -1
- package/components/indexes-nav/indexes-nav.vue +1 -1
- package/components/input/input.vue +1 -1
- package/components/keyboard/keyboard.vue +1 -1
- package/components/list/list.vue +1 -1
- package/components/list-item/list-item.vue +1 -1
- package/components/load-more/load-more.vue +1 -1
- package/components/loading/loading.vue +1 -1
- package/components/marquee/marquee.vue +1 -1
- package/components/menu/menu.vue +1 -1
- package/components/menu-item/menu-item.vue +1 -1
- package/components/navbar/navbar.vue +1 -1
- package/components/navbar-item/navbar-item.vue +1 -1
- package/components/notice-bar/notice-bar.vue +1 -1
- package/components/notify/notify.vue +1 -1
- package/components/overlay/overlay.vue +1 -1
- package/components/pagination/pagination.vue +1 -1
- package/components/password-input/password-input.vue +1 -1
- package/components/picker/picker.vue +1 -1
- package/components/popout/popout.vue +1 -1
- package/components/popout-input/popout-input.vue +1 -1
- package/components/popover/popover.vue +1 -1
- package/components/popup/popup.vue +1 -1
- package/components/progress-bar/progress-bar.vue +1 -1
- package/components/progress-circle/progress-circle.vue +1 -1
- package/components/pull-down-refresh/pull-down-refresh.vue +1 -1
- package/components/qrcode/qrcode.vue +1 -1
- package/components/radio/radio.vue +1 -1
- package/components/radio-group/radio-group.vue +1 -1
- package/components/radio-input/radio-input.vue +1 -1
- package/components/rate/rate.vue +1 -1
- package/components/result/result.vue +1 -1
- package/components/row/row.vue +1 -1
- package/components/search/search.vue +1 -1
- package/components/share-sheet/share-sheet.vue +1 -1
- package/components/skeleton/skeleton.vue +1 -1
- package/components/skeleton-avatar/skeleton-avatar.vue +1 -1
- package/components/skeleton-block/skeleton-block.vue +1 -1
- package/components/skeleton-paragraph/skeleton-paragraph.vue +1 -1
- package/components/skeleton-title/skeleton-title.vue +1 -1
- package/components/slider/slider.vue +1 -1
- package/components/space/space.vue +1 -1
- package/components/stepper/stepper.vue +1 -1
- package/components/steps/steps.vue +1 -1
- package/components/style/functions.scss +61 -16
- package/components/style/variables.scss +21 -21
- package/components/swiper-dot/swiper-dot.vue +1 -1
- package/components/switch/switch.vue +1 -1
- package/components/tab/tab.vue +1 -1
- package/components/tabbar/tabbar.vue +1 -1
- package/components/tabbar-item/tabbar-item.vue +1 -1
- package/components/table/table.vue +1 -1
- package/components/table-cell/table-cell.vue +1 -1
- package/components/table-fixation/table-fixation.vue +1 -1
- package/components/table-row/table-row.vue +1 -1
- package/components/tabs/tabs.vue +1 -1
- package/components/tag/index.scss +4 -3
- package/components/tag/tag.vue +1 -1
- package/components/timeline/timeline.vue +1 -1
- package/components/timeline-item/timeline-item.vue +1 -1
- package/components/toast/toast.vue +1 -1
- package/components/tree/tree.vue +1 -1
- package/components/tree-node/tree-node.vue +1 -1
- package/components/upload/upload.vue +1 -1
- package/components/upload-preview/upload-preview.vue +1 -1
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -7,8 +7,12 @@
|
|
|
7
7
|
<p align="center">sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库。</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
|
|
11
|
-
🧑🏻🏫 <a href="http://
|
|
10
|
+
国内:📖 <a href="http://sard.wzt.zone/sard-uniapp-docs">文档</a>
|
|
11
|
+
🧑🏻🏫 <a href="http://sard.wzt.zone/sard-uniapp-docs/mobile/">案例演示</a>
|
|
12
|
+
</p>
|
|
13
|
+
<p align="center">
|
|
14
|
+
国外:📖 <a href="http://sutras.github.io/sard-uniapp-docs">文档</a>
|
|
15
|
+
🧑🏻🏫 <a href="http://sutras.github.io/sard-uniapp-docs/mobile/">案例演示</a>
|
|
12
16
|
</p>
|
|
13
17
|
|
|
14
18
|
---
|
|
@@ -110,7 +114,7 @@ npm run release
|
|
|
110
114
|
- 提交
|
|
111
115
|
- 给提交打标签
|
|
112
116
|
- 运行 `npm run buildAndRelease` 打包组件库并发布到 npm
|
|
113
|
-
- 发布到 uniapp 插件市场
|
|
117
|
+
- 使用 HBuilderX 发布到 uniapp 插件市场
|
|
114
118
|
- 运行 `npm run push` 推送代码和标签
|
|
115
119
|
- 运行 `npm run build:site` 打包文档(如果文档有修改)
|
|
116
120
|
- 运行 `npm run deploy` 部署文档(如果文档有修改)
|
package/changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.10.3](https://github.com/sutras/sard-uniapp/compare/v1.10.1...v1.10.3) (2025-02-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 修复 cascader, cascader-input 组件 ([e964e40](https://github.com/sutras/sard-uniapp/commit/e964e400452e873713a95b9a07cbe4e1459113cc))
|
|
7
|
+
* 确保 DatetimePickerInput value 格式化, 移除sass警告 ([e8e326d](https://github.com/sutras/sard-uniapp/commit/e8e326d9db1b96bd542bff5a1a60276083d53fba))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
## [1.10.1](https://github.com/sutras/sard-uniapp/compare/v1.10.0...v1.10.1) (2025-01-08)
|
|
2
12
|
|
|
3
13
|
|
package/components/card/card.vue
CHANGED
|
@@ -138,7 +138,7 @@ export default _defineComponent({
|
|
|
138
138
|
options: nextOptions,
|
|
139
139
|
selected: option
|
|
140
140
|
};
|
|
141
|
-
nextOptions = option.children;
|
|
141
|
+
nextOptions = option[mergedFieldKeys.value.children];
|
|
142
142
|
return tab;
|
|
143
143
|
});
|
|
144
144
|
if (nextOptions) {
|
|
@@ -267,5 +267,5 @@ export default _defineComponent({
|
|
|
267
267
|
</script>
|
|
268
268
|
|
|
269
269
|
<style lang="scss">
|
|
270
|
-
@
|
|
270
|
+
@use './index.scss';
|
|
271
271
|
</style>
|
|
@@ -2,13 +2,13 @@ import { type CascaderOption } from '../cascader/common';
|
|
|
2
2
|
import { type CascaderInputProps, type CascaderInputSlots } from './common';
|
|
3
3
|
declare function __VLS_template(): Readonly<CascaderInputSlots> & CascaderInputSlots;
|
|
4
4
|
declare const __VLS_component: import("vue").DefineComponent<CascaderInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
-
"update:model-value": (value: any) => any;
|
|
6
|
-
change: (value: any) => any;
|
|
5
|
+
"update:model-value": (value: any, selectedOptions: CascaderOption[]) => any;
|
|
6
|
+
change: (value: any, selectedOptions: CascaderOption[]) => any;
|
|
7
7
|
select: (option: CascaderOption, tabIndex: number) => any;
|
|
8
8
|
"update:visible": (visible: boolean) => any;
|
|
9
9
|
}, string, import("vue").PublicProps, Readonly<CascaderInputProps> & Readonly<{
|
|
10
|
-
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
11
|
-
onChange?: ((value: any) => any) | undefined;
|
|
10
|
+
"onUpdate:model-value"?: ((value: any, selectedOptions: CascaderOption[]) => any) | undefined;
|
|
11
|
+
onChange?: ((value: any, selectedOptions: CascaderOption[]) => any) | undefined;
|
|
12
12
|
onSelect?: ((option: CascaderOption, tabIndex: number) => any) | undefined;
|
|
13
13
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
14
14
|
}>, {
|
|
@@ -101,11 +101,13 @@ export default _defineComponent({
|
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
const popoutValue = ref(props.modelValue);
|
|
104
|
+
const popoutOptions = ref([]);
|
|
104
105
|
watch(innerValue, () => {
|
|
105
106
|
popoutValue.value = innerValue.value;
|
|
106
107
|
});
|
|
107
|
-
const onChange = (value) => {
|
|
108
|
+
const onChange = (value, selectedOptions) => {
|
|
108
109
|
popoutValue.value = value;
|
|
110
|
+
popoutOptions.value = selectedOptions;
|
|
109
111
|
if (!props.showConfirm && !isNullish(popoutValue.value)) {
|
|
110
112
|
onConfirm();
|
|
111
113
|
innerVisible.value = false;
|
|
@@ -113,8 +115,8 @@ export default _defineComponent({
|
|
|
113
115
|
};
|
|
114
116
|
const onConfirm = () => {
|
|
115
117
|
innerValue.value = popoutValue.value;
|
|
116
|
-
emit("update:model-value", popoutValue.value);
|
|
117
|
-
emit("change", popoutValue.value);
|
|
118
|
+
emit("update:model-value", popoutValue.value, popoutOptions.value);
|
|
119
|
+
emit("change", popoutValue.value, popoutOptions.value);
|
|
118
120
|
inputValue.value = getInputValue();
|
|
119
121
|
};
|
|
120
122
|
const inputValue = ref("");
|
|
@@ -157,7 +159,8 @@ export default _defineComponent({
|
|
|
157
159
|
const onClear = () => {
|
|
158
160
|
inputValue.value = "";
|
|
159
161
|
innerValue.value = void 0;
|
|
160
|
-
emit("update:model-value", void 0);
|
|
162
|
+
emit("update:model-value", void 0, []);
|
|
163
|
+
emit("change", void 0, []);
|
|
161
164
|
};
|
|
162
165
|
const innerVisible = ref(props.visible);
|
|
163
166
|
watch(
|
|
@@ -174,7 +177,7 @@ export default _defineComponent({
|
|
|
174
177
|
innerVisible.value = true;
|
|
175
178
|
emit("update:visible", true);
|
|
176
179
|
};
|
|
177
|
-
const __returned__ = { props, emit, formItemContext, innerValue, popoutValue, onChange, onConfirm, inputValue, fieldkeys, getOutletText, getInputValue, onClear, innerVisible, onVisible, onInputClick, SarPopoutInput, SarCascader, SarPopout };
|
|
180
|
+
const __returned__ = { props, emit, formItemContext, innerValue, popoutValue, popoutOptions, onChange, onConfirm, inputValue, fieldkeys, getOutletText, getInputValue, onClear, innerVisible, onVisible, onInputClick, SarPopoutInput, SarCascader, SarPopout };
|
|
178
181
|
return __returned__;
|
|
179
182
|
}
|
|
180
183
|
});
|
|
@@ -17,7 +17,7 @@ export interface CascaderInputSlots {
|
|
|
17
17
|
}
|
|
18
18
|
export interface CascaderInputEmits {
|
|
19
19
|
(e: 'update:visible', visible: boolean): void;
|
|
20
|
-
(e: 'update:model-value', value: any): void;
|
|
21
|
-
(e: 'change', value: any): void;
|
|
20
|
+
(e: 'update:model-value', value: any, selectedOptions: CascaderOption[]): void;
|
|
21
|
+
(e: 'change', value: any, selectedOptions: CascaderOption[]): void;
|
|
22
22
|
(e: 'select', option: CascaderOption, tabIndex: number): void;
|
|
23
23
|
}
|
|
@@ -171,6 +171,7 @@ export default _defineComponent({
|
|
|
171
171
|
inputValue.value = "";
|
|
172
172
|
innerValue.value = void 0;
|
|
173
173
|
emit("update:model-value", void 0);
|
|
174
|
+
emit("change", void 0);
|
|
174
175
|
};
|
|
175
176
|
const innerVisible = ref(props.visible);
|
|
176
177
|
watch(
|
|
@@ -196,5 +197,5 @@ export default _defineComponent({
|
|
|
196
197
|
</script>
|
|
197
198
|
|
|
198
199
|
<style lang="scss">
|
|
199
|
-
@
|
|
200
|
+
@use './index.scss';
|
|
200
201
|
</style>
|
package/components/col/col.vue
CHANGED
|
@@ -115,8 +115,9 @@ export default _defineComponent({
|
|
|
115
115
|
return maxDate2 < minDate.value ? new Date(minDate.value) : maxDate2;
|
|
116
116
|
});
|
|
117
117
|
const onConfirm = () => {
|
|
118
|
-
if (
|
|
119
|
-
|
|
118
|
+
if (!popoutValue.value) {
|
|
119
|
+
const initialValue = getInitialValue(minDate.value, maxDate.value);
|
|
120
|
+
popoutValue.value = props.valueFormat ? formatDate(initialValue, props.valueFormat) : initialValue;
|
|
120
121
|
}
|
|
121
122
|
innerValue.value = popoutValue.value;
|
|
122
123
|
emit("update:model-value", popoutValue.value);
|
package/components/fab/fab.vue
CHANGED
package/components/form/form.vue
CHANGED
package/components/grid/grid.vue
CHANGED
package/components/icon/icon.vue
CHANGED
package/components/list/list.vue
CHANGED
package/components/menu/menu.vue
CHANGED