Skip to content

Commit c006e81

Browse files
authored
chore(Script): downgrade script syntax (#361)
* refactor: 降级脚本 * chore: bump version 9.0.1 * chore: 脚本降级 * chore: bump version 9.1.4 * refactor: 脚本降级 * chore: bump version 9.0.0-beta06 * chore: 脚本降级 * chore: bump version 9.1.8 * refactor: 脚本降级 * chore: bump version 9.1.5
1 parent e441595 commit c006e81

8 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/components/BootstrapBlazor.Html2Image/BootstrapBlazor.Html2Image.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.0</Version>
4+
<Version>9.0.1</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.Html2Image/wwwroot/html2image.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export async function execute(selector, methodName, options) {
44
let data = null;
55
const el = document.querySelector(selector);
66
if (el) {
7-
options ??= {};
7+
options ||= {};
88
const fn = methodName === 'toBlob'
99
? htmlToImage[methodName]
1010
: getMethod(options);
@@ -15,7 +15,7 @@ export async function execute(selector, methodName, options) {
1515

1616
const getMethod = options => {
1717
let ret = "toPng";
18-
const {methodName} = options;
18+
const { methodName } = options;
1919
delete options.methodName;
2020

2121
if (['toPng', 'toJpeg', 'toSvg', 'toCanvas'].find(i => i === methodName)) {

src/components/BootstrapBlazor.MeiliSearch/BootstrapBlazor.MeiliSearch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.1.7</Version>
4+
<Version>9.1.8</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.MeiliSearch/MeiliSearchBox.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ const doSearch = async (search, query, filter = null) => {
184184
updateStatus(search, result.estimatedTotalHits, result.processingTimeMs);
185185
}
186186

187-
const cb = BootstrapBlazor.MeiliSearch?.updateList ?? updateList;
187+
const cb = BootstrapBlazor.MeiliSearch && BootstrapBlazor.MeiliSearch.updateList || updateList;
188188
cb(search, result);
189189
}
190190
}

src/components/BootstrapBlazor.MindMap/BootstrapBlazor.MindMap.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Razor">
1+
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.1.3</Version>
4+
<Version>9.1.5</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.MindMap/MindMap.razor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export async function init(id, invoke, data, options) {
1616

1717
Themes.init(MindMap);
1818

19-
options ??= {};
19+
options ||= {};
2020
options.el = el;
2121
const d = JSON.parse(data);
2222
if (d.root === null) {
@@ -49,7 +49,7 @@ export function update(id, options) {
4949
export function execute(id, method, args) {
5050
const mm = Data.get(id);
5151
const { mindMap } = mm;
52-
const fn = BootstrapBlazor.MindMap?.callbacks[method] ?? mindMap[method];
52+
const fn = BootstrapBlazor.MindMap && BootstrapBlazor.MindMap.callbacks[method] || mindMap[method];
5353
if (fn) {
5454
fn.apply(mindMap, args);
5555
}

src/components/BootstrapBlazor.UniverSheet/BootstrapBlazor.UniverSheet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.0-beta05</Version>
4+
<Version>9.0.0-beta06</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.UniverSheet/wwwroot/plugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class DefaultPlugin extends Plugin {
4444
}
4545

4646
setWorkbookData(data) {
47-
this._sheet ??= this._dataService.getUniverSheet();
47+
this._sheet ||= this._dataService.getUniverSheet();
4848
const { univerAPI } = this._sheet;
4949
const activeWorkbook = univerAPI.getActiveWorkbook()
5050
const unitId = activeWorkbook?.getId()
@@ -55,7 +55,7 @@ export class DefaultPlugin extends Plugin {
5555
}
5656

5757
getWorkbookData() {
58-
this._sheet ??= this._dataService.getUniverSheet();
58+
this._sheet ||= this._dataService.getUniverSheet();
5959
const { univerAPI } = this._sheet;
6060
const data = univerAPI.getActiveWorkbook().save();
6161
delete data.id;
@@ -71,7 +71,7 @@ export class DefaultPlugin extends Plugin {
7171
}
7272

7373
updateRange(data) {
74-
this._sheet ??= this._dataService.getUniverSheet();
74+
this._sheet ||= this._dataService.getUniverSheet();
7575
const { univerAPI } = this._sheet;
7676
const sheet = univerAPI.getActiveWorkbook().getActiveSheet();
7777
const range = sheet.getRange(data.range);

0 commit comments

Comments
 (0)