在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/ HTML問答
夢一場 回答

在行中的每個check都要記錄在dataSource中。

  • columus
const columnsMenu = [
      {
        title: '菜單',
        key: 'NAME',
        dataIndex: 'NAME',
      },
      {
        title: '全部',
        key: 'AUTHORITY_ALL',
        dataIndex: 'AUTHORITY_ALL',
        render: (text, record) => (<Checkbox onChange={(e) => this.handleCheckbox(e.target.checked, 'AUTHORITY_ALL', record.ID)} checked={record.AUTHORITY_ALL} value={record.ID} />),
      },
      {
        title: '查看權(quán)限',
        key: 'AUTHORITY_CHECK',
        dataIndex: 'AUTHORITY_CHECK',
        render: (text, record) => (<Checkbox onChange={(e) => this.handleCheckbox(e.target.checked, 'AUTHORITY_CHECK', record.ID)} checked={record.AUTHORITY_CHECK} value={record.ID} />),
      },
      {
        title: '編輯權(quán)限',
        key: 'AUTHORITY_EDIT',
        dataIndex: 'AUTHORITY_EDIT',
        render: (text, record) => (<Checkbox onChange={(e) => this.handleCheckbox(e.target.checked, 'AUTHORITY_EDIT', record.ID)} checked={record.AUTHORITY_EDIT} value={record.ID} />),
      },
    ];
  • handleCheckbox
handleCheckbox(checked, type, id) {
    let {dataSource} = this.props;
    dataSource = dataSource.map(data => {
        if(data.ID === id) {
            data[type] = checked;
            if(type === 'AUTHORITY_ALL') {
                data['AUTHORITY_EDIT'] = checked;
                data['AUTHORITY_CHECK'] = checked;
            } else {
                data['AUTHORITY_ALL'] = data['AUTHORITY_EDIT'] && data['AUTHORITY_CHECK'];
            }
        }
        return data;
    });
    
    dispatch({type: 'xxxx', dataSource});
}
愚念 回答

一般這種情況是環(huán)境變量配置出了問題

耍太極 回答

之前這么寫有點(diǎn)問題,代碼里邊多了一個_ 現(xiàn)在解決了 謝謝

笨小蛋 回答

https://developer.mozilla.org...
僅適用于類型為"checkbox" 或 "radio"元素的屬性

checked boolean: Returns / Sets the current state of the element when type is checkbox or radio.
defaultChecked boolean: Returns / Sets the default state of a radio button or checkbox as originally specified in HTML that created this object.
indeterminate boolean: indicates that the checkbox is neither on nor off. Changes the appearance to resemble a third state. Does not affect the value of the checked attribute, and clicking the checkbox will set the value to false.

建議買本書好好學(xué)學(xué)DOM和js基礎(chǔ)

vue 自身維護(hù) 一個 更新隊(duì)列
當(dāng)你設(shè)置 this.a = 'new value',DOM 并不會馬上更新,也就是下一個事件循環(huán)開始時執(zhí)行更新時才會進(jìn)行必要的DOM更新。
所以應(yīng)該算 延時異步的,只不過時間太短,感應(yīng)不出來
所以 for 循環(huán) 10000次 this.a = i vue只會更新一次,而不會更新10000次
也是為了性能

情已空 回答

微信web開發(fā)工具的授權(quán)?

這個是在公眾號后臺里設(shè)置的

喵小咪 回答

整數(shù)太大溢出了,返回改成字符串就行了。
console輸入 206426947700391936 返回的是 206426947700391940

尛曖昧 回答

可以換成html源文件模式

空白格 回答

vuedraggable的問題。 你項(xiàng)目用了這個庫吧?去vuedraggable的issue翻翻吧

枕頭人 回答

有個東西叫 環(huán)境變量...
最直接的方式,你把引用css地方的路徑 改為 process.env.CSS_PATH + '/css/xx.css'

然后在測試環(huán)境執(zhí)行時使用 CSS_PATH=dist npm start啟動
在生產(chǎn)環(huán)境執(zhí)行時使用 CSS_PATH=build npm start啟動

墨小白 回答

谷歌翻譯一下 Highlighted citations,在大概相對的位置找找唄(〃'▽'〃)

老梗 回答

firefox報錯說json格式錯誤,跟header無關(guān)。你看看在firefox里發(fā)送的數(shù)據(jù)對不對把。

疚幼 回答

感覺你沒明白cookie是怎么產(chǎn)生的,cookie是web服務(wù)器保存在瀏覽器中的信息,當(dāng)然也可以手動寫入;
你的h5的交互依賴登錄狀態(tài)還是怎么著?

厭遇 回答

微信小程序?
微信小程序只能用https進(jìn)行訪問(測試時可以不用https)。 你這個錯,感覺是你的https證書有問題,httpsz證書需要最高等級的證書才行。證書不全會導(dǎo)致https在某些嚴(yán)格的瀏覽器上不能訪問。

筱饞貓 回答

"scope"標(biāo)簽自Vue 2.5版本后被遺棄,替代的新標(biāo)簽時"slot-scope",優(yōu)先常看雙方的Vue版本,可能是因?yàn)閂ue版本不一致。

解決方法:
待更新~目前貌似除了全局更換標(biāo)簽,把scope=“scope”更換為slot-scope="scope",沒有其他方法了。以后有更好的方法再更新。

紓惘 回答

這個報錯沒關(guān)系的,這是因?yàn)闆]有安裝android虛擬機(jī),但實(shí)際上大部分時候都是用真機(jī)調(diào)試的,所以可以忽略這個錯誤。

失魂人 回答

使用vue的插槽,代碼如下

<el-table-column prop="date" label="預(yù)定日期">
    <template slot-scope="scope">
        <span>{{scope.row.checkInDate}} ~ {{scope.row.checkOutDate}}</span>
    </template>
</el-table-column>

如果日期格式希望自定義,可以加上vue過濾器來格式化日期。示例代碼:

    {{scope.row.checkInDate | formatDate}}